mirror of
https://github.com/kittywitch/konawall-py.git
synced 2026-02-09 04:19:19 -08:00
feat: hyprland
This commit is contained in:
parent
a461bf400f
commit
7bc4a2c918
4 changed files with 29 additions and 6 deletions
|
|
@ -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!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue