Question : linux check if x11
Answered by : witty-whale-5qdq2rbs0ue6
echo $XDG_SESSION_TYPE
Source : | Last Update : Mon, 02 Nov 20
Question : linux check if using wayland or 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