summaryrefslogtreecommitdiff
path: root/nsxiv
diff options
context:
space:
mode:
authorZachIR <zach@zachir.xyz>2023-07-15 15:11:46 -0500
committerzachir <zachir@librem.one>2023-07-18 00:17:40 -0500
commit938d124d0fbd7efa79bb07f88bcc411d10565527 (patch)
tree56787106e7c2e4b1dbe2be9cebc70633374d9bc9 /nsxiv
parentb21f98936e3fb709f02dd5e234cf3a4d517662bd (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