set $mode_resize "Resize" mode --pango_markup $mode_resize { $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 # 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 # back to normal: Enter or Escape $bindsym Return mode "default" $bindsym Escape mode "default" } $bindsym $mod+r mode $mode_resize