Created
April 1, 2020 13:17
Star
You must be signed in to star a gist
Tokyo60 / Tsangan keymap
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 QMK_KEYBOARD_H | |
// Layers | |
#define _BASE 0 // Base (QWERTY) | |
#define _FN 3 // Function | |
#define BASE DF(_BASE) | |
// Aliases | |
#define ___V___ KC_TRNS | |
//#define _______ KC_NO | |
// Compound keys | |
#define FN_ESC LT(_FN, KC_ESC) // Esc-Fn | |
#define FN_SPC LT(_FN, KC_SPC) // Space-Fn | |
#define FN_DEL LT(_FN, KC_DEL) // Delete-Fn | |
#define CTL_ESC CTL_T(KC_ESC) // Esc on tap, Ctrl on hold | |
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
/* Base layer | |
* ,-----------------------------------------------------------------------------------------------------------------------. | |
* | ~+` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | \ | EscFN | | |
* |-----------------------------------------------------------------------------------------------------------------------+ | |
* | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | Backspace | | |
* |-----------------------------------------------------------------------------------------------------------------------+ | |
* | Esc + Ctrl | A | S | D | F | G | H | J | K | L | ; | ' | Enter | | |
* |-----------------------------------------------------------------------------------------------------------------------+ | |
* | Shift | Z | X | C | V | B | N | M | , | . | / | RShift | Del | | |
* |-----------------------------------------------------------------------------------------------------------------------+ | |
* | Ctrl | GUI | Alt | Space | Alt | GUI | Ctrl | | |
* `-----------------------------------------------------------------------------------------------------------------------' | |
*/ | |
[_BASE] = LAYOUT_tsangan( | |
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, FN_ESC, | |
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, | |
CTL_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | |
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_DEL, | |
KC_LCTL, KC_LGUI, KC_LALT, FN_SPC, KC_RALT, KC_RGUI, KC_RCTL), | |
[_FN] = LAYOUT_tsangan( | |
___V___, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, ___V___, | |
___V___, _______, KC_UP, _______, _______, KC_INS, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_BSPC, _______, _______, ___V___, | |
CTL_ESC, KC_LEFT, KC_DOWN, KC_RIGHT, _______, KC_DEL, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_ENT, _______, ___V___, | |
___V___, KC_F13, KC_F14, KC_F15, KC_F16, _______, KC_PSLS, KC_PAST, KC_PMNS, KC_PPLS, KC_PSCR, ___V___, ___V___, | |
___V___, ___V___, ___V___, KC_SPC, ___V___, ___V___, ___V___), | |
}; | |
void matrix_init_user(void) { | |
//user initialization | |
} | |
void matrix_scan_user(void) { | |
//user matrix | |
} | |
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment