From cc7b01614b4029bf66e660b0f55be6aac354e57b Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Sun, 30 Oct 2016 20:51:58 -0400 Subject: [PATCH] Add a new method of mapping the keyboard in arch --- linux/arch/config/readme.md | 1 - linux/arch/home/Xmodmap | 4 ++++ linux/arch/readme.md | 4 ++++ notes/setup.md | 11 ++++++++++- 4 files changed, 18 insertions(+), 2 deletions(-) delete mode 100644 linux/arch/config/readme.md create mode 100644 linux/arch/home/Xmodmap create mode 100644 linux/arch/readme.md diff --git a/linux/arch/config/readme.md b/linux/arch/config/readme.md deleted file mode 100644 index f08a196..0000000 --- a/linux/arch/config/readme.md +++ /dev/null @@ -1 +0,0 @@ -These are configs from my Arch Linux setup. They go in ~/.config diff --git a/linux/arch/home/Xmodmap b/linux/arch/home/Xmodmap new file mode 100644 index 0000000..1945241 --- /dev/null +++ b/linux/arch/home/Xmodmap @@ -0,0 +1,4 @@ +clear lock +clear control +add control = Caps_Lock Control_L Control_R +keycode 66 = Control_L Caps_Lock NoSymbol NoSymbol diff --git a/linux/arch/readme.md b/linux/arch/readme.md new file mode 100644 index 0000000..2b10a9b --- /dev/null +++ b/linux/arch/readme.md @@ -0,0 +1,4 @@ +Arch linux configs + +* `config` -> map contents to `~/.config`. +* `home` -> map contents to `~/`. diff --git a/notes/setup.md b/notes/setup.md index 22395a5..9f9bd2a 100644 --- a/notes/setup.md +++ b/notes/setup.md @@ -43,7 +43,15 @@ ``` -* 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` * add: @@ -54,6 +62,7 @@ * run `udevadm hwdb --update` then reboot + # Setting up Ruby * Install rvm