Files
dots/files/scripts/polybar.sh
Marco Thomas e657b69dc9 Update polybaR
2021-02-18 08:41:05 +01:00

15 lines
376 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 [ $mon = "eDP" ]; then
MONITOR=$mon polybar --reload laptop &
else
MONITOR=$mon polybar --reload main &
fi
done
else
notify-send "No screens for polybar were found"
fi