From e5341e54fc66c3510f15f69656e73469d976ea05 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Mon, 11 Jun 2018 21:22:15 +0200 Subject: [PATCH] Add polybar launch script --- .config/polybar/launch.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .config/polybar/launch.sh diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh new file mode 100755 index 0000000..b1e25b5 --- /dev/null +++ b/.config/polybar/launch.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env sh + +# 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 + +# Launch polybar +polybar default &