Fix explanation of geometry in configuration
This commit is contained in:
parent
0a27685938
commit
30275007cb
1 changed files with 18 additions and 6 deletions
|
@ -30,8 +30,11 @@ Let's look at an example window definition:
|
||||||
```lisp
|
```lisp
|
||||||
(defwindow example
|
(defwindow example
|
||||||
:monitor 0
|
:monitor 0
|
||||||
:geometry (geometry :x 0 :y 0 :width "90%" :height "30px")
|
:geometry (geometry :x "0%"
|
||||||
:anchor "top center"
|
:y "20px"
|
||||||
|
:width "90%"
|
||||||
|
:height "30px"
|
||||||
|
:anchor "top center")
|
||||||
:stacking "fg"
|
:stacking "fg"
|
||||||
:reserve (struts :distance "40px" :side "top")
|
:reserve (struts :distance "40px" :side "top")
|
||||||
:windowtype "dock"
|
:windowtype "dock"
|
||||||
|
@ -43,13 +46,22 @@ Here, we are defining a window named `example`, which we then set a set of prope
|
||||||
|
|
||||||
You can now open your first window by running `eww open example`! Glorious!
|
You can now open your first window by running `eww open example`! Glorious!
|
||||||
|
|
||||||
### `defwindow`-Properties
|
### `defwindow`-properties
|
||||||
|
|
||||||
| Property | Description |
|
| Property | Description |
|
||||||
| ---------: | ------------------------------------------------------------ |
|
| ---------: | ------------------------------------------------------------ |
|
||||||
| `monitor` | which monitor this window should be displayed on |
|
| `monitor` | which monitor this window should be displayed on. |
|
||||||
| `geometry` | Position and size of the window. Values may be provided in `px` or relative to the screen size. |
|
| `geometry` | Geometry of the window. |
|
||||||
| `anchor` | What side of the screen the window should be anchored to. Either `center` or combinations of `top`, `center`, `bottom` and `left`, `center`, `right` |
|
|
||||||
|
|
||||||
|
**Geometry-properties**
|
||||||
|
|
||||||
|
| Property | Description |
|
||||||
|
| -----------------:| ------------------------------------------------------------ |
|
||||||
|
| `x`, `y` | Position of the window. Values may be provided in `px` or `%`. Will be relative to `anchor` |
|
||||||
|
| `width`, `height` | Width and height of the window. Values may be provided in `px` or `%`. |
|
||||||
|
| `anchor` | Anchor-point of the window. Either `center` or combinations of `top`, `center`, `bottom` and `left`, `center`, `right` |
|
||||||
|
|
||||||
|
|
||||||
Depending on if you are using X11 or wayland, some additional properties exist:
|
Depending on if you are using X11 or wayland, some additional properties exist:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue