Two keyboard layouts

Omarchy

Two layouts on the same keys: plain US for code, US International for text with accents.

The keys

Alt + SpaceSwitches between the two.
kcIn the terminal: the code layout.
ktIn the terminal: the text layout.
Caps LockThe compose key, in both layouts.
Shift + ShiftCaps 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.

Files