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