[openbox] trouble with key bindings

Mikael Magnusson mangosoft at comhem.se
Tue Oct 5 10:43:05 EDT 2004


On Tue, 5 Oct 2004, Louis-David Mitterrand wrote:

> 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?

The pause bind should work, assuming your command is correct. Have you 
tried 1) another command or 2) another key?
Regarding your break bind, you need to put the modifier and the key you 
press if you want a shifted or control-ed key, ie C-Pause or possibly 
C-Break.

> Thanks,
>
>

--
Mikael Magnusson



More information about the openbox mailing list