rice/scripts/launch_desktop.sh

21 lines
528 B
Bash
Raw Normal View History

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
MONITOR=$m polybar --reload -c ~/SudacodeRice/polybar/config.desktop.ini main &
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 &