aboutsummaryrefslogtreecommitdiff
path: root/keyboards/eco
diff options
context:
space:
mode:
authorThat-Canadian <poole.chris.11@gmail.com>2017-08-19 17:01:21 -0400
committerJack Humbert <jack.humb@gmail.com>2017-08-20 11:47:46 -0400
commit937b86d030dd603581e5747818f9a8c08c2d35d3 (patch)
treef524e56f7cbc128cc1d3f58dc34b074268966a4d /keyboards/eco
parentcc9b0eb109104d8f2d8b2742bd1eb4510eaeef10 (diff)
downloadqmk_firmware-937b86d030dd603581e5747818f9a8c08c2d35d3.tar.gz
qmk_firmware-937b86d030dd603581e5747818f9a8c08c2d35d3.zip
Added default ECO keymap
Diffstat (limited to 'keyboards/eco')
-rw-r--r--keyboards/eco/keymaps/default/Makefile25
-rw-r--r--keyboards/eco/keymaps/default/keymap.c107
-rw-r--r--keyboards/eco/keymaps/default/readme.md3
3 files changed, 135 insertions, 0 deletions
diff --git a/keyboards/eco/keymaps/default/Makefile b/keyboards/eco/keymaps/default/Makefile
new file mode 100644
index 000000000..7dab97942
--- /dev/null
+++ b/keyboards/eco/keymaps/default/Makefile
@@ -0,0 +1,25 @@
1
2
3# Build Options
4# change to "no" to disable the options, or define them in the Makefile in
5# the appropriate keymap folder that will get included automatically
6#
7BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
8MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
9EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
10CONSOLE_ENABLE = no # Console for debug(+400)
11COMMAND_ENABLE = no # Commands for debug and configuration
12NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
13BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
14MIDI_ENABLE = no # MIDI controls
15AUDIO_ENABLE = no # Audio output on port C6
16UNICODE_ENABLE = no # Unicode
17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
18RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
19
20# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
22
23ifndef QUANTUM_DIR
24 include ../../../../Makefile
25endif
diff --git a/keyboards/eco/keymaps/default/keymap.c b/keyboards/eco/keymaps/default/keymap.c
new file mode 100644
index 000000000..fc8339caa
--- /dev/null
+++ b/keyboards/eco/keymaps/default/keymap.c
@@ -0,0 +1,107 @@
1// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
2// this is the style you want to emulate.
3
4// Default ECO Layout
5// KLE here : http://www.keyboard-layout-editor.com/#/gists/0733eca6b4cb88ff9d7de746803f4039
6
7#include "eco.h"
8#include "action_layer.h"
9#include "eeconfig.h"
10
11extern keymap_config_t keymap_config;
12
13// Each layer gets a name for readability, which is then used in the keymap matrix below.
14// The underscores don't mean anything - you can have a layer called STUFF or any other name.
15// Layer names don't all need to be of the same length, obviously, and you can also skip them
16// entirely and just use numbers.
17#define _QWERTY 0
18#define _FN1 2
19#define _FN2 3
20
21enum eco_keycodes {
22 QWERTY = SAFE_RANGE
23};
24
25// Fillers to make layering more clear
26#define _______ KC_TRNS
27#define XXXXXXX KC_NO
28
29// Defines for task manager and such
30#define CALTDEL LCTL(LALT(KC_DEL))
31#define TSKMGR LCTL(LSFT(KC_ESC))
32
33const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
34
35/* Qwerty
36 * ,-------------------------------------------------------------------------------------------------.
37 * | Esc | Q | W | E | R | T | Y | U | I | O | P | [ | ] | Bksp |
38 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
39 * | Tab | A | S | D | F | G | H | J | K | L | ; | ' | Enter| \ |
40 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
41 * | Shift| Z | X | C | V | B | N | M | , | . | / | Shift| Up | Del |
42 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
43 * | Ctrl | GUI | Alt | Del | FN1 | FN1 | Space| Space| FN2 | FN2 | Ctrl | Left | Down | Right|
44 * `-------------------------------------------------------------------------------------------------'
45 */
46[_QWERTY] = KEYMAP(
47 KC_ESC, 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,
48 KC_TAB, 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_BSLS,
49 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_UP, KC_DEL,
50 KC_LCTL, KC_LGUI,KC_LALT, KC_DEL, MO(_FN1), MO(_FN1), KC_SPC, KC_SPC, MO(_FN2), MO(_FN2), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
51),
52
53/* FN1
54 * ,-------------------------------------------------------------------------------------------------.
55 * | | ! | @ | # | $ | % | ^ | & | * | ( | ) | _ | + | |
56 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
57 * |caltde| F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | |
58 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
59 * | | | | | | | | | | | | | | |
60 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
61 * | | | | | | | | | | | | | | RESET|
62 * `-------------------------------------------------------------------------------------------------'
63 */
64[_FN1] = KEYMAP(
65 _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_UNDS, KC_PLUS, _______,
66 CALTDEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______,
67 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
68 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET
69),
70
71/* Raise
72 * ,-------------------------------------------------------------------------------------------------.
73 * | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | |
74 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
75 * |Taskmg| F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | |
76 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
77 * | | | | | | | | | | | | | | |
78 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
79 * | | | | | | | | | | | | | | |
80 * `-------------------------------------------------------------------------------------------------'
81 */
82[_FN2] = KEYMAP(
83 _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, _______,
84 TSKMGR, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______,
85 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
86 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
87)
88
89};
90
91void persistant_default_layer_set(uint16_t default_layer) {
92 eeconfig_update_default_layer(default_layer);
93 default_layer_set(default_layer);
94}
95
96bool process_record_user(uint16_t keycode, keyrecord_t *record) {
97 switch (keycode) {
98 case QWERTY:
99 if (record->event.pressed) {
100 persistant_default_layer_set(1UL<<_QWERTY);
101 }
102 return false;
103 break;
104 }
105 return true;
106}
107
diff --git a/keyboards/eco/keymaps/default/readme.md b/keyboards/eco/keymaps/default/readme.md
new file mode 100644
index 000000000..cf168377d
--- /dev/null
+++ b/keyboards/eco/keymaps/default/readme.md
@@ -0,0 +1,3 @@
1# ECO Default Layout by u/That-Canadian
2
3KLE here : http://www.keyboard-layout-editor.com/#/gists/0733eca6b4cb88ff9d7de746803f4039 \ No newline at end of file