aboutsummaryrefslogtreecommitdiff
path: root/keyboards/lily58/keymaps
diff options
context:
space:
mode:
authorGastón Jorquera <email@gaston.life>2021-09-08 16:55:12 -0700
committerGitHub <noreply@github.com>2021-09-08 16:55:12 -0700
commitd510f6afa97801ea53078ac7fbdbd24824d77f4e (patch)
tree0b3838fd5b4296bbb512447855d6622c2d10c8e0 /keyboards/lily58/keymaps
parent4294aa0f1ee546c74a72bad3e556d7ee4e020a88 (diff)
downloadqmk_firmware-d510f6afa97801ea53078ac7fbdbd24824d77f4e.tar.gz
qmk_firmware-d510f6afa97801ea53078ac7fbdbd24824d77f4e.zip
[Keymap] Add Gaston's Lily58 custom keymap (#14334)
Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Gaston Jorquera <gjorquera@gmail.com>
Diffstat (limited to 'keyboards/lily58/keymaps')
-rw-r--r--keyboards/lily58/keymaps/gaston/config.h26
-rw-r--r--keyboards/lily58/keymaps/gaston/keymap.c58
-rw-r--r--keyboards/lily58/keymaps/gaston/readme.md67
-rw-r--r--keyboards/lily58/keymaps/gaston/rules.mk9
4 files changed, 160 insertions, 0 deletions
diff --git a/keyboards/lily58/keymaps/gaston/config.h b/keyboards/lily58/keymaps/gaston/config.h
new file mode 100644
index 000000000..621a0a929
--- /dev/null
+++ b/keyboards/lily58/keymaps/gaston/config.h
@@ -0,0 +1,26 @@
1/* Copyright 2012 Jun Wako <wakojun@gmail.com>
2 * Copyright 2015 Jack Humbert
3 * Copyright 2021 Gaston Jorquera
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/* This is the c configuration file for the keymap. */
20
21#pragma once
22
23#define MASTER_LEFT
24
25#define TAPPING_FORCE_HOLD
26#define TAPPING_TERM 150 /* ms */
diff --git a/keyboards/lily58/keymaps/gaston/keymap.c b/keyboards/lily58/keymaps/gaston/keymap.c
new file mode 100644
index 000000000..234b283a9
--- /dev/null
+++ b/keyboards/lily58/keymaps/gaston/keymap.c
@@ -0,0 +1,58 @@
1/* Copyright 2021 Gaston Jorquera
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17/* This is the keymap configuration. */
18
19#include QMK_KEYBOARD_H
20
21enum layer_number {
22 _QWERTY = 0,
23 _LOWER,
24 _MOUSE,
25};
26
27#define EN_LOWER LT(_LOWER, KC_SPC)
28#define EN_MOUSE MO(_MOUSE)
29
30/* See the readme.md file for an ASCII representation of this keymap. */
31
32const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
33
34[_QWERTY] = LAYOUT(
35 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
36 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS,
37 KC_LCTRL,KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
38 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, EN_MOUSE,KC_EQL, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
39 KC_RALT, KC_LALT, KC_LGUI, EN_LOWER,EN_LOWER, KC_LBRC, KC_RBRC, KC_BSLS
40),
41
42[_LOWER] = LAYOUT(
43 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
44 XXXXXXX, XXXXXXX, KC_MUTE, KC_VOLD, KC_VOLU, XXXXXXX, KC_HOME, KC_PGDN, KC_PGUP, KC_END, XXXXXXX, KC_F12,
45 XXXXXXX, XXXXXXX, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, XXXXXXX,
46 XXXXXXX, XXXXXXX, XXXXXXX, KC_BRID, KC_BRIU, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_INS, KC_DEL, XXXXXXX, XXXXXXX, XXXXXXX,
47 XXXXXXX, XXXXXXX, XXXXXXX, KC_TRNS, KC_TRNS, XXXXXXX, XXXXXXX, XXXXXXX
48),
49
50[_MOUSE] = LAYOUT(
51 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
52 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BTN1, KC_BTN2, XXXXXXX, XXXXXXX, KC_ACL0, XXXXXXX,
53 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, KC_ACL1, XXXXXXX,
54 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_TRNS, XXXXXXX, KC_WH_L, KC_WH_D, KC_WH_U, KC_WH_R, KC_ACL2, XXXXXXX,
55 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
56)
57
58};
diff --git a/keyboards/lily58/keymaps/gaston/readme.md b/keyboards/lily58/keymaps/gaston/readme.md
new file mode 100644
index 000000000..2d28be00a
--- /dev/null
+++ b/keyboards/lily58/keymaps/gaston/readme.md
@@ -0,0 +1,67 @@
1# Gaston's Lily58 Keymap
2
3A simple three layers keymap to improve typing performance by reducing
4cognitive load.
5
6The main characteristics of this keymap are:
7
8* The QWERTY layer tries to be as normal as possible, without having to use
9 modifiers.
10 * The main thumb buttons are spaces when tapped and enable the LOWER layer
11 when held.
12 * Vim style arrow keys.
13 * Left and right ALT in case you need different behaviors. (For example, the
14 default Option and readline's Alt behavior in macOS.)
15* The LOWER layer has mostly meta keys.
16* The MOUSE layer controls the mouse.
17
18## QWERTY Layer
19
20```plain
21,-----------------------------------------. ,-----------------------------------------.
22| ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | BSPC |
23|------+------+------+------+------+------| |------+------+------+------+------+------|
24| TAB | Q | W | E | R | T | | Y | U | I | O | P | - |
25|------+------+------+------+------+------| |------+------+------+------+------+------|
26|LCTRL | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' |
27|------+------+------+------+------+------| MOUSE | | = |------+------+------+------+------+------|
28| LSFT | Z | X | C | V | B |-------| |-------| N | M | , | . | / | ENT |
29`-----------------------------------------/ LT / \ LT \----------------------------------------'
30 | RALT | LALT | LGUI | / LOWER / \ LOWER \ | [ | ] | \ |
31 | | | |/ SPC / \ SPC \ | | | |
32 `----------------------------' '-----------------------------'
33```
34
35## LOWER Layer
36
37```plain
38,-----------------------------------------. ,-----------------------------------------.
39| ESC | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F11 |
40|------+------+------+------+------+------| |------+------+------+------+------+------|
41| | | MUTE | VOLD | VOLU | | | HOME | PGDN | PGUP | END | | F12 |
42|------+------+------+------+------+------| |------+------+------+------+------+------|
43| | | MPRV | MPLY | MNXT | |-------. ,-------| LEFT | DOWN | UP | RGHT | | |
44|------+------+------+------+------+------| | | |------+------+------+------+------+------|
45| | | | BRID | BRIU | |-------| |-------| | INS | DEL | | | |
46`-----------------------------------------/ / \ \----------------------------------------'
47 | | | | / TRNS / \ TRNS \ | | | |
48 | | | |/ / \ \ | | | |
49 `----------------------------' '-----------------------------'
50```
51
52## MOUSE Layer
53
54```plain
55,-----------------------------------------. ,-----------------------------------------.
56| | | | | | | | | | | | | |
57|------+------+------+------+------+------| |------+------+------+------+------+------|
58| | | | | | | | BTN1 | BTN2 | | | ACL0 | |
59|------+------+------+------+------+------| |------+------+------+------+------+------|
60| | | | | | |-------. ,-------| MS_L | MS_D | MS_U | MS_R | ACL1 | |
61|------+------+------+------+------+------| TRNS | | |------+------+------+------+------+------|
62| | | | | | |-------| |-------| WH_L | WH_D | WH_U | WH_R | ACL2 | |
63`-----------------------------------------/ / \ \----------------------------------------'
64 | | | | / / \ \ | | | |
65 | | | |/ / \ \ | | | |
66 `----------------------------' '-----------------------------'
67```
diff --git a/keyboards/lily58/keymaps/gaston/rules.mk b/keyboards/lily58/keymaps/gaston/rules.mk
new file mode 100644
index 000000000..4d566ddb7
--- /dev/null
+++ b/keyboards/lily58/keymaps/gaston/rules.mk
@@ -0,0 +1,9 @@
1MOUSEKEY_ENABLE = yes
2EXTRAKEY_ENABLE = yes
3RGBLIGHT_ENABLE = no
4OLED_ENABLE = no
5
6SRC += ./lib/rgb_state_reader.c \
7 ./lib/layer_state_reader.c \
8 ./lib/logo_reader.c \
9 ./lib/keylogger.c \