From c38bfe86cbdc3cb9944a3b6d9e0184b201d58218 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 30 May 2024 07:23:33 +0700 Subject: [PATCH] switchwall.sh: fix for images with spaces(#428) --- .config/ags/scripts/color_generation/switchwall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/ags/scripts/color_generation/switchwall.sh b/.config/ags/scripts/color_generation/switchwall.sh index b21caa089..6ed5a185f 100755 --- a/.config/ags/scripts/color_generation/switchwall.sh +++ b/.config/ags/scripts/color_generation/switchwall.sh @@ -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