Fvwm Web Window

FvwmWindow Example
Fvwm logo

The Fvwm web window (or just FvwmWindow) is a decorated div that can be included in a page as follows (note content of the window must be written using HTML and not markdown):

{% capture fvwmtxt %}

<HTML Content of Window>

{% endcapture %}
{% include fvwmwindow.html
id="id string"
title="Window Title"
color="Decor Color"
content=fvwmtxt %}

What the above code does is capture all the HTML content as the variable `fvwmtxt`, then sends that content variable along with some other configuration options to the `fvwmwindow.html` include file, which generates the window.

The above is an example of a FvwmWindow that can be included in FvwmWeb pages. The above gives the basic syntax to include a FvwmWindow and below gives more details (including full lists of options).

Full List of Variables

The FvwmWindow is created by using Jekyll’s Include, which are used to build the HTML. The full list of accepted variables is:

Using Bootstrap Columns

By default the window will take up the full size of its containing div where the difference between a maximized and regular window is if the margins are zero or not. In order to stack multiple windows side by side, use Bootstrap’s grid to set the size of the windows.

For example if you wanted to have 4 columns for a large screen but scale down to one column for a small screen with multiple windows use something like the following:

<div class="row">

<div class="col-md-6 col-lg-4 col-xl-3 mb-1 p-1">
{% include fvwmwindow.html id="ex1"
title="Example Window 1"
color="arizona" content="Arizona"
logo=1 max=1 %}
</div>

<div class="col-md-6 col-lg-4 col-xl-3 mb-1 p-1">
{% include fvwmwindow.html id="ex2"
title="Example Window 2"
color="crimson" content="Cimson"
logo=1 max=1 %}
</div>

<div class="col-md-6 col-lg-4 col-xl-3 mb-1 p-1">
{% include fvwmwindow.html id="ex3"
title="Example Window 3"
color="neptune" content="Neptune"
logo=1 max=1 %}
</div>

<div class="col-md-6 col-lg-4 col-xl-3 mb-1 p-1">
{% include fvwmwindow.html id="ex4"
title="Example Window 4"
color="alpine" content="Alpine"
logo=1 max=1 %}
</div>

</div>

In the above the <div class="row"> connects the following nested div’s in the same grid. Then each div sets its size by setting the number of columns it uses. There are 12 possible columns, and col-md-6 tells the div to use 6 columns if the screen is ‘medium width’ or bigger, while col-xl-3 says to use 3 columns if the screen is ‘extra large’.

What that does is make it so on tiny screens each div uses the full 12 columns and takes the full width, while on medium screens each div uses 6 (of 12) columns and this fits 2 per row, and finally on extra large screens, use 3 (of 12) columns allow 4 windows per row.

By default the windows will use the sites dark background as showcased in the windows below, which are created using the above example. To see how the responsiveness works, adjust your browsers width between narrow and wide to see the various breakpoints.

Example Window 1
Fvwm logo Arizona
Example Window 2
Fvwm logo Cimson
Example Window 3
Fvwm logo Neptune
Example Window 4
Fvwm logo Alpine

All Possible Colors

The full list of possible decor colors is alpine, arizona, blue, broica, crimson, gray, green, neptune, orange, pink, purple, red, yellow-green, and yellow. The following is an example of each color:

alpine
alpine
arizona
arizona
blue
blue
broica
broica
crimson
crimson
gray
gray
green
green
neptune
neptune
orange
orange
pink
pink
purple
purple
red
red
yellow-green
yellow-green
yellow
yellow

It is possible to use windows (like above) without the default background, to do so you need to first set nocss=1 and then choose the color with bgcolor="color". Here is some examples of mixing and matching.

Example Window 5
Border: neptune
Background: blue
Example Window 4
Border: arizona
Background: yellow
Example Window 7
Border: crimson
Background: purple
Example Window 8
Border: green
Background: gray