Create __init__.py
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user