mirror of
https://github.com/vbrandl/dotfiles
synced 2024-11-23 08:23:27 +01:00
14 lines
267 B
Bash
14 lines
267 B
Bash
|
#!/usr/bin/env sh
|
||
|
|
||
|
# kill running polybar instances
|
||
|
killall -q polybar
|
||
|
|
||
|
# wait for termination
|
||
|
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||
|
|
||
|
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
||
|
MONITOR=$m polybar --reload example &
|
||
|
done
|
||
|
|
||
|
polybar example &
|