Skip to content

Commit

Permalink
blackhawk: experimental app layer
Browse files Browse the repository at this point in the history
  • Loading branch information
alonswartz committed Jan 10, 2016
1 parent 0ab8896 commit fdf1f31
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion keyboard/blackhawk/keymap_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Expand All @@ -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
Expand All @@ -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), // ~
Expand All @@ -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),
};

0 comments on commit fdf1f31

Please sign in to comment.