From b9cf706f412968c162cfc04d6321e2036bb45381 Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Wed, 1 Jan 2020 18:37:14 -0500 Subject: [PATCH] Create launch --- .config/polybar/launch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .config/polybar/launch diff --git a/.config/polybar/launch b/.config/polybar/launch new file mode 100644 index 00000000..c847310b --- /dev/null +++ b/.config/polybar/launch @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +name=main +pkill polybar +if type "xrandr"; then + for monitor in $(xrandr --query | grep " connected" | cut -d" " -f1); do + MONITOR=${monitor} polybar --reload ${name}& + done +else + polybar --reload ${name} & +fi