aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ferris
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ferris')
-rw-r--r--keyboards/ferris/keymaps/madhatter/config.h22
-rw-r--r--keyboards/ferris/keymaps/madhatter/keymap.c57
-rw-r--r--keyboards/ferris/keymaps/madhatter/rules.mk2
3 files changed, 81 insertions, 0 deletions
diff --git a/keyboards/ferris/keymaps/madhatter/config.h b/keyboards/ferris/keymaps/madhatter/config.h
new file mode 100644
index 000000000..79496ae75
--- /dev/null
+++ b/keyboards/ferris/keymaps/madhatter/config.h
@@ -0,0 +1,22 @@
1/*
2Copyright 2020 Pierre Chevalier <pierrechevalier83@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20// Pick good defaults for enabling homerow modifiers
21#define TAPPING_TERM 200
22#define IGNORE_MOD_TAP_INTERRUPT
diff --git a/keyboards/ferris/keymaps/madhatter/keymap.c b/keyboards/ferris/keymaps/madhatter/keymap.c
new file mode 100644
index 000000000..5a3f416e7
--- /dev/null
+++ b/keyboards/ferris/keymaps/madhatter/keymap.c
@@ -0,0 +1,57 @@
1// this is the style you want to emulate.
2// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
3
4#include QMK_KEYBOARD_H
5
6// Each layer gets a name for readability, which is then used in the keymap matrix below.
7// The underscores don't mean anything - you can have a layer called STUFF or any other name.
8// Layer names don't all need to be of the same length, obviously, and you can also skip them
9// entirely and just use numbers.
10
11enum ferris_layers {
12 _QWERTY,
13 _LOWER,
14 _RAISE
15};
16
17enum ferris_tap_dances {
18 TD_Q_ESC
19};
20
21#define KC_CTSC RCTL_T(KC_SCLN)
22#define KC_CTLA LCTL_T(KC_A)
23#define KC_LSHZ LSFT_T(KC_Z)
24#define KC_RLSH RSFT_T(KC_SLSH)
25#define KC_SPM2 LT(2, KC_SPC)
26#define KC_BSM1 LT(1, KC_BSPC)
27#define KC_GUTA GUI_T(KC_TAB)
28#define KC_CLGV CTL_T(KC_GRV)
29
30const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
31 [_QWERTY] = LAYOUT( /* QWERTY */
32 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
33 KC_CTLA, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
34 KC_LSHZ, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RLSH,
35 KC_CLGV, KC_BSM1, KC_SPM2, KC_GUTA
36 ),
37
38 [_LOWER] = LAYOUT( /* [> LOWER <] */
39 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
40 KC_GESC, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_QUOT,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_BTN1, KC_BTN2, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, KC_ENT,
42 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
43 ),
44
45 [_RAISE] = LAYOUT( /* [> RAISE <] */
46 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
47 KC_TAB, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_PIPE,
48 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UNDS, KC_PLUS, KC_TRNS, KC_TRNS, RESET,
49 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
50 )
51};
52
53// Tap Dance Definitions
54qk_tap_dance_action_t tap_dance_actions[] = {
55 // Tap once for Q, twice for ESC
56 [TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC)
57};
diff --git a/keyboards/ferris/keymaps/madhatter/rules.mk b/keyboards/ferris/keymaps/madhatter/rules.mk
new file mode 100644
index 000000000..2631761ce
--- /dev/null
+++ b/keyboards/ferris/keymaps/madhatter/rules.mk
@@ -0,0 +1,2 @@
1BOOTMAGIC_ENABLE = lite
2TAP_DANCE_ENABLE = yes \ No newline at end of file