aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/sxiv/exec/key-handler
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-08-18 14:45:57 +0300
committerYaroslav <contact@yaroslavps.com>2020-08-18 14:45:57 +0300
commitb3318da576333bd5caf32506b6706638e40ca458 (patch)
tree2735e5eb903c6b4da3c9d4b78def7df26ccebe55 /dotfiles/.config/sxiv/exec/key-handler
parent7866c246f312d78c9838179aaa21dbc645802f63 (diff)
downloadswayrice-b3318da576333bd5caf32506b6706638e40ca458.tar.gz
swayrice-b3318da576333bd5caf32506b6706638e40ca458.zip
Easier to set different wallpapers on my desktop
* Change setbg script so that it can copy and set wallpapers to different monitors depending on my sway config * Add key shortcut to sxiv to set second monitor's wallaper * Make the wallpaper of the second output different in sway config
Diffstat (limited to 'dotfiles/.config/sxiv/exec/key-handler')
-rwxr-xr-xdotfiles/.config/sxiv/exec/key-handler5
1 files changed, 4 insertions, 1 deletions
diff --git a/dotfiles/.config/sxiv/exec/key-handler b/dotfiles/.config/sxiv/exec/key-handler
index 6e17c5a..8fa1bdb 100755
--- a/dotfiles/.config/sxiv/exec/key-handler
+++ b/dotfiles/.config/sxiv/exec/key-handler
@@ -2,9 +2,12 @@
while read file; do
case "$1" in
- "C-a")
+ "C-a" | "C-1")
setbg "$file"
exit ;;
+ "C-2")
+ setbg "$file" "2"
+ exit ;;
"C-s")
setbglblur "$file"
exit ;;