Help talk:Bindings

From Openbox

Jump to: navigation, search

is it possible that this article isn't up to date?

in this part:


"Keys The Key is the name of the key, such as "a", "space", "Escape", "less", or "F1". You can find the name of any key by using the xev command in a terminal, pressing the desired key, and watching the output from xev in the terminal. For example, the following xev output indicates, on the third line, that the Menu key was pressed. KeyRelease event, serial 36, synthetic NO, window 0x1e00001,

   root 0x7e, subw 0x0, time 29920856, (168,-7), root:(900,313),
   state 0x0, keycode 135 (keysym 0xff67, Menu), same_screen YES,
   XLookupString gives 0 bytes: 
   XFilterEvent returns: False

This key can then be used as in the following example. <keyboard>

 ...
 <keybind key="C-Menu">
   <action name="ShowMenu">
     <menu>root-menu</menu>
   </action>
 </keybind>
 ...

</keyboard> Keys can also be specified by their numeric codes. This can be done by specifying the keycode in hex. To take the above example, the keycode for the Menu key is 135, which is 0x87 in hexadecimal. This can then be used: <keyboard>

 ...
 <keybind key="C-0x87">
   <action name="ShowMenu">
     <menu>root-menu</menu>
   </action>
 </keybind>
 ...

</keyboard> Note that the "0x" prefix is required to interpret the key as a numeric keycode, and that the hex characters are case-insensitive (i.e. you can use "0xAE" or "0xae")."



it doesn't seem to work if you put the "C-" before the name of the key in <keybind key="C-Menu">. for me it just works if i set it to <keybind key="Menu">

Personal tools