From 72ccd83ccc66d942b855fe8379bc3f0d24384b76 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Sun, 23 May 2021 00:48:51 +0530 Subject: improved scripts --- polybar/.config/polybar/launch | 12 ++++++++++++ polybar/.config/polybar/launch.sh | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100755 polybar/.config/polybar/launch delete mode 100755 polybar/.config/polybar/launch.sh (limited to 'polybar') diff --git a/polybar/.config/polybar/launch b/polybar/.config/polybar/launch new file mode 100755 index 0000000..c39a374 --- /dev/null +++ b/polybar/.config/polybar/launch @@ -0,0 +1,12 @@ +#!/usr/bin/env 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 bar1 and bar2 +polybar top & + +echo "Bars launched..." diff --git a/polybar/.config/polybar/launch.sh b/polybar/.config/polybar/launch.sh deleted file mode 100755 index c39a374..0000000 --- a/polybar/.config/polybar/launch.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env 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 bar1 and bar2 -polybar top & - -echo "Bars launched..." -- cgit v1.2.3