X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=example;h=1d234892150dcf8d39949a2adb743cfa92996a73;hb=4cea8a81bd99ffcf064f81470a588a929687cafb;hp=6d3eb65a9452bc9620570f290060b256c2c048a8;hpb=26a08255c2b85fb059d91c408c01851e87e7fa68;p=chiark-tcl-applet.git diff --git a/example b/example index 6d3eb65..1d23489 100755 --- a/example +++ b/example @@ -1,13 +1,18 @@ #!/usr/bin/wish8.4 -f # -*- Tcl -*- +# Copyright 2016,2020 Ian Jackson +# SPDX-License-Identifier: GPL-3.0-or-later +# There is NO WARRANTY. + # usage: # xbatmon-simple-tray source applet.tcl source subproc.tcl +source utils.tcl -applet::setup-debug puts +set debug::debug puts foreach b {1 3} { applet::setup-button-menu $b @@ -25,7 +30,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 cmdline