Two keyboard layouts
Omarchy
Two layouts on the same keys: plain US for code, US International for text with accents.
The keys
Alt + Space | Switches between the two. |
|---|---|
kc | In the terminal: the code layout. |
kt | In the terminal: the text layout. |
Caps Lock | The compose key, in both layouts. |
Shift + Shift | Caps Lock itself, for when it is needed. |
Why two
In US International the quote and the tilde wait for the next letter to make an accent. That is right for Portuguese and wrong for code, where they are typed alone all the time. Switching is one shortcut, so each layout is used for what it is good at.
How it gets there
A Lua file in the repository sets the layouts, and one guarded line in Hyprland’s input.lua loads it.