diff --git a/symlinks/config/sway/conf.d/70_resizing b/symlinks/config/sway/conf.d/70_resizing index ad88a26..b7df720 100644 --- a/symlinks/config/sway/conf.d/70_resizing +++ b/symlinks/config/sway/conf.d/70_resizing @@ -1,40 +1,43 @@ # resize window (you can also use the mouse for that) -mode "resize" { +set $mode_resize "Resize mode (p to enter precise mode, Enter or ESC to exit)" +set $mode_resize_precise "Precise resize mode (p to enter regular resize mode, Enter or ESC to exit)" + +mode $mode_resize { # resize with 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 Down resize shrink height 10 px or 10 ppt + bindsym Up resize grow height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt # resize with vim 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 $down resize shrink height 10 px or 10 ppt + bindsym $up resize grow height 10 px or 10 ppt bindsym $right resize grow width 10 px or 10 ppt # press p to enter precise resize mode - bindsym p mode "resize_precise" + bindsym p mode $mode_resize_precise # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } -mode "resize_precise" { +mode $mode_resize_precise { # resize with arrow keys bindsym Left resize shrink width 1 px or 1 ppt - bindsym Down resize grow height 1 px or 1 ppt - bindsym Up resize shrink height 1 px or 1 ppt + bindsym Down resize shrink height 1 px or 1 ppt + bindsym Up resize grow height 1 px or 1 ppt bindsym Right resize grow width 1 px or 1 ppt # resize with vim keys bindsym $left resize shrink width 1 px or 1 ppt - bindsym $down resize grow height 1 px or 1 ppt - bindsym $up resize shrink height 1 px or 1 ppt + bindsym $down resize shrink height 1 px or 1 ppt + bindsym $up resize grow height 1 px or 1 ppt bindsym $right resize grow width 1 px or 1 ppt # go back to normal resize mode with p - bindsym p mode "resize" + bindsym p mode $mode_resize # back to normal with Enter or Escape bindsym Return mode "default" @@ -42,4 +45,4 @@ mode "resize_precise" { } # enter resize mode with r -bindsym $mod+r mode "resize" +bindsym $mod+r mode $mode_resize diff --git a/symlinks/tool-versions b/symlinks/tool-versions index d171741..7e48900 100644 --- a/symlinks/tool-versions +++ b/symlinks/tool-versions @@ -2,7 +2,7 @@ direnv 2.32.1 nodejs 18.1.0 python system ruby 3.0.0 -neovim 0.9.2 +neovim 0.9.4 java openjdk-17.0.2 rust stable golang 1.19.1