feat: hyprland

This commit is contained in:
Kat Inskip 2024-02-17 10:37:03 -08:00
parent a461bf400f
commit 7bc4a2c918
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
4 changed files with 29 additions and 6 deletions

View file

@ -39,7 +39,7 @@ def detect_linux_environment():
elif desktop_session in modified_mapping:
return modified_mapping[desktop_session]
else:
UnsupportedPlatform(f"Desktop session {desktop_session} is not supported, sorry!")
return os.environ.get("XDG_CURRENT_DESKTOP").lower()
def detect_environment():
if sys.platform == "linux":
@ -58,4 +58,4 @@ def set_environment_wallpapers(environment: str, files: list, displays: list):
environment_handlers[f"{environment}_setter"](files, displays)
logging.debug("Wallpapers set!")
else:
UnsupportedPlatform(f"Environment {environment} is not supported, sorry!")
UnsupportedPlatform(f"Environment {environment} is not supported, sorry!")