The OS index is not reliable or consistent (for example, simply unplugging and replugging monitors while the OS is running may cause the indexes to swap around). There are possibly reasons to keep index aliases as a feature (eg, supposedly monitors from the same make/brand sometimes have the same serial as well) but it is not ideal on its own, and should be avoided otherwise.
Serial and model are for sure useful attributes to check for and allow tying to aliases. There might be others, should investigate.
Ultimately, this should support tying aliases to multiple monitors, if the attribute(s) selected can apply to multiple monitors, eg, of a particular model.
The OS index is not reliable or consistent (for example, simply unplugging and replugging monitors while the OS is running may cause the indexes to swap around). There are possibly reasons to keep index aliases as a feature (eg, supposedly monitors from the same make/brand sometimes have the same serial as well) but it is not ideal on its own, and should be avoided otherwise.
Serial and model are for sure useful attributes to check for and allow tying to aliases. There might be others, should investigate.
Ultimately, this should support tying aliases to multiple monitors, if the attribute(s) selected can apply to multiple monitors, eg, of a particular model.