hyprcursor: clarify hotspot

This commit is contained in:
Vaxry 2024-12-21 22:23:21 +00:00
parent 38106e0b93
commit d214cedff4

View file

@ -66,16 +66,18 @@ Available properties are:
| name | description | type | exclusive\* | | name | description | type | exclusive\* |
| -- | -- | -- | -- | | -- | -- | -- | -- |
| resize_algorithm | which resize algorithm to use for this shape. | bilinear, nearest, none | yes | | resize_algorithm | which resize algorithm to use for this shape. | bilinear, nearest, none | yes |
| hotspot_x | the absolute x coordinate of the hotspot, from top left. | float, 0.0 - 1.0 | yes | | hotspot_x\*\* | the absolute x coordinate of the hotspot. | float, 0.0 - 1.0 | yes |
| hotspot_y | the absolute y coordinate of the hotspot, from top left. | float, 0.0 - 1.0 | yes | | hotspot_y\*\* | the absolute y coordinate of the hotspot. | float, 0.0 - 1.0 | yes |
| nominal_size | the percentage that this size is compared to the selected theme size. E.g. 0.5 in a theme of 32x will result in 64x for this shape. | float, 0.1 - 2.0 | yes | | nominal_size | the percentage that this size is compared to the selected theme size. E.g. 0.5 in a theme of 32x will result in 64x for this shape. | float, 0.1 - 2.0 | yes |
| define_override\*\* | defines an override this shape should take. E.g. define_override = arrow will make this shape also be responsible for a shape called "arrow" | string | no | | define_override\*\*\* | defines an override this shape should take. E.g. define_override = arrow will make this shape also be responsible for a shape called "arrow" | string | no |
| define_size\*\* | defines a size variant. See size variants for more | size variant | no | | define_size\*\*\* | defines a size variant. See size variants for more | size variant | no |
\* exclusive means that only one is allowed. \* exclusive means that only one is allowed.
\*\* These support smashing multiple statements into one with `;`, e.g. `define_override = arrow;pointer;default`. \*\* Hotspot is calculated from the top-left, and is a fraction of the total resulting pixel size of the shape.
\*\*\* These support smashing multiple statements into one with `;`, e.g. `define_override = arrow;pointer;default`.
As with the manifest, for toml, append `[General]` at the top. As with the manifest, for toml, append `[General]` at the top.