Re: FVWM: letting fvwm do something in the background

From: Klaus Umbach <Klaus.Umbach_at_doppelhertz.homelinux.org>
Date: Wed, 14 Jan 2004 06:19:32 +0100

Thank you all, for helping me.

You can see the result at
http://www.stud.uni-karlsruhe.de/~ugk8/current-screenshot.jpg

It really is beautiful :-)

And here are the final(?) functions:

DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I Piperead "xwd -silent -id $[w.id] > $[HOME]/.fvwm/icon.tmp.$[w.id].xwd"
+ I Iconify
+ I Exec nice -19 convert -resize 64x54 -frame 1x1 -mattecolor black -quality 0 xwd:$[HOME]/.fvwm/icon.tmp.$[w.id].xwd png:$[HOME]/.fvwm/icon.tmp.$[w.id].png; FvwmCommand 'WindowId $[w.id] WindowStyle IconOverride, Icon $[HOME]/.fvwm/icon.tmp.$[w.id].png, StaysOnBottom'

DestroyFunc DeThumbnail
AddToFunc DeThumbnail
+ I DestroyWindowStyle
+ I Exec rm -f $HOME/.fvwm/icon.tmp.$[w.id].*
+ I deiconify-and-focus


Best regards
        Klaus


On Mo, Jan 12, 2004 at 12:08:30 +0000, Mikhael Goikhman wrote:
>
> > But only taking the screenshot has to be done synchronously. Try
> >
> > DestroyFunc Thumbnail
> > AddToFunc Thumbnail
> > + I Raise
> > + I PipeRead "xwd -silent -id $[w.id] \
> > > $[HOME]/.fvwm/icon.tmp.$[w.id].xwd"
> > + I Iconify
> > + I Exec FvwmCommand 'WindowId $[w.id] Iconify on'; \
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > create-png; \
> > FvwmCommand 'WindowId $[w.id] WindowStyle Icon icon.png'
>
> For the sake of correctness, the marked part above should be removed.
> It is important to do "Iconify" in the function and not in Exec to avoid
> the double-iconify-corrupts-files problem. And to hope that Exec is
> finished before the user deiconifies/iconifies the window again to avoid
> the same problem.
>
> Regards,
> Mikhael.
 


--
5) People say Linux is ugly. How does that make you feel?
Torvalds: They'll be the first against the wall when the revolution comes.
	  Let's see just how ugly they think it is when they have a few
	  bulletholes in them.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Jan 13 2004 - 23:21:46 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST