diff options
author | ZachIR <zach@zachir.xyz> | 2023-07-15 15:11:46 -0500 |
---|---|---|
committer | ZachIR <zach@zachir.xyz> | 2023-07-15 15:11:46 -0500 |
commit | c345e1f4b9d69d5c31db2825d0ed7cfca1f7cd00 (patch) | |
tree | aa5a71d3a2061b9eac5c7e06f316ea4b7e231213 /nsxiv | |
parent | efc83eb6b976dcca2bf890779c32d07f8800c210 (diff) |
Add keybinding to set image to wallpaper in nsxiv
Diffstat (limited to 'nsxiv')
-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 |