Created
August 4, 2013 21:53
-
-
Save ducin/6152106 to your computer and use it in GitHub Desktop.
KNotify (KDE DBUS notifications); use it with: ./knotify.py "header" "content"
(credited to http://www.documentroot.net/en/linux/knotify-python)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys, dbus | |
knotify = dbus.SessionBus().get_object("org.kde.knotify", "/Notify") | |
try: title, text = sys.argv[1:3] | |
except: print 'Usage: knotify.py title text'; sys.exit(1) | |
knotify.event("warning", "kde", [], title, text, [], [], 0, 0, dbus_interface="org.kde.KNotify") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment