7 lines
250 B
Python
7 lines
250 B
Python
from monitorcontrol import get_monitors, InputSource
|
|
|
|
for monitor in get_monitors():
|
|
with monitor:
|
|
print(monitor.vcp.description)
|
|
input_source_raw: int = monitor.get_input_source()
|
|
print(InputSource(input_source_raw).name) |