From 766c3e82264f86c8bffa5fe8ddf956f449d82026 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 2 May 2019 23:23:44 +0200 Subject: Added polybar --- .i3/start_polybar.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .i3/start_polybar.sh (limited to '.i3/start_polybar.sh') diff --git a/.i3/start_polybar.sh b/.i3/start_polybar.sh new file mode 100755 index 0000000..38b46f6 --- /dev/null +++ b/.i3/start_polybar.sh @@ -0,0 +1,12 @@ +#!/bin/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 + +# Launch Polybar, using default config location ~/.config/polybar/config +polybar $1 & + +echo "Polybar launched..." -- cgit v1.2.3