Files
dots/laptop-nord/.config/polybar/launch.sh
Marco Thomas b78fb45584 Some changes
2020-09-09 22:16:38 +02:00

13 lines
299 B
Bash
Executable File

killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
if type "xrandr"; then
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
if [ "$1" = "laptop" ]; then
MONITOR=$mon polybar --reload main &
fi
done
else
echo "No Bars loaded."
fi