From 39044cddeeba5ad91402f8abfb2a286e48a4f50d Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Sat, 9 Sep 2023 23:09:21 -0500 Subject: Move files for config role This movement is needed to maintain the role structure --- src/config/files/polybar/launch.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 src/config/files/polybar/launch.sh (limited to 'src/config/files/polybar/launch.sh') diff --git a/src/config/files/polybar/launch.sh b/src/config/files/polybar/launch.sh new file mode 100755 index 0000000..68ca15b --- /dev/null +++ b/src/config/files/polybar/launch.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# Add this script to your wm startup file. + +DIR="$HOME/.config/polybar" + +# 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 the bar +polybar -q main -c "$DIR"/config.ini & -- cgit