Skip to content

Instantly share code, notes, and snippets.

@embedded4ever
Last active November 6, 2025 11:39
Show Gist options
  • Select an option

  • Save embedded4ever/1430fdc965a3f96c280d6f4ec6a50fe2 to your computer and use it in GitHub Desktop.

Select an option

Save embedded4ever/1430fdc965a3f96c280d6f4ec6a50fe2 to your computer and use it in GitHub Desktop.

It’s a known issue that there’s a delay when releasing Caps Lock. It’s really annoying if you use Caps Lock for capitalization. What happens to me is this: HEre is HOw it LIkes, because of the delay when releasing Caps Lock.

What fix worked for me :

Replace the entity of ctrl_modifier with below one inside. (Don't forget to change permission of file to edit and revert the permission to origin)

// This changes the <CAPS> key to become a Control modifier,
// but it will still produce the Caps_Lock keysym.
hidden partial modifier_keys
xkb_symbols "ctrl_modifier" {
          key <CAPS> {
              type="ALPHABETIC",
              repeat=No,
              symbols[Group1]= [ Caps_Lock, Caps_Lock ],
              actions[Group1]= [ LockMods(modifiers=Lock),
                                 LockMods(modifiers=Shift+Lock,affect=unlock) ]
          };
};

Then open your Tweaks and select "Make CapsLock act as additional..." for Keyboard Caps Lock behavior.

You should log out and log in again to see result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment