launch.sh 355 B

12345678910111213
  1. #!/usr/bin/env sh
  2. # I would like to have an Xfce icon in the polybar that launches this:
  3. # xfce4-popup-applicationsmenu
  4. #polybar example
  5. #
  6. kill `ps -A | grep -m 1 'polybar example' | awk '{ print $1 }'`
  7. echo "---" | tee -a /tmp/polybar.example.log /tmp/polybar2.log
  8. polybar example 2>&1 | tee -a /tmp/polybar.example.log & disown
  9. echo "bars launched."