diff options
author | skullY <skullydazed@gmail.com> | 2018-02-25 17:40:18 -0800 |
---|---|---|
committer | skullY <skullydazed@gmail.com> | 2018-02-25 17:40:18 -0800 |
commit | c6ce959f49cb6d3e651edd6b616d15a64dc32e76 (patch) | |
tree | 5492f28393beb052a4f5aaa02a7a644851a9d91b /keyboards/clueboard/66/keymaps/skully | |
parent | 3b801880a084377fc4680fe3fb44e1ef4df0608e (diff) |
Test a shrug macro
Diffstat (limited to 'keyboards/clueboard/66/keymaps/skully')
-rw-r--r-- | keyboards/clueboard/66/keymaps/skully/keymap.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/keyboards/clueboard/66/keymaps/skully/keymap.c b/keyboards/clueboard/66/keymaps/skully/keymap.c index 43a6a400d3..c85d935d16 100644 --- a/keyboards/clueboard/66/keymaps/skully/keymap.c +++ b/keyboards/clueboard/66/keymaps/skully/keymap.c @@ -1,5 +1,12 @@ #include "66.h" +enum custom_keycodes { + M_SHRUG = SAFE_RANGE +}; + +// Helpful defines +#define _______ KC_TRNS + // Each layer gets a name for readability, which is then used in the keymap matrix below. // The underscores don't mean anything - you can have a layer called STUFF or any other name. // Layer names don't all need to be of the same length, obviously, and you can also skip them @@ -30,9 +37,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* Keymap _CL: Control layer */ [_CL] = LAYOUT( - _______, _______, _______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, RGB_TOG, RGB_VAI, + M_SHRUG, _______, _______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, RGB_TOG, RGB_VAI, _______, _______, _______,_______,RESET, _______,_______,_______,_______,_______, _______, _______, _______, _______, RGB_VAD, _______, _______, MO(_CL),_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, MO(_FL), _______, _______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, MO(_FL), RGB_SAI, _______, _______, _______,_______, RGB_MOD,RGB_MOD, _______, _______, _______, _______, RGB_HUD,RGB_SAD,RGB_HUI), }; + +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + if (record->event.pressed) { + switch(keycode) { + case M_SHRUG: + SEND_STRING("/shrug"SS_TAP(X_ENTER)); + return false; break; + } + } + return true; +}; |