9 lines
134 B
Bash
Executable file
9 lines
134 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -z "`pgrep -x $1`" ]; then
|
|
$@ &
|
|
notify-send $1 "is now enabled"
|
|
else
|
|
notify-send $1 "is now disabled"
|
|
pkill $1
|
|
fi
|