X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl-applet.git;a=blobdiff_plain;f=example;h=bd05b1787c97e1eac55a04fbd26b9e3586f40613;hp=a22ab0bc840914b1f2720180c19111418b390e83;hb=a28043c357ce68cd1d1dd17abc81e39cc7f7b84a;hpb=213cbca6ba6d566edbd8bb78d56bbdb6a3950a63 diff --git a/example b/example index a22ab0b..bd05b17 100755 --- a/example +++ b/example @@ -1,6 +1,9 @@ #!/usr/bin/wish8.4 -f # -*- Tcl -*- +# usage: +# xbatmon-simple-tray + source applet.tcl source subproc.tcl @@ -21,8 +24,9 @@ foreach b {1 3} { 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 darkblue 1 cmdline +applet::setup-subproc cmdline