Skip to content

Conversation

@imobachgs
Copy link
Contributor

@imobachgs imobachgs commented May 6, 2025

Problem

YaST allow to use its own set of keymap identifiers (e.g., "english-us" instead of "us").
Agama, however, uses the identifiers from localectl and the X Keyboard Configuration Database (see get_keymaps()).

If fixes #1902.

Solution

Convert the YaST identifiers to the Agama ones. This PR includes the map that YaST uses in JSON format.

Testing

  • Added a new unit test
  • Tested manually

Codes without a map

  • ir: not found in localectl. Alternatives: ir-ku, ir-ku_alt, ir-ku_ara and ir-ku_f.
  • ru: not found in localectl. Alternatives: ru-cv_latin, ru-ruchey_en and ruwin_alt-UTF-8 (not in xkb).
  • ua-utf: not found in xkb.
  • khmer: neither in xkb nor localectl.
  • arabic: neither in xkb nor localectl.
  • tj_alt-UTF8: not found in xkb.

@imobachgs imobachgs merged commit 15ee16f into master May 6, 2025
10 of 12 checks passed
@imobachgs imobachgs deleted the map-yast-keymaps branch May 6, 2025 14:19
@imobachgs imobachgs mentioned this pull request May 26, 2025
imobachgs added a commit that referenced this pull request May 26, 2025
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.

Keymaps between autoyast profile and profile.json do not match

3 participants