feat: full implementation - switcher, device watcher, hotkeys, tray, settings UI

This commit is contained in:
Miłosz Matysiak
2026-04-09 10:09:01 +02:00
parent 40d1c23051
commit 83293c8a91
13 changed files with 1162 additions and 0 deletions

22
detect_vcp.py Normal file
View File

@@ -0,0 +1,22 @@
"""
Helper script — uruchom raz aby sprawdzic aktualne wartosci VCP wejscia monitorow.
Wyniki wpisz do config/config.json -> profiles -> monitor_inputs -> vcp_value
"""
from monitorcontrol import get_monitors
VCP_INPUT_SOURCE = 0x60
print("Skanowanie monitorow (VCP code 0x60 - Input Source)...")
for i, handle in enumerate(get_monitors()):
with handle as monitor:
try:
current = monitor.get_vcp_feature(VCP_INPUT_SOURCE)
print(f" Monitor {i}: VCP input = {current.value} (0x{current.value:02X})")
except Exception as e:
print(f" Monitor {i}: blad odczytu - {e}")
print()
print("Typowe wartosci:")
print(" 0x0F (15) = DisplayPort-1")
print(" 0x10 (16) = DisplayPort-2")
print(" 0x11 (17) = HDMI-1")
print(" 0x12 (18) = HDMI-2")