This commit is contained in:
Marco Thomas
2020-09-30 18:46:26 +02:00
parent 8db26833c1
commit 55dc499bab
326 changed files with 0 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
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 workspaces &
# MONITOR=$mon polybar --reload music &
MONITOR=$mon polybar --reload status &
MONITOR=$mon polybar --reload tray &
fi
if [ "$1" = "all" ]; then
MONITOR=$mon polybar --reload all &
fi
done
else
echo "No Bars loaded."
fi