Rename folder
This commit is contained in:
12
laptop/.config/polybar/launch.sh
Executable file
12
laptop/.config/polybar/launch.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user