#!/bin/sh if [ -z "`pgrep -x $1`" ]; then $@ & notify-send $1 "is now enabled" else notify-send $1 "is now disabled" pkill $1 fi