[ home | FAQ | download | troubleshooting | manual | cvs | mailing lists ]
Thus, I don't want to hear any complaints about setting a negative window area and the darned thing trying to do it. Bugs are a different matter, of course. If you find a genuine case of "this should work, but it doesn't", fix it and submit a patch (or at least write email@example.com about it). This documentation is also under source control. Don't forget to patch bugs in the documentation.
mgm*background: #222222 mgm*textpad: 0 mgm.Forks.active: false mgm.Swapstat.active: false mgm.Pagestat.active: false mgm.Context.active: false mgm.Phoon*background: black mgm.Phoon*foreground: white mgm.Clock*background: black mgm.Clock*foreground: white mgm.geometry: 450x62+1+1Resources can be set on the command line; for example, if given the following:
mgm -background DimGrayMGM parses the command line equivalent to mgm*background: DimGray. Tk allows resource priority levels (a useful feature on which MGM relies). Higher priorities take precedence over lower priorities (for details, see 'perldoc Tk::option'). Resources on the command line are given a resource priority of 80 (and thus generally take precedence over entries in .Xresources, which take precedence over built-in settings).
A number of resources are global to all of MGM. Most resources, however, are set by module. Module resources may be set for all modules of a given type (the module class is the same as the module name capitalized. Most of the entries in my .Xresources file above are by-Class entries). Modules may also be configured by instance; modules are numbered from 0 to n-1 (left-to-right or top-to-bottom). For example, to set a blue background for module number three, one should use:
mgm.3*background: blueMost modules use bargraphs; individual bars are also addressable as:
mgm.bars: horizontal mgm.stack: vertical
mgm*active: false mgm*Battery.active: true mgm*Hostlogo.active: true mgm*Hostlogo.label: mgm*Hostlogo.logopixmap: ~/battery.xpm mgm.bars: horizontal(of course, the picture actually has to exist)
MGM will not get your whites whiter or your colors brighter. It will,
however, sit there and look spiffy while sucking down a major
honking wad of RAM.
MGM, Xiphophorus and their logos are trademarks (tm) of
Xiphophorus. These pages are
copyright (C) 1994-1999 Xiphophorus. All rights reserved.
MGM, Xiphophorus and their logos are trademarks (tm) of Xiphophorus. These pages are copyright (C) 1994-1999 Xiphophorus. All rights reserved.