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