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

Allow for numerical input selection instead of by name #4

Open
oliversscripts opened this issue Feb 7, 2022 · 2 comments
Open

Allow for numerical input selection instead of by name #4

oliversscripts opened this issue Feb 7, 2022 · 2 comments

Comments

@oliversscripts
Copy link

One of my monitors (Gigabyte M32U) does not provide the correct list of inputs to select from - It has a Type C, DisplayPort and two HDMI inputs but displays VGA, DVI, DisplayPort & HDMI as possible options in the picklist. I have the same issue with ControlMyMonitor but am able to pass the numerical input value (i.e. 15, 16, 17 & 18) instead which works for all four inputs on the monitor.

Would it be possible to override the input selection with a numerical value instead?

@fiddyschmitt
Copy link
Owner

fiddyschmitt commented Feb 22, 2025

Hi Oliver,

I suggest you create the rule, close the app, then edit rules.json to adjust the SourceId. That will let you switch to the desired source.

Cheers,
Fidel

@fiddyschmitt
Copy link
Owner

If you'd like to 'rename' certain sources, for example you'd like:

  • 'VGA' to be displayed as 'USB-C'
  • 'DVI' to be displayed as 'HDMI'

Create a file called config.json and populate it like this:

{
  "Overrides": {
    "MonitorOverrides": [
      {
        "Model": "Blah",
        "SourceDisplayNames": [
          {
            "SourceId": 1,
            "NewDisplayName": "USB-C"
          },
          {
            "SourceId": 3,
            "NewDisplayName": "HDMI"
          }
        ]
      }
    ]
  }
}

The SourceId comes from here.

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

2 participants