I’ve got my Fvwm pretty much set up as I wanted it. I’ve also set up the expose/thumbnailing system thanks to Sascha and Taviso.
What I’d like to do is have the thumbnail reflect the actual size of the window, instead of all of them having a set height/width. So instead of making the thumbnail have a width of, say 128, I’d like it to be, say, one tenth of the actual size.
My function now has this part:
thumb $[w.id] 128 cache.$[w.id].png
But what I’d like to do is something like:
thumb $[w.id] '$[w.x] / 10' cache.$[w.id].png
I’m not sure what the correct syntax would be, however. Anyone have an idea?
Most of the imlib2 C scripts posted on this forum preserve the aspect ratio of the window that was iconified. I know this because I had to purposely change the script so that I could get fixed width/heights for every thumbnail regardless of the dimensions of the window (that’s the way I like it).
It works fine ; for example, if you want:
a thumbnail 13% the initial size : thumb window_id 13% test.png
You can also fix a definite size: thumb window_id 80x80 test.png
or a definite width: thumb window_id 80x test.png
or a definite height: thumb window_id x80 test.png