switched away from profile mode
based on feedback from wife
This commit is contained in:
parent
debe81f89e
commit
f91fbdba5e
|
@ -6,7 +6,7 @@ draft: false
|
||||||
:toc:
|
:toc:
|
||||||
:toclevels: 4
|
:toclevels: 4
|
||||||
|
|
||||||
= Caps to Ctrl in tty
|
== Caps to Ctrl in tty
|
||||||
|
|
||||||
In the past 2 years or so, I have been using my caps lock key as a seperate ctrl key on my desktop keyboard.
|
In the past 2 years or so, I have been using my caps lock key as a seperate ctrl key on my desktop keyboard.
|
||||||
This is very easy to do in X11 with a setxkmap command.
|
This is very easy to do in X11 with a setxkmap command.
|
||||||
|
@ -59,7 +59,7 @@ Well, it should!
|
||||||
However, there seems to be a bug in 'loadkeys', as the above only works when defining a complete keymap, not when overriding parts of default.map.
|
However, there seems to be a bug in 'loadkeys', as the above only works when defining a complete keymap, not when overriding parts of default.map.
|
||||||
This means, that in order to correctly modify the keymap, we either have to define all columns manually, or we have to copy the default keymap, edit it, and load it as a complete keymap.
|
This means, that in order to correctly modify the keymap, we either have to define all columns manually, or we have to copy the default keymap, edit it, and load it as a complete keymap.
|
||||||
|
|
||||||
== Keymap patch
|
=== Keymap patch
|
||||||
|
|
||||||
To continue overriding the default keymap, you can simply manually repeat the control command.
|
To continue overriding the default keymap, you can simply manually repeat the control command.
|
||||||
Now, technically, there are 256 columns in the keymap file, but, at least for latin keyboards, only the first 16 are used.
|
Now, technically, there are 256 columns in the keymap file, but, at least for latin keyboards, only the first 16 are used.
|
||||||
|
@ -72,7 +72,7 @@ keycode 58 = Control Control Control Control Control Control Control Control Con
|
||||||
Now just put it in in '/usr/share/kbd/keymaps/', and set it as your keymap with 'sudo localectl set-keymap [filename without .map extention]'.
|
Now just put it in in '/usr/share/kbd/keymaps/', and set it as your keymap with 'sudo localectl set-keymap [filename without .map extention]'.
|
||||||
|
|
||||||
|
|
||||||
== Full keymap
|
=== Full keymap
|
||||||
|
|
||||||
In order to create a new full keymap, copy the keymap you want to edit from '/usr/share/kbd/keymaps/i386/[couple more folders here]' to somewhere in 'usr/share/kbd/keymaps/' and unzip it with 'sudo gzip -d [filename]'.
|
In order to create a new full keymap, copy the keymap you want to edit from '/usr/share/kbd/keymaps/i386/[couple more folders here]' to somewhere in 'usr/share/kbd/keymaps/' and unzip it with 'sudo gzip -d [filename]'.
|
||||||
Edit it with sudoedit and replace
|
Edit it with sudoedit and replace
|
||||||
|
@ -99,4 +99,3 @@ setxkbmap -option ctrl:nocaps
|
||||||
{{</highlight>}}
|
{{</highlight>}}
|
||||||
|
|
||||||
in your .xinitrc.
|
in your .xinitrc.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue