From 675785005d865283519f54b4488674397874c16c Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 11 Jul 2011 17:11:13 +0200 Subject: [PATCH] default config: add resize mode --- i3.config | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/i3.config b/i3.config index b1a75bb3..e2e5b4b6 100644 --- a/i3.config +++ b/i3.config @@ -98,3 +98,29 @@ bindsym Mod1+Shift+j reload bindsym Mod1+Shift+c restart # exit i3 (logs you out of your X session) bindsym Mod1+Shift+l exit + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # They resize the border in the direction you pressed, e.g. + # when pressing left, the window is resized so that it has + # more space on its left + + bindsym n resize shrink left 10 px or 10 ppt + bindsym Shift+n resize grow left 10 px or 10 ppt + + bindsym r resize shrink down 10 px or 10 ppt + bindsym Shift+r resize grow down 10 px or 10 ppt + + bindsym t resize shrink up 10 px or 10 ppt + bindsym Shift+t resize grow up 10 px or 10 ppt + + bindsym d resize shrink right 10 px or 10 ppt + bindsym Shift+d resize grow right 10 px or 10 ppt + + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym Mod1+r mode "resize" -- 2.39.5