Topic: Configuring shortcuts & easy way to configure special keys for laptops
Hi all, didn't found that tutorial so even if i am not that much experienced, here's a quick tutorial
In order to make a shortcut, or configure a special key (Fn + F5, or any key S1, S2 on my VAIO for exemple) you have to go into your rc.xml and cant be done with Obconf.
You have to edit it by yourself, but it's not complicated :
Keyboard shortcuts
With Openbox, you can easy create a shortcut to lauch a program, open a menu or change from a desktop to another. You just have to go to the "keyboard" section of your rc.xml
Here's some exemples :
1. To launch a program or a command (here Nautilus) :
<keybind key="A-F4">
<action name=”Execute”>
<execute>nautilus --no-desktop</execute>
</action>
</keybind>2. To launch a menu, here the main menu
<keybind key="A-F1">
<action name=”ShowMenu”>
<menu>root-menu</menu>
</action>
</keybind>3. To change desktop:
<keybind key="A-1">
<action name=”Desktop”>
<desktop>1</desktop>
</action>
</keybind>A = alt, C = control, W = Windows key (super). Escape = echap, Delete = Suppr.
You can also use any particular button ( fn style, multimedia button for laptop), but you need to know their name.
So you can use xev to find that
You just have to type xev into a terminal (validate with enter), then press the button you want to use
Lot of infos will shown but what's interest us is what is writing after “keycode”
Now you can use it !
More informations on the Openbox information site.
Any commentary or proposition to improve it will be appreciated
Last edited by Bast (2009-01-29 18:34:15)