You are not logged in.

#1 2013-12-15 16:14:02

Grima
Member
Registered: 2011-09-02
Posts: 58

[SOLVED] Key bindings with Winkey not working in Openbox

For example, pressing the Windows key and T does not open urxvt with this:

    <keybind key="W-t">
      <action name="Execute">
        <command>urxvt</command>
      </action>
    </keybind>

This keybind opens urxvt with CTRL, ALT and T (so bindings overall are working):

    <keybind key="C-A-t">
      <action name="Execute">
        <command>urxvt</command>
      </action>
    </keybind>

The weird thing is that if I use the first snippet, I am able to open urxvt by using xdotool:

xdotool key super+t

How is it that xdotool can successfully use the W-t keybind while I cannot?

Last edited by Grima (2013-12-15 22:53:17)

Offline

#2 2013-12-15 16:25:59

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] Key bindings with Winkey not working in Openbox

What key does your keymap assign to your windows key? All my applications recognize the super key when pressed on my keyboard as well as xdotool events. This is my xev output

KeyPress event, serial 29, synthetic NO, window 0x2c00001,
    root 0x2b9, subw 0x0, time 91386493, (322,425), root:(326,445),
    state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x2c00001,
    root 0x2b9, subw 0x0, time 91386596, (322,425), root:(326,445),
    state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

...

KeyPress event, serial 29, synthetic NO, window 0x2c00001,
    root 0x2b9, subw 0x0, time 91479808, (701,544), root:(705,564),
    state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 32, synthetic NO, window 0x2c00001,
    root 0x2b9, subw 0x0, time 91480380, (701,544), root:(705,564),
    state 0x40, keycode 28 (keysym 0x74, t), same_screen YES,
    XLookupString gives 1 bytes: (74) "t"
    XmbLookupString gives 1 bytes: (74) "t"
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x2c00001,
    root 0x2b9, subw 0x0, time 91480471, (701,544), root:(705,564),
    state 0x40, keycode 28 (keysym 0x74, t), same_screen YES,
    XLookupString gives 1 bytes: (74) "t"
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x2c00001,
    root 0x2b9, subw 0x0, time 91481146, (701,544), root:(705,564),
    state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Last edited by progandy (2013-12-15 16:28:44)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2013-12-15 16:59:02

Grima
Member
Registered: 2011-09-02
Posts: 58

Re: [SOLVED] Key bindings with Winkey not working in Openbox

progandy wrote:

What key does your keymap assign to your windows key? All my applications recognize the super key when pressed on my keyboard as well as xdotool events. This is my xev output

KeyPress event, serial 29, synthetic NO, window 0x2c00001,
    root 0x2b9, subw 0x0, time 91386493, (322,425), root:(326,445),
    state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x2c00001,
    root 0x2b9, subw 0x0, time 91386596, (322,425), root:(326,445),
    state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

...

KeyPress event, serial 29, synthetic NO, window 0x2c00001,
    root 0x2b9, subw 0x0, time 91479808, (701,544), root:(705,564),
    state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 32, synthetic NO, window 0x2c00001,
    root 0x2b9, subw 0x0, time 91480380, (701,544), root:(705,564),
    state 0x40, keycode 28 (keysym 0x74, t), same_screen YES,
    XLookupString gives 1 bytes: (74) "t"
    XmbLookupString gives 1 bytes: (74) "t"
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x2c00001,
    root 0x2b9, subw 0x0, time 91480471, (701,544), root:(705,564),
    state 0x40, keycode 28 (keysym 0x74, t), same_screen YES,
    XLookupString gives 1 bytes: (74) "t"
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x2c00001,
    root 0x2b9, subw 0x0, time 91481146, (701,544), root:(705,564),
    state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Hmm, xev only displays the event for T in my case. The Windows key doesn't even show up, and I tried both the left and right key.

Offline

#4 2013-12-15 17:22:04

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [SOLVED] Key bindings with Winkey not working in Openbox

Does anything show up in the output of dmesg after you press the windows key?  (In other words, press the window key, then run dmesg

You are looking for output similar to

[ 5951.627896] atkbd serio0: Use 'setkeycodes e014 <keycode>' to make it known.
[ 5951.639286] atkbd serio0: Unknown key released (translated set 2, code 0x94 on isa0060/serio0).
[ 5951.639291] atkbd serio0: Use 'setkeycodes e014 <keycode>' to make it known.

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2013-12-15 17:31:43

Grima
Member
Registered: 2011-09-02
Posts: 58

Re: [SOLVED] Key bindings with Winkey not working in Openbox

ewaller wrote:

Does anything show up in the output of dmesg after you press the windows key?  (In other words, press the window key, then run dmesg

You are looking for output similar to

[ 5951.627896] atkbd serio0: Use 'setkeycodes e014 <keycode>' to make it known.
[ 5951.639286] atkbd serio0: Unknown key released (translated set 2, code 0x94 on isa0060/serio0).
[ 5951.639291] atkbd serio0: Use 'setkeycodes e014 <keycode>' to make it known.

I just tried it and nothing new is outputted when I press the key.

---

According to this thread, a program might've hijacked the key. Is there any way I can identify such a program?

I don't think that is the issue for me though, since I'm only running Chromium this instant and I don't think that it would hijack the key.

Offline

#6 2013-12-15 18:18:20

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] Key bindings with Winkey not working in Openbox

Did you choose the right keyboard model when calling localectl / setxkbmap? I guess you'll need at least pc104 (for US) or pc105 (for EU keyboard). If you can identify a specifc model use that. Use this list to identify your model:
http://www.freedesktop.org/wiki/Softwar … atibility/


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#7 2013-12-15 18:33:58

Grima
Member
Registered: 2011-09-02
Posts: 58

Re: [SOLVED] Key bindings with Winkey not working in Openbox

progandy wrote:

Did you choose the right keyboard model when calling localectl / setxkbmap? I guess you'll need at least pc104 (for US) or pc105 (for EU keyboard). If you can identify a specifc model use that. Use this list to identify your model:
http://www.freedesktop.org/wiki/Softwar … atibility/

I was using the pc104 layout, but I just switched over to pc105 since I'm European. Sadly, it didn't help.

>> localectl status
   System Locale: LANG=sv_SE.UTF-8
                  LC_MESSAGES=en_US.UTF-8
       VC Keymap: sv-latin1
      X11 Layout: se
       X11 Model: pc105

Offline

#8 2013-12-15 22:53:00

Grima
Member
Registered: 2011-09-02
Posts: 58

Re: [SOLVED] Key bindings with Winkey not working in Openbox

Marking this thread as solved. The problem is the keyboard, I just tried it on another computer and the problem persists.

Offline

Board footer

Powered by FluxBB