Get AltGr back after Omarchy's both-Alts layout switch removed it
Cause and fix hold. Issue #9111 (open) body and comments state that grp:alts_toggle redefines <RALT> as Alt_R plus ISO_Next_Group, document the Norwegian single-layout case from the Quattro upgrade, and the pl,dk case from the shipped template, with grp:alt_altgr_toggle as the drop-in. Confirmed on this workstation: the user template ~/.config/hypr/input.lua (identical to /usr/share/omarchy/config/hypr/input.lua) suggests compose:caps,shift:both_capslock_cancel,grp:alts_toggle, the packaged default/hypr/input.lua appends ,grp:alts_toggle in the non-Latin branch, and the quattro tree still has both. xkbcli compile-keymap --layout pl,dk shows <RALT> = Alt_R, ISO_Next_Group with grp:alts_toggle and ISO_Level3_Shift, ISO_Next_Group with grp:alt_altgr_toggle and with grp:alt_shift_toggle. evdev.lst lists grp:alt_altgr_toggle as "Both Alts together; AltGr alone chooses third level". hyprctl getoption input:kb_options -j returns a str key, so the jq diagnostic works, and jq 1.8.2 is installed. PR #9139, which preserves user kb_options across the upgrade, is still open, so the migration claim is current. The one defect is a source: #7255 is about the migration leaving kb_options untouched and trapping Caps Lock ON, it says nothing about AltGr or grp:alts_toggle, so it does not support this record. Not exercised: typing AltGr characters after a reload.
Symptom
AltGr does nothing on a Polish, German, Czech, Norwegian or other AltGr layout. On Norwegian ~ @ $ \ { } [ ] | cannot be typed, on Polish ą ć ę ł ń ó ś ź ż are gone. Often started right after the Quattro (Omarchy 4) upgrade, or after uncommenting the multi-layout example in ~/.config/hypr/input.lua. Compose on Caps Lock still works.
Cause
The XKB option grp:alts_toggle (switch layout with Left Alt + Right Alt) redefines <RALT> as Alt_R + ISO_Next_Group, so Right Alt is no longer ISO_Level3_Shift and every level-3 character becomes unreachable. Omarchy 4 applies it in three places: the shipped user template ~/.config/hypr/input.lua suggests kb_options = "compose:caps,shift:both_capslock_cancel,grp:alts_toggle", the packaged /usr/share/omarchy/default/hypr/input.lua appends ,grp:alts_toggle whenever it prepends us, for a non-Latin layout, and the Quattro migration rewrote some users' existing grp:alt_shift_toggle into grp:alts_toggle. On a single-layout keyboard there is no second group, so the only effect is losing AltGr. Confirmed on 4.0.4 with xkbcli compile-keymap.
Fix
See what is in effect and confirm Right Alt lost level 3:
hyprctl getoption input:kb_options
xkbcli compile-keymap --layout pl --options "$(hyprctl getoption input:kb_options -j | jq -r .str)" | grep -A3 'key <RALT>'
# broken: symbols[1]= [ Alt_R, ISO_Next_Group ]
**Single layout (no switching needed):** drop the grp: option entirely in ~/.config/hypr/input.lua:
hl.config({
input = {
kb_layout = "no",
kb_options = "compose:caps,shift:both_capslock_cancel",
},
})
**Two or more layouts, keep the Left Alt + Right Alt chord:** use grp:alt_altgr_toggle, which keeps Right Alt as AltGr when pressed alone:
hl.config({
input = {
kb_layout = "pl,dk",
kb_options = "compose:caps,shift:both_capslock_cancel,grp:alt_altgr_toggle",
},
})
Or switch with Alt+Shift, which also leaves AltGr alone: grp:alt_shift_toggle.
hyprctl reload
systemctl --user restart omarchy-fcitx5.service
**Plain Arch + Hyprland:** same fix in ~/.config/hypr/hyprland.lua. Any grp:alts_toggle there costs you AltGr.
Verify
xkbcli compile-keymap --layout pl,dk --options 'compose:caps,shift:both_capslock_cancel,grp:alt_altgr_toggle' | grep -A3 'key <RALT>' shows ISO_Level3_Shift (checked on this workstation). In an app, Right Alt + A types ą on Polish.