this post was submitted on 16 Oct 2024
9 points (100.0% liked)

Linux Gaming

15292 readers
151 users here now

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

Resources

WWW:

Discord:

IRC:

Matrix:

Telegram:

founded 1 year ago
MODERATORS
 

Does anyone know how to set a custom mouse acceleration curve on Sway? man sway-input does mention mouse acceleration but unfortunately it's one of those "you won't learn anything new unless you already knew it before" type of manpage.

I also found this project https://github.com/N-R-K/leetmouse which I will probably use in the end but I would also like to hear if anyone of you has any experience with custom acceleration profile, in case there is a better way or whatever.

Edit: I will use leetmouse (different branch tho), because libinput's acceleration is not very good for gaming (see comments for sources)

https://github.com/systemofapwne/leetmouse

you are viewing a single comment's thread
view the rest of the comments
[–] Chewy7324@discuss.tchncs.de 2 points 1 month ago (1 children)

IIRC the acceleration curves supported by Sway are the same as libinput, at least that's how I understood the poor pieces of Dokumentation I found [1]. I don't think think libinput supports offsets and upper limits, so it's not really useful for gaming.

I'd recommend going with leetmouse, which does work well (altough I don't use it anymore).

leetmouse by systemofapwne is more up to date and includes the PR of N-R-K [2].

[1] https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html#ptraccel-profile-custom

[2] https://github.com/systemofapwne/leetmouse

Ok thanks for the reply. I will try that. I probably should have noticed the "this branch is 7 commits behind" notice lol.