Crux Decoration example
Often when new Window Managers pop up, among the first things the users and developers do, is to create a familiar look mimicing other Window Managers. And such is the intention of this example.
Sawfish was once a popular Window Manager used by earlier versions of Gnome. It includes a theme called Crux. This example shows how to mimic the Crux-look using the Fvwm features to streamline the look, and to minimize the use of external image-files. As often is the case, other Window Managers cannot be mimiced 100%. In this case that includes the borders, and the inability to change the colors in fly, to name a few.
Here are the active and incative windows of the original Sawfish Crux-theme.
Looking at the above pictures, we can see that we will only be needing two external image-files. One for the active window title, and one for inactive. Those would be these: and
We’ll begin by defining Colorsets using the knowledge from ColorGradients. To find out which colors to use, one can use Gimp info-window to find out the exact colors in hexadecimal format.
Note: For recommended use of colorsets, see /Config/Colorsets.
Next, we need to tell Fvwm to use those Colorsets for every window.
The only images we need to use are 19 pixels high. Thus, we need to define the desired titlebar height so that the images don’t get streched. In addition to the height, we need to get the title text justified to the left, and tell Fvwm not to draw a 3D-bevel around the titlebar.
Now comes the magic for the titlebar, the very powerful Multipixmap-option. The syntax is: MultiPixmap section style arg
Possible sections include: Main, LeftMain, RightMain, UnderText, LeftOfText, RightOfText, LeftEnd, RightEnd, Buttons, LeftButtons, and RightButtons.
Possible styles include: Colorset, Solid, TiledPixmap, or AdjustedPixmap.
Note: In the above code, Fvwm expects the .png files to be found from a directory defined in the ImagePath directive.
Lastly, we are going to add the buttons into the titlebar using the knowledge from [/Config/Vectors]. On the last line we instruct Fvwm to use the already-drawn titlebar gradient in the back, and also to not draw a 3D-bevel around the buttons.
To actually see the buttons, there needs to be some action bound to them.