From e5f10022e7e0732b810ee9e666beb91ed2ddb624 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 28 Aug 2011 17:51:37 +0200 Subject: [PATCH] docs/userguide: properly document the resize command --- docs/userguide | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/userguide b/docs/userguide index 6971c9ed..dbb6efa3 100644 --- a/docs/userguide +++ b/docs/userguide @@ -828,7 +828,20 @@ will order them numerically. === Resizing containers/windows If you want to resize containers/windows using your keyboard, you can use the -+resize+ command, I recommend using it inside a so called +mode+: ++resize+ command: + +*Syntax*: +--------------------------------------------------------- +resize [ px] [or ppt] +--------------------------------------------------------- + +Direction can be one of +up+, +down+, +left+ or +right+. The optional pixel +argument specifies by how many pixels a *floating container* should be grown or +shrinked (the default is 10 pixels). The ppt argument means percentage points +and specifies by how many percentage points a *tiling container* should be +grown or shrinked (the default is 10 percentage points). + +I recommend using the resize command inside a so called +mode+: .Example: Configuration file, defining a mode for resizing ---------------------------------------------------------------------- @@ -851,7 +864,9 @@ mode "resize" { bindsym semicolon resize grow right bindsym Shift+semicolon resize shrink right - bindcode 36 mode default + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" } # Enter resize mode -- 2.39.5