qmk_keymaps/keyboards/crkbd/keymaps/sajenim/keycodes.h

41 lines
921 B
C
Raw Normal View History

2023-01-16 23:02:14 +08:00
// This file contains user defined aliases
// Layers
#define SPACEFN LT(L_NAVIGATION, KC_SPC)
#define ENTERFN LT(L_MACRO, KC_ENT)
#define NUMBERS MO(L_NUMBERS)
#define SYMBOLS MO(L_SYMBOLS)
#define LOWER MO(L_LOWER)
#define RAISE MO(L_RAISE)
// One Shot Keys
#define OS_OPRS OSL(L_OPERATORS)
#define OS_MEH OSM(MOD_MEH)
#define OS_SUPR OSM(MOD_LGUI)
#define OS_HYPR OSM(MOD_HYPR)
#define OS_LCTL OSM(MOD_LCTL)
#define OS_LSFT OSM(MOD_LSFT)
#define OS_LALT OSM(MOD_LALT)
#define OS_LGUI OSM(MOD_LGUI)
#define OS_RCTL OSM(MOD_RCTL)
#define OS_RSFT OSM(MOD_RSFT)
#define OS_RALT OSM(MOD_RALT)
#define OS_RGUI OSM(MOD_RGUI)
// Left-hand home row mods
#define HOME_C LGUI_T(KC_C)
#define HOME_R LALT_T(KC_R)
#define HOME_S LSFT_T(KC_S)
#define HOME_T LCTL_T(KC_T)
// Right-hand home row mods
#define HOME_N RCTL_T(KC_N)
#define HOME_E RSFT_T(KC_E)
#define HOME_I RALT_T(KC_I)
#define HOME_A RGUI_T(KC_A)