i3 - improved tiling WM


default config: add mouse bindings

Patch status: rejected

Patch by Tony Crisci

Long description:

By default, i3 is configured to close a window when the titlebar is
middle clicked (which is well-known behavior from web browsers)

Right click is configured to toggle floating / tiling (this would
normally open a context menu, but i3 will never have these).

To apply this patch, use:
curl http://cr.i3wm.org/patch/594/raw.patch | git am

b/i3.config

18
@@ -37,6 +37,9 @@ bindsym Mod1+Return exec i3-sensible-terminal
19
 # kill focused window
20
 bindsym Mod1+Shift+q kill
21
 
22
+# kill focused window when the titlebar is middle clicked
23
+bindsym button2 kill
24
+
25
 # start dmenu (a program launcher)
26
 bindsym Mod1+d exec dmenu_run
27
 # There also is the (new) i3-dmenu-desktop which only displays applications
28
@@ -85,6 +88,9 @@ bindsym Mod1+e layout toggle split
29
 # toggle tiling / floating
30
 bindsym Mod1+Shift+space floating toggle
31
 
32
+# toggle tiling / floating when the titlebar is right clicked
33
+bindsym button3 floating toggle
34
+
35
 # change focus between tiling / floating windows
36
 bindsym Mod1+space focus mode_toggle
37