how to check wayland or xorg code example Example: how to check if am using wayland echo $XDG_SESSION_TYPE