HOWTO: JWM Basic Configuration

Share your wisdom. Not for support questions!

Moderator: How-to Curator

HOWTO: JWM Basic Configuration

Postby Lou » June 17th, 2014, 3:05 pm

JWM Basic Configuration

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

$ locate .jwmrc

$ cp  /etc/jwm/system.jwmrc .jwmrc

So, from now on i can access this file as user.

Code: Select all
$ nano .jwmrc

We're faced with a long config file but the good news is that there is only one file :)
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.

Code: Select all


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.

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">

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">



Code: Select all



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>

  <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 sset Master, 0 toggle </Key>



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
winkey + F1 gives you the main menu
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

iceweasel &
setxkbmap -option terminate:ctrl_alt_bksp
xsetroot -solid black
xrdb -merge .Xdefaults
unclutter -idle 2 &
numlockx &

exec jwm

Debian Jessie w/o systemd - icewm
User avatar
Posts: 235
Joined: April 5th, 2011, 3:58 pm

Return to HowTo

Who is online

Users browsing this forum: No registered users and 3 guests