From 0ec9cdb4c1f835324461f35ac1433a0fc5e585f0 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 6 Aug 2023 15:47:22 +0200 Subject: [PATCH] Add script to starts polybars --- bin/bar | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/bar diff --git a/bin/bar b/bin/bar new file mode 100755 index 0000000..bdd748a --- /dev/null +++ b/bin/bar @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -x + +if type "xrandr"; then + for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do + MONITOR=$m polybar --reload dwm & + done +else + polybar --reload dwm & +fi