Skip to content

Commit

Permalink
switchwall.sh: fix for images with spaces(#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
end-4 committed May 30, 2024
1 parent 3d65ec8 commit c38bfe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .config/ags/scripts/color_generation/switchwall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c38bfe8

Please sign in to comment.