Skip to content

Instantly share code, notes, and snippets.

@HikariKnight
Created May 8, 2020 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HikariKnight/c9f1c69bcd6c2a46f2640b699c4f55fe to your computer and use it in GitHub Desktop.
Save HikariKnight/c9f1c69bcd6c2a46f2640b699c4f55fe to your computer and use it in GitHub Desktop.
#!/bin/bash
# Dependency: termdown
# pip3 install termdown
# I recommend to install termdown inside a python3 venv that you have in your $PATH instead of on your system python
if [[ $@ == "" ]]
then
termdown -f roman -T "Be Right Back" 5 && termdown -f roman -T 'Chris is LATE !'
elif ! [ $1 -eq $1 ] 2>/dev/null
then
echo $1 is not an INTEGER to use as minutes
else
termdown -f roman -T "Be Right Back" $(expr $1 \* 60) && termdown -f roman -T 'Chris is LATE !'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment