chiark / gitweb /
wip xbatmon-simple-tray
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 9 Jun 2012 20:25:39 +0000 (21:25 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 9 Jun 2012 20:25:39 +0000 (21:25 +0100)
applet.tcl
xbatmon-simple-tray [new file with mode: 0755]

index 777a45d..da6d0aa 100644 (file)
@@ -88,7 +88,7 @@ variable debug {}
 
 proc debug {m} {
     variable debug
-    if {![llength debug]} return
+    if {![llength $debug]} return
     uplevel #0 $debug [list $m]
 }
 
diff --git a/xbatmon-simple-tray b/xbatmon-simple-tray
new file mode 100755 (executable)
index 0000000..6c617c3
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/wish
+# -*- Tcl -*-
+
+source applet.tcl
+source subproc.tcl
+
+proc cmdline {id} {
+    return [list xacpi-simple -into $id]
+}
+
+applet::setup-subproc 70 darkblue 1 cmdline