add first scripts

This commit is contained in:
Mats van Reenen 2020-12-25 20:43:30 +01:00
parent 47db19d567
commit 67ffc7f964
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/bin/bash
mpd="/usr/bin/mpc"
function amix(){
/usr/bin/amixer sset 'Headphone' $1
}
function playlist(){
. /home/pi/playlists/$1.sh
}
$mpd stop

View File

@ -0,0 +1,26 @@
#!/bin/bash
mpd="/usr/bin/mpc"
function amix(){
/usr/bin/amixer sset 'Headphone' $1
}
function playlist(){
. /home/pi/playlists/$1.sh
}
$mpd clear
$mpd add "Wintergaten/Prototype 1.mp3"
$mpd repeat off
amix 10%
$mpd play
sleep 900 # 15 min
$mpd add "Wintergaten/Prototype 1.mp3"
amix 30%
$mpd play
playlist whoo