From b3318da576333bd5caf32506b6706638e40ca458 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Tue, 18 Aug 2020 14:45:57 +0300 Subject: 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 --- dotfiles/.config/sway/config | 2 ++ dotfiles/.config/sxiv/exec/key-handler | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'dotfiles/.config') diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config index 0645b2e..c8da8ea 100644 --- a/dotfiles/.config/sway/config +++ b/dotfiles/.config/sway/config @@ -107,6 +107,7 @@ input 2:10:TPPS/2_IBM_TrackPoint pointer_accel 1 # Outputs output "*" background ~/.config/wall1.png fill +output "HDMI-A-2" background ~/.config/wall2.png fill # Laptop display output "eDP-1" scale 1.6 pos 0 0 scale_filter linear # Two monitor layout @@ -336,6 +337,7 @@ bindsym --to-code { # Gaps $mod+semicolon gaps inner current set 15; gaps outer current set 0 $mod+Shift+semicolon gaps inner current set 0; gaps outer current set 0 + $mod+Ctrl+semicolon gaps inner current set 45; gaps outer current set 15 $mod+period gaps outer current plus 5 $mod+Shift+period gaps outer current minus 5 $mod+comma gaps inner current plus 5 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 ;; -- cgit v1.2.3