Create __init__.py

This commit is contained in:
oscarg
2026-08-24 11:25:01 +12:00
parent b3f94ee417
commit ebf18d2ce7
@@ -0,0 +1,18 @@
import os
from ..abstracts import AbstractDisplay
class Display(AbstractDisplay):
def get_modes(self):
pass
def set_mode(self, modeline: str):
pass
@staticmethod
def detect():
desktop = os.environ.get("XDG_CURRENT_DESKTOP", "").lower()
known = {"sway", "cage", "labwc", "wayfire", "hyprland"}
return bool(set(desktop) & known) or "WAYLAND_DISPLAY" in os.environ