2021-02-13 14:49:36 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -z "`pgrep -x $1`" ]; then
|
|
|
|
$@ &
|
2021-02-19 21:01:52 +02:00
|
|
|
if [ "$1" = mpd ]; then
|
|
|
|
sleep 1
|
|
|
|
mpd-mpris &
|
|
|
|
mpd-rpc &
|
|
|
|
fi
|
2021-02-13 14:49:36 +02:00
|
|
|
notify-send $1 "is now enabled"
|
|
|
|
else
|
|
|
|
notify-send $1 "is now disabled"
|
|
|
|
pkill $1
|
|
|
|
fi
|