Skip to content

Support querying systemd-localed for keyboard layout #496

@phkaeser

Description

@phkaeser

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions