Question : determine wayland x11
Answered by : guillaume-bouvier
loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}'
Source : https://unix.stackexchange.com/questions/202891/how-to-know-whether-wayland-or-x11-is-being-used | Last Update : Tue, 04 May 21