Xorg or Wayland? Confirm Your Session Using XorWayland

Xorg or Wayland? Confirm Your Session Using XorWayland
Written by Martins D. Okoi

Wayland has been the default session choice for the Gnome Shell ever since the release of Fedora GNU/Linux last year November, and it has been working great so far.

In fact, the Gnome shell seems to even work better with Wayland than Xorg – but every now and then I come across an app or two that will run only on a Xorg session e.g. TeamViewer and Brightness Controller.

So I’ve decided to introduce to you a nifty tool that’ll save you the stress of wondering whether you’re running Xorg or Wayland – it is XorWayland.

XorWayland is a simple GNOME Shell extension that displays an X or W icon in the system tray depending on whether you’re running a Xorg or Wayland session.

Check out how it looks like below:

Wayland Session on XorWayland

Wayland Session

Xorg Session on XorWayland

Xorg Session

The best way to install it at the moment is to get it directly from git via the terminal, which is quite an easy and straight-forward process. Just open a new terminal window and enter the following:

$ git clone
$ cd gnome-shell-extension-xorwayland
$ mkdir -p ~/.local/share/gnome-shell/extensions
$ cp -r [email protected] ~/.local/share/gnome-shell/extensions/

If you are running Xorg restart GNOME Shell using (Alt+F2, type r, Enter) and enable the extension via Gnome Tweak Tool.

If Wayland is what you’re running, log out, re-login (because Wayland doesn’t support Gnome Shell restart yet), and then enable the extension via Gnome Tweak Tool.

  Split Your GNOME Shell Menu with "Extend Panel Menu GNOME"

According to the developer (who doesn’t quite like JavaScript), this project is his first GNOME Shell extension and so it might be on the buggy side. Feel free to make suggestions and pull requests on its GitHub page.

Thanks to Federico Pedemonte for developing this nifty utility tool; You can find his original blog post here.

And thanks to Rick McNamara for pointing out the importance of a tool like this in the comments section of our post on Brightness controller.

We look forward to hearing from you on how you check your Linux session type and don’t forget to share this method with friends and colleagues.

Your Unwavering Support Matters a Lot:

The cost of maintenance is skyrocketing as more readers are coming on board and the ad service that we employ in order to generate revenue is unfortunately no longer sufficient and this is especially due to the increased use of ad-blockers.

We humbly request that you consider disabling your ad-blockers to support us financially or by donating as anything from $1. Your donation(s) will go a long way in supporting FossMint and sister site, TecMint, in running efficiently. Thank you.

Make a Contribution via PayPal

Top Deals

About the author

Martins D. Okoi

Martins Divine Okoi is a graduate of Computer Science with a passion for Linux and the Open Source community. He works as a Graphic Designer, Web Developer, and programmer.