Re: FVWM: Dynamically changing styles for icons

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 22 Oct 2003 16:42:17 +0000

On 22 Oct 2003 11:23:01 +0100, Andy Arbon wrote:
>
> Thanks to all that replied. I've tried implementing what you suggested,
> but it's not working yet. I was hoping someone could spot what I've done
> wrong..
>
> I have the following in my various fvwm .rc files:
>
> *FvwmEvent window_name winame_event

Please use the documented syntax:

  *FvwmEvent: window_name winame_event

> Module FvwmEvent
>
> Colorset 1 fg #cccccc, bg #555570
> Colorset 2 fg #cccccc, bg #990000
>
> DestroyFunc winame_event
> AddToFunc winame_event
> + I ThisWindow (Xcmd) ThisWindow ("*(root_at_*") Style $n Colorset 1
> + I ThisWindow (Xcmd) ThisWindow ("*(ara_at_*") Style $n Colorset 2
> + I Exec exec echo "The function fired"
>
> When the title of a window changes I get the line "The function fired"
> output at the console, so I'm happy that the event side of things is
> working, but for some reason the style of the window is not being
> updated to the second colorset.

You should remove the "ThisWindow (Xcmd) " bit, or replace it with
"ThisWindow (XTerm) ", otherwise it will never match your window.

> I am using 2.5.7, if that is relevant.

The fvwm version is always relevant when asking on this list.

Regards,
Mikhael.
--
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 Wed Oct 22 2003 - 13:51:30 BST

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