Skip to content

Missing 'phonetic-alt' in variantMap causes no toast for Armenian (alt. phonetic) #2626

@fereshetyan

Description

@fereshetyan

Description

When using Armenian (alt. phonetic) keyboard layout with niri, switching to this layout does not trigger a toast notification. Other layouts like Russian (phonetic) show "Phon" correctly.

Root Cause

The variantMap in Services/Keyboard/KeyboardLayoutService.qml lacks an entry for "phonetic-alt".

Current variantMap includes:

"phonetic": "Phon",

But Armenian alt. phonetic uses xkb variant phonetic-alt, which returns layout name "Armenian (alt. phonetic)" from niri msg keyboard-layouts. Since phonetic-alt is not in variantMap, the service falls back to languageMap, but "armenian" is not mapped to a short code display.

Steps to Reproduce

  1. Configure niri with layouts: ru,am and variants phonetic,phonetic-alt
  2. Switch to Armenian (alt. phonetic) layout
  3. Observe no toast notification appears (or shows unknown)

Expected Behavior

Armenian (alt. phonetic) should show a toast with "Arm" or similar short code.

Suggested Fix

Add to variantMap:

"phonetic-alt": "Arm",

Also consider adding other missing phonetic variants if any.

Environment

  • Noctalia version: 0.0.12-1 (noctalia-qs)
  • Compositor: niri
  • Layout config: layout "us,ru,am"; variant ",phonetic,phonetic-alt"

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