Binding mouse buttons
What's the best way to react to mouse events? I'd like to be able to $mod + middle click to close a window for example.
What's the best way to react to mouse events? I'd like to be able to $mod + middle click to close a window for example.
This is not possible yet, the relevant feature request ticket is at https://github.com/i3/i3/issues/558
Some workaround I use. I have mouse with additional buttons, so I've found out with xev the button code (6). And changed ~/.xbindkeysrc to:
"xdotool key alt+F4"
b:6
 (alt+F4 is my combination to close window)
You could also consider a program such as easy stroke. You can map various mouse gestures including combinations of buttons with or without pauses to any key combination. I've used it for years with openbox to essentially move windows into various tiling manager type arrangements. Experimenting now with it in combination with i3.
Asked: 2012-09-19 20:14:22 +0000
Seen: 1,724 times
Last updated: Oct 11
 
                
                Copyright i3, 2012 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
            
I also want this..