From 2bda68b126093be6cc68351ac374f09e95c36d1f Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 21 Jul 2019 16:18:26 +0200 Subject: [PATCH] [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. --- i3/.config/i3/config | 54 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 46 insertions(+), 8 deletions(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index e829a8a..855bfb5 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -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 window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s 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"