FVWM

From Gentoo Linux Wiki

Jump to: navigation, search

Window managers TOC

Back to X.Org


FVWM (or F virtual window manager) is an extremely powerful ICCCM-compliant multiple virtual desktop window manager for X.Org.

One of FVWM strong points is its configurability as virtually anything is possible. People have made clones of Windows and Mac themes, and created some very creative original ones. Take a look at some screenshots.

Contents

[edit] Setup

Before emerging FVWM start off looking at the USE flags of FVWM you want to enable. One of the less obvious (but cooler) options is stroke, which lets you configure mouse gestures later on.

Then, as usual just emerge fvwm and wait a while, it should take about 15-30 minutes (or even less) on fairly recent hardware.

After it's emerged you'll probably want to start playing with it, tweaking it to your liking. This is done editing your ~/.fvwm/config file (before fvwm 2.5.10, the config file was ~/.fvwm/.fvwm2rc, and it is still recognized by fvwm). This file handles all the settings for the WM, such as window decorations, menus and items.

Initially config should be empty, giving you the ugly default when you start. To get around this you can either try out fvwm-themes (see next section) or start with someone else's config. This last option is what I'd reccommend, since you'll have a nice desktop and a complete config to learn from and tweak. Alternatively, you can follow the [FVWM/Configuration] and build step by step your desktop.

If you want to have a command executed at startup, like xmodmap, you can have it in "config", like:

AddToFunc InitFunction
+ I Exec exec xmodmap -e "pointer = 3 2 1 4 5"

Note that anything with fvwm-themes will only work if you have emerged the fvwm-themes package.

[edit] Starting Up

[edit] From a Console

You can get into FVWM pretty quickly by at a console:

XSESSION=fvwm2 startx -- :1 vt8

This is done so that should something go wrong, we can still startx, and get into our normal desktop to get some help, or just get back to life for a while.

To get back into FVWM after switching away, hit Ctrl + Alt + F8.

[edit] Fvwm as your default WM

Crack open /etc/X11/xinit/xinitrc and replace whatever you had there with the following:

File: /etc/X11/xinit/xinitrc
fvwm&

or

fvwm-themes-start&

Then run startx, with this a *very* ugly default FVWM will start, don't despair, changing everything is possible.


[edit] From a Graphical Login Manager

If you're using a display manager, you should change the following:

1) Create /etc/X11/Sessions/fvwm2-themes

File: fvwm2-themes
#!/bin/bash
exec /usr/bin/fvwm-themes-start

2) Update /etc/rc.conf

File: /etc/rc.conf
XSESSION="fvwm2-themes"

[edit] Select FVWM from XDM

FVWM can be selected with the function keys (see this article in the old wiki). For example:

File: /etc/X11/xdm/Xresources
xlogin*login.translations: #override\
<Key>F1: set-session-argument(failsafe) finish-field()\n\
<Key>F2: set-session-argument(wmaker) finish-field()\n\
<Key>F3: set-session-argument(afterstep) finish-field()\n\
<Key>F4: set-session-argument(startkde) finish-field()\n\
<Key>F5: set-session-argument(fvwm) finish-field()\n\
<Key>F6: set-session-argument(enlightenment) finish-field()\n\
<Key>F7: set-session-argument(blackbox) finish-field()\n\
<Key>Return: set-session-argument() finish-field()

[edit] Select FVWM from GDM or KDM

FVWM The other way that you can select fvwm from gdm or kdm session before you login is to use the file fvwm.desktop in /usr/share/xsessions/. In case the file is not in the system, it can be created with the f0llowing text:

File: /usr/share/xsessions/fvwm.desktop
[Desktop Entry]
Encoding=UTF-8
Name=fvwm2
Comment=This session starts the fvwm window manager
Exec=fvwm2
Icon=
Type=Application

Then you can select FVWM from gdm or kdm session before you login.

[edit] Themes

You can find some interesting themes in x11-themes/fvwm-themes and x11-themes/fvwm-crystal.

If you would like to learn how to create your own theme, read FVWM/Configuration

In the Gentoo Forum threads The F? Virtual Window Manager, The F? Virtual Window Manager (part 2) and The F? Virtual Window Manager (part 3), you can find a ton of tricks, tweaks and solutions to any problems or desires you may run into.

[edit] See also

[edit] External links

Personal tools