19 lines
436 B
Python
19 lines
436 B
Python
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
|