Files
dots/laptop/.config/polybar/launch.sh
Marco Thomas 84372f4c4a Rename folder
2020-09-09 22:56:56 +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