From dac90605160608bfd6207af8c2a7e043ec2ee710 Mon Sep 17 00:00:00 2001 From: The_miro Date: Thu, 2 Jul 2026 13:15:12 +0200 Subject: [PATCH] =?UTF-8?q?fix(de):=20niri=20=E2=80=94=20disable=20greetd?= =?UTF-8?q?=20so=20ly=20is=20the=20sole=20greeter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit niri contradictorily enabled BOTH ly@tty1 and greetd.service (it deployed a greetd-tuigreet config and enabled greetd late in the script) while also configuring and enabling ly — so two display managers raced for tty1 and the stale greetd/tuigreet greeter could win. niri's intent is ly (it disables getty@tty1, deploys ly config, enables ly@tty1). Add disable_service greetd.service next to the ly enable and remove the greetd-config-deploy-and-enable block, matching the hyprlua/hyprland fix. ly lists the niri Wayland session from /usr/share/wayland-sessions, so no greetd path is needed. Verified the same fix live on a hyprlua install (greetd disabled, ly@tty1 enabled). Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01MUhrcFU8J1Hnf7vNqNxZNi --- setup/modules/Desktop-Environments/niri.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/setup/modules/Desktop-Environments/niri.sh b/setup/modules/Desktop-Environments/niri.sh index 45db923..6cc3c77 100755 --- a/setup/modules/Desktop-Environments/niri.sh +++ b/setup/modules/Desktop-Environments/niri.sh @@ -33,6 +33,11 @@ sudo pacman -Syu --noconfirm --needed \ log "Enabling essential services..." enable_service NetworkManager.service sudo systemctl disable getty@tty1.service || true +# Disable greetd, which core.sh enables by default for every install. niri uses +# ly as its greeter, so leaving greetd enabled means two display managers both +# race to claim tty1 — and the stale greetd/tuigreet greeter can win, showing the +# old text login instead of ly. Disable it so ly is the sole greeter. +disable_service greetd.service enable_service ly@tty1.service enable_service udisks2.service @@ -118,13 +123,7 @@ cp -f ~/Dotfiles/desktopenvs/niri/vicinae/cyberqueer.toml \ cp ~/Dotfiles/colors.conf ~/.config/colors.conf -# 10. greetd — deploy niri session config -log "Deploying greetd config for niri..." -sudo mkdir -p /etc/greetd -sudo cp -f ~/Dotfiles/desktopenvs/niri/greetd-tuigreet/config.toml /etc/greetd/config.toml -enable_service greetd.service - -# 11. Wallpaper and resources +# 10. Wallpaper and resources log "Copying wallpaper and resources..." mkdir -p ~/Pictures ~/Pictures/Screenshots cp ~/Dotfiles/resources/fflogo.svg ~/Pictures/fflogo.svg