Skip to content

Instantly share code, notes, and snippets.

@mvollrath
mvollrath / get-edid.py
Last active February 18, 2023 16:49
Write monitor EDID to stdout with xrandr
#!/usr/bin/env python
import re
import subprocess
def get_edid_for_output(connector: str) -> bytes:
xrandr = subprocess.run(
['xrandr', '--props'],
check=True,