Add border colors and switch them on launch.

This commit is contained in:
Danila Fedorin 2021-05-26 18:38:45 -07:00
parent 4f0cd11643
commit cf230f8463
3 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -1 +1 @@
cf5fb4
436394