Skip to content

Instantly share code, notes, and snippets.

@4513ECHO
Created October 10, 2022 13:57
Show Gist options
  • Save 4513ECHO/2843968ef60e88b486ecaab30df3cfe9 to your computer and use it in GitHub Desktop.
Save 4513ECHO/2843968ef60e88b486ecaab30df3cfe9 to your computer and use it in GitHub Desktop.
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat {
include "complete+japan"
// Sticky keys
interpret Shift_L+Any { action = LatchMods(modifiers = modMapMods); };
interpret Control_L+Any { action = LatchMods(modifiers = modMapMods); };
interpret Alt_L+Any { action = LatchMods(modifiers = modMapMods); };
interpret Super_L+Any { action = LatchMods(modifiers = modMapMods); };
};
xkb_symbols {
include "pc+jp+inet(evdev)+terminate(ctrl_alt_bksp)"
// Swap CapsLock and Control
replace key <CAPS> { [ Control_L, Control_L ] };
replace key <LCTL> { [ Caps_Lock ] };
// Adjust underscore
key <AB11> { [ underscore, underscore ] };
};
xkb_geometry { include "pc(pc105)" };
};
// vim:ft=xkb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment