Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touchpad: Add manual button remapping #8596

Open
mvlassis opened this issue Nov 27, 2024 · 4 comments
Open

Touchpad: Add manual button remapping #8596

mvlassis opened this issue Nov 27, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@mvlassis
Copy link

Description

A useful enhancement might be to add the option to configure the button remapping on the touchpad. This allows us to change what action is executed for each button. For reference, on X11 uses the ButtonMapping option.

As an example, on X11 I have this configuration option to assign the left and middle parts of the touchpad to left click, while leaving the right part to right click:

Option "ButtonMapping" "1 1 3 4 5 6 7"

Note that this is different from simply disabling middle click using the already present configuration option middle_button_emulation in Hyprland, since that assigns the whole right half of the touchpad for right clicks instead, which I find unwieldy.

Thanks everyone who works on Hyprland!

@mvlassis mvlassis added the enhancement New feature or request label Nov 27, 2024
@fufexan
Copy link
Member

fufexan commented Nov 27, 2024

The only similar thing I could find in libinput's docs is tap_button_map, which we already implement. Though it can only have two possible values, lmr and lrm. You can also control whether to use clickfinger (1, 2, or 3 taps) or button areas (non-configurable, from what I gather).

@mvlassis
Copy link
Author

So this seems to be limitation of Wayland's libinput, that is unfortunate. Well, in case this is at some point provided by libinput, maybe it could be taken into consideration to add it to Hyprland

Thanks!

@fufexan
Copy link
Member

fufexan commented Nov 28, 2024

xinput also uses libinput, so in theory this should be achievable. But I haven't found anything related to it.
Libinput doesn't have xorg/wayland-specific implementations.

@vaxerski
Copy link
Member

we can still do it in hyprland

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants