From b50c069f0f824f47234d29d8784489a31c0b5d40 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 13 Aug 2011 14:56:27 +0200 Subject: cholerab knut: initial commit --- cholerab/knut/plugs/ttycnser/bin/login | 4 ++++ cholerab/knut/plugs/ttycnser/bin/write | 4 ++++ cholerab/knut/plugs/ttycnser/index | 1 + 3 files changed, 9 insertions(+) create mode 100755 cholerab/knut/plugs/ttycnser/bin/login create mode 100755 cholerab/knut/plugs/ttycnser/bin/write create mode 120000 cholerab/knut/plugs/ttycnser/index (limited to 'cholerab/knut/plugs') diff --git a/cholerab/knut/plugs/ttycnser/bin/login b/cholerab/knut/plugs/ttycnser/bin/login new file mode 100755 index 00000000..bf88d6f9 --- /dev/null +++ b/cholerab/knut/plugs/ttycnser/bin/login @@ -0,0 +1,4 @@ +#! /bin/sh +set -euf +pipe="/tmp/krebscode.painload.cholerab.ttycnser.${LOGNAME}" +ln -snf "`tty`" "$pipe" diff --git a/cholerab/knut/plugs/ttycnser/bin/write b/cholerab/knut/plugs/ttycnser/bin/write new file mode 100755 index 00000000..f358407a --- /dev/null +++ b/cholerab/knut/plugs/ttycnser/bin/write @@ -0,0 +1,4 @@ +#! /bin/sh +set -euf +pipe="/tmp/krebscode.painload.cholerab.ttycnser.${LOGNAME}" +echo -n "7>>>> ${params}8" > "${pipe}" diff --git a/cholerab/knut/plugs/ttycnser/index b/cholerab/knut/plugs/ttycnser/index new file mode 120000 index 00000000..2d949688 --- /dev/null +++ b/cholerab/knut/plugs/ttycnser/index @@ -0,0 +1 @@ +bin/write \ No newline at end of file -- cgit v1.2.3 From 1383106d2270a281bb697d2d1dace220ba2de163 Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 13 Aug 2011 22:16:22 +0200 Subject: knut/plugs/pynot: initial commit notification via lib-notify and python --- cholerab/knut/plugs/pynot/index | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 cholerab/knut/plugs/pynot/index (limited to 'cholerab/knut/plugs') 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() -- cgit v1.2.3