From cf230f84639781398f6ca1ced91e8822dd91c3ab Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 26 May 2021 18:38:45 -0700 Subject: [PATCH] Add border colors and switch them on launch. --- i3/.config/i3/config | 9 +++++++-- i3/background/background.sh | 2 ++ i3/background/color | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 13de3f0..edd4901 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -172,13 +172,13 @@ bindsym $mod+r mode "resize" # } # Polybar and Wallpaper -exec_always --no-startup-id ~/background/background.sh && ~/.polybar.sh +exec_always --no-startup-id ~/.polybar.sh # Compton exec_always --no-startup-id compton # Autorandr # exec_always autorandr --change # Remove window borders -for_window [class="^.*"] border pixel 0 +for_window [class="^.*"] border pixel 2 # Set up gaps gaps inner 20 # Browser shortcut @@ -189,4 +189,9 @@ bindsym $mod+Shift+p exec compton bindsym $mod+Shift+u exec ~/.software/abacus-fx/bin/fx # Screenshot bindsym $mod+Shift+s exec scrot +bindsym $mod+Shift+f exec scrot -s bindsym $mod+Shift+o exec alacritty --command ~/projects/ppl-cli/script/open_float.sh + +client.focused #436394 #436394 #436394 #436394 #436394 +client.focused_inactive #2e3440 #2e3440 #2e3440 #2e3440 #2e3440 +client.unfocused #2e3440 #2e3440 #2e3440 #2e3440 #2e3440 diff --git a/i3/background/background.sh b/i3/background/background.sh index 9fd236f..3a90590 100755 --- a/i3/background/background.sh +++ b/i3/background/background.sh @@ -4,4 +4,6 @@ FILENAME=$(basename $(ls *.jpg | sort -R | head -n 1) .jpg) SUB="s/^primary = #[a-z0-9]*/primary = #${FILENAME}/" echo $FILENAME > color sed -i "$SUB" ~/.config/polybar/config +SUB="s/^client.focused .*/client.focused #${FILENAME} #${FILENAME} #${FILENAME} #${FILENAME} #${FILENAME}/" +sed -i "$SUB" ~/.config/i3/config ${0%/*}/refresh.sh diff --git a/i3/background/color b/i3/background/color index 12e06bd..569e587 100644 --- a/i3/background/color +++ b/i3/background/color @@ -1 +1 @@ -cf5fb4 +436394