From 184dc9c713ba27c2db7c9a1433f710bed9dfc008 Mon Sep 17 00:00:00 2001 From: Gabe Date: Thu, 29 Jul 2021 22:37:35 +0000 Subject: [PATCH] Update 'capsToCtrl.adoc' localectl does not play nice with custom keymaps and X11 --- capsToCtrl.adoc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/capsToCtrl.adoc b/capsToCtrl.adoc index 0100399..55dfbe3 100644 --- a/capsToCtrl.adoc +++ b/capsToCtrl.adoc @@ -81,4 +81,12 @@ keycode 58 = Control Then you can (optionally) re-zip it with 'sudo gzip [filename]' and set it as your keymap with 'sudo localectl set-keymap [filename without .map extention]'. There we go! -Our caps lock key is now a second control key! Not that with 'localectl', this has also set caps lock as a second control key for X as well! +Our caps lock key is now a second control key! +Note that localectl does not seem to propogate our change to X11, unfortuanately. +To do it in X as well, simply run + +.... +setxkbmap -option ctrl:nocaps +.... + +in your .xinitrc. \ No newline at end of file