Hello,
I recently installed KaOS for the first time and started using the Niri setup that comes with it. After configuring my system I ran into an issue that I cannot fully understand.
Inside my home directory I have two Niri configuration directories:
~/niri/ and ~/.config/niri/
Both of them contain the following files:
config.kdl
noctalia.kdl
Both directories appear to have been created at the same time during installation.
However, the contents differ slightly:
~/.config/niri/noctalia.kdl contains a small theme-like configuration block.
~/niri/noctalia.kdl contains almost the same content as config.kdl.
This confused me because I was not sure which configuration is actually used by Niri.
The actual problem
I wanted NumLock to stay enabled when the desktop session starts.
According to the Niri documentation I added:
input {
keyboard {
numlock
}
}
When numlock is enabled in the configuration, my session becomes unstable.
Observed behavior:
Login works normally.
The desktop appears briefly.
Then the session crashes and I am returned to the login screen.
After logging in again I often only get a black screen.
The system becomes unresponsive and I sometimes need to power off the PC manually.
When I comment out numlock, the system becomes completely stable again.
What I tested:
I tried multiple combinations:
Editing only ~/.config/niri/config.kdl
Editing only ~/niri/config.kdl
Editing both config files to contain identical content
Editing only noctalia.kdl
Editing both noctalia.kdl files
All combinations where numlock is active eventually lead to crashes or a login loop.
Questions:
Which configuration directory is actually used by the KaOS Niri session?
Is ~/niri/ just an example/preset configuration directory?
Should users only modify ~/.config/niri/?
Could the numlock option be causing a crash in the KaOS Niri setup?
Thank you for any clarification.