Last active
September 16, 2020 23:44
-
-
Save manuhabitela/97d9632c12822116417563152a003cbb to your computer and use it in GitHub Desktop.
Layout GH60 RevCHN - spaceFN, ctrl on capslock, ISO missing key on fn layer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "keymap_common.h" | |
/* following https://gist.github.com/Leimi/bca49d02e48c018ce4c8 to flash firmware on GH60 RevCHN */ | |
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
/* layer0: 60% qwerty with custom modifiers | |
* ESC instead of GRV, FN1 instead of LGUI, LGUI instead of LCTL, LCTL instead of CAPS, SPACEFN instead of SPACE */ | |
KEYMAP_ANSI( | |
ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \ | |
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \ | |
LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, \ | |
LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT, \ | |
LGUI, FN1,LALT, FN0, RALT,FN1,FN2, RCTL | |
), | |
/* layer1 = normal SPACE */ | |
KEYMAP_ANSI( | |
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \ | |
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \ | |
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \ | |
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \ | |
TRNS,TRNS,TRNS, SPC, TRNS,TRNS,TRNS,TRNS | |
), | |
/* layer2 = fn layer - arrows, nav keys, mouse */ | |
KEYMAP_ANSI( | |
GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, \ | |
TRNS,TRNS,MS_U,BTN1, BTN2,BTN3,TRNS,HOME,PGDN,PGUP,END,PAUS,PSCR, INS, \ | |
TRNS,MS_L,MS_D,MS_R,WH_U,TRNS,TRNS,LEFT,DOWN,UP,RGHT,TRNS, TRNS, \ | |
TRNS,NUBS,FN3,WH_D,TRNS,SPC, TRNS,MUTE,VOLD,VOLU,MUTE, TRNS, \ | |
TRNS,TRNS,TRNS, TRNS, TRNS,TRNS,TRNS,TRNS | |
) | |
}; | |
const uint16_t PROGMEM fn_actions[] = { | |
[0] = ACTION_LAYER_TAP_KEY(2, KC_SPACE), | |
[1] = ACTION_LAYER_MOMENTARY(2), | |
[2] = ACTION_LAYER_TOGGLE(1), | |
[3] = ACTION_MODS_KEY(MOD_LSFT, KC_NUBS) // shift ISO key (KC_NONUS_BSLASH) | |
}; | |
#ifdef KEYMAP_IN_EEPROM_ENABLE | |
uint16_t keys_count(void) { | |
return sizeof(keymaps) / sizeof(keymaps[0]) * MATRIX_ROWS * MATRIX_COLS; | |
} | |
uint16_t fn_actions_count(void) { | |
return sizeof(fn_actions) / sizeof(fn_actions[0]); | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment