Skip to content

Commit

Permalink
respect reserved area in center/centerwindow (#290)
Browse files Browse the repository at this point in the history
* reserved area and center/centerwindow
modified:   Dispatchers.md
modified:   Window-Rules.md

* fix syntax
	modified:   pages/Configuring/Window-Rules.md
  • Loading branch information
MightyPlaza authored Aug 11, 2023
1 parent 6a9b56b commit ec19bdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/Configuring/Dispatchers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)$` |
Expand Down
2 changes: 1 addition & 1 deletion pages/Configuring/Window-Rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. | |
Expand Down

0 comments on commit ec19bdc

Please sign in to comment.