Skip to content

No way to choose the layout of a hardware keyboard; it is always US #289

Backlog

Description

@jannyg

Disclaimer: This is not my primary field. The report was drafted with an AI assistant (Claude) and checked only on my own device, an iPad Air 2 Cellular (j82), with a Norwegian Apple Magic Keyboard.

What happens

A Bluetooth keyboard always types with the US layout. On a Norwegian keyboard, Shift+, gives < instead of ;, and æ ø å and the Mac placement of @, | and the like don't work. I found no way in Settings or the menu to choose a layout.

Why

Upstream Omarchy sets the layout through Hyprland's kb_layout (omarchy-setup-keyboard, the input settings), which labwc doesn't read. labwc takes the layout from the XKB variables in ~/.config/labwc/environment, which the image doesn't set, so xkbcommon falls back to us.

Workaround

# ~/.config/labwc/environment
XKB_DEFAULT_LAYOUT=no
XKB_DEFAULT_VARIANT=mac

then pkill -HUP -x labwc (labwc re-reads it on reconfigure; no restart needed). Checked on the tablet: ;, æ ø å and @ type as printed in Ghostty and Firefox, and the Command shortcuts from #284 still work.

Possible fix

A layout choice in Omarchy A that writes XKB_DEFAULT_LAYOUT / XKB_DEFAULT_VARIANT (and optionally XKB_DEFAULT_OPTIONS) to ~/.config/labwc/environment and reconfigures labwc, for example:

  • Settings → Keyboard: a hardware keyboard layout list (plus a Mac variant toggle for Apple keyboards), and/or
  • an omarchy-keyboard-layout <layout> [variant] command, usable from the menu's Setup.

The on-screen keyboard (wvkbd) has its own layouts and isn't affected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions