vscripts/autostart
2017-05-10 18:17:24 +03:00

15 lines
381 B
Bash
Executable file

#!/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