Volteos

launch.sh

Oct 8th, 2017
3,262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/usr/bin/env sh
  2.  
  3. # Terminate already running bar instances
  4. killall -q polybar
  5.  
  6. # Wait until the processes have been shut down
  7. while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
  8.  
  9. # Launch bar
  10. polybar future &
  11.  
  12. echo "Bar launched"
Add Comment
Please, Sign In to add comment