Update launch.sh
parent
acdee41afa
commit
b0a373aa7b
|
@ -1,10 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar > /dev/null; do sleep 1; done
|
||||
|
||||
# Launch polybar
|
||||
# 干掉旧进程
|
||||
pkill polybar
|
||||
# 等待1秒再启动新的
|
||||
sleep 1
|
||||
polybar main -r &
|
Loading…
Reference in New Issue