Files
sunshine-snake-glue/pkg/wayland_display_manager/structs.py
T
2026-08-15 16:46:58 +12:00

21 lines
368 B
Python

from dataclasses import dataclass
@dataclass
class Modeline:
width: int
height: int
refresh_rate: float
def __str__(self):
return f"{self.width}x{self.height}@{self.refresh_rate:.3f}"
def __repr__(self):
return self.__str__()
@dataclass
class MonitorInfo:
connector: str
primary: bool
modes: list[Modeline]