configfiles/scripts/.config/scripts/alarmclock.sh

17 lines
207 B
Bash
Raw Permalink Normal View History

2015-12-14 22:28:16 +01:00
#!/bin/bash
time="$@"
if [ -z "$time" ]; then
echo "Usage: $0 <time>"
echo "Example: $0 10:00"
exit 1
fi
at "$time" <<EOF
2016-11-05 22:15:28 +01:00
xbacklight = 1
2015-12-14 22:28:16 +01:00
pamixer --unmute
pamixer --set-volume 100
mpc play
EOF