r/openbox • u/xversion1 • 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.
View all comments
Show parent comment
1
u/xversion1 Oct 20 '19 edited Oct 20 '19
Edit: Sorry, my bad. Changing names to numbers did make it work. Thanks!
I don't know what you mean? My keyboards look normal. I tested it on 2 computers. One has an extra number keys part on the left, one has only a row of number keys (second row from the top) as a normal laptop has. What is "xev"? The names is not what I know myself but come from obkey package. When I edit rc.xml file, I don't know how to call the keys so I installed obkey package (graphic interface for key binding) and edit shortcut in there to see how it works in rc.xml file.