Skip to content

Instantly share code, notes, and snippets.

@kotfic
Created January 9, 2014 19:47
Show Gist options
  • Save kotfic/8340676 to your computer and use it in GitHub Desktop.
Save kotfic/8340676 to your computer and use it in GitHub Desktop.
import time
import pynotify
pynotify.init("Basic")
def notify(s, title=""):
n = pynotify.Notification(title, s)
n.show()
def get_time(qtile):
notify(time.strftime('%a %d-%dm-%Y'), title="Clock:" )
# Key( [mod], "c", lazy.function(get_time)),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment