-
Notifications
You must be signed in to change notification settings - Fork 594
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
Applying the hs.mouse.trackingSpeed() setting #3744
Comments
FWIW, when I use Are you using an external mouse or the trackpad? If the trackpad, I'm not sure that the current code can do that -- it doesn't seem to on my M2 MacBook Pro running Sonoma 14.7.1 (suppose I need to upgrade at some point)... I can try and dig a little, but it will probably be this weekend or next week before I can. |
I should add, even with the mouse not attached, the trackpad setting doesn't change, so... assuming it's a limitation of the current code until I can look closer at how it's doing the work... |
Ok, I have identified that the trackpad uses a different property name ( |
Hi @asmagill ,
Easier than logging out and in, I can adjust the mouse tracking speed by moving the slider in the system preferences, but of course, the goal of the function is to immediately set the speed. Looking forward to seeing if you find a solution :-) |
Not having much luck so far, but I haven't given up yet... I'll try and give a more thorough status update in the next couple of days, if only to list things that don't work |
Ok, I've pushed a PR to address this that seems to be working for now -- it uses deprecated functions, so in theory Apple could bork it at any time, but its the only way I've found so far that actually works with Sonoma at least. If you know how to build your own custom version of Hammerspoon, please do so with these changes and let me know if it works with Sequoia. I don't want to push it into master until its been reviewed and tested with the latest OS, so if you aren't sure how (it's in the wiki or issues, I just don't have a link handy atm), then I can try and make a precompiled version available in a day or so. |
Hi @asmagill , I tested your branch and the speed of the mouse is indeed set by the function now. So it works on 15.3.1... but I noticed that now the value of the slider remains static although the speed is changed. So on my side, it is the expected function but the merge to Master might be controversial. In any case, many thanks for your support ! |
I don't have a mouse with me right now (I'm traveling atm), so I can't test that, but I've noticed that if I have the System Panel open to the Trackpad settings when I make the change via Hammerspoon, it doesn't update in the System Panel until I visit another section (say General) and then go back to the Trackpad section -- then it will reflect the new value. Have you tried that? If so, and it's still not updating in the settings, then I'm not sure... I could change the code so that it does both changes (i.e. the previous version of editing the IOKit properties directly and the updated approach of using |
Hi,
I want to set the mouse tracking speed according to my location. I added this script to my init.lua file loaded at start by Hammerspoon:
The value shown of hs.mouse.trackingSpeed() is changed by the location, but it does not affect the real value set in the system preferences. Is there a way to apply the setting ?
Thank you for your support,
Guillaume
MacBook Pro, M1 Pro, 2021, macOS Sequoia 15.2
The text was updated successfully, but these errors were encountered: