From 19120d4f9761c67d99ed1ce3da6084b83f5a49c9 Mon Sep 17 00:00:00 2001 From: srdusr Date: Sat, 30 Aug 2025 19:22:59 +0200 Subject: Linux-specific dotfiles --- linux/home/.config/xkb/symbols/custom-us | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 linux/home/.config/xkb/symbols/custom-us (limited to 'linux/home/.config/xkb/symbols/custom-us') diff --git a/linux/home/.config/xkb/symbols/custom-us b/linux/home/.config/xkb/symbols/custom-us new file mode 100644 index 0000000..9faa2e9 --- /dev/null +++ b/linux/home/.config/xkb/symbols/custom-us @@ -0,0 +1,27 @@ +// Clear existing modifiers +//default partial modifier_keys +partial alphanumeric_keys +xkb_symbols "basic" { + include "us(basic)" + + // Define a custom modifier (Mode_switch) + modifier_map Mod5 { }; + + // Remap Caps Lock to AltGr (ISO_Level3_Shift) and clear other modifiers + key { + type[Group1] = "ONE_LEVEL", + symbols[Group1] = [ ISO_Level3_Shift ], + actions[Group1] = [ SetMods(modifiers=Mod5) ] + }; + + // Remap h, j, k, l to arrow keys when Mode_switch is active and clear other modifiers + key { [ h, H, Left ] }; + key { [ j, J, Down ] }; + key { [ k, K, Up ] }; + key { [ l, L, Right ] }; + + key { [ w, W, Up ] }; + key { [ a, A, Left ] }; + key { [ s, S, Down ] }; + key { [ d, D, Right ] }; +}; -- cgit v1.2.3