Created
December 7, 2021 03:53
-
-
Save CodesOfRishi/bb6975838cd4c4dbffa28694724f1753 to your computer and use it in GitHub Desktop.
Linux Caps-Lock Delay Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
xkbcomp -xkb "$DISPLAY" - | sed 's#key <CAPS>.*#key <CAPS> {\ | |
repeat=no,\ | |
type[group1]="ALPHABETIC",\ | |
symbols[group1]=[ Caps_Lock, Caps_Lock],\ | |
actions[group1]=[ LockMods(modifiers=Lock),\ | |
Private(type=3,data[0]=1,data[1]=3,data[2]=3)]\ | |
};\ | |
#' | xkbcomp -w 0 - "$DISPLAY" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment