[openbox] Mediakeys on Notebook
David Courtney
blixel at gmail.com
Tue Jun 6 18:00:19 EDT 2006
> How can i setup my mediakeys in rc.xml?
> I got the keycode number with xev.
> Usually i write f for "F" an so, but for the mediakeys arent aliases. only
> the keycode.
>
Here's a sample of my media key setup ... these key descriptions are
for a Logitech keyboard. So your key descriptions may be different.
<keybind key="XF86Sleep">
<action name="Execute"><execute>xset dpms force off</execute></action>
</keybind>
<keybind key="XF86AudioMute">
<action name="Execute"><execute>amixer -q -c 0 sset Master
toggle</execute></action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute"><execute>amixer -q -c 0 sset Master
1-</execute></action>
</keybind>
<keybind key="XF86AudioRaiseVolume">
<action name="Execute"><execute>amixer -q -c 0 sset Master
1+</execute></action>
</keybind>
<keybind key="XF86AudioPrev">
<action name="Execute"><execute>rhythmbox</execute></action>
</keybind>
<keybind key="XF86AudioPlay">
<action name="Execute"><execute>rhythmbox</execute></action>
</keybind>
<keybind key="XF86AudioStop">
<action name="Execute"><execute>rhythmbox</execute></action>
</keybind>
<keybind key="XF86AudioNext">
<action name="Execute"><execute>rhythmbox</execute></action>
</keybind>
<keybind key="XF86Mail">
<action name="Execute"><execute>/usr/bin/thunderbird</execute></action>
</keybind>
<keybind key="XF86Search">
<action name="Execute"><execute>firefox -remote
'openURL(http://www.google.com/,new-tab)'</execute></action>
</keybind>
<keybind key="XF86HomePage">
<action name="Execute"><execute>firefox -remote
'openURL(http://www.google.com/,new-tab)'</execute></action>
</keybind>
More information about the openbox
mailing list