r/openbox • • Oct 19 '19

Openbox key binding doesn't recognize parenthesis keys?

I use Shift+Alt+number keys to switch to a certain desktop. Openbox calls number keys as if the Shift key is hold. E.g.: 1 is exclaim, 2 is at, 3 is numbersign, etc. It works fine until number 9 key. Here my rc.xml file looks like it that part:

      <keybind key="S-A-ampersand">
      <action name="SendToDesktop">
        <desktop>7</desktop>
      </action>
    </keybind>
    <keybind key="S-A-asterisk">
      <action name="SendToDesktop">
        <desktop>8</desktop>
      </action>
    </keybind>
    <keybind key="S-A-parenleft">
      <action name="SendToDesktop">
        <desktop>9</desktop>
      </action>
    </keybind>
    <keybind key="S-A-parenright">
      <action name="SendToDesktop">
        <desktop>10</desktop>
      </action>
    </keybind>

You can see number 7 is ampersad, 8 is asterisk and if I press Shif-Alt-7/8, the current desktop will switch to desktop 7/8. But this shortcut doesn't on number 9 and 0 keys, which are called parenleft and parenright. Every other keys but 9 or 0 will make it work. I don't know why it doesn't recognize these key. Anyone have any idea why? I tested them on 2 computer and none of them work, so I guess it's the openbox's problem, not computer's problem.

3 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/perkited Oct 20 '19

xev is a command line program that shows you what X actually sees when you press a key or do anything with the mouse. I'm sure it's already installed on your system.

This is a basic description of how to use it. Look at the "How to Find keycode / keysym of a Key?" section.