commit 24afebc3f7e8fa803fe7283b3b3d962c71442026
parent 1bd8d070c3d650d1fb3b4a159402c6f0444e13aa
Author: regexghost <dev@regexghost.com>
Date: Thu, 28 May 2026 16:33:36 +0100
xkb map for ctrl+alt+arrows to home etc
Diffstat:
3 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/dotfiles/.config/xkb/keymap/mykbd b/dotfiles/.config/xkb/keymap/mykbd
@@ -0,0 +1,8 @@
+# https://unix.stackexchange.com/questions/65434/map-superleftright-to-home-end/65923
+xkb_keymap {
+ xkb_keycodes { include "evdev+aliases(qwerty)" };
+ xkb_types { include "complete+mytypes(ctrl_alt_level2)" };
+ xkb_compat { include "complete" };
+ xkb_symbols { include "pc+gb+inet(evdev)+mysymbols(ctrl_alt_arrows_mapping)" };
+ xkb_geometry { include "pc(pc105)" };
+};
diff --git a/dotfiles/.config/xkb/symbols/mysymbols b/dotfiles/.config/xkb/symbols/mysymbols
@@ -0,0 +1,19 @@
+partial modifier_keys
+xkb_symbols "ctrl_alt_arrows_mapping" {
+ key <LEFT> {
+ type[Group1] = "CTRL_ALT_LEVEL2",
+ symbols[Group1] = [ Left, Home ]
+ };
+ key <RGHT> {
+ type[Group1] = "CTRL_ALT_LEVEL2",
+ symbols[Group1] = [ Right, End ]
+ };
+ key <DOWN> {
+ type[Group1] = "CTRL_ALT_LEVEL2",
+ symbols[Group1] = [ Down, Next ]
+ };
+ key <UP> {
+ type[Group1] = "CTRL_ALT_LEVEL2",
+ symbols[Group1] = [ Up, Prior ]
+ };
+};
diff --git a/dotfiles/.config/xkb/types/mytypes b/dotfiles/.config/xkb/types/mytypes
@@ -0,0 +1,9 @@
+partial
+xkb_types "ctrl_alt_level2" {
+ type "CTRL_ALT_LEVEL2" {
+ modifiers= Control+Mod1;
+ map[Control+Mod1]= Level2;
+ level_name[Level1]= "Base";
+ level_name[Level2]= "Ctrl+Alt";
+ };
+};