From fdf1f316a1461da226c43dd60e3acd773bc30919 Mon Sep 17 00:00:00 2001 From: Alon Swartz Date: Sun, 10 Jan 2016 12:08:51 +0200 Subject: [PATCH] blackhawk: experimental app layer --- keyboard/blackhawk/keymap_default.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/keyboard/blackhawk/keymap_default.c b/keyboard/blackhawk/keymap_default.c index 46e8fc68ff..5143eb7878 100644 --- a/keyboard/blackhawk/keymap_default.c +++ b/keyboard/blackhawk/keymap_default.c @@ -4,7 +4,7 @@ const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { // Layer 0: Default KEYMAP( TAB, Q, W, E, R, T, Y, U, I, O, P, MINS,\ - FN5, A, S, D, F, G, HOME,PGUP,H, J, K, L, SCLN,QUOT,\ + FN5, A, S, D, FN9, G, HOME,PGUP,H, J, K, L, SCLN,QUOT,\ FN7, Z, X, C, V, B, END, PGDN,N, M, COMM,DOT, SLSH,FN8, \ WH_D,WH_U,LGUI,LALT,FN5, FN1, FN3, FN4, FN2, FN6, LEFT,DOWN,UP, RGHT), @@ -21,6 +21,13 @@ const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { TRNS,PGDN,LEFT,DOWN,RGHT,NO, NO, NO, NO, MS_L,MS_D,MS_R,WH_D,NO, \ TRNS,F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS,\ NO, NO, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,BTN1,BTN3,BTN2,PAUS,NO, NO), + + // Layer 3: Apps + KEYMAP( + NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, \ + NO, NO, NO, NO, TRNS,NO, NO, NO, NO, FN27,FN28,FN29,FN30,FN31,\ + NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, \ + NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO), }; // Maximum of 32 function actions @@ -34,6 +41,7 @@ const uint16_t PROGMEM fn_actions[] = { [6] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_TAB), [7] = ACTION_MODS_ONESHOT(MOD_LSFT), [8] = ACTION_MODS_ONESHOT(MOD_RSFT), + [9] = ACTION_LAYER_TAP_KEY(3, KC_F), // Symbols [10] = ACTION_MODS_KEY(MOD_LSFT, KC_GRAVE), // ~ @@ -53,5 +61,12 @@ const uint16_t PROGMEM fn_actions[] = { [24] = ACTION_MODS_KEY(MOD_LSFT, KC_EQUAL), // + [25] = ACTION_MODS_KEY(MOD_LSFT, KC_QUOTE), // " [26] = ACTION_MODS_KEY(MOD_LSFT, KC_MINUS), // _ + + // Apps + [27] = ACTION_MODS_KEY(MOD_LGUI, KC_1), + [28] = ACTION_MODS_KEY(MOD_LGUI, KC_2), + [29] = ACTION_MODS_KEY(MOD_LGUI, KC_3), + [30] = ACTION_MODS_KEY(MOD_LGUI, KC_4), + [31] = ACTION_MODS_KEY(MOD_LGUI, KC_5), };