diff options
| author | Cori Barker <coribarker2@gmail.com> | 2026-03-23 11:00:32 +0000 |
|---|---|---|
| committer | Cori Barker <coribarker2@gmail.com> | 2026-03-23 11:00:32 +0000 |
| commit | e6176cb8e24c7e4c3b426ef43c40156e78573c65 (patch) | |
| tree | 9dcd6be53a82c2ae9cadda3e858f9d0f5fa8088d /polybar-launch.sh | |
| parent | ab2581dd4f7c88782a45d0e628c4eda62009edd7 (diff) | |
[polybar] brighter colours
Diffstat (limited to 'polybar-launch.sh')
| -rwxr-xr-x | polybar-launch.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/polybar-launch.sh b/polybar-launch.sh new file mode 100755 index 0000000..6ef9fa2 --- /dev/null +++ b/polybar-launch.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +# Wait briefly for WM to settle +sleep 0.5 + +# Kill existing bars +killall -q polybar +while pgrep -u $UID -x polybar > /dev/null; do sleep 0.1; done + +# Launch on all connected monitors +if type "xrandr" > /dev/null 2>&1; then + for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do + MONITOR=$m polybar --reload main & + done +else + polybar --reload main & +fi |
