default config: add resize mode

This commit is contained in:
Michael Stapelberg 2011-07-11 17:11:13 +02:00
parent fa0c8e4140
commit 675785005d

View File

@ -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"