LINUXUSER DeskTOPia: JWM
JWM Window Manager SIMPLESIMPLE ANDAND LIGHTLIGHT
JWM is a window manager for Linux users who demand an efficient GUI and are not afraid to fire up an editor to get it. If this sounds like the kind of tool you are looking for, read on to discover more
about JWM. BY HAGEN HÖPFNER
f you install a major Linux distribu- the sources is very easy as there are very switch to GUI mode. To make sure that tion, you will probably get the KDE few requirements to fulfill. All you need JWM launches when you do so, add the Ior GNOME desktop. But neither of is the gcc compiler, and the developer following line: the big guns is renowned for a frugal use packages for libxpm and the GUI desk- of CPU and memory resources. If your top. If you have Suse Linux 9.2, you will exec /usr/local/bin/jwm system is short on power, you may be find the X header files in xorg-x11-devel. looking for an alternative. If you have a distribution based on the to the .xinitrc file in your home direc- One of your options is JWM (Joe’s XFree86 package rather than Xorg, you tory. If you use a GUI-based login man- Window Manager) [1] . JWM (Figure 1) will find the developer files in the ager such as KDM or GDM, you can add got its name from its developer, Joe Xfree86-devel package. an entry for JWM to the login manager Wingbermuehle. Joe made sure JWM Unpack the source code from the proj- menu. does not rely on countless libraries, ect homepage and change to the direc- restricting dependencies to the X tory this step creates, jwm-0.21. Then First Steps Window system only. give the commands ./ configure, make, The first time you launch JWM, you and su -c “make install” to build the should at least have your own configura- Installation executable and copy it to /usr/ local/ bin. tion file, which will need to include a JWM does not provide any ready-to-run The easiest way to launch JWM is to menu entry for launching a terminal. binary packages, but building JWM from go to text mode and then type startx to The system global configuration is
80 ISSUE 57 AUGUST 2005 WWW.LINUX - MAGAZINE.COM DeskTOPia: JWM LINUXUSER
Listing 1: JWM Sample Menu
01
Listing 2: Tray configuration 01
The window decorations are reminiscent modify JWM to suit your own prefer- of FVWM [2]. The window title bar ences, as the standard configuration placed in the /usr/ local/ etc folder when includes buttons for iconizing, maximiz- would probably only make JWM’s devel- you install JWM. Copy the system.jwmrc ing, and closing the window. Also oper happy. The first thing to do is to set file to your home directory as .jwmrc. included is an icon on the left, which up the menu to support the applications Then open the file in an editor and opens the window menu on right click- you have installed on your system. change the program name xwsh in line 7 ing. The menu can contain submenus, to the name of your favorite terminal, program launchers, separating lines, and that is xterm or konsole for example. Configuring the Menu internal JWM calls. The internal JWM After completing these preparatory You can use the menu to move the win- calls help you terminate JWM, for exam- steps, you can launch a basic JWM con- dow to another virtual desktop or send it ple. The current version does not sup- figuration for the first time. At the bot- to the background in the current win- port re-launching the window manager tom edge of the screen you will see a dow. If you prefer to do without a via the menu. When we selected an tray that includes a menu, a pager, a mouse, JWM supports keyboard short- entry to try this, JWM crashed. Listing 1 CPU load indicator, and a clock. Later cuts that are very reminiscent of the is a simple example that results in the on, JWM will display a list of active KDE shortcuts. For example, [Alt]+ menu shown in Figure 2. programs in the middle. [Tab] toggles between the windows on The first line tells JWM that the menu You might like to select the Terminal the current desktop, and pressing definition follows. The next line has an menu entry to launch the application [Alt]+[F4] closes an application. entry for launching an xterm. Besides you configured in your configuration file. You can edit the configuration file to the label displayed for the menu entry
WWW.LINUX - MAGAZINE.COM ISSUE 57 AUGUST 2005 81 LINUXUSER DeskTOPia: JWM
If four virtual desktops are not enough for you, you can increase the number in the
“true” to automati- THEAUTHOR cally hide the tray, University of Germany in Bruchsal, unless the mouse Figure 3: JWM with a modified start button in the tray. Germany.
82 ISSUE 57 AUGUST 2005 WWW.LINUX - MAGAZINE.COM