Skip to content

Instantly share code, notes, and snippets.

@sehraramiz
Last active May 30, 2022 09:26
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 sehraramiz/850b9d97c859bd2c507c0ab84d224f6c to your computer and use it in GitHub Desktop.
Save sehraramiz/850b9d97c859bd2c507c0ab84d224f6c to your computer and use it in GitHub Desktop.
Timer.sh

Usage:

send notification after 15 minutes

sh timer.sh 15m

send notification after 10 seconds

sh timer.sh 10
#~/bin/bash
head="Timer:"
body="<span color='#fff456' font='50px'><i><b>TIME'S UP</b></i></span>"
sleep $1 && notify-send --urgency=normal "$head" "$body"&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment