summaryrefslogtreecommitdiffstats
path: root/cholerab/knut/plugs/pynot/index
diff options
context:
space:
mode:
authorroot <root@filebitch>2011-08-16 19:10:17 +0200
committerroot <root@filebitch>2011-08-16 19:10:17 +0200
commit460982f036bdc4815ea5e9447392bdb049ff2a87 (patch)
treeb27e2e3cb28b8b4ecbb3e9ba2004966241262c85 /cholerab/knut/plugs/pynot/index
parent9a9ff1d97fa5072109a4381484f5daf5a4bfb0c1 (diff)
parent84f25017f61d87c592bcc4519bee56e49fe66083 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'cholerab/knut/plugs/pynot/index')
-rwxr-xr-xcholerab/knut/plugs/pynot/index17
1 files changed, 17 insertions, 0 deletions
diff --git a/cholerab/knut/plugs/pynot/index b/cholerab/knut/plugs/pynot/index
new file mode 100755
index 00000000..04e9c90c
--- /dev/null
+++ b/cholerab/knut/plugs/pynot/index
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+
+import pynotify,os,sys
+
+imageURI = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0]) + '/../../../bling/krebs_plain_negate_nobg.png'))
+try:
+ TITLE=os.environ.get('method','clive') + ':' + os.environ.get('id','-1')
+ MESSAGE=os.environ.get('params','No Message')
+except:
+ print("Error 1: You are made of stupid!")
+ exit(23)
+
+pynotify.init("Notif App",)
+print imageURI
+n = pynotify.Notification(TITLE, MESSAGE,imageURI)
+n.set_timeout(20000)
+n.show()