blob: 6ef9fa2f3d2f42c39279985e7a9fd7f1ac203218 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env bash
# Wait briefly for WM to settle
sleep 0.5
# Kill existing bars
killall -q polybar
while pgrep -u $UID -x polybar > /dev/null; do sleep 0.1; done
# Launch on all connected monitors
if type "xrandr" > /dev/null 2>&1; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m polybar --reload main &
done
else
polybar --reload main &
fi
|