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/preview.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 src/config/files/polybar/preview.sh (limited to 'src/config/files/polybar/preview.sh') diff --git a/src/config/files/polybar/preview.sh b/src/config/files/polybar/preview.sh new file mode 100755 index 0000000..695d051 --- /dev/null +++ b/src/config/files/polybar/preview.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +DIR="$HOME/.config/polybar/forest" + +# 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 preview bar +polybar -q top -c "$DIR"/preview.ini & +polybar -q mid -c "$DIR"/preview.ini & +polybar -q bottom -c "$DIR"/preview.ini & -- cgit