add xkb config for F13 remapping and language toggle

This commit is contained in:
2017-02-06 17:24:56 +03:00
parent b0d27728ee
commit cbbc3b9973
4 changed files with 21 additions and 0 deletions

4
xkb_config/README Normal file
View File

@@ -0,0 +1,4 @@
Compile and apply
--------
xkbcomp -I$HOME/path/to/xkb_config ~/path/to/xkb_config/keymap/mymap $DISPLAY

View File

@@ -0,0 +1,3 @@
default xkb_keycodes "f13" {
<FK13> = 66;
};

7
xkb_config/keymap/mymap Normal file
View File

@@ -0,0 +1,7 @@
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)+override(f13)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+ru:2+inet(evdev)+f13_toggle" };
xkb_geometry { include "pc(pc105)" };
};

View File

@@ -0,0 +1,7 @@
partial modifier_keys
xkb_symbols "f13_toggle" {
key <FK13> {
type[Group1] = "PC_CONTROL_LEVEL2",
symbols[Group1] = [ ISO_Next_Group, F14 ]
};
};