mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-14 17:25:59 +01:00
Variables: add scroll_points
This commit is contained in:
parent
13e19e2ccb
commit
b518dbe9b6
1 changed files with 16 additions and 3 deletions
|
@ -167,9 +167,10 @@ _[More about Animations](../Animations)._
|
|||
| repeat_rate | The repeat rate for held-down keys, in repeats per second. | int | 25 |
|
||||
| repeat_delay | Delay before a held-down key is repeated, in milliseconds. | int | 600 |
|
||||
| sensitivity | Sets the mouse input sensitivity. Value will be clamped to the range -1.0 to 1.0. [libinput#pointer-acceleration](https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html#pointer-acceleration) | float | 0.0 |
|
||||
| accel_profile | Sets the cursor acceleration profile. Can be one of `adaptive`, `flat`. Can also be `custom`, see below. Leave empty to use `libinput`'s default mode for your input device. [libinput#pointer-acceleration](https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html#pointer-acceleration) | str | \[\[Empty\]\]
|
||||
| accel_profile | Sets the cursor acceleration profile. Can be one of `adaptive`, `flat`. Can also be `custom`, see [below](#custom-accel-profiles). Leave empty to use `libinput`'s default mode for your input device. [libinput#pointer-acceleration](https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html#pointer-acceleration) | str | \[\[Empty\]\]
|
||||
| force_no_accel | Force no cursor acceleration. This bypasses most of your pointer settings to get as raw of a signal as possible. **Enabling this is not recommended due to potential cursor desynchronization.** | bool | false |
|
||||
| left_handed | Switches RMB and LMB | bool | false |
|
||||
| scroll_points | Sets the scroll acceleration profile, when `accel_profile` is set to `custom`. Has to be in the form `<step> <points>`. Leave empty to have a flat scroll curve. | str | \[\[Empty\]\]
|
||||
| scroll_method | Sets the scroll method. Can be one of `2fg` (2 fingers), `edge`, `on_button_down`, `no_scroll`. [libinput#scrolling](https://wayland.freedesktop.org/libinput/doc/latest/scrolling.html) | str | \[\[Empty\]\]
|
||||
| scroll_button | Sets the scroll button. Has to be an int, cannot be a string. Check `wev` if you have any doubts regarding the ID. 0 means default. | int | 0 |
|
||||
| scroll_button_lock | If the scroll button lock is enabled, the button does not need to be held down. Pressing and releasing the button once enables the button lock, the button is now considered logically held down. Pressing and releasing the button a second time logically releases the button. While the button is logically held down, motion events are converted to scroll events. | bool | 0 |
|
||||
|
@ -198,14 +199,26 @@ For switchable keyboard configurations, take a look at [the uncommon tips & tric
|
|||
|
||||
## Custom accel profiles
|
||||
|
||||
`custom [step] [points...]`
|
||||
### `accel_profile`
|
||||
|
||||
`custom <step> <points...>`
|
||||
|
||||
for example `custom 200 0.0 0.5`
|
||||
|
||||
### `scroll_points`
|
||||
|
||||
NOTE: Only works when `accel_profile` is set to `custom`.
|
||||
|
||||
`<step> <points...>`
|
||||
|
||||
For example `0.2 0.0 0.5 1 1.2 1.5`
|
||||
|
||||
To mimic the Windows acceleration curves, take a look at [this script](https://gist.github.com/fufexan/de2099bc3086f3a6c83d61fc1fcc06c9).
|
||||
|
||||
See [the libinput doc](https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html) for more insights on
|
||||
how it works.
|
||||
|
||||
{{< /hint >}}
|
||||
{{< /hint >}}
|
||||
|
||||
|
||||
### Touchpad
|
||||
|
|
Loading…
Reference in a new issue