mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-11 19:17:19 +10:00
Working on bspwm/polybar; also added colorscheme swithcing to affect polybar when using dtos-colorscheme.
This commit is contained in:
@@ -35,7 +35,26 @@ if [ "$choice" ]; then
|
||||
|
||||
sed -i "s/^colors: .*/colors: \*$choice/g" "$HOME"/.config/alacritty/alacritty.yml
|
||||
|
||||
# DOOM EMACS
|
||||
# POLYBAR (Do not remove the spacing in these sed commands!!!)
|
||||
sed -i -e "s/^background .*background/background = \${$choice.background/g" \
|
||||
-e "s/^foreground .*foreground/foreground = \${$choice.foreground/g" \
|
||||
-e "s/color0 .*color0/color0 = \${$choice.color0/g" \
|
||||
-e "s/color1 .*color1/color1 = \${$choice.color1/g" \
|
||||
-e "s/color2 .*color2/color2 = \${$choice.color2/g" \
|
||||
-e "s/color3 .*color3/color3 = \${$choice.color3/g" \
|
||||
-e "s/color4 .*color4/color4 = \${$choice.color4/g" \
|
||||
-e "s/color5 .*color5/color5 = \${$choice.color5/g" \
|
||||
-e "s/color6 .*color6/color6 = \${$choice.color6/g" \
|
||||
-e "s/color7 .*color7/color7 = \${$choice.color7/g" \
|
||||
-e "s/color8 .*color8/color8 = \${$choice.color8/g" \
|
||||
-e "s/color9 .*color9/color9 = \${$choice.color9/g" \
|
||||
-e "s/color10.*color10/color10 = \${$choice.color10/g" \
|
||||
-e "s/color11.*color11/color11 = \${$choice.color11/g" \
|
||||
-e "s/color12.*color12/color12 = \${$choice.color12/g" \
|
||||
-e "s/color13.*color13/color13 = \${$choice.color13/g" \
|
||||
-e "s/color14.*color14/color14 = \${$choice.color14/g" \
|
||||
-e "s/color15.*color15/color15 = \${$choice.color15/g" \
|
||||
-e "s/^alert.*/alert = \${$choice.color1}/g" "$HOME"/.config/polybar/config.ini
|
||||
|
||||
# What to do if we just escape without choosing anything.
|
||||
else
|
||||
|
||||
13
.local/bin/polybar-bspwm
Executable file
13
.local/bin/polybar-bspwm
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do : ; done
|
||||
|
||||
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
||||
WIRELESS=$(ls /sys/class/net/ | grep ^wl | awk 'NR==1{print $1}') MONITOR=$m polybar --reload mainbar-bspwm &
|
||||
done
|
||||
|
||||
echo "Bars launched..."
|
||||
Reference in New Issue
Block a user