Add a new method of mapping the keyboard in arch

This commit is contained in:
Michael Campagnaro 2016-10-30 20:51:58 -04:00
parent ff590a4c6d
commit cc7b01614b
4 changed files with 18 additions and 2 deletions

View File

@ -1 +0,0 @@
These are configs from my Arch Linux setup. They go in ~/.config

4
linux/arch/home/Xmodmap Normal file
View File

@ -0,0 +1,4 @@
clear lock
clear control
add control = Caps_Lock Control_L Control_R
keycode 66 = Control_L Caps_Lock NoSymbol NoSymbol

4
linux/arch/readme.md Normal file
View File

@ -0,0 +1,4 @@
Arch linux configs
* `config` -> map contents to `~/.config`.
* `home` -> map contents to `~/`.

View File

@ -43,7 +43,15 @@
</fontconfig> </fontconfig>
``` ```
* map caps key to left-ctrl (see https://wiki.archlinux.org/index.php/Map_scancodes_to_keycodes for details) ## Map caps to left-ctrl
* Most promising method
* Install `xorg-xmodmap`
* Map `linux/home/Xmodmap` to ~/
* The above taken from https://wiki.archlinux.org/index.php/xmodmap
* Second method: map caps key to left-ctrl (see https://wiki.archlinux.org/index.php/Map_scancodes_to_keycodes for details)
* edit `/etc/udev/hwdb.d/10-my-modifiers.hwdb` * edit `/etc/udev/hwdb.d/10-my-modifiers.hwdb`
* add: * add:
@ -54,6 +62,7 @@
* run `udevadm hwdb --update` then reboot * run `udevadm hwdb --update` then reboot
# Setting up Ruby # Setting up Ruby
* Install rvm * Install rvm