mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
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=$(ags run-js 'wallpaper.get(0)')
|
||||
elif [[ "$1" ]]; then
|
||||
switch $1
|
||||
switch "$1"
|
||||
else
|
||||
# Select and set image (hyprland)
|
||||
|
||||
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
|
||||
|
||||
# Generate colors for ags n stuff
|
||||
|
||||
Reference in New Issue
Block a user