diff options
author | ZachIR <zach@zachir.xyz> | 2023-07-15 15:11:46 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-07-18 00:17:40 -0500 |
commit | 938d124d0fbd7efa79bb07f88bcc411d10565527 (patch) | |
tree | 56787106e7c2e4b1dbe2be9cebc70633374d9bc9 /nsxiv/exec | |
parent | b21f98936e3fb709f02dd5e234cf3a4d517662bd (diff) |
Add keybinding to set image to wallpaper in nsxiv
Diffstat (limited to 'nsxiv/exec')
-rwxr-xr-x | nsxiv/exec/key-handler | 9 |
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 |