Posts: 215
macondo
Joined: 14 Sep 2007
#1
My JWM Configuration Redux

This is a fast and light window manager, perfect for me.

You cannot edit the global configuration file, so I copied it to my /home.

Code: Select all

$ cp /etc/jwm/sytem.jwmrc .jwmrc
Now I can edit it as USER:

Code: Select all

$ nano .jwmrc
The first part is the Root menu, I don't use it much.

Code: Select all

<JWM><!-- The root menu, if this is undefined you will not get a menu. 
--><!-- Additional RootMenu attributes: onroot, labeled, label 
--><RootMenu height="15" onroot="12"><Program icon="terminal.png" label="Terminal">x-terminal-emulator</Program><Program icon="www.png" label="Firefox">firefox</Program><!-- #DEBIAN
      <Program icon="firefox.png" label="Www Browser">gnome-www-browser</Program>
      <Menu icon="folder.png" label="Applications">
         <Program icon="editor.png" label="Dia">dia</Program>
         <Program icon="www.png" label="Firefox">firefox</Program>
         <Program icon="gimp.png" label="Gimp">gimp</Program>
         <Program icon="mail.png" label="Mutt">
            xterm -e mutt
         </Program>
         <Program icon="word-processor.png" label="Open Office">  
            ooffice
         </Program>
         <Program icon="chat.png" label="Pidgin">pidgin</Program>
         <Program icon="music.png" label="Rhythmbox">rhythmbox</Program>
         <Program icon="development.png" label="Xilinx ISE">
            /usr/local/xilinx/bin/ise
         </Program>
         <Program icon="video.png" label="Xine">gxine</Program>
      </Menu>
      <Menu icon="folder.png" label="Utilities">
         <Program icon="calculator.png" label="Calculator">xcalc</Program>
         <Program icon="font.png" label="Fonts">xfontsel</Program>
         <Program icon="viewer.png" label="Magnify">xmag</Program>
         <Program icon="programs.png" label="Synaptic">
            gksudo synaptic
         </Program>
         <Program icon="window.png" label="Window Properties">
            xprop | xmessage -file -
         </Program>
      </Menu>
--><Include>/etc/jwm/debian-menu</Include><Separator/><Program icon="lock.png" label="Lock">
         xscreensaver-command -activate
      </Program><Separator/>
<Restart label="Restart" icon="restart.png"/>
<Exit label="Exit" confirm="true" icon="quit.png"/>
</RootMenu>
The second part deals with the window options:
(there is a list of them at:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://joewing.net/projects/jwm/config.shtml#groups"
linktext was:"http://joewing.net/projects/jwm/config.shtml#groups"
====================================

I'm only interested in maximizing my windows:

Code: Select all

  <Group>
      <Class>Firefox</Class>
      <Option>maximized</Option>
   </Group>

   <Group>
      <Name>xfe</Name>
      <Option>maximized</Option>
   </Group>

   <Group>
      <Name>roxterm</Name>
      <Option>maximized</Option>
   </Group>
Next, I want a thinner taskbar (height)

Code: Select all

 <!-- Additional tray attributes: autohide, width, border, layer, layout -->
 <Tray  x="0" y="-1" height="20" autohide="false">
Next, I want 2 virtual desktops next to each other. You can have as many as you want on top of each other.

Code: Select all

 <!-- Virtual Desktops -->
   <!-- Desktop tags can be contained within Desktops for desktop names. -->
   <Desktops width="2" height="1">
The default focus model is sloppy.

Some miscelaneous keybinds:

Code: Select all

 <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>
A=Alt
C=Ctrl
4=Windows key, Super

alt-tab as always
F4 - closes apps
F12 maximizes window
Ctrl+right arrow moves to virtual desktop to the right.
Ctrl+left arrow to the left.

Main keybindings:

Code: Select all

<Key mask="" key="F1">exec:roxterm</Key>
<Key mask="" key="F2">exec:xfe</Key>
<Key mask="C" key="f">exec:firefox</Key>
<Key mask="" key="F7">exec:mirage</Key>
<Key mask="" key="F8">exec:xchat</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>
<Key mask="CA" key="Delete">exec:sudo reboot</Key>
<Key mask="CA" key="Pause">exec:sudo halt</Key>
I got no use for my Fn keys, if you do, use combinations of Ctrl,Alt,4(super)

From the top, F1 launches the terminal, F2 launches the file manager, Ctrl+f launches the browser, F7 for
image viewer, F9 launches libreoffice, F10 to restart jwm, F12 to maximize app.
Press Print to take snapshot, press left windows key to get the global menu, Ctrl+spacebar gives
you gmrun to launch anything, ctrl+alt+delete reboots and ctrl+alt+Pause halts
the machine.

For sound,

Code: Select all

#Volume
<Key mask="C" key="Down">>exec:amixer set Master 9%- </Key>
<Key mask="C" key="Up">exec:amixer set Master 9%+ </Key>
<Key mask="C" key="0">exec:amixer sset Master,0 toggle </Key>
ctrl+down arrow lowers the volume.
ctrl+up arrow increases the volume
ctrl+0 (zero) mutes the sound, do it again and the sound returns.

Note: launch alsamixer and unmute with the letter M.
After doing the configuration, RESTART JWM from the Menu the first time,
after that you can restart with F10.

Happy trails,

I am happy with JWM, it saves me a lot of time.
Last edited by macondo on 04 Oct 2017, 22:17, edited 2 times in total.
Posts: 3
imcg
Joined: 25 Aug 2017
#2
I like your theme!. Nice and simple; not distracting, but still beautiful.

I've just recently started using JWM, moving from a couple years of using CWM for window management, and I've got to say that I'm enjoying it. It feels like a very configurable windows 95 with similar resource requirements, which for both nostalgia and performance reasons is a good thing.
Posts: 215
macondo
Joined: 14 Sep 2007
#3
My new keybinding to launch 'gmrun' is:

Code: Select all

  <Key mask="" key="Super_R">exec:gmrun</Key>
It will launch gmrun with the right Windows key.