Added alarmclock.sh
This commit is contained in:
parent
6222f1edc6
commit
d57aad1a46
1 changed files with 16 additions and 0 deletions
16
scripts/.config/scripts/alarmclock.sh
Executable file
16
scripts/.config/scripts/alarmclock.sh
Executable 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
|
||||||
|
|
Loading…
Reference in a new issue