fix(de): niri — disable greetd so ly is the sole greeter

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MUhrcFU8J1Hnf7vNqNxZNi
feat/astal-menu
Amir Alexander Abdelbaki 2026-07-02 13:15:12 +02:00
parent baf5e73cc1
commit dac9060516
1 changed files with 6 additions and 7 deletions

View File

@ -33,6 +33,11 @@ sudo pacman -Syu --noconfirm --needed \
log "Enabling essential services..." log "Enabling essential services..."
enable_service NetworkManager.service enable_service NetworkManager.service
sudo systemctl disable getty@tty1.service || true 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 ly@tty1.service
enable_service udisks2.service enable_service udisks2.service
@ -118,13 +123,7 @@ cp -f ~/Dotfiles/desktopenvs/niri/vicinae/cyberqueer.toml \
cp ~/Dotfiles/colors.conf ~/.config/colors.conf cp ~/Dotfiles/colors.conf ~/.config/colors.conf
# 10. greetd — deploy niri session config # 10. Wallpaper and resources
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
log "Copying wallpaper and resources..." log "Copying wallpaper and resources..."
mkdir -p ~/Pictures ~/Pictures/Screenshots mkdir -p ~/Pictures ~/Pictures/Screenshots
cp ~/Dotfiles/resources/fflogo.svg ~/Pictures/fflogo.svg cp ~/Dotfiles/resources/fflogo.svg ~/Pictures/fflogo.svg