Is there a command to get current keyboard layout? setxkbmap-query
that internet suggest is invalid command for me (maybe because I’m on wayland) and I don’t know what package is that.
Reasoning: I want to try conditionally map some keys in niri
depending on keyboard layout. Niri has niri msg --json keyboard-layouts
, but it only return names, and, for some reason, both normal us layout and my custom engram layout are named English (US)
there, so I can’t use that.