summaryrefslogtreecommitdiffstats
path: root/.local/bin/launch_polybar
blob: 8786be6c3859603809cdf5d57696270128f46ff6 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# Terminate already running bar instances
killall -q polybar

# Wait until the processes have been shut down
while pidof polybar >/dev/null; do sleep 1; done

for i in $(polybar -m | awk -F: '{print $1}'); do MONITOR=$i polybar default & done