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