[UPDATE][I3] Use Vim movement keys

Use Vim movements instead of i3's defaults in every mapping currently
deployed (i.e: focus, resize, move).
This commit is contained in:
Bruno BELANYI 2019-07-23 23:11:19 +02:00
parent dbaefbf33b
commit 61f4569c72

View file

@ -41,10 +41,10 @@ bindsym $mod+Shift+d exec dmenu_run
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+m focus right
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
@ -53,15 +53,15 @@ bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left 10 px
bindsym $mod+Shift+k move down 10 px
bindsym $mod+Shift+l move up 10 px
bindsym $mod+Shift+m move right 10 px
bindsym $mod+Shift+h move left 10 px
bindsym $mod+Shift+j move down 10 px
bindsym $mod+Shift+k move up 10 px
bindsym $mod+Shift+l move right 10 px
# Use shift+ctrl to move by 50 px
bindsym $mod+Control+Shift+j move left 50 px
bindsym $mod+Control+Shift+k move down 50 px
bindsym $mod+Control+Shift+l move up 50 px
bindsym $mod+Control+Shift+m move right 50 px
bindsym $mod+Control+Shift+h move left 50 px
bindsym $mod+Control+Shift+j move down 50 px
bindsym $mod+Control+Shift+k move up 50 px
bindsym $mod+Control+Shift+l move right 50 px
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left 10 px
@ -154,22 +154,22 @@ mode "resize" {
# Using ctrl will resize by 50 px or ppt
# Using shift will resize by 100 px or ppt
# Using shift+ctrl will resize by 250 px or ppt
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 m resize grow width 10 px or 10 ppt
bindsym Control+j resize shrink width 50 px or 50 ppt
bindsym Control+k resize grow height 50 px or 50 ppt
bindsym Control+l resize shrink height 50 px or 50 ppt
bindsym Control+m resize grow width 50 px or 50 ppt
bindsym Shift+j resize shrink width 100 px or 100 ppt
bindsym Shift+k resize grow height 100 px or 100 ppt
bindsym Shift+l resize shrink height 100 px or 100 ppt
bindsym Shift+m resize grow width 100 px or 100 ppt
bindsym Control+Shift+j resize shrink width 250 px or 250 ppt
bindsym Control+Shift+k resize grow height 250 px or 250 ppt
bindsym Control+Shift+l resize shrink height 250 px or 250 ppt
bindsym Control+Shift+m resize grow width 250 px or 250 ppt
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
bindsym Control+h resize shrink width 50 px or 50 ppt
bindsym Control+j resize grow height 50 px or 50 ppt
bindsym Control+k resize shrink height 50 px or 50 ppt
bindsym Control+l resize grow width 50 px or 50 ppt
bindsym Shift+h resize shrink width 100 px or 100 ppt
bindsym Shift+j resize grow height 100 px or 100 ppt
bindsym Shift+k resize shrink height 100 px or 100 ppt
bindsym Shift+l resize grow width 100 px or 100 ppt
bindsym Control+Shift+h resize shrink width 250 px or 250 ppt
bindsym Control+Shift+j resize grow height 250 px or 250 ppt
bindsym Control+Shift+k resize shrink height 250 px or 250 ppt
bindsym Control+Shift+l resize grow width 250 px or 250 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt