#!/usr/bin/wish8.4 -f
# -*- Tcl -*-
+# usage:
+# xbatmon-simple-tray
+
source applet.tcl
source subproc.tcl
-#----- menu -----
+applet::setup-debug puts
foreach b {1 3} {
applet::setup-button-menu $b
applet::setup-tooltip { puts VIS } { puts INVIS }
applet::tooltip-set "line\nanother"
-proc cmdline {id} {
- return [list xacpi-simple -into $id]
+proc cmdline {id orientation} {
+ global argv
+ return [concat $argv $id]
}
-applet::setup-subproc 40 cmdline
+applet::setup-subproc cmdline