Skip to content

Return Caps Lock to normal and make Shift + Caps Lock the compose key - #14939

Merged
dhh merged 2 commits into
quattrofrom
caps-lock-with-shift-compose
Oct 11, 2026
Merged

dhh merged 2 commits into
quattrofrom
caps-lock-with-shift-compose

Conversation

@dhh

@dhh dhh commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Caps Lock as the compose key, with both Shifts as Caps Lock, confused too many people. This returns Caps Lock to its normal function and moves compose to Shift + Caps Lock, so the quick emojis and completions become Shift + CapsLock M S and so on.

Stock XKB has no option for compose on the shifted Caps key, so Omarchy defines one:

  • etc/xkb/rules/evdev adds omarchy:shift_caps_compose on top of the system rules.
  • etc/xkb/symbols/omarchy makes Caps give Caps_Lock and Shift + Caps give Multi_key. The actions are explicit, so the Shift level doesn't inherit the key's Lock modifier and toggle Caps Lock on every compose.
  • libxkbcommon reads /etc/xkb before the system rules. omarchy-settings already installs the whole etc/ tree, so no packaging change is needed.
  • default/hypr/input.lua uses omarchy:shift_caps_compose in place of compose:caps,shift:both_capslock_cancel.

A lone Shift is no longer part of Caps Lock, which clears the way for xdanger's Shift-to-switch suggestion from #14433. That will be a follow-up PR.

The manual's hotkey tables, kb_options examples and the input page are updated, and the "Why isn't Caps Lock working?" troubleshooting entry is removed. Users who override kb_options in ~/.config/hypr/input.lua keep their own setting.

Testing:

  • hyprland-keyboard-layout-test.sh expects the new option and compiles the shipped option with xkbcli to check that Caps keeps its lock action and Shift + Caps composes with no action.
  • Tried live on a us,dk keyboard: Caps Lock toggles normally, and Shift + CapsLock m s gives 😄 consistently.
  • Codex review found no issues.

Dev-linked checkouts need the files in place once before switching to this branch, since they don't come from the package: sudo cp -r etc/xkb /etc/.

🤖 Generated with Claude Code

Caps Lock as compose, with both Shifts as Caps Lock, confused too many
people. Stock XKB has no option for compose on the shifted Caps key, so
Omarchy defines one in /etc/xkb, which libxkbcommon reads before the
system rules. The explicit actions keep the Shift level from toggling
Caps Lock. Lone Shift is no longer part of Caps Lock, which leaves it
free for input methods.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@greptile-apps

greptile-apps Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new blocking issue was found.

Summary

This PR restores normal Caps Lock behavior and makes Shift + Caps Lock the compose key.

  • Caps Lock works normally, and Shift + Caps Lock starts Compose.

Reviews (2) · Last reviewed commit: "Require xkbcli so the keymap check canno..." · Reviewed by Greptile

@dhh
dhh merged commit 1b5222b into quattro Oct 11, 2026
1 check passed
omarchybot added a commit to rdoupe/omarchy that referenced this pull request Oct 11, 2026
quattro removed the Caps Lock entry this section sat after (omacom#14939), so the new entry now follows the Spotify note directly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
omarchybot added a commit to nfortunato8-bit/omarchy that referenced this pull request Oct 13, 2026
Since omacom#14939, CapsLock is a normal Caps Lock and Shift + CapsLock is the compose key, so the new table writes every sequence in that form, the keyboard page keeps its rewritten paragraph with the accents link added, and the troubleshooting hunk goes with the section it edited.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants