From: Mark Sikora Date: Sat, 18 Jun 2016 21:57:50 +0000 (-0400) Subject: Full symbol layer for blazak layout X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=a13f6b8f2a8fcdce3a97869aeeef6e47700008a0;p=max%2Ftmk_keyboard.git Full symbol layer for blazak layout --- diff --git a/keyboard/ergodox/keymap_blazak.c b/keyboard/ergodox/keymap_blazak.c index 2a8164c5..da92696f 100644 --- a/keyboard/ergodox/keymap_blazak.c +++ b/keyboard/ergodox/keymap_blazak.c @@ -18,6 +18,29 @@ along with this program. If not, see . #include "bootloader.h" #include "keymap_common.h" +// Aliases for shifted symbols +// Names from QMK +#define KC_TILD KC_FN11 +#define KC_EXLM KC_FN12 +#define KC_AT KC_FN13 +#define KC_HASH KC_FN14 +#define KC_DLR KC_FN15 +#define KC_PERC KC_FN16 +#define KC_CIRC KC_FN17 +#define KC_AMPR KC_FN18 +#define KC_ASTR KC_FN19 +#define KC_LPRN KC_FN20 +#define KC_RPRN KC_FN21 +#define KC_UNDS KC_FN22 +#define KC_PLUS KC_FN23 +#define KC_LCBR KC_FN24 +#define KC_RCBR KC_FN25 +#define KC_LABK KC_FN26 +#define KC_RABK KC_FN27 +#define KC_COLN KC_FN28 +#define KC_PIPE KC_FN29 +#define KC_QUES KC_FN30 +#define KC_DQT KC_FN31 const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KEYMAP( // layer 0 : default @@ -43,19 +66,19 @@ const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KEYMAP( // layer 1 : function and symbol keys // left hand - TRNS,F1, F2, F3, F4, F5, F11, - TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,FN4, - TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, - TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, + NO, F1, F2, F3, F4, F5, F11, + TRNS,LCBR,RCBR,LBRC,RBRC,NO, FN4, + TRNS,SCLN,SLSH,MINS,P0, COLN, + TRNS,P6, P7, P8, P9, PLUS,TRNS, TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS, TRNS, TRNS,TRNS,TRNS, // right hand - F12, F6, F7, F8, F9, F10, TRNS, - TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, - TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, - TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, + F12, F6, F7, F8, F9, F10, PWR, + TRNS,NO, MINS,LABK,RABK,DLR ,VOLU, + BSLS,P1, LPRN,RPRN,PLUS,VOLD, + TRNS,ASTR,P2, P3, P4, P5, MUTE, TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS, TRNS, @@ -114,12 +137,41 @@ enum function_id { /* * Fn action definition */ -const uint16_t PROGMEM fn_actions[] = { +const uint16_t PROGMEM fn_actions[32] = { ACTION_FUNCTION(TEENSY_KEY), // FN0 - Teensy key ACTION_LAYER_MOMENTARY(1), // FN1 - switch to Layer1 ACTION_LAYER_SET(2, ON_PRESS), // FN2 - set Layer2 ACTION_LAYER_TOGGLE(3), // FN3 - toggle Layer3 aka Numpad layer ACTION_LAYER_SET(0, ON_PRESS), // FN4 - set Layer0 + // Reserved for user actions + ACTION_NO, + ACTION_NO, + ACTION_NO, + ACTION_NO, + ACTION_NO, + ACTION_NO, + // Shifted keys + ACTION_MODS_KEY(MOD_LSFT, KC_GRV), // FN11 - ~ + ACTION_MODS_KEY(MOD_LSFT, KC_1), // FN12 - ! + ACTION_MODS_KEY(MOD_LSFT, KC_2), // FN13 - @ + ACTION_MODS_KEY(MOD_LSFT, KC_3), // FN14 - # + ACTION_MODS_KEY(MOD_LSFT, KC_4), // FN15 - $ + ACTION_MODS_KEY(MOD_LSFT, KC_5), // FN16 - % + ACTION_MODS_KEY(MOD_LSFT, KC_6), // FN17 - ^ + ACTION_MODS_KEY(MOD_LSFT, KC_7), // FN18 - & + ACTION_MODS_KEY(MOD_LSFT, KC_8), // FN19 - * + ACTION_MODS_KEY(MOD_LSFT, KC_9), // FN20 - ( + ACTION_MODS_KEY(MOD_LSFT, KC_0), // FN21 - ) + ACTION_MODS_KEY(MOD_LSFT, KC_MINS), // FN22 - _ + ACTION_MODS_KEY(MOD_LSFT, KC_EQL), // FN23 - + + ACTION_MODS_KEY(MOD_LSFT, KC_LBRC), // FN24 - { + ACTION_MODS_KEY(MOD_LSFT, KC_RBRC), // FN25 - } + ACTION_MODS_KEY(MOD_LSFT, KC_COMM), // FN26 - < + ACTION_MODS_KEY(MOD_LSFT, KC_DOT), // FN27 - > + ACTION_MODS_KEY(MOD_LSFT, KC_SCLN), // FN28 - : + ACTION_MODS_KEY(MOD_LSFT, KC_BSLS), // FN29 - | + ACTION_MODS_KEY(MOD_LSFT, KC_SLSH), // FN30 - ? + ACTION_MODS_KEY(MOD_LSFT, KC_QUOT), // FN31 - " }; void action_function(keyrecord_t *event, uint8_t id, uint8_t opt)