changed resize keybinds

This commit is contained in:
Tiago Sousa 2023-11-06 11:32:16 +00:00
parent 1b94f147e5
commit 321bf2110e

View file

@ -10,6 +10,7 @@
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod1
set $mod2 Mod4
set $browser firefox
set $terminal alacritty
@ -181,30 +182,34 @@ bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
# 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 windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l 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 or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
bindsym $mod2+Shift+h resize shrink width 10 px or 10 ppt
bindsym $mod2+Shift+j resize grow height 10 px or 10 ppt
bindsym $mod2+Shift+k resize shrink height 10 px or 10 ppt
bindsym $mod2+Shift+l resize grow width 10 px or 10 ppt
#mode "resize" {
# # These bindings trigger as soon as you enter the resize mode
#
# # Pressing left will shrink the windows width.
# # Pressing right will grow the windows width.
# # Pressing up will shrink the windows height.
# # Pressing down will grow the windows height.
# bindsym h resize shrink width 10 px or 10 ppt
# bindsym j resize grow height 10 px or 10 ppt
# bindsym k resize shrink height 10 px or 10 ppt
# bindsym l 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 or $mod+r
# bindsym Return mode "default"
# bindsym Escape mode "default"
# bindsym $mod+r mode "default"
#}
#bindsym $mod+r mode "resize"
# window settings
gaps inner 5