diff --git a/config b/config index 96633d0..d91a285 100644 --- a/config +++ b/config @@ -29,7 +29,7 @@ bindsym Mod4+Backspace scratchpad show bindsym Mod4+Down focus down bindsym Mod4+Left focus left bindsym Mod4+Print exec shutter -s -bindsym Mod4+Return exec i3-sensible-terminal +bindsym Mod4+Return exec alacritty bindsym Mod4+Right focus right bindsym Mod4+Shift+1 move container to workspace 1 bindsym Mod4+Shift+2 move container to workspace 2 @@ -85,14 +85,22 @@ bindsym Mod4+n exec --no-startup-id ~/.config/i3/scripts/i3-empty-workspace.sh bindsym Mod4+Shift+n exec --no-startup-id ~/.config/i3/scripts/i3-move-to-empty-workspace.sh bindsym Mod4+Control+Shift+n exec --no-startup-id ~/.config/i3/scripts/i3-move-to-empty-workspace.sh switch -mode "resize" { -bindsym Down resize grow height 10 px or 10 ppt -bindsym Escape mode default -bindsym Left resize shrink width 10 px or 10 ppt -bindsym Return mode default -bindsym Right resize grow width 10 px or 10 ppt -bindsym Up resize shrink height 10 px or 10 ppt -} +# Resizing windows in i3 using keyboard only +# https://unix.stackexchange.com/q/255344/150597 + +# Resizing by 1 +bindsym Mod4+Ctrl+Right resize shrink width 1 px or 1 ppt +bindsym Mod4+Ctrl+Up resize grow height 1 px or 1 ppt +bindsym Mod4+Ctrl+Down resize shrink height 1 px or 1 ppt +bindsym Mod4+Ctrl+Left resize grow width 1 px or 1 ppt + +# Resizing by 10 +bindsym Mod4+Ctrl+Shift+Right resize shrink width 10 px or 10 ppt +bindsym Mod4+Ctrl+Shift+Up resize grow height 10 px or 10 ppt +bindsym Mod4+Ctrl+Shift+Down resize shrink height 10 px or 10 ppt +bindsym Mod4+Ctrl+Shift+Left resize grow width 10 px or 10 ppt + + bar {