diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-05-10 00:59:59 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-05-10 00:59:59 +0300 |
commit | a8cc83eb26bf7f9e94f655c81331444d243e1f3d (patch) | |
tree | e81662adf913def76210b6b2acc2978505341d7d /dotfiles/.config/sxiv/exec | |
parent | 64aacd4c0e7f9a54d9a651f3c11a0af35e3630ed (diff) | |
download | swayrice-a8cc83eb26bf7f9e94f655c81331444d243e1f3d.tar.gz swayrice-a8cc83eb26bf7f9e94f655c81331444d243e1f3d.zip |
sxiv script for setting background
Diffstat (limited to 'dotfiles/.config/sxiv/exec')
-rwxr-xr-x | dotfiles/.config/sxiv/exec/key-handler | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dotfiles/.config/sxiv/exec/key-handler b/dotfiles/.config/sxiv/exec/key-handler new file mode 100755 index 0000000..b63fbd6 --- /dev/null +++ b/dotfiles/.config/sxiv/exec/key-handler @@ -0,0 +1,21 @@ +#!/bin/sh + +while read file; do + case "$1" in + "C-a") + setbg "$file" + exit ;; + "C-s") + setbglblur "$file" + exit ;; + "C-d") + setbglsimple "$file" + exit ;; + "C-c") + wl-copy < "$file" + exit ;; + "C-f") + wl-copy "$file" + exit ;; + esac +done |