mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
24 lines
727 B
Bash
Executable File
24 lines
727 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
## 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
|
|
|
|
# polybar -c ~/i3/configs/config.ini main &
|
|
# 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
|