trouble with key bindings
Louis-David Mitterrand
vindex at apartia.org
Tue Oct 5 10:35:02 EDT 2004
Hello,
I am trying to bind the Pause and Break keys on my laptop to start and
stop laptop mode. I copied the keycodes from xev:
KeyRelease event, serial 28, synthetic NO, window 0x2200001,
root 0x48, subw 0x0, time 8177540, (570,678), root:(571,695),
state 0x0, keycode 110 (keysym 0xff13, Pause), same_screen YES,
XLookupString gives 0 bytes: ""
KeyPress event, serial 28, synthetic NO, window 0x2200001,
root 0x48, subw 0x0, time 8178159, (570,678), root:(571,695),
state 0x4, keycode 110 (keysym 0xff6b, Break), same_screen YES,
XLookupString gives 0 bytes: ""
And added them to my rc.xml file:
<keybind key="Pause">
<action name="Execute"><execute>su -c "/etc/init.d/laptop-mode start"</execute></action>
</keybind>
<keybind key="Break">
<action name="Execute"><execute>su -c "/etc/init.d/laptop-mode stop"</execute></action>
But the key presses are not recognized.
Did I miss something?
Thanks,
More information about the openbox
mailing list