Running the shell
Autostart by your Wayland compositor
Section titled “Autostart by your Wayland compositor”This is the recommended method for launching noctalia-shell, as it integrates with your window manager.
For the Niri compositor, add the following line to the end of your configuration file, typically located at ~/.config/niri/config.kdl
spawn-at-startup "qs -c noctalia-shell"
For the Hyprland compositor, append this line to your configuration file, typically located at ~/.config/hypr/hyprland.conf
exec-once = qs -c noctalia-shell
Running as a Systemd Service (Advanced)
Section titled “Running as a Systemd Service (Advanced)”For more robust process management, you can configure Noctalia to run as a systemd user service. This approach provides automatic restarts on failure and centralizes logging with journalctl
.
1. Create the service file
Section titled “1. Create the service file”First, create a new service definition file at ~/.config/systemd/user/noctalia.service
with the following content:
[Unit]Description=Noctalia Shell ServicePartOf=graphical-session.targetAfter=graphical-session.target
[Service]ExecStart=qs -c noctalia-shellRestart=on-failureRestartSec=1
[Install]WantedBy=graphical-session.target
2. Enable and Start the Service
Section titled “2. Enable and Start the Service”Next, enable the service to have it start automatically with your graphical session.
If you use a compositor like Niri, it’s best to tie Noctalia directly to it. This ensures they start and stop together.
# Example for Niri userssystemctl --user add-wants niri.service noctalia.service
Alternatively, you can enable it more generally with:
systemctl --user enable --now noctalia.service
Manual Launch for Debugging
Section titled “Manual Launch for Debugging”The most direct way to run Noctalia for testing or debugging is to invoke it through Quickshell. Open a terminal and execute:
qs -c noctalia-shell