Skip to content

Conversation

@iansw246
Copy link
Contributor

@iansw246 iansw246 commented Jan 7, 2026

Summary of changes

Adds a Linux keyboard layout option "wayland-auto" that retrieves the current keyboard layout from the running Wayland compositor. Uses the xkbcommon package to parse the keymap, as well as to generate the other keyboard layout options.

Solves #1726 but only for Wayland users.

Another limitation is that keyboard capture isn't using the retrieved layout. This means keyboard modifiers other than the standard QWERTY keys (for example mapping CapsLock to Ctrl) won't be handled properly when passing through keyboard shortcuts. This issue exists currently so new issues shouldn't be added and this PR should be ready to merge.

Pull Request Checklist

  • Changes have tests Linux specific changes
  • News fragment added in news.d. See documentation for details

@iansw246 iansw246 marked this pull request as draft January 7, 2026 01:52
@iansw246 iansw246 force-pushed the wayland-keymap branch 2 times, most recently from 8d34024 to aaf3a75 Compare January 7, 2026 02:18
@iansw246 iansw246 marked this pull request as ready for review January 7, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant