waydabber / BetterDisplay

Unlock your displays on your Mac! Flexible HiDPI scaling, XDR/HDR extra brightness, virtual screens, DDC control, extra dimming, PIP/streaming, EDID override and lots more!
https://betterdisplay.pro
19.39k stars 342 forks source link

Feature: cycle through display inputs with DDC #1523

Open muttonator opened 1 year ago

muttonator commented 1 year ago

Hello, just installed this app on my M2 mac mini pro and it works like a charm. Really appreciate the ability to use DDC input source control via menu. However, there's a feature that could make it more ergonomic to switch between input sources.

I'm eager to have keyboard shortcuts (or trackpad gestures) map onto BetterDisplay's toggle display input. Currently BetterDisplay supports keyboard shortcuts to switch to specific input sources for each display, with a separate shortcut for each operation. Only up to 5 shortcuts are allowed, so far as I can see. This is an issue for me with 2 monitors x 3 computers.

Beyond adding more shortcuts, would it be possible to add an option to cycle through input sources instead? Instead of toggling to a specific input, the DDC command would simply go to the next input source in order (i.e., TB1 > DP1 > HDMI1 > TB1 > ...). By default the cycle index could consist of all the input sources that aren't selected as hidden in the input source settings (i.e., the inputs that the user has identified as functional).

This way only one hotkey or gesture would be needed to control the input source for each monitor, no matter how many inputs there are.

For comparison, Dell Display Manager (DDM)—which doesn't seem to support DDC control on this M2—has this functionality. DDM 2 had it so that the monitor cursor location determined which display would be subject to DDC input switching.

Thanks

waydabber commented 1 year ago

It can be done, added as an enhancement for a future version. Btw - there is a problem with the keyboard shortcuts is that it doesn't work on lock screen which typically happens when the user switches away to a different input. As you seem to be an active user of the feature, did you bump into this issue?

muttonator commented 1 year ago

Thanks for your speedy reply.

Regarding the problem you mentioned: The main situation where I encounter the mac lock screen is when I'm switching to the idle mac from a Windows PC running DDM, so I hadn't noticed it until now.

I just tested it and yes, the keyboard shortcuts don't work from the mac side when at the lock screen.

Edit: For what it's worth, DDM has the same constraint with the Windows lock screen. I think the lockscreen is meant to block macros in general.