summaryrefslogtreecommitdiff
path: root/keyboards/ckeys/obelus/keymaps/default/keymap.c
diff options
context:
space:
mode:
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>2018-05-09 21:37:04 -0700
committerJack Humbert <jack.humb@gmail.com>2018-05-10 00:37:04 -0400
commitc5264d6d89899f19bdeeaf9e2daeb90531617a48 (patch)
tree8f3862554b76a24766df6addfc1009a719d722a8 /keyboards/ckeys/obelus/keymaps/default/keymap.c
parent5346cb2d20100f2bbf35e8c8107ae272404f2198 (diff)
Move ckeys workshop to its own directory (#2928)
* move obelus and nakey to ckeys directory * delete the originals * short readme about ckeys * edit readmes to reflect new changes * add build guide info..and here's me trying to retrigger the build job
Diffstat (limited to 'keyboards/ckeys/obelus/keymaps/default/keymap.c')
-rw-r--r--keyboards/ckeys/obelus/keymaps/default/keymap.c116
1 files changed, 116 insertions, 0 deletions
diff --git a/keyboards/ckeys/obelus/keymaps/default/keymap.c b/keyboards/ckeys/obelus/keymaps/default/keymap.c
new file mode 100644
index 0000000000..a9b15e9347
--- /dev/null
+++ b/keyboards/ckeys/obelus/keymaps/default/keymap.c
@@ -0,0 +1,116 @@
+#include "obelus.h"
+#include "action_layer.h"
+#ifdef AUDIO_ENABLE
+ #include "audio.h"
+#endif
+
+extern keymap_config_t keymap_config;
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* LAYERS
+ * ,-----------------------.
+ * | | | |RESET|
+ * |-----+-----+-----+-----|
+ * |MUSIC| | | |
+ * |-----+-----+-----+-----|
+ * |NUMPD| NAV |GAMES| |
+ * |-----+-----+-----+-----|
+ * | | | | |
+ * `---------------------- '
+ */
+[0] = KEYMAP( /* LAYER SELECT */
+ KC_TRNS, KC_TRNS, KC_TRNS, RESET, \
+ TO(4), KC_TRNS, KC_TRNS, KC_TRNS, \
+ TO(1), TO(2), TO(3), KC_TRNS, \
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \
+),
+ /* NUMPAD
+ * ,-----------------------.
+ * | 7 | 8 | 9 | * |
+ * |-----+-----+-----+-----|
+ * | 4 | 5 | 6 | - |
+ * |-----+-----+-----+-----|
+ * | 1 | 2 | 3 | + |
+ * |-----+-----+-----+-----|
+ * | 0 | . | / | = |
+ * `---------------------- '
+ */
+[1] = KEYMAP( /* NUMPAD */
+ KC_P7, KC_P8, KC_P9, KC_PAST, \
+ KC_P4, KC_P5, KC_P6, KC_PMNS, \
+ KC_P1, KC_P2, KC_P3, KC_PPLS, \
+ KC_P0, KC_PDOT, KC_PSLS, LT(5,KC_PENT) \
+),
+ /* NUMPAD SUPPLEMENT
+ * ,-----------------------.
+ * |NUMLK| | | |
+ * |-----+-----+-----+-----|
+ * | | | | |
+ * |-----+-----+-----+-----|
+ * | | | | |
+ * |-----+-----+-----+-----|
+ * | | | | |
+ * `---------------------- '
+ */
+[5] = KEYMAP( /* NUMPAD SUPPLEMENT */
+ KC_NLCK, KC_TRNS, KC_TRNS, TO(0), \
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \
+),
+ /* NAV
+ * ,-----------------------.
+ * | INS |PGUP | TAB |PRSCR|
+ * |-----+-----+-----+-----|
+ * | DEL |PGDN |VOLD |VOLU |
+ * |-----+-----+-----+-----|
+ * |HOME | UP | END | |
+ * |-----+-----+-----+-----|
+ * |LEFT |DOWN |RIGHT|ENTER|
+ * `---------------------- '
+ */
+[2] = KEYMAP( /* NAV CLUSTER */
+ KC_INS, KC_PGUP, KC_TAB, KC_PSCR, \
+ KC_DEL, KC_PGDN, KC_VOLD, KC_VOLU, \
+ KC_HOME, KC_UP, KC_END, TO(0), \
+ KC_LEFT, KC_DOWN, KC_RGHT, KC_ENT \
+),
+ /* GAMING
+ * ,-----------------------.
+ * | ESC | 1 | 2 | 3 |
+ * |-----+-----+-----+-----|
+ * | TAB | Q | W | E |
+ * |-----+-----+-----+-----|
+ * |SHIFT| A | S | D |
+ * |-----+-----+-----+-----|
+ * |CTRL | C | R |SPACE|
+ * `---------------------- '
+ */
+[3] = KEYMAP( /* GAMING */
+ LT(4, KC_ESC), KC_1, KC_2, KC_3, \
+ KC_TAB, KC_Q, KC_W, KC_E, \
+ KC_LSFT, KC_A, KC_S, KC_D, \
+ KC_LCTL, KC_C, KC_R, KC_SPC \
+),
+ /* MUSIC
+ * ,-----------------------.
+ * | | | | |
+ * |-----+-----+-----+-----|
+ * | | | | |
+ * |-----+-----+-----+-----|
+ * | | | | |
+ * |-----+-----+-----+-----|
+ * |TOGGL|MODE | | |
+ * `---------------------- '
+ */
+[4] = KEYMAP( /* NUMPAD SUPPLEMENT */
+ KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, \
+ MU_TOG, MU_MOD, KC_NO, TO(0) \
+),
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ return true;
+}