From 8147489f1da984b2bffe51d52d308e94b4599bfe Mon Sep 17 00:00:00 2001 From: Ty Smith Date: Sun, 19 Jul 2026 20:05:39 -0700 Subject: [PATCH] Allow toggling Caps Lock via both Shift keys Adds shift:both_capslock alongside compose:caps so pressing both Shift keys together toggles real Caps Lock. Caps Lock alone remains the Compose key, and single-Shift behavior is unchanged. Provides an escape hatch when Caps Lock gets stuck on (e.g. after an fcitx5 desync). Closes #5981 Co-Authored-By: Claude Fable 5 --- config/hypr/input.lua | 2 +- default/hypr/input.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/hypr/input.lua b/config/hypr/input.lua index 301aa0cb..9591c0dd 100644 --- a/config/hypr/input.lua +++ b/config/hypr/input.lua @@ -7,7 +7,7 @@ -- input = { -- -- Use multiple keyboard layouts and switch between them with Left Alt + Right Alt. -- kb_layout = "us,dk,eu", --- kb_options = "compose:caps,grp:alts_toggle", +-- kb_options = "compose:caps,shift:both_capslock,grp:alts_toggle", -- -- -- Use a specific keyboard variant if needed (e.g. intl for international keyboards). -- kb_variant = "intl", diff --git a/default/hypr/input.lua b/default/hypr/input.lua index d7232736..27f3184d 100644 --- a/default/hypr/input.lua +++ b/default/hypr/input.lua @@ -28,7 +28,7 @@ hl.config({ kb_layout = vconsole.XKBLAYOUT or "us", kb_variant = vconsole.XKBVARIANT or "", kb_model = "", - kb_options = "compose:caps", + kb_options = "compose:caps,shift:both_capslock", kb_rules = "", follow_mouse = 1, sensitivity = 0,