From f67a745bc47971d86335dee5d61317b15603d952 Mon Sep 17 00:00:00 2001
From: zachir <zachir@librem.one>
Date: Sun, 9 Oct 2022 21:44:28 -0500
Subject: use nsxiv; will keep sxiv for now

---
 nsxiv/exec/key-handler | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100755 nsxiv/exec/key-handler

(limited to 'nsxiv')

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
-- 
cgit v1.2.3