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=0321c6babae35b53ff2af8b6d7d7a17cdd6e46c2;hb=4af7e789e3afd4b9a7afb81a6cde31c37386e5c4;hpb=3d95f708f3791786019a008fc4b98744aa398e6b diff --git a/example b/example index 0321c6b..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 @@ -22,7 +25,8 @@ applet::setup-tooltip { puts VIS } { puts INVIS } applet::tooltip-set "line\nanother" proc cmdline {id orientation} { - return [list xacpi-simple -into $id] + global argv + return [concat $argv $id] } -applet::setup-subproc 40 40 horizontal darkblue 1 cmdline +applet::setup-subproc cmdline