www. O S N E W S .com
News Features Interviews
BlogContact Editorials

Introduction: calm window manager
By special contributor ddc_ on 2011-11-22 21:29:36
Calm window manager (mainly known for its shorthand name cwm) is a member of a once-powerful and now-declining family of minimalist X11 window managers. It is relatively unknown outside the OpenBSD community, but it deserves more notice.


Background

The development of cwm was started back in 2004, when Marius Aamodt Eriksen released a rewrite of evilwm, needed to support several new features that were difficult to implement in evilwm's code base. After year of development the original author lost interest and stopped updating cwm.

The project was reborn in April 2007, when it was imported into OpenBSD's base. A bunch of new features were added within a couple of months and cwm replaced wm2 as OpenBSD's minimalist window manager in November 2007 with the release of OpenBSD 4.2.


Mouse-less window management

The main goal of every minimalist window manager is to get out of the user's way. Cwm is pretty good in doing so - it allows the user to manage windows with keyboard shortcuts so that one doesn't actually need to touch the mouse.

Everything can be done from the keyboard: resizing, moving, hiding, raising or lowering windows, etc. Cwm has different shortcuts for resizing and moving windows by 1px and by 10px, and a shortcut to resize a window to full screen. Naturally, the default shortcuts are vi-like.

Furthermore, cwm can be configured to move the mouse cursor, so that one could use the computer without any pointing device.


Searching the lists

Using cwm mainly involves searching. Launching applications, switching windows, connecting to other hosts using SSH - everything can be done by searching the relevant list.

The main principle is the same for all these actions: cwm shows a list of relevant content (executables in $PATH, ./.known_hosts file entries, windows names) and removes the entries that doesn't match the user's input.


Window groups

There is no virtual desktop concept in cwm. Instead it supports window groups, which can be used to emulate virtual desktops in a similar manner as they are in most dynamic window managers.

Each window can be assigned to any number of groups. The groups themselves can be manipulated the same way as windows - they can be hidden, lowered and raised with shortcuts.

In order to make groups behave as virtual desktop the user can enable the sticky mode, so that all new windows would be assigned to the default group.


Configuration

Several aspects of cwm may be configured by editing ~/.cwmrc. The user may add, modify or remove shortcuts, change colors and other aspects of window management behavior.

Arbitrary commands can be bound to key combinations. The only default binding is the invocation of xterm by pressing control, meta (left alt) and enter keys simultaneously.

Additionally, the user may configure screen border offsets, so that cwm can be used with external toolbar like dzen, xmobar, xstatbar or even as a window manager for GNOME.

The new settings can be applied to running instance of cwm without restarting the session.


Conclusion

The word calm in the cwm's name isn't accidental. After getting accustomed to its key bindings and some configuration you nearly forget about it. It just moves out of your way, so you really don't find yourself distracted from your tasks.

Give it a try!

18  Comments - Printer friendly - Related stories
 

Tell a friend
Your full name:
Your email address:
Your friend's email:
Anti-spam measure:
5+2=

News Features Interviews
BlogContact Editorials


WAP site - RSS feed
© OSNews LLC 1997-2007. All Rights Reserved.
The readers' comments are owned and a responsibility of whoever posted them.
Prefer the desktop version of OSNews?