Get the highlights in your inbox every week.
Customize your Linux desktop with FVWM | Opensource.com
Customize your Linux desktop with FVWM
This article is part of a special series of 24 days of Linux desktops. If you're looking for a lightweight, fast, and simple Linux window manager, FVWM qualifies. But if you're looking for something to dig into, explore, and hack, then FVWM is a must.
The FVWM window manager started out as modifications to TWM, back in 1993. After several years of iteration, what emerged is an extremely customizable environment where any behavior, action, or event is configurable. It has support for custom key bindings, mouse gestures, theming, scripting, and much more.
While FVWM is usable immediately after installation, its default distribution provides only the absolute minimum configuration. It's a great foundation to start your own custom desktop environment, but if you just want to use it as a desktop, then you probably want to install a full configuration distributed by another user. There are a few different distributions of FVWM, including FVWM95, which mimics Windows 95 (at least in appearance and layout). I tried FVWM-Crystal, a modern-looking theme with some common Linux desktop conventions.
Install the FVWM distribution you want to try from your Linux distribution's software repository. If you can't find a specific FVWM distribution, it's safe to install the base FVWM2 package and then go to Box-Look.org to download a theme package manually. It's a little more work that way, but not nearly as much as building your own workspace from scratch.After installing, log out of your current desktop session so you can log into FVWM. By default, your session manager (KDM, GDM, LightDM, or XDM, depending on your setup) will continue to log you into your previous desktop, so you must override that before logging in.
To do so with GDM:
And with SDDM:
Regardless of what theme and configuration you're using, FVWM, at minimum, provides a menu when you left-click on the desktop. The contents of this menu vary depending on what you've installed. The menu in the FVWM-Crystal distribution contains quick access to common preferences, such as screen resolution, wallpaper settings, window decorations, and so on.
As with pretty much everything in FVWM, the menu can be edited to include whatever you want, but FVWM-Crystal favors the application menu bar. The application menu is located at the top-left of the screen, and each icon contains a menu of related application launchers. For example, the GIMP icon reveals image editors, the KDevelop icon reveals integrated development environments (IDEs), the GNU icon reveals text editors, and so on, depending on what you have installed on your system.
FVWM-Crystal also provides virtual desktops, a taskbar, a clock, and an application bar.
For your background, you can use the wallpapers bundled with FVWM-Crystal or set your own with the feh command (you may need to install it from your repository). This command has a few options for setting the background, including --bg-scale to fill the screen with a scaled version of your wallpaper of choice, --bg-fill to fill the screen without adjusting the size of the image, and so on.
$ feh --bg-scale ~/Pictures/wallpapers/mybackground.jpg
Most configuration files are contained in $HOME/.fvwm-crystal, with some systemwide defaults located in /usr/share/fvwm-crystal.
Do it yourself
FVWM is as much a desktop-building platform as it is a window manager. It doesn't do anything for you, and it expects you to configure anything—and possibly everything.
If you're looking for a lightweight, fast, and simple window manager, FVWM qualifies. But if you're looking for something to dig into, explore, and hack, then FVWM is a must.