dotfiles

dot files
git clone git://git.rr3.xyz/dotfiles | git clone gits://git.rr3.xyz/dotfiles
Log | Files | Refs | Submodules

commit 6a6cde68a16018e1a7a8e79bb29c2c47121925b0
parent bb0a7538055563a13598e3a0280c05f2748cb0cf
Author: Robert Russell <robert@rr3.xyz>
Date:   Tue,  6 Oct 2026 15:09:29 -0700

keyboard: update xkb keymap for laptops

Diffstat:
Mkeyboard/keymap.xkb | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/keyboard/keymap.xkb b/keyboard/keymap.xkb @@ -287,8 +287,6 @@ xkb_keymap "custom" { // TODO: SetMods? key <LSFT> { [Shift_L] }; - key <RSFT> { [Shift_R] }; - key <CAPS> { [Caps_Lock] }; key <LCTL> { [Control_L] }; key <RCTL> { [Control_R] }; key <LALT> { [Alt_L] }; @@ -296,6 +294,12 @@ xkb_keymap "custom" { key <LWIN> { [Super_L] }; key <RWIN> { [Super_R] }; + // In my QMK keyboard firmware, the caps lock and right shift keys + // directly generate F14 and F15 already, but non-QMK keyboards need + // this to access symbols and Greek. + key <CAPS> { symbols[1] = [NoSymbol], actions[1] = [SetMods(mods=Mod3)] }; + key <RSFT> { symbols[1] = [NoSymbol], actions[1] = [SetMods(mods=Mod2)] }; + key <F14> { symbols[1] = [NoSymbol], actions[1] = [SetMods(mods=Mod3)] }; key <F15> { symbols[1] = [NoSymbol], actions[1] = [SetMods(mods=Mod2)] }; key <F16> { symbols[1] = [NoSymbol], actions[1] = [SetMods(mods=Mod5)] };