Skip to content

Commit 6577884

Browse files
committed
WMDE: detect Sway by env variables
1 parent c4ee606 commit 6577884

File tree

1 file changed

+3
-0
lines changed
  • src/detection/displayserver/linux

1 file changed

+3
-0
lines changed

src/detection/displayserver/linux/wmde.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ static const char* parseEnv(void)
6262
if(getenv("HYPRLAND_CMD") != NULL)
6363
return "Hyprland";
6464

65+
if(getenv("SWAYSOCK") != NULL)
66+
return "Sway";
67+
6568
#ifdef __linux__
6669
if(
6770
getenv("WAYLAND_DISPLAY") != NULL &&

0 commit comments

Comments
 (0)