1 2 3 4 5 6 7 8 9
function timer() { if [ $# -lt 2 ]; then echo usage: timer [SLEEP_TIME] [MESSAGE] else echo Timer set for $1: $2 $(sleep $1; notify-send "$2") > /dev/null & disown fi }