summaryrefslogtreecommitdiff
path: root/keyboards/handwired/angel/keymaps/default
diff options
context:
space:
mode:
authorjames sa <188772+jamessa@users.noreply.github.com>2021-01-30 11:24:42 +0800
committerGitHub <noreply@github.com>2021-01-29 19:24:42 -0800
commit53b35052eefc8a341cbc68d3d9aba52dfbf59f35 (patch)
treea68821ef895b45de1e41a0930542726b8d75303e /keyboards/handwired/angel/keymaps/default
parent5691f1341dcb48d7d043bfd6f8663b414aaf427d (diff)
downloadqmk_firmware-53b35052eefc8a341cbc68d3d9aba52dfbf59f35.tar.gz
qmk_firmware-53b35052eefc8a341cbc68d3d9aba52dfbf59f35.zip
[Keyboard] A symmetric stagger keyboard: Angel (#11501)
* New symmetric stagger keyboard: Angel * mac layout * layout simplify * Update keyboards/angel/info.json Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/angel/keymaps/default/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/angel/config.h Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/angel/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/angel/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * tab lang switch * move to handwired and fix build instructions. Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/handwired/angel/keymaps/default')
-rw-r--r--keyboards/handwired/angel/keymaps/default/keymap.c74
-rw-r--r--keyboards/handwired/angel/keymaps/default/readme.md7
2 files changed, 81 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,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
+ )
+};
diff --git a/keyboards/handwired/angel/keymaps/default/readme.md b/keyboards/handwired/angel/keymaps/default/readme.md
new file mode 100644
index 0000000000..6425306b0e
--- /dev/null
+++ b/keyboards/handwired/angel/keymaps/default/readme.md
@@ -0,0 +1,7 @@
+# Hand-wire Angel
+
+![Angel Layout Image](https://raw.githubusercontent.com/jamessa/Angel/master/attachments/handwire.jpeg)
+
+The default layout for hand-wire Angel is Colemak-DHM with modifiers on the home row. I'd love to see how we can improve it.
+
+The most enjoyable part besides soldering is poking the QMK configurations and test it on keybr.com. It's so much fun. \ No newline at end of file