Added alarmclock.sh

This commit is contained in:
madmaurice 2015-12-14 22:28:16 +01:00
parent 6222f1edc6
commit d57aad1a46

View file

@ -0,0 +1,16 @@
#!/bin/bash
time="$@"
if [ -z "$time" ]; then
echo "Usage: $0 <time>"
echo "Example: $0 10:00"
exit 1
fi
at "$time" <<EOF
DISPLAY=:0 xset dpms force on
pamixer --unmute
pamixer --set-volume 100
mpc play
EOF