Skip to content

Instantly share code, notes, and snippets.

@nedimf
Created November 9, 2019 21:06
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 nedimf/420ed70a64f11cc5506f55e9c3fda8c9 to your computer and use it in GitHub Desktop.
Save nedimf/420ed70a64f11cc5506f55e9c3fda8c9 to your computer and use it in GitHub Desktop.
Reminder for coffee break (Linux&Python)
import threading
import notify2
def coffee():
threading.Timer(3600.0, coffe).start() #3600 seconds equals an hour
print ("Break!")
notify2.init('Reminder')
n = notify2.Notification('COFFE BREAK','Time for little break,you have been working really hard!') #Also you can costumize this part for your own message
n.show()
coffee()
@nedimf
Copy link
Author

nedimf commented Nov 9, 2019

Python 3
pip3 install notify2

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