Keybinds to adjust OLED settings, preserving battery?

Is there a way to set keybinds to adjust the brightness of the OLED panel on the UHK 80? I want to use it wirelessly, but am concerned about battery. If I disable the OLED entirely, I can’t see charge levels, connection state, etc. But if I leave it on, according to the product page, I’m draining the battery more quickly than I may want. Being able to toggle between on/off would be nice.

You can use macros to enable/disable all lights at once (key backlight and OLED display), but I don’t think they’ve implemented the ability to toggle them independently for some reason. Kind of weird, since you can adjust their brightness and timeouts separately🤷🏻‍♂️.

Here’s a macro to toggle all the lighting ON/OFF:

if ($leds.enabled == 1) {
    set leds.enabled 0
}
else {
    set leds.enabled 1
}

If enabling/disabling all the lights together isn’t sufficient for you, here’s a possible workaround-

In the following macro, holding shift while tapping/holding the key will decrease the brightness, and it will increase the brightness if used without shift:

ifNotShift autoRepeat set leds.brightness ($leds.brightness * 1.1)
ifShift autoRepeat set leds.brightness ($leds.brightness / 1.1)

The above macro affects ALL lighting simultaneously, but if the OLED display brightness is set to a lower value than the key backlights, then the OLED screen will turn off before the key backlights do when decreasing their brightness.

So for example, in Agent’s “LED settings” options, you can set the “Key backlight brightness” to 50 or whatever, and then the “LED display brightness” to something very low, like 1 or 2. Then with only a tap or two, you can use the above macro as a sort of toggle.

You could also just set a very short timeout to help save battery when you stop typing.

2 Likes

Oh, neat, thanks. I somehow missed the memo on macros and didn’t realize they could do more than script individual keypresses. Your workaround is clever, I’ll I should be able to get something working.

1 Like

@kareltucek’s smart macros are pretty amazing and super flexible! I highly suggest doing a deep dive into the Reference manual and experimenting. The UHKs are very capable boards!

:smiling_face_with_sunglasses:

1 Like