Question: how to check if i am running xorg or wayland?
Answer: You could install mesa-utils-extra and run es2gears_wayland If the app runs, you are running Wayland. For a fun way to check whether a specific app is using Wayland or XWayland, run xeyes . The eyes will move if the cursor is over an X or XWayland window. If there is no output, you are not running Wayland.