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