[ADD][I3] More resize and move mappings

I use shift and ctrl keys to modify the amount of pixels to resize/move
containers in i3.
This commit is contained in:
Bruno BELANYI 2019-07-21 16:18:26 +02:00
parent 49d5849ec4
commit 2bda68b126

View file

@ -53,16 +53,26 @@ bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+m move right
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
# 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
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+Shift+Left move left 10 px
bindsym $mod+Shift+Down move down 10 px
bindsym $mod+Shift+Up move up 10 px
bindsym $mod+Shift+Right move right 10 px
# Use shift+ctrl to move by 50 px
bindsym $mod+Control+Shift+Left move left 50 px
bindsym $mod+Control+Shift+Down move down 50 px
bindsym $mod+Control+Shift+Up move up 50 px
bindsym $mod+Control+Shift+Right move right 50 px
# split in horizontal orientation
bindsym $mod+h split h
@ -140,16 +150,44 @@ mode "resize" {
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
# Not holding modifiers will resize by 10 px or ppt
# 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
# 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
bindsym Control+Left resize shrink width 50 px or 50 ppt
bindsym Control+Down resize grow height 50 px or 50 ppt
bindsym Control+Up resize shrink height 50 px or 50 ppt
bindsym Control+Right resize grow width 50 px or 50 ppt
bindsym Shift+Left resize shrink width 100 px or 100 ppt
bindsym Shift+Down resize grow height 100 px or 100 ppt
bindsym Shift+Up resize shrink height 100 px or 100 ppt
bindsym Shift+Right resize grow width 100 px or 100 ppt
bindsym Control+Shift+Left resize shrink width 250 px or 250 ppt
bindsym Control+Shift+Down resize grow height 250 px or 250 ppt
bindsym Control+Shift+Up resize shrink height 250 px or 250 ppt
bindsym Control+Shift+Right resize grow width 250 px or 250 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"