eztore.blogg.se

Github hammerspoon
Github hammerspoon











github hammerspoon

If currentDDCVolume VOLUME_MAX then currentDDCVolume =VOLUME_MAX end "/YamahaExtendedControl/v1/main/setVolume?volume= ". Local avVolume = math.floor((currentAVVolume /VOLUME_MAX) *AV_MAX_VOLUME * 2) "/YamahaExtendedControl/v1/main/setInput?input= ". "/YamahaExtendedControl/v1/main/setPower?power=on ", "GET ") If currentAVVolume VOLUME_MAX then currentAVVolume =VOLUME_MAX end VOLUME_MAX = VOLUME_SEGMENTS * VOLUME_INCREMENTīRIGHTNESS_INCREMENT = BRIGHTNESS_INCREMENT_MINOR * 4īRIGHTNESS_MAX = BRIGHTNESS_SEGMENTS * BRIGHTNESS_INCREMENTĬurrentBrightness = BRIGHTNESS_INCREMENT * 12 VOLUME_INCREMENT = VOLUME_INCREMENT_MINOR * 4 Leave empty to disable!ĭDC_OS_AUDIO_DEVICE_NAME = "LG Ultra HD " - OS X audio device name to control via DDCĪV_ADDRESS = "192.168.1.31 " - IP address of the Yamaha AVĪV_INPUT_NAME = "audio1 " - Desired autio inputĪV_POWER_INPUT_MANAGEMENT = true - Set to false to turn off AV power and input controlĪV_MAX_VOLUME = 60 - Limit Max AV volume (AV should be in to Scale mode, not dB mode)ĭISPLAY_MAX_DDC_BRIGHTNESS = 100 - DDC limit (check with 'm1ddc max brightness') - usually 100ĭISPLAY_MAX_DDC_CONTRAST = 100 - DDC limit (check with 'm1ddc max contrast') - usually 100ĭISPLAY_MAX_DDC_VOLUME = 100 - DDC limit (check with 'm1ddc max volume') - usually 100ĭISPLAY_OPTIMAL_CONTRAST = 70 - Calibrated limit via the Display's own OSD that still does not distort image - usually 70-80ĭISPLAY_MINIMAL_CONTRAST = 40 - Calibrated limit via the Display's own OSD that still makes sense - usually 20-30 M1DDC_LOCATION = "/usr/local/bin/m1ddc " - Get from ĪV_OS_AUDIO_DEVICE_NAME = "USB Audio Device " - OS X audio device name to control via network.

github hammerspoon

SHOWOSD_LOCATION = "/usr/local/bin/showosd " - Get from Select 'Reload Config' in Hammerspoon's menu Modify the Settings below to fit your configuration Select 'Open Config' in Hammerspoon's menu and copy the contents of this script into a Get m1ddc from and put it into /usr/local/bin Get showosd from and put it into /usr/local/bin This script requires the waydabber's showosd to display the MacOS OSD! Press SHIFT+Mute to put the AV to StandBy Using the Volume and Mute keys turns on the AV and sets correct input as well.

github hammerspoon

You can use Shift+Option+Volume Up/Down for fine control! Use the Brightness Up/Down to control brightness! Use the Volume Up/Down and Mute keys to control the volume! 5) Display the standard MacOS OSD as expected 4) Use the standard brightness and volume keys of an Apple keyboards 3) Control Digital AV Volume via Network (currently works with Yamaha AVs) 2) Control External Display Volume via DDC 1) Control External Display Brightness via DDC (utilizing a proper brightness+contrast curve) This Hammerspoon script is intended to do the following:













Github hammerspoon