|
@@ -2,7 +2,7 @@
|
|
|
mpc="/usr/bin/mpc -h $mpd_host"
|
|
|
|
|
|
# functions
|
|
|
-function play_folder {
|
|
|
+function mpd_play_folder {
|
|
|
tag = $1
|
|
|
mkdir -p /music/$tag
|
|
|
# Update the directory timestamp to indicate what was the last tag found
|
|
@@ -38,6 +38,14 @@ function mpd_stop {
|
|
|
$mpc stop
|
|
|
}
|
|
|
|
|
|
+function mpd_pause_play {
|
|
|
+ if ($mpc | grep -q playing); then # when playing
|
|
|
+ $mpc pause
|
|
|
+ else
|
|
|
+ $mpc play
|
|
|
+ fi
|
|
|
+}
|
|
|
+
|
|
|
function vol_min {
|
|
|
mpd_set_volume 5
|
|
|
}
|