Ubuntu - X - Check if Xorg or Wayland

Run the following:

ps aux | grep -i xorg

and

ps aux | grep -i wayland

To see which you are running.