This is a very light, extremely fast window manager, one of my favorites.
First thing i do is copy the global config file (.jwmrc) to my /home, to
do that i update the database as root, look for it, and copy it to my /home.
Code: Select all
#updatedb
$ locate .jwmrc
$ cp /etc/jwm/system.jwmrc .jwmrc
Code: Select all
$ nano .jwmrc
Note that the wm is very configurable and this is a subjective matter, what
is good for me, is not necessariy good for you; there is a choice and it's all
up to you.
In the first part i configure my apps to be launched full-sized, maximized,
i like it that way, easy for me to work. No dragging, no resizing, just
alt-tab to move from one to the other.
APPS OPTIONS
Code: Select all
<Group>
<Name>xterm</Name>
<Option>maximized</Option>
</Group>
And so on, i do the same for xfe, iceweasel, sylpheed, xchat, etc. Make
sure lines are alienated in the correctly IF you want your apps maximized,
otherwise, ignore this section.
TOOLBAR
Next, i want the the tray/tool bar (is that the name?), on top and in autohide
to save real estate, if you like the default look, never mind
Code: Select all
<Tray x="0" y="+1" height="20" autohide="true">
WORKSPACES
By default it comes with several workspaces, one on top of each other,
i only use 2, one next to the other:
Code: Select all
<!-- Virtual Desktops -->
<!-- Desktop tags can be contained within Desktops for desktop names. -->
<Desktops width="2" height="1">
TITLEBAR ELIMINATION
Code: Select all
<WindowStyle>
<Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>
<Width>1</Width>
<Height>2</Height>
KEYBINDINGS
Code: Select all
<!-- Key bindings -->
<Key key="Up">up</Key>
<Key key="Down">down</Key>
<Key key="Right">right</Key>
<Key key="Left">left</Key>
<Key key="h">left</Key>
<Key key="j">down</Key>
<Key key="k">up</Key>
<Key key="l">right</Key>
<Key key="Return">select</Key>
<Key key="Escape">escape</Key>
<Key mask="A" key="Tab">next</Key>
<Key mask="" key="F4">close</Key>
<Key mask="" key="F12">maximize</Key>
<Key mask="4" key="Right">rdesktop</Key>
<Key mask="4" key="Left">ldesktop</Key>
<Key mask="" key="F1">exec:xterm</Key>
<Key mask="" key="F2">exec:gmrun</Key>
<Key mask="4" key="f">exec:iceweasel</Key>
<Key mask="" key="F2">exec:xfe</Key>
<Key mask="4" key="m">exec:sylpheed</Key>
<Key mask="" key="F5">exec:sudo /sbin/halt -p</Key>
<Key mask="" key="F6">exec:sudo /sbin/reboot</Key>
<Key mask="4" key="u">exec:xchat</Key>
<Key mask="4" key="g">exec:medit</Key>
<Key mask="4" key="l">exec:libreoffice</Key>
<Key mask="4" key="r">exec:jwm -restart</Key>
<Key mask="" key="Print">exec:xterm -e scrot -cd 10</Key>
<Key mask="4" key="F1">root:1</Key>
<Key mask="" key="F8">exec:gmrun</Key>
#Volume
<Key mask="4" key="Down">>exec:amixer set Master 6%- </Key>
<Key mask="4" key="Up">exec:amixer set Master 6%+ </Key>
<Key mask="4" key="0">exec:amixer set Master 0</Key>
</JWM>
A = Alt
4 = Windows key
Alt-tab for moving btwn screens
Winkey + arrow right/left for changing workspaces
F4 closes apps
F12 maximizes screen
winkey + f launches browser
winkey + m launches sylpheed
Print key takes a picture with scrot
F1 launches terminal
F2 launches file manager
F4 closes app
F5 shutdown machine
F6 reboots
F8 launches run box
And so forth...
On F5 and F6 to shutdown/reboot the machine you have to have ALL type of
permission. To have that, edit /etc/sudoers as ROOT, and at the bottom add this:
Code: Select all
macondo ALL = NOPASSWD : ALL
Replacing 'macondo' with your user name
To start jwm automatically as you enter X, edit the file .xinitrc as user:
Code: Select all
$ nano .xinitrc
Here's mine:
Code: Select all
#!/bin/sh
iceweasel &
setxkbmap -option terminate:ctrl_alt_bksp
xsetroot -solid black
xrdb -merge .Xdefaults
unclutter -idle 2 &
numlockx &
exec jwm