Keyboard layout switching in niri does nothing

Figured it out. User error.

  1. The default Romanian keyboard layout is ro(std) not ro. The former is equivalent to us except it has Romanian characters on dead keys. That made it feel like nothing was changing.
  2. It is enough to modify ~/.config/niri/config.kdl. services.xserver.xkb is NOT needed when using niri 25.05.1.
  3. There’s a recent commit in niri which allows it to read xkb settings. Future releases might allow us to configure keyboard layout from either location. Right now follow, the niri docs are correct (provided I’m not dumb enough to use the wrong keyboard).
1 Like