Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- housestate=`cat /etc/heyu/state/state.curr`
- if [ "$housestate" == "sleep" ] && [ "$1" != "alert" ] || [ "$housestate" == "phone" ]; then
- exit
- fi
- if [ "$1" == "alert" ]; then
- /etc/heyu/bin/speakervolunmute
- /etc/heyu/bin/speak "$2"
- /etc/heyu/bin/speakervolmute
- else
- /etc/heyu/bin/vlcmute
- sleep 0.5
- /etc/heyu/bin/speak "$*"
- sleep 0.5
- /etc/heyu/bin/vlcunmute
- fi
Add Comment
Please, Sign In to add comment