# __ __ _ _
# \ \ / /_ _ _ _| | __ _ _ __ __| |
# \ \ /\ / / _` | | | | |/ _` | '_ \ / _` |
# \ V V / (_| | |_| | | (_| | | | | (_| |
# \_/\_/ \__,_|\__, |_|\__,_|_| |_|\__,_|
# |___/
#
For some reason or another, I always associate Wayland with some slick haired country music singer that smells of wiskey, cigarettes, and cologne. Not dissing it, just saying…
Well, that is a good question. Supposedly it is the long awaited successor to the X windows system. So, it replaces X, not compliments it. In the X windows system, X acts as a server that controls the display functions of the system, and serves those capabilities to the client, which in most cases is the desktop environment. On wayland, the server-client model is eliminated, and desktops environments directly control all display capabilities. You would naturally assume, wayland to have a smaller footprint and possess a lighter load on the system running it, but you would be wrong. Due to it’s mature codebase and refinements over the years, X possesses the lighter footprint and significantly lighter load.
Although, not necessarily a fun job to perform, it is very doable. Programs that are X specific will need to be replaced with a Wayland equivolant. This means your Desktop Environment manager, terminal, and your vnc server, if you have one, will all need to be replaced with their wayland counterpart. Before you do, you need to have settled on which wayland implementation you plan on using. This is to to ensure uniformity and avoid conflicts in design. Once done, you will need to setup the desktop environment manager to start on system start, this in turn is what will start wayland for you after logging in.
The most crucial part is to ensure you have Xwayland installed and started by you wayland implementation after login. The Xwayland program provides the necessary libraries and support to allow you to run programs designed to run on X to be run on wayland. So, to put it simply, Xwayland acts as an adapter for your X programs.
Removing wayland is no biggie either, just install the necessary programs you desire, disable the wayland desktop environment manager from starting on system start, and instead enable xserver to run on startup. This should put you back on X.
Most of the references used for our local implementation of wayland and sway came from the archlinux wiki.