FVWM: Re: FVWM Decor FAQ

From: Paul D. Smith <psmith_at_BayNetworks.COM>
Date: Fri, 17 Jan 97 18:31:35 EST

I just spent a while trying to decipher the new stuff, including Decor.

I think one of the reasons it's confusing is that it's not clear at all
what the distinction between a Decor and a Style is, when you should use
one or the other, and basically why they are two different things and
what each is good for.

Also, it seems that everything _except_ Style has gone to the new
"AddTo" format (with the "+" lines), which is inconsistent.

And why is there only one AddToFunc, AddToMenu, AddToDecor, but there's
a distinction between ButtonStyle and AddButtonStyle? I don't get that.

And, as I said before, some of the syntax uses this new (), --, !
notation and some doesn't (like Style doesn't use !, it has multiple
values for the opposite "flag" types). That's also confusing.

Why do you define the colors to HilightColor as <c1> <c2>, but the
colors to the Style Color option as <c1>/<c2>? There's just a lot of
inconsistency and even some redundancy, I think, in the config file
language now.

I think that somewhere there needs to be a very short overview: "Use
ButtonStyle to define buttons on the window frame border; use
AddButtonStyle to modify attributes of an existing ButtonStyle; use
AddToDecor to make a new Decor; use UseDecor to apply a Decor to a
Style; use UseStyle to `duplicate' a style", etc.

Also, someone should to rewrite the system.fvwmrc file to maybe use
Decor and/or Style "correctly" as an example; here's how I changed my
~/.fvwm2rc (obviously, comments more than welcome :) after I (think I)
figured out Decor and UseStyle:

  ### Standard Window Configuration

  AddToDecor Standard
  + HilightColor Black DeepSkyBlue
  + WindowFont -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
  + ButtonStyle 1 ActiveUp (Pixmap fvwm2/mini.destroy.xpm) \
                          ActiveDown (Pixmap fvwm95/mini-exp.xpm) \
                          Inactive (Pixmap fvwm2/mini.destroy-alt.xpm)
  + ButtonStyle 2 Pixmap fvwm2/mini.maximize-vert.xpm
  + ButtonStyle 4 MiniIcon

  Style Standard UseDecor Standard, \
                  BorderWidth 5, Color LightSkyBlue2/RoyalBlue4, \
                  DecorateTransient, HintOverride, \
                  Icon fvwm2/default.xpm, MiniIcon fvwm2/jball.xpm, \
                  StickyIcon, IconBox 3 -20 -1 -1, \
                  RandomPlacement, SmartPlacement, \
                  MWMDecor, MWMFunctions

  Style Naked WindowListSkip, Sticky, NoTitle, NoHandles, BorderWidth 0


  ### Application-specific decoration styles and window options

  Style "*" UseStyle Standard

  # FVWM Modules

  Style "Fvwm*" UseStyle Naked
  Style "FvwmTalk" WindowListHit, Slippery, Title, BorderWidth 5
  Style "FvwmConsole" WindowListHit, Slippery, Title, BorderWidth 5
  Style "Tkgoodstuff" UseStyle Naked

  # Individual application styles & icons

  Style "*faces" UseStyle Naked, StaysOnTop
  Style "*lock" UseStyle Naked
  Style "XSysStats" UseStyle Naked
  Style "XMcd" UseStyle Naked

  Style "ical_alarm" StaysOnTop

  Style "*XTerm" MiniIcon fvwm2/mini.xterm.xpm
  Style "XTerm" Icon x/xterm-basic.xpm
  Style "rootXTerm" Icon t/term2.xpm
  Style "sysXTerm" Icon t/term2.xpm
  Style "rxvt" Icon t/term2.xpm

  Style "xman" Icon x/xman.xpm, MiniIcon fvwm2/mini.xman.xpm

  Style "Tgif" Icon desc/cl-48/draw.xpm
  Style "Xarchie" Icon x/xarchie.xpm, MiniIcon fvwm2/mini.xarchie.xpm
  Style "Mosaic" Icon w/www-shape.xpm, MiniIcon fvwm2/mini.netscape.xpm
  Style "Netscape" MiniIcon fvwm2/mini.netscape.xpm
  Style "Emacs" Icon g/gnu.xpm, MiniIcon fvwm2/mini.gnu.xpm

This, obviously, is not my whole config, but it's all the decor/style
part.

Basically I create a "Standard" Decor and a "Standard" Style (that uses
the Standard decor), then I define all windows to use the Standard Style.

Then I have another Style, Naked, that I use for apps that have no
border (button bars, CD player, XFaces, etc.)

The idea, I guess, is I could make other Styles and/or Decors and switch
them pretty easily.

Well, anyway, FWIW.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith_at_baynetworks.com>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
     These are my opinions--Bay Networks takes no responsibility for them.
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Jan 17 1997 - 17:32:37 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST