Skip to content

Instantly share code, notes, and snippets.

@sanrandry
Created February 2, 2021 04:47
Show Gist options
  • Save sanrandry/a3986e295a8141dc6e037b61b65feff9 to your computer and use it in GitHub Desktop.
Save sanrandry/a3986e295a8141dc6e037b61b65feff9 to your computer and use it in GitHub Desktop.
python reminder
from time import time, sleep
import subprocess
while True:
bashCommand = "zenity --notification --text='5'"
process = subprocess.Popen(bashCommand.split(), stdout=subprocess.PIPE)
output, error = process.communicate()
sleep(60 * 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment