Update switchwall.sh

This commit is contained in:
Celestial.y
2024-03-15 08:46:50 +08:00
committed by GitHub
parent 90e9410e44
commit db2098f26c
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
if [ "$1" == "--noswitch" ]; then
imgpath=$(swww query | awk -F 'image: ' '{print $2}')
imgpath=$(swww query | awk -F 'image: ' '{print $2}'| head -n 1)
# imgpath=$(ags run-js 'wallpaper.get(0)')
else
# Select and set image (hyprland)