2021-07-28 23:44:53 -07:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
## Add this to your wm startup file.
|
|
|
|
|
|
|
|
# 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 sleep 1; done
|
|
|
|
|
2021-10-29 13:14:44 -07:00
|
|
|
if type "xrandr"; then
|
|
|
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
2021-11-14 22:51:43 -08:00
|
|
|
# MONITOR=$m polybar --reload -c ~/SudacodeRice/polybar/config.desktop.ini main &
|
|
|
|
# update to use new theme
|
|
|
|
MONITOR=$m polybar --reload -c "$HOME/SudacodeRice/polybar-themes/sblocks/config.ini" main &
|
2021-10-29 13:14:44 -07:00
|
|
|
done
|
|
|
|
else
|
|
|
|
polybar --reload example &
|
|
|
|
fi
|
|
|
|
|
2021-07-28 23:44:53 -07:00
|
|
|
# Launch bar1 and bar2
|
2021-10-29 13:14:44 -07:00
|
|
|
# polybar -c ~/SudacodeRice/polybar/config.desktop.ini main &
|