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:
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
- Configure niri with layouts:
ru,am and variants phonetic,phonetic-alt
- Switch to Armenian (alt. phonetic) layout
- 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:
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"
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
variantMapinServices/Keyboard/KeyboardLayoutService.qmllacks an entry for"phonetic-alt".Current
variantMapincludes:But Armenian alt. phonetic uses xkb variant
phonetic-alt, which returns layout name "Armenian (alt. phonetic)" fromniri msg keyboard-layouts. Sincephonetic-altis not invariantMap, the service falls back tolanguageMap, but "armenian" is not mapped to a short code display.Steps to Reproduce
ru,amand variantsphonetic,phonetic-altExpected Behavior
Armenian (alt. phonetic) should show a toast with "Arm" or similar short code.
Suggested Fix
Add to
variantMap:Also consider adding other missing phonetic variants if any.
Environment
layout "us,ru,am"; variant ",phonetic,phonetic-alt"