summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachIR <zach@zachir.xyz>2023-07-15 15:11:46 -0500
committerZachIR <zach@zachir.xyz>2023-07-15 15:17:24 -0500
commit1af44e735c4b23d209ad50391be257bad68390bd (patch)
treeffbb8060b0166a1803d0bbff02ce77635294c5a8
parentcd934044acabb919e34a1bf3d13719bcb13decdb (diff)
Add keybinding to set image to wallpaper in 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