mini-HOWTO: Customizing windowmanagers; adding key shortcuts

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
doopdoop
Posts: 48
Joined: Thu 28 Jul 2005, 08:38
Location: Magdeburg, Germany

mini-HOWTO: Customizing windowmanagers; adding key shortcuts

#1 Post by doopdoop »

Here is how to put your favorite applications to start by just pressing a certain key.

The behaviour of the windowmanagers ist steered by configuration files, e.g. for fvwm95 this is /root/.fvwm95rc, for jwm this is /root/.jwmrc. They are loaded once the graphical desktop boots up, so if you make changes to these files, you have to restart the window manager (e.g. by Start -> Shutdown -> Restart...)

If you want e.g. that the Puppy help pages will popup if you press F1 add the following lines

For .fvwm95rc

Code: Select all

Key F1        A       A       Exec dillo /usr/share/doc/index.html
For .jwmrc

Code: Select all

<Key key="F1">exec:dillo /usr/share/doc/index.html</Key>
However, be aware that, if you configure your keys here, they can not be used in applications. So you might want to setup more rarely used keys.
To run rxvt by pressing Ctrl+F2 you can use
For .fvwm95rc

Code: Select all

Key F2        A       C       Exec rxvt
See the difference to the example above ?
C is the modifier to use Ctrl+ key combinations. Other alternatives would be: "A" single key, "S" shift+key, "M" alt+, "SC" shift+control+key, ... see the .fvwmrc95rc for other examples.

For .jwmrc the corresponding entry would be

Code: Select all

<Key mask="C" key="F2">exec:rxvt</Key>
See the config files for a lot more options.

Post Reply