aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkeyboard-config/symbols/capslock
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/xkeyboard-config/symbols/capslock')
-rw-r--r--xorg-server/xkeyboard-config/symbols/capslock12
1 files changed, 12 insertions, 0 deletions
diff --git a/xorg-server/xkeyboard-config/symbols/capslock b/xorg-server/xkeyboard-config/symbols/capslock
index 288a1d293..6daf5c1ed 100644
--- a/xorg-server/xkeyboard-config/symbols/capslock
+++ b/xorg-server/xkeyboard-config/symbols/capslock
@@ -60,3 +60,15 @@ partial hidden modifier_keys
xkb_symbols "numlock" {
key <CAPS> { [ Num_Lock ] };
};
+
+// This changes the modifier behavior of the <CAPS> key.
+// The keysym will be reset to Caps_Lock
+partial hidden modifier_keys
+xkb_symbols "ctrl_modifier" {
+ replace key <CAPS> {
+ type[Group1] = "ONE_LEVEL",
+ symbols[Group1] = [ Caps_Lock ],
+ actions[Group1] = [ SetMods(modifiers=Control) ]
+ };
+ modifier_map Control { <CAPS> };
+};