NAME

PerlTkWL - A window-list utility in Perl, using the Tk extension


SYNOPSIS

PerlTkWL can only be spawned by fvwm. No command-line invocation is possible.


DESCRIPTION

PerlTkWL is a sample application distributed with the X11::Fvwm extension to Perl 5. It mimics the well-known FvwmWinList module, adding some notable new features.

In addition to the typical behavior supported by FvwmWinList, this application offers the following:

Almost all of the options offered by FvwmWinList are supported, with the exception of selecting left or right name truncation, and a difference in that window maximum width is controlled by number of printable characters in the name, rather than an explicit window width.


INITIALIZATION

When run, PerlTkWL reads the configuration lines specified in the configuration file fvwm itself used. It specifically looks for options whose names begin with the name of the application. You can link PerlTkWL under additional names to specify different sets of options.


INVOCATION

PerlTkWL can be invoked by fvwm during initialization by inserting the line 'Module PerlTkWL' in the .fvwmrc (or .fvwm2rc) file.

PerlTkWL can also be bound to any event specifier option to be invoked later, in this case using 'Transient' as an argument will cause PerlTkWL to resemble the built-in window list.

PerlTkWL must reside in a directory that is listed in the ModulePath option of Fvwm for it to be executed by Fvwm.


CONFIGURATION OPTIONS

PerlTkWL recognizes the following list of options. Note that the leading part of the name is based on the application name. Were the user to make a link to PerlTkWL under the name TransientWL (for calling as a transient application), then you would replace PerlTkWL with TransientWL in all the names below:


SAMPLE CONFIGURATION

Here is a sample configuration, used by the author and annotated here for clarity:

    # Options to PerlTkWL module
    # Set up the font to use and the colors
    *PerlTkWLFont                   6x10
    *PerlTkWLForeground             gray30
    *PerlTkWLBackground             AntiqueWhite
    *PerlTkWLActiveForeground       AntiqueWhite
    *PerlTkWLActiveBackground       gray30
    *PerlTkWLFocusForeground        Gold1
    *PerlTkWLFocusBackground        NavyBlue
    *PerlTkWLIconForeground         black
    *PerlTkWLIconBackground         #e2beaf
    # Actions to be taken by the buttons
    *PerlTkWLAction                 Click1 Focus,Iconify -1,Focus
    *PerlTkWLAction                 Click2 Iconify 1
    *PerlTkWLAction                 Click3 Module "FvwmIdent" FvwmIdent
    # Where the anchor point should be
    *PerlTkWLAnchor                 se
    # Old-style 'text' mode or use graphics?
    *PerlTkWLStyle                  graphic
    # How should the list be sorted?
    *PerlTkWLSortStyle              alpha
    # Abuse graphics even further with mini-icons?
    *PerlTkWLUseMiniIcons           yes
    # Define the specifier-icon mappings for any apps we wish highlighted
    *PerlTkWLMiniIcon               tkInfo jbook1.xpm,TkMan mini.xman.xpm
    *PerlTkWLMiniIcon               Netscape mini.netscape.xpm
    *PerlTkWLMiniIcon               lrom mini.lrom.xpm
    *PerlTkWLMiniIcon               xmag jmag.xpm,xpaint jpaint.xpm
    *PerlTkWLMiniIcon               TkMail jmail.xpm,elm jmail.xpm
    *PerlTkWLMiniIcon               FvwmPager mini.fvwm.xpm
    *PerlTkWLMiniIcon               xload jgraph.xpm
    *PerlTkWLMiniIcon               XTerm mini.xterm.xpm,wabi win.xpm
    *PerlTkWLMiniIcon               hpcalc jcalc.xpm,Canvas jpaint.xpm
    *PerlTkWLMiniIcon               ptkmines mine.xpm


CAVEATS

PerlTkWL is meant primary as an example of coding with the X11::Fvwm (see X11) module and the Tk module. While it can be useful, it is not supported to the degree that the Fvwm module itself is.

It is also coded for clarity at the expense of efficiency.


COPYRIGHT

PerlTkWL is copyright (c) 1997 by the author, all rights reserved. It may be copied and distributed under the same terms as the X11::Fvwm module itself. See the README file that was packaged with the distribution.


AUTHOR

Randy J. Ray