mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
18 lines
370 B
Bash
Executable File
18 lines
370 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
|
|
|
|
if type "xrandr"; then
|
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
|
MONITOR=$m polybar --reload main &
|
|
done
|
|
else
|
|
polybar --reload main &
|
|
fi
|
|
|
|
echo "Bars launched..."
|