From 23015965a4cecbd7a15049f0239fed4cdf540248 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 16 Nov 2022 16:28:29 +0200 Subject: Added polybar --- .config/polybar/launch.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 .config/polybar/launch.sh (limited to '.config/polybar/launch.sh') diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh new file mode 100755 index 0000000..1c0ac10 --- /dev/null +++ b/.config/polybar/launch.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env sh + +# 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 bar +polybar top & +#polybar bottom & +#polybar left & +#polybar top_external & + +#sleep 5 && xdo raise -N "polybar-bottom_LVDS-1" & +if [[ $(xrandr -q | grep 'HDMI-1 connected') ]]: then + polybar top_external & +fi -- cgit v1.2.3