summaryrefslogtreecommitdiff
path: root/nsxiv
diff options
context:
space:
mode:
authorZachIR <zach@zachir.xyz>2023-07-15 15:11:46 -0500
committerZachIR <zach@zachir.xyz>2023-07-15 15:11:46 -0500
commitc345e1f4b9d69d5c31db2825d0ed7cfca1f7cd00 (patch)
treeaa5a71d3a2061b9eac5c7e06f316ea4b7e231213 /nsxiv
parentefc83eb6b976dcca2bf890779c32d07f8800c210 (diff)
Add keybinding to set image to wallpaper in nsxiv
Diffstat (limited to 'nsxiv')
-rwxr-xr-xnsxiv/exec/key-handler9
1 files changed, 9 insertions, 0 deletions
diff --git a/nsxiv/exec/key-handler b/nsxiv/exec/key-handler
new file mode 100755
index 0000000..3db850a
--- /dev/null
+++ b/nsxiv/exec/key-handler
@@ -0,0 +1,9 @@
+#!/bin/sh
+while read file; do
+ case "$1" in
+ "w")
+ cp "$file" ~/background.jpg
+ t -r hyprpaper
+ ;;
+ esac
+done