summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2018-07-01 11:31:16 +0200
committerEduardo Pedroni <e.pedroni91@gmail.com>2018-07-01 11:31:16 +0200
commit71ef5dfdec5c83bdc0e50a37801b9ca2c0a1add8 (patch)
tree2da436873f0f03246146fa5915d790778b12f27e
parent5ded08bc3e3baf72563e49e5d5f8eb3daa36d2e7 (diff)
Cleaned up keyboard config, it is now not overwritten every time Xorg gets an update
-rw-r--r--.xkb/desktop8
-rw-r--r--.xkb/symbols/ch-custom24
-rw-r--r--.xkb/x18
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 ] };
+};
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)" };
+};