Nikos Leonardos
2011-09-20 22:54:47 UTC
Hello all--
I run the application xboard in two different modes: (1) to
connect to a chess server, and (2) to set up a position. I would
like to have a different style for each mode.
One way to do that would be to use the fact that the window name
is different in each mode. It is "xboard" in mode (1) and it is
"xboard: 69.36.243.188" in mode (2). However, this doesn't seem
to be entirely true. I think what happens is that initially (at
the time the style of the window is determined) the window name
_is_ the same.
One way around that, is to use (the obsolete command)
RecaptureWindow after the window name has changed. I don't like
this because of the extra keystrokes I need to do.
I would like to do that automatically, say through an
fvwm-function that calls xboard and also sets the appropriate
style. I tried something like the following, but it didn't work.
DestroyFunc FvwmFics
AddToFunc FvwmFics
+ I Exec exec $[TERM] -e /usr/games/bin/xboard -ics -icshost 69.36.243.188
+ I Wait "xboard: 69.36.243.188"
+ I All ("xboard: 69.36.243.188") WindowStyle NeverFocus, Title
+ I UpdateStyles
Thank you in advance for your time.
--Nikos
PS I use fvwm 2.5.28.
I run the application xboard in two different modes: (1) to
connect to a chess server, and (2) to set up a position. I would
like to have a different style for each mode.
One way to do that would be to use the fact that the window name
is different in each mode. It is "xboard" in mode (1) and it is
"xboard: 69.36.243.188" in mode (2). However, this doesn't seem
to be entirely true. I think what happens is that initially (at
the time the style of the window is determined) the window name
_is_ the same.
One way around that, is to use (the obsolete command)
RecaptureWindow after the window name has changed. I don't like
this because of the extra keystrokes I need to do.
I would like to do that automatically, say through an
fvwm-function that calls xboard and also sets the appropriate
style. I tried something like the following, but it didn't work.
DestroyFunc FvwmFics
AddToFunc FvwmFics
+ I Exec exec $[TERM] -e /usr/games/bin/xboard -ics -icshost 69.36.243.188
+ I Wait "xboard: 69.36.243.188"
+ I All ("xboard: 69.36.243.188") WindowStyle NeverFocus, Title
+ I UpdateStyles
Thank you in advance for your time.
--Nikos
PS I use fvwm 2.5.28.