Skip to content

feat(capslock)!: Caps Lock as Esc through XKB, without keyd - #34

Merged
lbssousa merged 1 commit into
mainfrom
capslock-xkb
Nov 13, 2026
Merged

lbssousa merged 1 commit into
mainfrom
capslock-xkb

Conversation

@lbssousa

Copy link
Copy Markdown
Owner

Summary

  • Caps Lock = Esc and Shift+Caps Lock = Caps Lock now come from XKB's own caps:escape_shifted_capslock, set in the user block of ~/.config/hypr/input.lua next to compose:menu (Omarchy's grp:alts_toggle is kept).
  • keyd is gone: playbooks/system/capslock.yml, keyd-default.conf and keyd_config_dest are removed, and the capslock feature is user-only.
  • Holding Caps Lock no longer acts as Ctrl.

Breaking change

A machine that installed keyd keeps it, and it still remaps Caps Lock. Take it off by hand:

sudo systemctl disable --now keyd
sudo rm /etc/keyd/default.conf
sudo pacman -Rns keyd

Test plan

  • just check (syntax, phase boundaries, feature catalog, docs/features.md)
  • just apply capslock, then Caps Lock types Esc, Shift+Caps Lock toggles Caps Lock, Menu is Compose

🤖 Generated with Claude Code

caps:escape_shifted_capslock does the remap on its own: Caps Lock is Esc
and Shift+Caps Lock is Caps Lock. The user block in ~/.config/hypr/input.lua
now sets it next to compose:menu, and the feature is user-only.

- Remove playbooks/system/capslock.yml, keyd-default.conf and the
  keyd_config_dest variable.
- Holding Caps Lock no longer acts as Ctrl.

A machine that installed keyd keeps it, and it still remaps Caps Lock;
take it off by hand: systemctl disable --now keyd, remove
/etc/keyd/default.conf and uninstall keyd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lbssousa
lbssousa merged commit 9b1fe64 into main Nov 13, 2026
1 check passed
@lbssousa
lbssousa deleted the capslock-xkb branch November 13, 2026 02:32
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.

1 participant