determine wayland x11 1

determine wayland x11

loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}'

Here is what the above code is Doing:
1. Get the current session ID
2. Get the session type
3. Print the session type

Similar Posts