{{tag>howto wayland x11 loginctl}}
====== How to find out if I am using wayland or X11? ======
* https://unix.stackexchange.com/questions/202891/how-to-know-whether-wayland-or-x11-is-being-used
Find out the session ID
loginctl
SESSION UID USER SEAT TTY
4 1000 seat0
1 sessions listed.
Session ID seems to be "4" in my case.
Display the the type of session
loginctl show-session -p Type
Type=x11
Handy oneliner:
loginctl show-session $(loginctl | awk '/'"$USER"'/{print $1}') -p Type
----
~~DISCUSSION~~