diff options
author | ZachIR <zach@zachir.xyz> | 2023-07-15 15:11:46 -0500 |
---|---|---|
committer | ZachIR <zach@zachir.xyz> | 2023-07-15 15:17:24 -0500 |
commit | 1af44e735c4b23d209ad50391be257bad68390bd (patch) | |
tree | ffbb8060b0166a1803d0bbff02ce77635294c5a8 /nsxiv/exec | |
parent | cd934044acabb919e34a1bf3d13719bcb13decdb (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 |