HOWTO: JWM Basic Configuration
This is a very light, extremely fast window manager, one of my favorites. Uses 3 MB RAM.
First thing I do is copy the global config file /usr/local/etc/system.jwmrc to my /home. You are NOT allowed to edit the global file.
So, from now on I can access this file as USER.
We're faced with a long config file but the good news is that there is only one file
Note that the window manager is very configurable and this is a subjective matter, what is good for me, is not necessarily 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
And so on, I do the same for xfe, firefox, sylpheed, xchat, etc. Make sure lines are aligned correctly IF you want your apps maximized. If you want no titlebar add 'notitle'.
Otherwise, if you like your apps floating, ignore this section.
TASKBAR
For the regular look (taskbar at the bottom):
FOR THE TASKBAR ON TOP
WITHOUT TITLEBAR
Or add 'notitle' in the Options at the beginning of the file to your apps.
TASKBAR IN AUTOHIDE (à la ratpoison)
Depending wherever you have your taskbar. Put top or bottom.
WORKSPACES
By default it comes with several workspaces, one on top of each other, I only use 2, one next to the other:
Needless to say, if you want more workspaces, change the number of desktops in "width".
KEYBINDINGS
A = Alt
C = Control
4 = Windows key
HOW DOES IT WORK
Alt-tab for moving between screens
Ctrl+ arrow right/left for changing workspaces
F4 closes apps
F12 maximizes screen
F3 launches browser
Print key takes a picture with scrot
F1 launches terminal
F2 launches file manager
F4 closes app
F8 launches xchat
Ctrl+spacebar gives you gmrun to launch apps
F10 restarts jwm
Windows key gives you the main menu. And so forth...
I have no use for the Fn keys, but if you do, you can add Alt, Ctrl or the Windows key to the Fn keys or any letter you feel confortable with. A+Fn key or C+Fn key or 4+Fn key, C-f for firefox, C-m for mirage, you get the idea.
The thing is to increase your speed, by the time you point and click with the mouse, you could be already working, with your keybinds.
To start jwm automatically as you enter X, edit the file .xinitrc as root:
Here's mine:
Or just put 'exec jwm'
save/exit from the editor, RESTART from the menu, next time you can restart with F10.
#reboot
Good luck,
macondo aka Lou, bobo, cerealkiller
Reference:
http://joewing.net/projects/jwm/config.shtml
P.S. The only application that can give you a menu is xdgmenumaker, otherwise, you have to do it manually. Unfortunately xdgmenumaker is not in the FreeBSD repositories.
Screenies
Default look, and taskbar on top.
This is a very light, extremely fast window manager, one of my favorites. Uses 3 MB RAM.
First thing I do is copy the global config file /usr/local/etc/system.jwmrc to my /home. You are NOT allowed to edit the global file.
$ cp /usr/local/etc/system.jwmrc .jwmrc
So, from now on I can access this file as USER.
$ nano .jwmrc
We're faced with a long config file but the good news is that there is only one file
Note that the window manager is very configurable and this is a subjective matter, what is good for me, is not necessarily 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:
<Group>
<Name>roxterm</Name>
<Option>maximized</Option>
</Group>
<Group>
<Name>firefox</Name>
<Option>maximized</Option>
<Option>notitle</Option>
</Group>
And so on, I do the same for xfe, firefox, sylpheed, xchat, etc. Make sure lines are aligned correctly IF you want your apps maximized. If you want no titlebar add 'notitle'.
Otherwise, if you like your apps floating, ignore this section.
TASKBAR
For the regular look (taskbar at the bottom):
Code:
<Tray x="0" y="-1" autohide="off">
FOR THE TASKBAR ON TOP
Code:
<Tray x="0" y="+1" autohide="off">
WITHOUT TITLEBAR
Code:
<!-- Visual Styles -->
<WindowStyle>
<Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>
<Width>1</Width>
<Height>2</Height>
Or add 'notitle' in the Options at the beginning of the file to your apps.
TASKBAR IN AUTOHIDE (à la ratpoison)
Code:
<Tray x="0" y="+1" autohide="top">
Depending wherever you have your taskbar. Put top or bottom.
WORKSPACES
By default it comes with several workspaces, one on top of each other, I only use 2, one next to the other:
Code:
<!-- Virtual Desktops -->
<!-- Desktop tags can be contained within Desktops for desktop names.
-->
<Desktops width="2" height="1">
Needless to say, if you want more workspaces, change the number of desktops in "width".
KEYBINDINGS
A = Alt
C = Control
4 = Windows key
Code:
<!-- 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="C" key="Right">rdesktop</Key>
<Key mask="C" key="Left">ldesktop</Key>
<Key mask="" key="F1">exec:roxterm</Key>
<Key mask="" key="F2">exec:xfe</Key>
<Key mask="" key="F3">exec:firefox</Key>
<Key mask="" key="F7">exec:mirage</Key>
<Key mask="" key="F8">exec:hexchat</Key>
<Key mask="" key="F9">exec:libreoffice</Key>
<Key mask="" key="F10">exec:jwm -restart</Key>
<Key mask="" key="Print">exec:roxterm -e scrot -cd 10</Key>
<Key mask="" key="Super_L">root:1</Key>
<Key mask="C" key="space">exec:gmrun</Key>
#Volume
<Key mask="C" key="Down">>exec:amixer set Master 6%- </Key>
<Key mask="C" key="Up">exec:amixer set Master 6%+ </Key>
<Key mask="C" key="0">exec:amixer sset Master,0 toggle </Key>
</JWM>
HOW DOES IT WORK
Alt-tab for moving between screens
Ctrl+ arrow right/left for changing workspaces
F4 closes apps
F12 maximizes screen
F3 launches browser
Print key takes a picture with scrot
F1 launches terminal
F2 launches file manager
F4 closes app
F8 launches xchat
Ctrl+spacebar gives you gmrun to launch apps
F10 restarts jwm
Windows key gives you the main menu. And so forth...
I have no use for the Fn keys, but if you do, you can add Alt, Ctrl or the Windows key to the Fn keys or any letter you feel confortable with. A+Fn key or C+Fn key or 4+Fn key, C-f for firefox, C-m for mirage, you get the idea.
The thing is to increase your speed, by the time you point and click with the mouse, you could be already working, with your keybinds.
To start jwm automatically as you enter X, edit the file .xinitrc as root:
# nano /home/user_name/.xinitrc
Here's mine:
Code:
#!/bin/sh
firefox &
setxkbmap -option terminate:ctrl_alt_bksp
xsetroot -solid black
unclutter -idle 2 &
numlockx &
exec jwm
Or just put 'exec jwm'
save/exit from the editor, RESTART from the menu, next time you can restart with F10.
jwm -p (to see if there any parsing errors)
#reboot
Good luck,
macondo aka Lou, bobo, cerealkiller
Reference:
http://joewing.net/projects/jwm/config.shtml
P.S. The only application that can give you a menu is xdgmenumaker, otherwise, you have to do it manually. Unfortunately xdgmenumaker is not in the FreeBSD repositories.
Screenies
Default look, and taskbar on top.