FVWM: Setting window styles per class?

From: Len Philpot <len_at_philpot.org>
Date: Thu, 6 Feb 2003 20:57:29 -0600

I may well have overlooked it (once again), but how do you set a style
for window based on its class?

For example, I know I can do:

Style "Xyz*" blah blah...

...and it will set style blah blah for any window with a title starting
with Xyz.

However, some apps have windows with many different titles, yet the same
class, at least as reported by the Identify module. For example, GnuCash
(once again, as shown via the Identify module) - The main accounts
window has a resource of GnuCash, while dialogs have a resource of
gnucash. However, they both have a class of GnuCash. How can I take
advantage of this consistency (and "consistent inconsistency", as I call
it)? Or am I misundstanding something about class and resources?

There's the statement in the fvwm man page that styles can be set by
class ("stylename can be a window's name, class, or resource string")
and that $c is the current window's resource class, but never really
explains how, at least in a manner I understood.

I'm primarily interested in managing titlebar buttons in instances where
the full set would be inappropriate. Rather than explicitly nailing down
each and every possible title, I'd like to be a bit more focused.

Thanks!

-- 
+-----------------------------------------------------+
|  Len Philpot       ><>         http://philpot.org/  |
|  len_at_philpot.org     len_philpot_at_hotmail.com (alt)  |
+-----------------------------------------------------+
--
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 Thu Feb 06 2003 - 20:59:13 GMT

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