DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

greetd: Show active keyboard layout

Open neoscaler opened this issue 2 months ago • 4 comments

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

neoscaler avatar Nov 09 '25 08:11 neoscaler

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.

bbedward avatar Nov 09 '25 14:11 bbedward

Oh, really it should show this already? Never saw keyboard language in my greeter. I am running niri with two languages configured.

neoscaler avatar Nov 09 '25 15:11 neoscaler

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.

bbedward avatar Nov 09 '25 17:11 bbedward

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.

neoscaler avatar Nov 12 '25 19:11 neoscaler