diff options
author | QMK Bot <hello@qmk.fm> | 2021-01-30 03:25:22 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-01-30 03:25:22 +0000 |
commit | 8bcac0b72686bef039804048e10a0024d76d16c4 (patch) | |
tree | e551b666c1c8aaf213d872dbdcffee50cb59db05 /keyboards/handwired/angel/keymaps/default/keymap.c | |
parent | 4e362df68c16b7415cefcf878b8e0f2671077390 (diff) | |
parent | 53b35052eefc8a341cbc68d3d9aba52dfbf59f35 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/handwired/angel/keymaps/default/keymap.c')
-rw-r--r-- | keyboards/handwired/angel/keymaps/default/keymap.c | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/keyboards/handwired/angel/keymaps/default/keymap.c b/keyboards/handwired/angel/keymaps/default/keymap.c new file mode 100644 index 0000000000..23fd6d524b --- /dev/null +++ b/keyboards/handwired/angel/keymaps/default/keymap.c @@ -0,0 +1,74 @@ +/* Copyright 2021 James Sa + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include QMK_KEYBOARD_H + +// Defines names for use in layer keycodes and the keymap +enum layer_names { + _BASE, // Colemak mod DH + _KAI, // beginner, no modifier on home row + _PUNC, // puncuation + _FN // function +}; + +#define _C(X) CTL_T(X) +#define _A(X) ALT_T(X) +#define _S(X) SFT_T(X) +#define _G(X) GUI_T(X) +#define FN_TAB LT(_FN, KC_TAB) +#define PN_BS LT(_PUNC, KC_BSPC) +// macOS shortcut +#define _MSNCTL C(KC_UP) +#define _APPWIN C(KC_DOWN) +#define WKSPLF C(KC_LEFT) +#define WKSPRT C(KC_RGHT) +#define COPY G(KC_C) +#define PSTE G(KC_V) +#define CUT G(KC_X) +#define UNDO G(KC_Z) +#define REDO G(S(KC_Z)) +#define SCNSHOT S(G(KC_4)) +// window management utility +#define DIVVY G(KC_G) +// puncuation +#define KC_DQOT S(KC_QUOT) // " + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_BASE] LAYOUT( + KC_Q, KC_W, KC_F, KC_P, KC_B, KC_QUOT, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, + _C(KC_A),_A(KC_R),_S(KC_S),_G(KC_T),KC_G, KC_LBRC, KC_RBRC, KC_M, _G(KC_N),_S(KC_E),_A(KC_I),_C(KC_O), + KC_Z, KC_X, KC_C, KC_D, KC_V, KC_MINS, KC_GRV, KC_EQL, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, + KC_ESC, KC_UP, KC_DOWN, PN_BS, FN_TAB, KC_ENT, KC_CAPS, KC_SPC, KC_LEFT, KC_RGHT, KC_BSLS + ), + [_KAI] LAYOUT( + KC_Q, KC_W, KC_F, KC_P, KC_B, KC_QUOT, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, + KC_A, KC_R, KC_S, KC_T, KC_G, KC_LBRC, KC_RBRC, KC_M, KC_N, KC_E, KC_I, KC_O, + _S(KC_Z),KC_X, KC_C, KC_D, KC_V, KC_MINS,TO(_BASE),KC_EQL, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, + _C(KC_ESC), _A(KC_UP), _G(KC_DOWN), PN_BS, FN_TAB, KC_ENT, KC_CAPS, KC_SPC, KC_LEFT, KC_RGHT, KC_BSLS + ), + [_PUNC] LAYOUT( + KC_PERC, KC_CIRC, KC_AMPR, KC_DLR, _______, _______, _______, KC_7, KC_8, KC_9, KC_PLUS, + KC_EXLM, KC_AT, KC_HASH, KC_DQOT, KC_LPRN, _______, _______, KC_RPRN, KC_4, KC_5, KC_6, KC_MINS, + _______, _______, _______, KC_QUOT, _______, _______, _______, _______, _______, KC_1, KC_2, KC_3, KC_ASTR, + _______, _______, _______, _______, _______, _______, _______, KC_0, KC_COMM, KC_DOT, KC_SLSH + ), + [_FN] LAYOUT( + _______, SCNSHOT, DIVVY, _______, _______, _______, _______, _______, KC_UP, KC_VOLD, KC_VOLU, + UNDO, CUT, COPY, PSTE, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, + REDO, WKSPLF, _MSNCTL, WKSPRT, _______, _______,TO(_KAI), _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ + ) +}; |