The greeter's niri session triggered D-Bus activation of xdg-desktop-portal-gtk, which failed 17x on every boot because WAYLAND_DISPLAY is not set in the greeter's D-Bus scope. Setting GTK_USE_PORTAL=0 prevents GTK from requesting portal services the greeter does not need.
66 lines
1.1 KiB
Plaintext
66 lines
1.1 KiB
Plaintext
// ABOUTME: Niri configuration for the Moongreet login greeter.
|
|
// ABOUTME: Started by greetd — minimal config without keybinds for security.
|
|
|
|
input {
|
|
keyboard {
|
|
xkb {
|
|
layout "de"
|
|
}
|
|
numlock
|
|
}
|
|
|
|
touchpad {
|
|
tap
|
|
natural-scroll
|
|
}
|
|
|
|
mouse {
|
|
accel-profile "flat"
|
|
}
|
|
}
|
|
|
|
cursor {
|
|
xcursor-theme "Sweet-cursors"
|
|
}
|
|
|
|
layout {
|
|
gaps 0
|
|
|
|
focus-ring {
|
|
off
|
|
}
|
|
|
|
border {
|
|
off
|
|
}
|
|
}
|
|
|
|
// Greeter needs no portal services — prevent GTK from triggering
|
|
// xdg-desktop-portal activation (which fails without a proper display).
|
|
environment {
|
|
"GTK_USE_PORTAL" "0"
|
|
}
|
|
|
|
// Start moongreet and quit niri once moongreet exits.
|
|
// Retry loop ensures niri shuts down even on early moongreet crashes.
|
|
spawn-sh-at-startup "moongreet; while ! niri msg action quit --skip-confirmation 2>/dev/null; do sleep 0.5; done"
|
|
|
|
// Maximize greeter window
|
|
window-rule {
|
|
open-maximized true
|
|
}
|
|
|
|
hotkey-overlay {
|
|
skip-at-startup
|
|
}
|
|
|
|
prefer-no-csd
|
|
|
|
animations {
|
|
off
|
|
}
|
|
|
|
binds {
|
|
// No keybinds — prevents access to terminals or other actions
|
|
}
|