From ec19bdcb030f0efeb20523d4e7cb971acc180c50 Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Fri, 11 Aug 2023 14:53:58 +0000 Subject: [PATCH] respect reserved area in center/centerwindow (#290) * reserved area and center/centerwindow modified: Dispatchers.md modified: Window-Rules.md * fix syntax modified: pages/Configuring/Window-Rules.md --- pages/Configuring/Dispatchers.md | 2 +- pages/Configuring/Window-Rules.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/Configuring/Dispatchers.md b/pages/Configuring/Dispatchers.md index 93dd71f3..0998ee51 100644 --- a/pages/Configuring/Dispatchers.md +++ b/pages/Configuring/Dispatchers.md @@ -37,7 +37,7 @@ layout pages (See the sidebar). | movefocus | moves the focus in a direction | direction | | movewindow | moves the active window in a direction or to a monitor | direction or `mon:` and a monitor | | swapwindow | swaps the active window with another window in the given direction | direction | -| centerwindow | center the active window *note: floating only* | none | +| centerwindow | center the active window *note: floating only* | none (for monitor center) or 1 (to respect monitor reserved area) | | resizeactive | resizes the active window | resizeparams | | moveactive | moves the active window | resizeparams | | resizewindowpixel | resizes a selected window | `resizeparams,window`, e.g. `100 100,^(kitty)$` | diff --git a/pages/Configuring/Window-Rules.md b/pages/Configuring/Window-Rules.md index aee770a7..5abfe8eb 100644 --- a/pages/Configuring/Window-Rules.md +++ b/pages/Configuring/Window-Rules.md @@ -86,7 +86,7 @@ you can use `hyprctl clients`. | size \[x\] \[y\] | resizes a floating window (x,y -> int or %, e.g. 20% or 100) | | | minsize \[x\] \[y\] | sets the minimum size on creation (x,y -> int) | | | maxsize \[x\] \[y\] | sets the maximum size on creation (x,y -> int) | | -| center | if the window is floating, will center it on the monitor | | +| center (\[opt\]) | if the window is floating, will center it on the monitor. Set opt as 1 to respect monitor reserved area | | | pseudo | pseudotiles a window | | | monitor \[id\] | sets the monitor on which a window should open. `id` can be either id or name (either e.g. `1` or e.g. `DP-1`) | | | workspace \[w\] | sets the workspace on which a window should open (for workspace syntax, see [dispatchers->workspaces](../Dispatchers#workspaces)). You can also make \[w\] to `unset`, will unset all previous workspace rules applied to this window. You can also add `silent` after the workspace to make the window open silently. | |