As observed in #495 , not all distros have a /etc/default/keyboard configuration file to read.
Accoding to Gemini lore, the recommended modern way of retrieving the system's global keyboard configuration is from systemd-localed, through the D-Bus interface.
busctl get-property org.freedesktop.locale1 /org/freedesktop/locale1 org.freedesktop.locale1 X11Layout
And retrieve X11Layout as well as the other parameters:
X11Model
X11Layout
X11Variant
X11Options
Request: Add D-Bus client for querying these values.
As observed in #495 , not all distros have a
/etc/default/keyboardconfiguration file to read.Accoding to Gemini lore, the recommended modern way of retrieving the system's global keyboard configuration is from
systemd-localed, through the D-Bus interface.And retrieve
X11Layoutas well as the other parameters:X11ModelX11LayoutX11VariantX11OptionsRequest: Add D-Bus client for querying these values.