technology/linux/general/keymaps.md
... ...
@@ -1,12 +1,21 @@
1 1
# keymaps
2 2
3
-check keymaps
3
+## check keymaps
4 4
```
5 5
localectl status
6 6
```
7 7
8
-changes required to load keys
8
+## changes required to load keys
9 9
```
10 10
vconsole.conf
11 11
/etc/X11/xorg.conf.d/00-keyboard.conf
12 12
```
13
+
14
+## use capslock as escape and control
15
+using xcape capslock can be set to 'escape' when tapped and 'ctrl' when help down.
16
+```
17
+setxkbmap -option ctrl:nocaps
18
+xcape -e 'Control_L=Escape'
19
+```
20
+
21
+[ref](https://www.dannyguo.com/blog/remap-caps-lock-to-escape-and-control)