From 4f7000fc077024ecce44f4617d645b55e993797e Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 20 Mar 2024 22:11:20 +0700 Subject: [PATCH] wallpaper picker: add preview --- .config/ags/scripts/color_generation/switchwall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ags/scripts/color_generation/switchwall.sh b/.config/ags/scripts/color_generation/switchwall.sh index fe4bca97a..0094c8e2f 100755 --- a/.config/ags/scripts/color_generation/switchwall.sh +++ b/.config/ags/scripts/color_generation/switchwall.sh @@ -6,7 +6,7 @@ if [ "$1" == "--noswitch" ]; then else # Select and set image (hyprland) cd "$HOME/Pictures" - imgpath=$(yad --width 1200 --height 800 --file --title='Choose wallpaper') + imgpath=$(yad --width 1200 --height 800 --file --title='Choose wallpaper' --add-preview --large-preview) screensizey=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2 | head -1) cursorposx=$(hyprctl cursorpos -j | gojq '.x' 2>/dev/null) || cursorposx=960 cursorposy=$(hyprctl cursorpos -j | gojq '.y' 2>/dev/null) || cursorposy=540