Closed alimbada closed 10 months ago
I tested this branch and it works well. This is great. Nice work!
Like probably many of you I've been using Proxy Audio Device (a mac app) to handle volume for the LGTV. It works but is pretty clunky and requires constant tinkering. With this PR I can uninstall Proxy.
I have worked out a handful of optimizations which I can post as a follow up PR.
@zakkhoyt, thanks. This is my first time using Hammerspoon and Lua so any improvements are welcome. :)
@cmer Have you had a chance to look over this PR?
I actually never even noticed it was there waiting. I'll take a look.
What are the improvements you'll like to share?
@zakkhoyt What are the improvements you'd like to share?
@alimbada could you change the variable name like so, for consistency? Then I'm ready to merge. Thanks for your awesome contribution!
local control_audio = true -- Control TV volume and mute button events from keyboard
@cmer I'll put up a PR after this one is merged. It contains some efficiency changes (fewer API calls to the TV and some state caching for faster reaction)
IIRC I have a bug to work out first.
@alimbada could you change the variable name like so, for consistency? Then I'm ready to merge. Thanks for your awesome contribution!
local control_audio = true -- Control TV volume and mute button events from keyboard
Done now. :)
Thank you!
Hello,
I've added support to use keyboard volume and mute keys to control the TVs audio.
Features:
Loads the following additional Hammerspoon extensions: