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

15
files/.config/polybar/launch.sh Executable file
View File

@@ -0,0 +1,15 @@
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-1" ]; then
MONITOR=$mon polybar --reload laptop &
elif [ $mon = "DP-3" ]; then
MONITOR="DP-3" polybar --reload desktop &
MONITOR="DP-1" polybar --reload desktop_second &
fi
done
else
echo "No Bars loaded."
fi