Want to use Wayland with SDDM instead of X11? Want to use niri as the Wayland Compositor? You are in the right place!
To use niri as your wayland compositor, and ditch X11, do this:
- Create
/etc/sddm.conf.d/wayland.conf
[General]
DisplayServer=wayland
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell
[Wayland]
CompositorCommand=niri- Add a barebones niri config at
/var/lib/sddm/.config/niri/config.kdl
hotkey-overlay {
skip-at-startup
}- Restart sddm
sudo systemctl restart sddmDone!
I was just looking for this. Thanks! I commented out the layer-shell bit, because it doesn't seem to do anything?