From c765e68f05bfe9f0d2e4990bdc8dfabf11cdbc87 Mon Sep 17 00:00:00 2001 From: trainytrain Date: Sun, 9 May 2021 01:29:07 -0700 Subject: init --- polybar/launch.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 polybar/launch.sh (limited to 'polybar/launch.sh') 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 -- cgit v1.2.3-13-gbd6f