You are not logged in.
Hi,
I want to behave my middle mouse button to behave like modifier such as ctrl, alt. That is I'd like to hold middle mouse button down, then press some letter, release it, release mouse button => this sequence would fire some script.
In fact since I have thinkpad with trackpoint I'd like to press my middle mouse button and then g to simulate alt-l (use xte here) and middle mouse button + h to simulate h. This could greatly improve navigation with trackpoint.
I know it can be accomplished by analysing and writing subset of xev (http://cgit.freedesktop.org/xorg/app/xev/tree/xev.c) but I'd like to start with something easier if possible.
Offline
The window manager you use should provide a way to set up keyboard shortcuts, not all of them include the mouse buttons though. The middle mouse button is Button2.
You're just jealous because the voices only talk to me.
Offline
I use kde. Unfortunately gestures like: press b:2, press g, release b:2 are not supported. They're not even supported (afaik) by xbindkeys. It's the reason I ask here.
Offline
I've found that xbindkeys has such capabilities (+Release) but mouse wheel emulation (click and hold middle mouse button then move mouse up/down; in fact Trackpoint Wheel Emulation) makes strange things to events emitted by middle mouse button. In particular when I test it using xev only one event is reported there and if I click and hold middle mouse button then it's never reported (even after release)
Offline