How to use right Alt key (AltGr) as modifier key

Hi there.
I have some bindings using the (left) Alt key. Now I want to use the right Alt key (AltGr on my german keyboard), too.
I want to create a new mouse binding together with Alt, but my mouse is on the left hand side, so I’d like to use the right Alt key to press with my right hand.
Possible?
I didn’t find anything about this question. Am I the only person with this thoughts?

:slight_smile:

Hyprland version
Hyprland 0.53.1 built from branch v0.53.1 at commit ab1d80f3d6aebd57a0971b53a1993b1c1dfe0b09 clean (version: bump to 0.53.1).
Date: Fri Jan 2 21:20:57 2026
Tag: v0.53.1, commits: 6766

Libraries:
Hyprgraphics: built against 0.5.0, system has 0.5.0
Hyprutils: built against 0.11.0, system has 0.11.0
Hyprcursor: built against 0.1.13, system has 0.1.13
Hyprlang: built against 0.6.7, system has 0.6.8
Aquamarine: built against 0.10.0, system has 0.10.0

Version ABI string: ab1d80f3d6aebd57a0971b53a1993b1c1dfe0b09_aq_0.10_hu_0.11_hg_0.5_hc_0.1_hlg_0.6
no flags were set

Describe your issue / feature…

Check what mod it send with wev and use that.
Not sure how it is on a german keyboard, but on my swedish one AltGr sends ISO_Level3_Shift Mod5. But i know on some it sends the same as alt, and i’ve also seen some send Hyper.

Edit: Oh, and you can change what it does with kb_options. Like for example: kb_options = lv3:ralt_switch

Oh, thanks a lot! So easy :slight_smile:

I forgot the presence of wev.

On my KB wev says “Mod5” when pressing AltGr.

I used that in hyprland config and it works.

1 Like