FVWM: Determine window's Icon

From: Tavis Ormandy <taviso_at_sdf.lonestar.org>
Date: Mon, 24 Nov 2003 12:35:28 +0000

Can anyone think of a way to restore a window's Icon after changing it,
or is there a way of getting that information from within an function?

I'm writing a simple Eye-Candy function, like this:

ExecUseShell /bin/ksh

DestroyFunc IconifyWithScreenshot
AddToFunc IconifyWithScreenshot
+ I Raise
+ I PipeRead "import -window $[w.id] -frame -silent -quality 0 $[HOME]/.fvwm/tmp.$[w.id].png \
        && convert -resize 64 -frame 1x1 -bordercolor white -quality 0 \
                png:$[HOME]/.fvwm/tmp.$[w.id].png png:$[HOME]/.fvwm/icon.tmp.$[w.id].png \
        && echo WindowStyle IconOverride, Icon $[HOME]/.fvwm/icon.tmp.$[w.id].png \
        || echo Nop"
+ I Iconify
+ I Schedule 1000 Exec rm $[HOME]/.fvwm/?(icon|tmp)*.png

example:

before:
http://dev.gentoo.org/~taviso/step1.png

after:
http://dev.gentoo.org/~taviso/step2.png

After removing the icons, I'd like to restore it to it's original Icon,
so that if I Iconify the window without using this function, it doesnt
just dissapear. Maybe theres a better way?


-- 
-------------------------------------
taviso_at_sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
--
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 Mon Nov 24 2003 - 06:38:08 GMT

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