Il suffit de taper la comande suivante :
loginctl show-session $XDG_SESSION_ID -p Type
ou
echo $XDG_SESSION_TYPE
Tester sous Wayland :
sudo apt install mesa-utils-extra
es2gears_wayland
https://askubuntu.com/questions/904940/how-can-i-tell-if-i-am-running-wayland