To install Niri (the configuration tool for Sway, a tiling Wayland compositor) on Debian Linux without compiling from source, follow these steps. This method uses official Debian repositories for simplicity and reliability:
Step 1: Update Your System
First, ensure your package list and system are up-to-date:
bash
sudo apt update && sudo apt upgrade -y
Step 2: Install Sway and Niri
Install the Sway package, which includes Niri as part of its dependencies:
bash
sudo apt install sway -y
Step 3: (Optional) Install a Display Manager
If you want a graphical login screen (e.g., LightDM or SDDM), install a display manager:
Follow the prompts to configure the display manager and select it as the default.
Step 4: Start Sway/Niri
Option 1: Start from the Command Line
Switch to a virtual terminal (e.g., Ctrl+Alt+F2), log in, and run:
bash
sway
Option 2: Use a Display Manager
After installing a display manager, reboot your system. At the login screen, select Sway as your session (if available in the session list). If not, you may need to create a .desktop file for Sway:
Create a file at /usr/share/xsessions/sway.desktop (as root):