Skip to content

Instantly share code, notes, and snippets.

@zajca
Created August 11, 2021 08:30
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 zajca/7d75b2d9cb08cafb60850c016a81d318 to your computer and use it in GitHub Desktop.
Save zajca/7d75b2d9cb08cafb60850c016a81d318 to your computer and use it in GitHub Desktop.
countdown() {
secs=$1
shift
msg=$@
while [ $secs -gt 0 ]
do
notify-send "Zbývá ti: "$((secs--)) -h string:x-canonical-private-synchronous:anything
sleep 1
done
}
@zajca
Copy link
Author

zajca commented Aug 11, 2021

run $ countdown 180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment