2021-12-06 15:40:50 -08:00
|
|
|
#!/usr/bin/env bash
|
2021-07-28 23:44:53 -07:00
|
|
|
|
|
|
|
## Add this to your wm startup file.
|
|
|
|
|
|
|
|
# Terminate already running bar instances
|
|
|
|
killall -q polybar
|
|
|
|
|
|
|
|
# Wait until the processes have been shut down
|
2021-12-06 15:40:50 -08:00
|
|
|
while pgrep -u "$UID" -x polybar >/dev/null; do sleep 1; done
|
2021-07-28 23:44:53 -07:00
|
|
|
|
2021-07-28 23:54:53 -07:00
|
|
|
# polybar -c ~/i3/configs/config.ini main &
|
2021-11-14 23:54:19 -08:00
|
|
|
# polybar -c ~/SudacodeRice/polybar/config.ini main &
|
|
|
|
# polybar -c ~/SudacodeRice/polybar/config.ini main &
|
|
|
|
|
|
|
|
if type "xrandr"; then
|
|
|
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
|
|
|
# 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-4k.ini" main &
|
|
|
|
done
|
|
|
|
else
|
|
|
|
polybar --reload example &
|
|
|
|
fi
|