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

proposal; preset mute represents current status #470

Open
xerc opened this issue Jun 3, 2024 · 0 comments
Open

proposal; preset mute represents current status #470

xerc opened this issue Jun 3, 2024 · 0 comments

Comments

@xerc
Copy link
Contributor

xerc commented Jun 3, 2024

sound OFF show touchBarAudioOutputVolumeHighTemplateName
sound ON show touchBarAudioOutputMuteTemplateName

"mute": { _ in
let imageParameter = GeneralParameter.image(source: NSImage(named: NSImage.touchBarAudioOutputMuteTemplateName)!)
return (
item: .staticButton(title: ""),
actions: [
Action(trigger: .singleTap, value: .hidKey(keycode: NX_KEYTYPE_MUTE))
],
legacyAction: .none,
legacyLongAction: .none,
parameters: [.image: imageParameter]
)
},

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

1 participant