summaryrefslogtreecommitdiff
path: root/sxiv
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-10-05 22:00:32 -0500
committerzachir <zachir@librem.one>2022-10-05 22:00:32 -0500
commitf39d735e2ba625a31a7dbf6fb8bdd62501379ad1 (patch)
treed17c96714c930e0b8bc75616cc9c81b961ed5aa0 /sxiv
Initial Commit
Diffstat (limited to 'sxiv')
-rwxr-xr-xsxiv/exec/key-handler11
1 files changed, 11 insertions, 0 deletions
diff --git a/sxiv/exec/key-handler b/sxiv/exec/key-handler
new file mode 100755
index 0000000..08e06d5
--- /dev/null
+++ b/sxiv/exec/key-handler
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+IMAGES=`cat -`
+
+case "$1" in
+ "w")
+ notify-send "$IMAGES" "background"
+ ln -sf $IMAGES ~/background.jpg
+ xwallpaper --zoom ~/background.jpg
+ ;;
+esac