greetd: Show active keyboard layout
Feature Description
The greetd-dms greeter should show a widget like in the dankbar which indicates the current active keyboard layout.
Use Case
Entering a password with unknown active keyboard layout can lead to wrong input.
Compositor
Is this feature specific to one compositor?
- [x] All compositors
- [ ] niri
- [ ] Hyprland
- [ ] dwl (MangoWC)
- [ ] sway
Proposed Solution
Perhaps the default language widget from dankbar can be reused?
Alternatives/Existing Solutions
n/a
It should be doing that, afaik. But it is compositor specific so it'd be helpful to know which compositor you're running the greeter as.
Oh, really it should show this already? Never saw keyboard language in my greeter. I am running niri with two languages configured.
You may have to configure niri for the greeter itself: https://danklinux.com/docs/dankgreeter/configuration#niri to have the layouts.
This is one of the things that should have been kept universal in wayland like X11 was IMO, keeping keyboard layouts fully generic and universal so they didnt have to eb configured in compositors.
Seems like support for keyboard mapping is dropped in GTK 4.2 and going into the direction you mentioned, so compositors are using only generic layouts and the rest is done by i.e. fcitx5.
At least I had to install and configure fcitx5 to get special keys working in ghostty.