On Void Linux, Wayland itself is just a display protocol — you don’t “run” Wayland directly. Instead, you install a Wayland compositor (like sway, labwc, or wayfire) that provides the Wayland display server functionality.
Here’s a clean step-by-step to get Wayland working on Void Linux.
1. Update your system#
sudo xbps-install -Syu2. Install required Wayland packages#
These are the general Wayland libraries and tools:
sudo xbps-install -S wayland wayland-protocols wlroots seatd xorg-server-xwaylandwayland– core Wayland librarieswayland-protocols– extra protocol extensionswlroots– backend library for many compositorsseatd– seat management daemon (needed for input devices)xorg-server-xwayland– XWayland support for running X11 apps under Wayland
3. Pick and install a Wayland compositor#
For example, Sway (a tiling WM like i3 but for Wayland):
sudo xbps-install -S swayOther options:
sudo xbps-install -S labwc # lightweight Openbox-style compositor
sudo xbps-install -S wayfire # 3D compositor like Compiz4. Enable seatd for input device access#
sudo ln -s /etc/sv/seatd /var/service/
sudo usermod -aG video,input yourusernameLog out and back in so your group changes take effect.
5. Start your Wayland session#
From a TTY (not inside X11), log in and run:
swayIf you’re using labwc or wayfire, replace sway with the compositor name.
6. (Optional) Set up a display manager with Wayland#
If you want graphical login:
- greetd (lightweight Wayland login manager)
sudo xbps-install -S greetd greetd-gtkgreet
sudo ln -s /etc/sv/greetd /var/service/Edit /etc/greetd/config.toml to run your compositor after login.
7. (Optional) Wayland utilities#
sudo xbps-install -S wofi grim slurp wl-clipboardwofi– application launchergrim+slurp– screenshotswl-clipboard– clipboard tools for Wayland
