I normally forget when I started, no body snaps at me if i'm late (or wake up my jabber client basically)
but I was bored:
Code: Select all
#!/bin/bash
#Lunch alarm, requires 'toilet'
echo "LUNCH!!"
date
sleep 10s
while true
do
printf '\e[?5h' # Turn on reverse video
toilet "WORK"
sleep .5s
printf '\e[?5l' # Turn on normal video
toilet "TIME"
sleep .5s
done
Code: Select all
alias lunch="lunch.sh ; printf '\e[?5l'"
couldn't work out how to do a proper 'trap' function