add first scripts
This commit is contained in:
parent
47db19d567
commit
67ffc7f964
12
scripts/0 22-23 * * 0-4 - go sleep.sh
Normal file
12
scripts/0 22-23 * * 0-4 - go sleep.sh
Normal 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
|
||||
26
scripts/15 8 * * 1-5 - alarm.sh
Normal file
26
scripts/15 8 * * 1-5 - alarm.sh
Normal 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
|
||||
Reference in New Issue
Block a user