mirror of
https://github.com/vbrandl/dotfiles
synced 2024-11-22 16:03:50 +01:00
14 lines
267 B
Bash
Executable File
14 lines
267 B
Bash
Executable File
#!/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 &
|