Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Great and useful post, thank you! I'm using fedora 18, and I'm having problems setting a mouse button to do any xte or xdotool command. When I use xev to see what the mouse button triggers I get this:

FocusOut event, serial 31, synthetic NO, window 0x2200001, mode NotifyGrab, detail NotifyAncestor

FocusOut event, serial 31, synthetic NO, window 0x2200001, mode NotifyUngrab, detail NotifyPointer

FocusIn event, serial 31, synthetic NO, window 0x2200001, mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 31, synthetic NO, window 0x0, keys: 4294967199 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

KeyPress event, serial 31, synthetic NO, window 0x2200001, root 0x9f, subw 0x0, time 573916, (45,4), root:(46,95), state 0x50, keycode 40 (keysym 0x64, d), same_screen YES, XLookupString gives 1 bytes: (64) "d" XmbLookupString gives 1 bytes: (64) "d" XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x2200001, root 0x9f, subw 0x0, time 573950, (45,4), root:(46,95), state 0x50, keycode 40 (keysym 0x64, d), same_screen YES, XLookupString gives 1 bytes: (64) "d" XFilterEvent returns: False

KeyRelease event, serial 31, synthetic NO, window 0x2200001, root 0x9f, subw 0x0, time 573982, (45,4), root:(46,95), state 0x50, keycode 133 (keysym 0xffeb, Super_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False

As for this, I get a combination like Mod2+Mod4+ d for the mouse button press. But when I put this in to the .xbindkeysrc like for example:

#Mozilla

"firefox"

 m:0x50 + c:40 

 Mod2+Mod4+d

It doesn't work with the mouse button and I just keep getting a "d" everytime I press the button. Nevertheless if I press the keyboard key Super_R + d it does open firefox. But if I press the key Super_L + d it doesn't. I managed to notice that pressing Super_L + d + d (pressing d repeteadly twice) opens firefox.

Somehow this mouse button is linked to my Super_L physical key. when I press Super_L by itself, it show's the activities overview (the same as alt+F1 in the keyboard shortcuts, or going with the mouse pointer to the upper left corner activities menu). I did try the keyboard layout distribution map, to see which keys highlight when I press one on my physical keyboard. I noticed that when I press the right Super key, control, alt, etc, the appropriate key highlights on the map. Nonetheless when I press the left Super key it doesn’t highlight any keys on the layout map.

I do have xmodmap but haven't done anything strange with it. This is the output I get when running xmodmap and seems to be fine.

xmodmap: up to 4 keys per modifier, (keycodes in parentheses):

shift Shift_L (0×32), Shift_R (0x3e)

lock Caps_Lock (0×42)

control Control_L (0×25), Control_R (0×69)

mod1 Alt_L (0×40), Alt_R (0x6c), Meta_L (0xcd)

mod2 Num_Lock (0x4d)

mod3

mod4 Super_L (0×85), Super_R (0×86), Super_L (0xce), Hyper_L (0xcf)

mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)

If you could help me with this, it would be great. Thanks in advance for your help.