bluerabbit4210
August 21st, 2009, 08:21 AM
Hi all, hopefully this is in the right forum.
Simply put: Is there a way to map a mouse button to a modifier key? I've got a thumb button (button 9) on my mousie and I've been trying to map it to Shift_L (or whatever) and am having no luck. I've been able to find very little information on the subject.
So far I've been hammering out different combinations of xbindkeys and xte to a limited effect. xev reports that button 9 is sucessfully remapped as Shift_L (it can be used while typing, but thats not the goal) as long as I don't use any other mouse buttons while its down. basically what im seeing in xev is this:
KeyPress Shift_L (as i press button 9)
...
ButtonPress button 4 (wheel up)
ButtonRelease button 4
...
ButtonRelease button 9 (as i release button 9)
Net result is i'm left with a pseudo-capslock until i send another KeyRelease Shift_L (either keyboard or mapped button 9). again, as long as I avoid other mouse buttons while i'm holding button 9, releasing it sends a KeyRelease Shift_L. I've tried catching release+b:9, shift+release+b:9 and all sorts of other stuff. Is there something I'm not seeing with regards to how x handles simultaneous mouse input? Something else entirely? I'd really like to be able to Shift+MouseWheel without touching the keyboard.
Thanks in advance!
btw, i'm running Mint 5 (hardy)
Simply put: Is there a way to map a mouse button to a modifier key? I've got a thumb button (button 9) on my mousie and I've been trying to map it to Shift_L (or whatever) and am having no luck. I've been able to find very little information on the subject.
So far I've been hammering out different combinations of xbindkeys and xte to a limited effect. xev reports that button 9 is sucessfully remapped as Shift_L (it can be used while typing, but thats not the goal) as long as I don't use any other mouse buttons while its down. basically what im seeing in xev is this:
KeyPress Shift_L (as i press button 9)
...
ButtonPress button 4 (wheel up)
ButtonRelease button 4
...
ButtonRelease button 9 (as i release button 9)
Net result is i'm left with a pseudo-capslock until i send another KeyRelease Shift_L (either keyboard or mapped button 9). again, as long as I avoid other mouse buttons while i'm holding button 9, releasing it sends a KeyRelease Shift_L. I've tried catching release+b:9, shift+release+b:9 and all sorts of other stuff. Is there something I'm not seeing with regards to how x handles simultaneous mouse input? Something else entirely? I'd really like to be able to Shift+MouseWheel without touching the keyboard.
Thanks in advance!
btw, i'm running Mint 5 (hardy)