1
0
mirror of https://github.com/vbrandl/dotfiles synced 2024-11-23 00:13:49 +01:00
dotfiles/bin/polybar.sh
2019-04-28 22:03:13 +02:00

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 &