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

Some actions not updated in System Preferences #2436

Open
2 tasks
pedrorrivero opened this issue Aug 22, 2020 · 4 comments
Open
2 tasks

Some actions not updated in System Preferences #2436

pedrorrivero opened this issue Aug 22, 2020 · 4 comments

Comments

@pedrorrivero
Copy link

pedrorrivero commented Aug 22, 2020

Some actions performed through the API do take effect but never get reflected on either System Preferences, or the scroll bar on a MacBook with touchbar. I have found these ones so far:

  • hs.brightness.set()
  • hs.audiodevice:setMuted()

Furthermore, some states such as the input muted state get overwritten when an app is launched (e.g. Facetime).

@pedrorrivero pedrorrivero changed the title Brightness level not updated in System Preferences when calling hs.brightness.set() Some actions not updated in System Preferences Aug 22, 2020
@latenitefilms
Copy link
Contributor

I got around this by using hs.eventtap.event.newSystemKeyEvent() instead for volume/brightness up/down.

@pedrorrivero
Copy link
Author

Thank you @latenitefilms! Does it work for every keyboard layout though? Also, Volume seems to work just fine with the regular API call.

@latenitefilms
Copy link
Contributor

latenitefilms commented Aug 22, 2020

Yes, I believe so. It definitely works on my MacBook Pro (15-inch, 2017), which doesn't have a dedicated volume/brightness button, and also still works if I connect an external keyboard.

@von
Copy link
Contributor

von commented Sep 4, 2020

Possibly related: one thing I ran into setting screen saver options and having them reflected in the Preferences panel was the need to killall cfprefsd per https://superuser.com/a/914884

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

No branches or pull requests

3 participants