random script dump
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

autostart 381B

123456789101112131415
  1. #!/usr/bin/env zsh
  2. #
  3. # A simple autostart script so that I don't have to write it again for each of
  4. # my installations.
  5. function check_start
  6. {
  7. # check if the service is running and, if not, start it in the background
  8. # and detach
  9. if pgrep -u $USER $1 >/dev/null; then
  10. return 0
  11. else
  12. $* &>/dev/null </dev/null & disown
  13. fi
  14. }
  15. #check_start nm-applet