Собственно, сабж: https://gitlab.freedesktop.org/xorg/app/xisxwayland .
Утилита используется для проверки используются ли иксы или xwayland.
Пример использования:
if xisxwayland; then
   echo "yay, xwayland"
fi
"Exit status:\n"
"  0 ... the X server is Xwayland\n"
"  1 ... the X server is not Xwayland\n"
"  2 ... invalid usage\n"
"  3 ... failed to connect to the X server\n");










