Resizing windows

Ok, that might be a total i3wm noob question but I installed i3 and using it for the last couple of weeks. I noticed that I cannot resize my windows anymore using my keybindings. Do I just need to uncomment this section in the config file?

# resize window (you can also use the mouse for that):
#mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
#        bindsym j resize shrink width 10 px or 10 ppt
#        bindsym k resize grow height 10 px or 10 ppt
#        bindsym l resize shrink height 10 px or 10 ppt
#        bindsym ntilde resize grow width 10 px or 10 ppt

# same bindings, but for the arrow keys
#       bindsym Left resize shrink width 10 px or 10 ppt
#        bindsym Down resize grow height 10 px or 10 ppt
#        bindsym Up resize shrink height 10 px or 10 ppt
#        bindsym Right resize grow width 10 px or 10 ppt

# back to normal: Enter or Escape
#       bindsym Return mode "default"
#        bindsym Escape mode "default"
#}

#bindsym $mod+r mode "resize"

Just wondering, why window resizing has been deactivated from the default i3wm config, just curious, I recall last Fall we still had it activated.

1 Like

It might be that it conflicts with something…i3 will show an error if it does. But yes uncomment it to use it.

1 Like

As far as i remember i3-gaps have this in per default by pressing modkey and use the right mouse key to grap and size?

4 Likes

I think they might be talking about how the old config let you resize with the keyboard which was removed from the latest config.

3 Likes

:+1:

1 Like

If it has indeed been removed then I vote for bringing it back. It’s very convenient to resize windows without requiring to use your mouse. I know that user can uncomment the relevant lines but such a functionality should be in the default config as per me.

1 Like

hi all i am new in this forum…
i use this
bindsym $mod1+Up resize shrink height 10 px or 5 ppt
bindsym $mod1+Down resize grow height 10 px or 5 ppt
bindsym $mod1+Left resize shrink width 10 px or 5 ppt
bindsym $mod1+Right resize grow width 10 px or 5 ppt

4 Likes

Thanks for contributing and welcome to the community!

2 Likes

Thanks

2 Likes

change gaps with
bindsym $mod+plus gaps inner current plus 5
bindsym $mod+minus gaps inner current minus 5

1 Like

Finally got to change my config file, and to me the following was a bit more intuitive when pressing arrow keys:

# resize window (you can also use the mouse for that):
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
#        bindsym j resize shrink width 10 px or 10 ppt
#        bindsym k resize grow height 10 px or 10 ppt
#        bindsym l resize shrink height 10 px or 10 ppt
#        bindsym ntilde resize grow width 10 px or 10 ppt

# same bindings, but for the arrow keys
        bindsym Right resize shrink width 10 px or 10 ppt
        bindsym Up resize grow height 10 px or 10 ppt
        bindsym Down resize shrink height 10 px or 10 ppt
        bindsym Left resize grow width 10 px or 10 ppt

# back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}

1 Like