summaryrefslogtreecommitdiff
path: root/nsxiv/exec
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-10-09 21:44:28 -0500
committerzachir <zachir@librem.one>2022-10-09 21:44:28 -0500
commitf67a745bc47971d86335dee5d61317b15603d952 (patch)
treea2a9e787cf5156741e1dac3f91503ea304bd5b12 /nsxiv/exec
parent2a19230837aea8d7dd1278ab03905e6137a97761 (diff)
use nsxiv; will keep sxiv for now
Diffstat (limited to 'nsxiv/exec')
-rwxr-xr-xnsxiv/exec/key-handler11
1 files changed, 11 insertions, 0 deletions
diff --git a/nsxiv/exec/key-handler b/nsxiv/exec/key-handler
new file mode 100755
index 0000000..08e06d5
--- /dev/null
+++ b/nsxiv/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