[hackers] [wmii] rc script to run event.dis.

From: Kris Maglione <jg_AT_suckless.org>
Date: Wed Jul 18 23:56:46 2007

changeset: 2201:abcbb83b632b
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Wed Jul 18 17:56:13 2007 -0400
summary: rc script to run event.dis.

diff -r aec85189140a -r abcbb83b632b test/event
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/event Wed Jul 18 17:56:13 2007 -0400
@@ -0,0 +1,19 @@
+#!/bin/rc
+
+wm=''
+if(~ $1 -d) {
+ wm = '&wm/wm wm/logon</dev/null'
+ shift
+}
+
+inferno '{$home/wmii/test/event.dis $*'$wm'}' $* &
+inf = $apid
+
+. 9.rc
+
+fn sigint sigterm {exit}
+fn sigexit {/bin/kill $apid}
+
+while(! ~ `{read </dev/tty} q)
+ true
+
Received on Wed Jul 18 2007 - 23:56:46 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:39 UTC