diff options
| author | trainytrain <trainytrain@rape.lol> | 2021-05-09 01:29:07 -0700 |
|---|---|---|
| committer | trainytrain <trainytrain@rape.lol> | 2021-05-09 01:29:07 -0700 |
| commit | c765e68f05bfe9f0d2e4990bdc8dfabf11cdbc87 (patch) | |
| tree | 1dd446298beeb5d1a411d5516689dee8c2ee26ee /polybar/launch.sh | |
init
Diffstat (limited to 'polybar/launch.sh')
| -rwxr-xr-x | polybar/launch.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/polybar/launch.sh b/polybar/launch.sh new file mode 100755 index 0000000..38d931e --- /dev/null +++ b/polybar/launch.sh @@ -0,0 +1,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 |
