From 71ef5dfdec5c83bdc0e50a37801b9ca2c0a1add8 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Sun, 1 Jul 2018 11:31:16 +0200 Subject: Cleaned up keyboard config, it is now not overwritten every time Xorg gets an update --- .xkb/desktop | 8 ++++++++ .xkb/symbols/ch-custom | 24 ++++++++++++++++++++++++ .xkb/x1 | 8 ++++++++ 3 files changed, 40 insertions(+) create mode 100644 .xkb/desktop create mode 100644 .xkb/symbols/ch-custom create mode 100644 .xkb/x1 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 { [ 7, dollar, sterling ] }; + key { [ slash, bar, braceright ] }; + key { [ Escape ] }; +}; + +partial alphanumeric_keys +xkb_symbols "desktop" { + include "ch-custom(basic)" + + key { [ Super_R ] }; +}; + +partial alphanumeric_keys +xkb_symbols "x1" { + include "ch-custom(basic)" + + key { [ Super_R ] }; + key { [ Home ] }; + key { [ End ] }; + key { [ Page_Down ] }; + key { [ Page_Up ] }; +}; diff --git a/.xkb/x1 b/.xkb/x1 new file mode 100644 index 0000000..4e5bad2 --- /dev/null +++ b/.xkb/x1 @@ -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)" }; +}; -- cgit v1.2.3