mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
14 lines
316 B
Bash
Executable File
14 lines
316 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Terminate already running bar instances
|
|
killall -q polybar
|
|
|
|
# Wait until the processes have been shut down
|
|
while pgrep -x polybar >/dev/null; do sleep 1; done
|
|
|
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
|
MONITOR=$m polybar --reload main &
|
|
done
|
|
|
|
notify-send "Polybar launched"
|