diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2018-07-01 11:31:16 +0200 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2018-07-01 11:31:16 +0200 |
commit | 71ef5dfdec5c83bdc0e50a37801b9ca2c0a1add8 (patch) | |
tree | 2da436873f0f03246146fa5915d790778b12f27e | |
parent | 5ded08bc3e3baf72563e49e5d5f8eb3daa36d2e7 (diff) |
Cleaned up keyboard config, it is now not overwritten every time Xorg gets an update
-rw-r--r-- | .xkb/desktop | 8 | ||||
-rw-r--r-- | .xkb/symbols/ch-custom | 24 | ||||
-rw-r--r-- | .xkb/x1 | 8 |
3 files changed, 40 insertions, 0 deletions
diff --git a/.xkb/desktop b/.xkb/desktop new file mode 100644 index 0000000..54792c0 --- /dev/null +++ b/.xkb/desktop @@ -0,0 +1,8 @@ +# Load with xkbcomp -I$HOME/.xkb $HOME/.xkb/desktop $DISPLAY +xkb_keymap { + xkb_keycodes { include "evdev+aliases(qwerty)" }; + xkb_types { include "complete" }; + xkb_compat { include "complete" }; + xkb_symbols { include "pc+ch+inet(evdev)+ch-custom(desktop)" }; + xkb_geometry { include "pc(pc105)" }; +}; diff --git a/.xkb/symbols/ch-custom b/.xkb/symbols/ch-custom new file mode 100644 index 0000000..66cd95d --- /dev/null +++ b/.xkb/symbols/ch-custom @@ -0,0 +1,24 @@ +default partial alphanumeric_keys +xkb_symbols "basic" { + key <AE07> { [ 7, dollar, sterling ] }; + key <BKSL> { [ slash, bar, braceright ] }; + key <CAPS> { [ Escape ] }; +}; + +partial alphanumeric_keys +xkb_symbols "desktop" { + include "ch-custom(basic)" + + key <MENU> { [ Super_R ] }; +}; + +partial alphanumeric_keys +xkb_symbols "x1" { + include "ch-custom(basic)" + + key <PRSC> { [ Super_R ] }; + key <PGUP> { [ Home ] }; + key <PGDN> { [ End ] }; + key <END> { [ Page_Down ] }; + key <HOME> { [ Page_Up ] }; +}; @@ -0,0 +1,8 @@ +# Load with xkbcomp -I$HOME/.xkb $HOME/.xkb/x1 $DISPLAY +xkb_keymap { + xkb_keycodes { include "evdev+aliases(qwerty)" }; + xkb_types { include "complete" }; + xkb_compat { include "complete" }; + xkb_symbols { include "pc+ch+inet(evdev)+ch-custom(x1)" }; + xkb_geometry { include "pc(pc105)" }; +}; |