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
21.8k stars 906 forks source link

Increase mouse sensitivity even more #2056

Open kooskaspers opened 1 year ago

kooskaspers commented 1 year ago

I'd like to increase the sensitivity of my mouse, which is a Logitech trackball (mx-ergo). I've already set the sensitivity to the maximum value of 1.0:

device:mx-ergo {
    scroll_method=on_button_down
    natural_scroll=1
    sensitivity=1.0
    accel_profile=adaptive
    scroll_method=on_button_down
    scroll_button=273
}

but unfortunately, this is still way to slow to be able to move the mouse across the screen. I'd like to request a feature which makes it possible to increase the speed even more. With sway, this configuration was enough to make it usable:

input "1133:45085:MX_Ergo" {
     scroll_button button3
     scroll_method on_button_down
     middle_emulation true
     natural_scroll true
     pointer_accel 0.8
     scroll_factor 0.7
     accel_profile adaptive
   }
kooskaspers commented 1 year ago

Would it be possible to add another layer between the input device and the compositor to increase the mouse speed?

vaxerski commented 1 year ago

wouldn't make sense, as you'd start skipping pixels. Increase the dpi of your mouse.

kooskaspers commented 1 year ago

Sway seems to handle the mouse input differently, where it does make the mouse move way more sensitive. Is there any way we can make the input of the mouse more sensitive without having to change the dpi of the mouse itself? The DPI of my mouse isn't configurable :(.

vaxerski commented 1 year ago

sway seems to do the same, and read the inputs the same way, unless you set input:force_no_accel to 1 in hl.

kooskaspers commented 1 year ago

I seem to get that. I haven't set force_no_accel to 1, so it should read my settings. If sway would read the inputs the same way, I should be able to copy my configuration from sway and have the same experience with hyperland. The two variables which influence the mouse speed should be:

accel_profile adaptive
pointer_accel 0.8

translating these to hyprland would be:

accel_profile=adaptive
sensitivity=0.8

But that's gives unfortunately still a total different (way slower) experience in mouse sensitivity. Setting the sensitivity to 1.0 is still way to slow. Am I overlooking something?

Would it by any chance possible to support the 'custom' acceleration profile? link This profile accepts 2 variables, comma seperated. See link.

vaxerski commented 1 year ago

Would it by any chance possible to support the 'custom' acceleration profile? link This profile accepts 2 variables, comma seperated. See link.

Yes

vaxerski commented 1 year ago

done in 0859944c9ab7855a68ab9126d0f527f857d9d40d

although doubt custom will help you as it still cant go over 1

kooskaspers commented 1 year ago

Great, thank you @vaxerski for testing this out with me. Just compiled the latest git version and trying out the custom profile. I'm not 100% sure how to pass the 2 variables, since I don't see a new variable being introduced regarding those 2 floats. Is it being read from the accel_profile string?, like:

accel_profile=custom 0 1
vaxerski commented 1 year ago

image

rtfw https://wiki.hyprland.org/Configuring/Variables/#decoration

kooskaspers commented 1 year ago

@vaxerski, I tried multiple settings:

accel_profile=custom -1 0.0 1.0
#sensitivity=1.0

accel_profile=custom -1 1.0 0.0
#sensitivity=1.0

accel_profile=custom 1 0.0 1.0
#sensitivity=1.0

accel_profile=custom 1 1.0 0.0
#sensitivity=1.0

accel_profile=custom -1 0.0 1.0
sensitivity=1.0

accel_profile=custom -1 1.0 0.0
sensitivity=1.0

accel_profile=custom 1 0.0 1.0
sensitivity=1.0

accel_profile=custom 1 1.0 0.0
sensitivity=1.0

but I don't feel any difference at all by making use of the newly introduced custom accel_profile.

Output of devices:

mice:
    Mouse at 3dd73240:
        bcm5974
            default speed: 0.000000
    Mouse at 3dd69d70:
        keyd-virtual-pointer
            default speed: 0.000000
    Mouse at 3ff230c0:
        logitech-mx-ergo-multi-device-trackball-
            default speed: 0.000000

Keyboards:
(skipped)

Tablets:

Touch:

Switches:
    Switch Device at 3daa1240:
        Lid Switch

config:

device:logitech-mx-ergo-multi-device-trackball- {
    #scroll_button=button3
    scroll_method=on_button_down
    #middle_emulation=true
    #pointer_accel=0.8
    #scroll_factor=0.7
    natural_scroll=1
    #sensitivity=1.0
    accel_profile=custom 1 0.0 1.0
    scroll_method=on_button_down
    scroll_button=273
}

I'm on hyprland-git commit r2580.71ef1bde-3 Anything I'm missing?

vaxerski commented 1 year ago

not really, the sensitivity difference makes no sense to me, furthermore it hsould be handled by libinput

kooskaspers commented 1 year ago

I've changed laptops, and I'm facing the same issue nu with a touchpad. It's way to sloo on these high resolutions. Config:

device:bcm5974 {
 tap-to-click=1
 natural_scroll=1
 sensitivity=1.0
 accel_profile=adaptive
}

This is the maximum speed I'm able to configure. Anything left which I can try to make my mouse and touchpad more responsive?