summaryrefslogtreecommitdiff
path: root/.config/polybar/launch.sh
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-01-25 20:10:37 +0200
committerThanos Apollo <[email protected]>2023-01-25 20:10:37 +0200
commitbb54f635adda5c0ef7f86a5bcc1b2a1c8fd2bfbf (patch)
tree696dfed1a532162b46614ccb890607f4a77a6716 /.config/polybar/launch.sh
parenta7aaae9a0496c233726debfafca66983d351427b (diff)
config: Add polybar!
Diffstat (limited to '.config/polybar/launch.sh')
-rwxr-xr-x.config/polybar/launch.sh12
1 files changed, 12 insertions, 0 deletions
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