aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-08-09 16:58:33 +0300
committereug-vs <eug-vs@keemail.me>2021-08-09 16:58:33 +0300
commit8b2718edb00e5d6a553d48399fdc4e134bf788a8 (patch)
tree0aa30b310e4638d50a44ef0cad478ea1c4ae7488
parent491195c5bdf84732ee314d53549a17d3da4333c7 (diff)
downloaddotfiles-8b2718edb00e5d6a553d48399fdc4e134bf788a8.tar.gz
feat(sxiv): make wallpaper default when changing
-rwxr-xr-xsxiv/.config/sxiv/exec/key-handler3
1 files changed, 2 insertions, 1 deletions
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