| 1 |
flwm Version 0.25 |
| 2 |
|
| 3 |
---------------------------------------------------------------- |
| 4 |
How to compile flwm: |
| 5 |
---------------------------------------------------------------- |
| 6 |
|
| 7 |
You need fltk. If you do not have it yet, download it from |
| 8 |
http://www.fltk.org, and compile and install it. |
| 9 |
|
| 10 |
To customize flwm (for instance to turn on click-to-type), edit the |
| 11 |
config.h file. |
| 12 |
|
| 13 |
Type "./configure" (not necessary if you have gmake) |
| 14 |
|
| 15 |
Type "make" |
| 16 |
|
| 17 |
Become superuser and type "make install" |
| 18 |
|
| 19 |
If you wish to edit the code, type "make depend" |
| 20 |
|
| 21 |
---------------------------------------------------------------- |
| 22 |
How to run flwm: |
| 23 |
---------------------------------------------------------------- |
| 24 |
|
| 25 |
To run flwm as your login script, you need to create or replace |
| 26 |
~/.xinitrc or ~/.xsession (or both). Newer Linux systems with a login |
| 27 |
panel use .xsession, older systems where X was started after login |
| 28 |
use .xinitrc. You may also have to pick "default" from the "type of |
| 29 |
session" popup in your login window. |
| 30 |
|
| 31 |
The .xinitrc or .xsession file should look like this: |
| 32 |
|
| 33 |
#!/bin/sh |
| 34 |
xsetroot -solid \#006060 |
| 35 |
xrdb .Xresources |
| 36 |
# xset, xmodmap, other configuration programs |
| 37 |
flwm & |
| 38 |
WindowManager=$! |
| 39 |
# xterm, other automatically-launched programs |
| 40 |
wait $WindowManager |
| 41 |
|
| 42 |
ALLOWING THE WINDOW MANAGER TO EXIT W/O LOGOUT: |
| 43 |
|
| 44 |
That is the most user-friendly but it logs you out when flwm exits, |
| 45 |
which means it logs out if flwm crashes (:-)) and you cannot switch |
| 46 |
window managers. Another possibility is to run another program last |
| 47 |
so flwm can exit, by putting lines like this at the end: |
| 48 |
|
| 49 |
/usr/local/bin/flwm -x & |
| 50 |
exec rxvt -geometry 80x11+8-8 -C -T "Ctrl-D_to_logout" |
| 51 |
|
| 52 |
The -x tells flwm to put "exit" on the menu rather than "logout". |
| 53 |
|
| 54 |
REDHAT USERS: |
| 55 |
|
| 56 |
You may want to run the program "./flwm_wmconfig". This will read |
| 57 |
RedHat's window manager menu configuration files and build an initial |
| 58 |
.wmx directory so you have a large set of menu items that run |
| 59 |
programs. |
| 60 |
|
| 61 |
SGI IRIX: |
| 62 |
|
| 63 |
You need to edit the file ~/.xsession instead of ~/.xinitrc. |
| 64 |
|
| 65 |
SGI's version of XDM has a nice feature so that the window manager can |
| 66 |
still have a logout command, but you are not logged out if it |
| 67 |
crashes. This is done by running the programs "reaper" and |
| 68 |
"endsession", as in this sample .xsession file: |
| 69 |
|
| 70 |
#! /bin/sh |
| 71 |
xsetroot -solid \#004040 |
| 72 |
xrdb .Xresources |
| 73 |
reaper |
| 74 |
flwm -x & |
| 75 |
xwsh -console -t console -iconic & |
| 76 |
|
| 77 |
Also create the file "~/.wmx/Logout" with these contents: |
| 78 |
|
| 79 |
#! /bin/sh |
| 80 |
endsession |
| 81 |
|
| 82 |
The result will be that flwm has a menu itme "Logout" that logs you |
| 83 |
out. |
| 84 |
|
| 85 |
---------------------------------------------------------------- |
| 86 |
Usage: |
| 87 |
---------------------------------------------------------------- |
| 88 |
|
| 89 |
Type "man flwm" for the manual page. |
| 90 |
|
| 91 |
---------------------------------------------------------------- |
| 92 |
Acknoledgements |
| 93 |
---------------------------------------------------------------- |
| 94 |
|
| 95 |
This program was inspired by and much code copied from the "wm2" |
| 96 |
window manager by Chris Cannam <[email protected]> |
| 97 |
|
| 98 |
Code contributions by Steve );Hara-Smith <[email protected]> |
| 99 |
|
| 100 |
---------------------------------------------------------------- |
| 101 |
Copyright (C) 1998-1999 Bill Spitzak |
| 102 |
---------------------------------------------------------------- |
| 103 |
This program is free software; you can redistribute it and/or modify |
| 104 |
it under the terms of the GNU General Public License as published by |
| 105 |
the Free Software Foundation; either version 2 of the License, or (at |
| 106 |
your option) any later version. |
| 107 |
|
| 108 |
This program is distributed in the hope that it will be useful, but |
| 109 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 110 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 111 |
General Public License for more details. |
| 112 |
|
| 113 |
You should have received a copy of the GNU General Public License |
| 114 |
along with this library; if not, write to the Free Software |
| 115 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
| 116 |
USA. |
| 117 |
|
| 118 |
Written by Bill Spitzak [email protected] |
| 119 |
---------------------------------------------------------------- |
| 120 |
END |
| 121 |
---------------------------------------------------------------- |