aboutsummaryrefslogtreecommitdiff
path: root/polybar/launch.sh
blob: 38d931ee325f8379ac1f73d9a3748ca1ab9ba650 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

# Terminate already running bar instances
killall -q polybar

# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done

for m in $(polybar --list-monitors | cut -d":" -f1); do
    MONITOR=$m polybar --reload momiji &
done