Edit JWM key bindings

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
JohnMc
Posts: 118
Joined: Fri 07 Apr 2006, 15:18

Edit JWM key bindings

#1 Post by JohnMc »

On Vacation so it looks like this is my Puppy Play Day.

Mucking around a bit with JWM I noticed it is possible to remap the keys of course. So if anyone else wants to here's a quick an dirty:

open the file /root/.jwm/jwmrc-personal.
Note that the .jwm directory is hidden so it does not show up in ROX normally.

Go to the bottom of the file, just before the </JWM> mark, add the following:

<!-- My Bindings -->
<Key key="F7">exec:gnumeric "$@"</Key>
<Key key="F8">exec:abiword "$@"</Key>
<Key key="F9">exec:gaimshell</Key>
<Key key="F10">exec:mozstart "$@"</Key>
<Key key="F11">exec:mozmail "$@"</Key>

Save the file. Restart, JWM Menu-->ShutDown-->JWM Restart.

Press any key F7 thru F11 and the associated program should launch.

There is a quirk in SeaMonkey. If the Browser's already up then pressing the F11 key errors out. Other than that these are quick time savers.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#2 Post by Dougal »

Why not use the jwm-config utility?
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

JohnMc
Posts: 118
Joined: Fri 07 Apr 2006, 15:18

Why Not us JWM Configurator

#3 Post by JohnMc »

I am old school that's why.

If something breaks typically no configurator is going to fix the problem because it won't be able to read the file. Which means you have to be able to hand manipulate the file to correct it. And I don't have anything against the configurator it's a pretty well written tool. But better to know the guts now than later when something isn't working.

Just my take.

amish
Posts: 615
Joined: Sun 24 Sep 2006, 23:15

#4 Post by amish »

thank you. i wondered about this, having tried it in the /root/.jwmrc file and curious why it didn't take.

Post Reply