diff options
Diffstat (limited to 'nsxiv')
-rwxr-xr-x | nsxiv/exec/key-handler | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nsxiv/exec/key-handler b/nsxiv/exec/key-handler index 3db850a..9e78004 100755 --- a/nsxiv/exec/key-handler +++ b/nsxiv/exec/key-handler @@ -2,7 +2,14 @@ while read file; do case "$1" in "w") - cp "$file" ~/background.jpg + case "$file" in + *.png) + cp "$file" ~/Pictures/background.png + ;; + *) + convert "$file" ~/Pictures/background.png + ;; + esac t -r hyprpaper ;; esac |