How to create tea timer for Linux console

This is a more relaxed post, partially inspired by oncoming winter. Numerous developers in Linux are in need of a simple tea timer. Many default Linux setups are missing such application. What you can do is add new function to .bashrc file (or whichever shell you use):


function teatime() {
  sleep $1;
  espeak 'Your tea is done' & xmessage -center 'Your tea is done';
}

Usage:


teatime 7m # for herbal tea
teatime 3m # for green or black tea


Previous: How to use member function as a callback from another class
Next: How to synchronize working folders between different drives and computers