forked from Shinonome/dots-hyprland
switchwall.sh: fix for images with spaces(#428)
This commit is contained in:
@@ -28,12 +28,12 @@ if [ "$1" == "--noswitch" ]; then
|
|||||||
imgpath=$(swww query | awk -F 'image: ' '{print $2}')
|
imgpath=$(swww query | awk -F 'image: ' '{print $2}')
|
||||||
# imgpath=$(ags run-js 'wallpaper.get(0)')
|
# imgpath=$(ags run-js 'wallpaper.get(0)')
|
||||||
elif [[ "$1" ]]; then
|
elif [[ "$1" ]]; then
|
||||||
switch $1
|
switch "$1"
|
||||||
else
|
else
|
||||||
# Select and set image (hyprland)
|
# Select and set image (hyprland)
|
||||||
|
|
||||||
cd "$(xdg-user-dir PICTURES)" || return 1
|
cd "$(xdg-user-dir PICTURES)" || return 1
|
||||||
switch $(yad --width 1200 --height 800 --file --add-preview --large-preview --title='Choose wallpaper')
|
switch "$(yad --width 1200 --height 800 --file --add-preview --large-preview --title='Choose wallpaper')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate colors for ags n stuff
|
# Generate colors for ags n stuff
|
||||||
|
|||||||
Reference in New Issue
Block a user