Discussion:
FVWM: Smart maximize
Andreas Hoenen
2013-06-29 09:23:21 UTC
Permalink
Hi,

when trying to understand how to tweak/extend FVWM using Perl
(FVWM::Module API), I found this request in the mailing list archives by
chance.
I wonder, if there is a command to do "smart maximize" in fvwm?
The command would move and resize current window to use the
largest free area of desktop, but not covering any other
windows. Is there something like this?
As it looks like an interesting task (neither trivial nor overly
complicated), I have given it a try. Although I'm not sure whether I'm
using the API in an optimal way (unfortunately haven't been able to find
many examples out there), I'm quite impressed how easy programming FVWM
has become (if one likes using Perl).

In order to test my solution put the attached perl script into your
ModulePath, load it and define a key binding for it, e.g.:

Key m WTSF 4 SendToModule smart_maximize.pl dummy

It's probably far from perfect, but at least may serve as a starting
point.

Loading...