The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

Binding mouse buttons

asked Sep 19 '12

b_garcia gravatar image

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.

Comments

I also want this..

diablo465 gravatar imagediablo465 (Oct 24 '13)edit

3 answers

Sort by » oldest newest most voted
0

answered Sep 19 '12

Michael gravatar image

updated Oct 11 '15

This is not possible yet, the relevant feature request ticket is at https://github.com/i3/i3/issues/558

0

answered Aug 14 '13

tab3 gravatar image

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)

Comments

Works like a charm. Thanks!!!

dang2327 gravatar imagedang2327 (Apr 17 '14)edit
0

answered Aug 21 '13

scotths gravatar image

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.

Question Tools

Stats

Asked: Sep 19 '12

Seen: 1,724 times

Last updated: Oct 11