How do I know if im using x11 or wayland?

echo $XDG_SESSION_TYPE
5 Likes