From bb54f635adda5c0ef7f86a5bcc1b2a1c8fd2bfbf Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 25 Jan 2023 20:10:37 +0200 Subject: config: Add polybar! --- .config/polybar/launch.sh | 12 ++++++++++++ 1 file changed, 12 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..be7d6de --- /dev/null +++ b/.config/polybar/launch.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +killall -q polybar + +while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done + +# +polybar main & + +if [[ $(xrandr -q | grep 'HDMI-1-0 connected') ]]; then + polybar second & +fi -- cgit v1.2.3