From c363b1a07dde605947c556ead7955c8f3c532d19 Mon Sep 17 00:00:00 2001
From: Martin Fischer <martin@push-f.com>
Date: Sun, 1 Dec 2024 10:55:58 +0100
Subject: add custom keyboard layout

I've been using my own custom variant of Colemak Mod-DH since at least 2019.
---
 colematik/colematik.xkb | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 colematik/colematik.xkb

(limited to 'colematik')

diff --git a/colematik/colematik.xkb b/colematik/colematik.xkb
new file mode 100644
index 0000000..51ee77f
--- /dev/null
+++ b/colematik/colematik.xkb
@@ -0,0 +1,31 @@
+xkb_keymap {
+    xkb_keycodes { include "evdev+aliases(qwerty)" };
+    xkb_types { include "complete" };
+    xkb_compat { include "complete" };
+    xkb_symbols {
+        include "pc+us(colemak)"
+        include "ctrl(swap_lalt_lctl)"
+
+        name[Group1]= "Colematik";
+
+        # Mod-DH
+        key <AD05> {[ b, B ]};
+        key <AC05> {[ g, G ]};
+        key <AB04> {[ d, D ]};
+        key <AB05> {[ v, V ]};
+
+        key <AC06> {[ k, K ]};
+        key <AB06> {[ m, M ]};
+        key <AB07> {[ h, H ]};
+
+        key <RWIN> {[ Multi_key ]};
+
+        # more intuitive German umlauts
+        key <AC01> {[ a, A, adiaeresis, Adiaeresis ]};
+        key <AD08> {[ u, U, udiaeresis, Udiaeresis ]};
+        key <AC10> {[ o, O, odiaeresis, Odiaeresis ]};
+
+        include "inet(evdev)+terminate(ctrl_alt_bksp)"
+    };
+    xkb_geometry { include "pc(pc105)" };
+};
-- 
cgit v1.2.3