From e65c0b0ab8f299183ba74d183eecf379a11d2ffe Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Fri, 3 Oct 2025 11:32:23 +0200 Subject: add: lock & polybar --- scripts/polybar.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/polybar.sh (limited to 'scripts/polybar.sh') diff --git a/scripts/polybar.sh b/scripts/polybar.sh new file mode 100755 index 0000000..ca6d41d --- /dev/null +++ b/scripts/polybar.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 -x polybar >/dev/null; do sleep 1; done + +# Launch polybar +polybar i3_bar & -- cgit v1.2.3