hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.08k stars 794 forks source link

Add support for libinput scroll button lock #2432

Open cbzeller opened 1 year ago

cbzeller commented 1 year ago

This is similar to scroll_method = on_button_down, except that it does not require that the button be held down. Instead the button acts as a lock; press the button to turn scrolling on, press it again to return to normal mouse movement.

This would be a significant accessibility improvement.

https://wayland.freedesktop.org/libinput/doc/latest/scrolling.html#on-button-scrolling

baudneo commented 3 months ago

Is there anyway to implement this via libinput? I just started using hyperland coming from awesome and used x11 libinput .conf files to accomplish button remaps and scroll lock.

I can't find any advice on how to accomplish this.