From 8b2718edb00e5d6a553d48399fdc4e134bf788a8 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 9 Aug 2021 16:58:33 +0300 Subject: feat(sxiv): make wallpaper default when changing --- sxiv/.config/sxiv/exec/key-handler | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sxiv') diff --git a/sxiv/.config/sxiv/exec/key-handler b/sxiv/.config/sxiv/exec/key-handler index 443916d..77e4a45 100755 --- a/sxiv/.config/sxiv/exec/key-handler +++ b/sxiv/.config/sxiv/exec/key-handler @@ -1,4 +1,5 @@ #!/bin/sh +WALLPAPER_LOCATION=~/Pictures/Wallpapers/wallpaper.jpg while read file do @@ -10,6 +11,6 @@ do "C-c") echo -n "$file" | xclip -selection clipboard ;; "C-w") - xwallpaper --zoom "$file" ;; + ln -sf "$file" "$WALLPAPER_LOCATION" && xwallpaper --zoom "$file" ;; esac done -- cgit v1.2.3