Initial commit
This commit is contained in:
19
.config/polybar/launch.sh
Normal file
19
.config/polybar/launch.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
readonly MAINSCREEN="eDP1"
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch polybar
|
||||
MONITOR="${MAINSCREEN}" polybar main &
|
||||
|
||||
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
||||
if [ ${m} != "${MAINSCREEN}" ]; then
|
||||
MONITOR=$m polybar --reload main &
|
||||
fi
|
||||
done
|
||||
|
Reference in New Issue
Block a user