flwm - The Fast Light Window Manager
Contents
.Xinitrc / .Xsession
To run flwm as your login script, you need to create or replace ~/.xinitrc or ~/.xsession (or both).
Newer Linux systems with a login panel use .xsession, older systems where X was started after login use
.xinitrc. You may also have to pick "default" from the "type of session" popup in your login window.
The .xinitrc or .xsession file should look like this:
#!/bin/sh
xsetroot -solid \#006060
xrdb .Xresources
# xset, xmodmap, other configuration programs
flwm &
WindowManager=$!
# xterm, other automatically-launched programs
wait $WindowManager
Acknowledgements
This program was inspired by and much code copied from the "wm2" window manager by Chris Cannam
<cannam@zands.demon.co.uk>
Thanks to Ron Koerner for the recursive .wmx directory reading code.
Bugs
It is impossible to move windows smaller than 100 pixels off the screen.
Only obeys "keep aspect" if the aspect ratio is 1x1.
Copyright
Copyright (C) 1999 Bill Spitzak
This program is free software; you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.
You should have received a copy of the GNU General Public License along with this library; if not, write
to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
Description
flwm is a very small and fast X window manager, featuring no icons and "sideways" title bars.
Hot Keys
These are the defaults, the hot keys may be different depending on how flwm was compiled:
Alt+Escape Pops up the menu with the current window preselected
Alt+Tab Pops up the menu with the next window preselected
Alt+Shift+Tab Pops up the menu with the previous window preselected
Ctrl+Tab Switch to the next desktop.
Ctrl+Shift+Tab Switch to the previous desktop.
Ctrl+Functionkey Switch to desktop N.
Alt+Up Raise the current window.
Alt+Down Lower the current window.
Alt+Delete Close the current window (same as clicking close box).
Alt+Enter "Iconizes" (hides) the current window.
Mouse Usage
Left-click on a window border raises window.
Left-drag will move the window when in the title bar, and will resize it in the edges. If the window
cannot be resized then it will always move the window. What it will do is indicated by the cursor shape.
Middle-click on a window border lowers it to bottom.
Middle-drag anywhere on window border will move the window.
When you move a window it will stop at the edges of the screen. Dragging about 150 pixels further will
unstick it and let you drag it off the screen.
Right-click on a window border pops up the menu.
Anybutton on the desktop will pop up the menu.
Name
flwm - The Fast Light Window Manager
Switches
-d[isplay]host:#.# Sets the display and screen for flwm to manage
-v[isual]# Visual number to use (probably only works for non-color-mapped ones)
-g[eometry]WxH+X+Y Flwm will act as though the screen is only the specified area. It will constrain
initial window positions to this area and stop them at the edges when dragging them around. This can be
used to surround the screen with fixed "toolbars" that are never covered by windows. These toolbars must
be created by a program using override-redirect so that flwm does not try to move them.
-m[aximum]WxH Set the size of windows when the maximize buttons are pushed. Normally this is the size
of the screen. This is useful for XFree86 servers that are run with a smaller screen than display memory.
-x The menu will say "Exit" instead of "Logout" and will not ask for confirmation. This is a good idea if
you are running flwm in some other way than with exec at the end of .xinitrc, since it won't log you out
then.
-fgcolor,-bgcolor Set the label color and the color of the window frames and the menu.
-c[ursor]# What cursor to use on the desktop (you will have to experiment to find out what each number
means)
-cfgcolor,-cbgcolor Colors for the desktop and window resizing cursors
In addition to these switches there is much customization that can be done by editing the config.h file
in the source code and recompiling. GCC is your friend.
Synopsis
flwm [-d[isplay] host:n.n] [-g[eometry] WxH+X+Y] [-fg color] [-bg color] [-bg2 color]
