aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-03-03 04:07:13 +0000
committerQMK Bot <hello@qmk.fm>2021-03-03 04:07:13 +0000
commit8f5d2e546e69e09edd28ff68f3d3a894f96087a7 (patch)
treebb143c2a1abb13bbea47fc00286b9ee5f813575f
parent4132dd87a45d2b4c1e701d462cb2b056cbb16531 (diff)
parent0b6ff594484c90d34af787f03b45bae22447af60 (diff)
downloadqmk_firmware-8f5d2e546e69e09edd28ff68f3d3a894f96087a7.tar.gz
qmk_firmware-8f5d2e546e69e09edd28ff68f3d3a894f96087a7.zip
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r--keyboards/keebio/iris/keymaps/ddone/config.h22
-rw-r--r--keyboards/keebio/iris/keymaps/ddone/keymap.c156
-rw-r--r--keyboards/keebio/iris/keymaps/ddone/readme.md8
-rw-r--r--keyboards/keebio/iris/keymaps/ddone/rules.mk4
4 files changed, 190 insertions, 0 deletions
diff --git a/keyboards/keebio/iris/keymaps/ddone/config.h b/keyboards/keebio/iris/keymaps/ddone/config.h
new file mode 100644
index 000000000..0ad1f5f73
--- /dev/null
+++ b/keyboards/keebio/iris/keymaps/ddone/config.h
@@ -0,0 +1,22 @@
1/*
2Copyright 2021 Mykyta Poturai <ddone@aruko.org>
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// #define USE_I2C
21#define EE_HANDS
22#define PERMISSIVE_HOLD_PER_KEY
diff --git a/keyboards/keebio/iris/keymaps/ddone/keymap.c b/keyboards/keebio/iris/keymaps/ddone/keymap.c
new file mode 100644
index 000000000..584f15e76
--- /dev/null
+++ b/keyboards/keebio/iris/keymaps/ddone/keymap.c
@@ -0,0 +1,156 @@
1/* Copyright 2021 Mykyta Poturai <ddone@aruko.org>
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#include QMK_KEYBOARD_H
18
19enum custom_layers {
20 _QWERTY,
21 _LOWER,
22 _RAISE,
23 _ADJUST,
24};
25
26#define SPCFN1 LT(_LOWER, KC_SPC)
27#define SFTESC LSFT_T(KC_ESC)
28
29enum custom_keycodes {
30 LOWER = SAFE_RANGE,
31 RAISE,
32 ADJUST,
33};
34
35const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
36
37 [_QWERTY] = LAYOUT(
38 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
39 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
40 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
41 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL,
42 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
43 SFTESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_SFTENT,
44 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
45 KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, SPCFN1, KC_DEL, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RCTL,
46 //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
47 LOWER , KC_LWIN,SPCFN1, RAISE, RAISE, KC_RALT
48 // └────────┴────────┴────────┘ └────────┴────────┴────────┘
49 ),
50
51 [_LOWER] = LAYOUT(
52 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
53 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_PGUP,
54 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
55 _______, KC_1, KC_2, KC_3, KC_4, KC_LT, KC_GT, KC_7, KC_8, KC_9, KC_0, KC_PIPE,
56 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
57 _______, _______, _______, _______,_______, KC_LBRC, KC_RBRC, KC_4, KC_5, KC_6, KC_PLUS, KC_MINS,
58 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
59 _______, _______, _______, _______, _______, KC_LPRN, LOWER, _______, KC_RPRN, KC_1, KC_2, KC_3, KC_PAST, KC_PSLS,
60 //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
61 _______, _______, LOWER, _______, _______, KC_0
62 // └────────┴────────┴────────┘ └────────┴────────┴────────┘
63 ),
64
65 [_RAISE] = LAYOUT(
66 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
67 KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
68 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
69 _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
70 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
71 _______, _______, KC_BSLS, KC_EQUAL,KC_QUOTE,KC_UNDS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______,
72 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
73 _______, _______, _______, _______, _______, KC_MINS, LOWER, _______, KC_PLUS, _______, _______, _______, _______, _______,
74 //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
75 _______, _______, LOWER, _______, _______, _______
76 // └────────┴────────┴────────┘ └────────┴────────┴────────┘
77 ),
78
79 [_ADJUST] = LAYOUT(
80 //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
81 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET,
82 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
83 _______, _______, _______, RGB_VAD, RGB_VAI ,_______ , KC_PSCR, KC_BTN1, KC_BTN2, KC_BTN3, _______, _______,
84 //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
85 _______, _______, _______, RGB_RMOD,RGB_MOD, RGB_TOG , KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, _______, _______,
86 //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
87 _______, _______, _______, RGB_HUD, RGB_HUI, _______, LOWER, _______, _______, _______, _______, _______, _______, _______,
88 //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
89 _______, _______, LOWER, _______, _______, _______
90 // └────────┴────────┴────────┘ └────────┴────────┴────────┘
91 )
92};
93
94bool process_record_user(uint16_t keycode, keyrecord_t *record) {
95 switch (keycode) {
96 case LOWER:
97 if (record->event.pressed) {
98 layer_on(_LOWER);
99 update_tri_layer(_LOWER, _RAISE, _ADJUST);
100 } else {
101 layer_off(_LOWER);
102 update_tri_layer(_LOWER, _RAISE, _ADJUST);
103 }
104 return false;
105 break;
106 case RAISE:
107 if (record->event.pressed) {
108 layer_on(_RAISE);
109 update_tri_layer(_LOWER, _RAISE, _ADJUST);
110 } else {
111 layer_off(_RAISE);
112 update_tri_layer(_LOWER, _RAISE, _ADJUST);
113 }
114 return false;
115 break;
116 case ADJUST:
117 if (record->event.pressed) {
118 layer_on(_ADJUST);
119 } else {
120 layer_off(_ADJUST);
121 }
122 return false;
123 break;
124 }
125 return true;
126}
127
128bool get_permissive_hold(uint16_t keycode, keyrecord_t *record) {
129 switch (keycode) {
130 case SFTESC:
131 return true;
132 default:
133 return false;
134 }
135}
136
137
138
139void encoder_update_user(uint8_t index, bool clockwise) {
140
141 switch (get_highest_layer(layer_state)) {
142 case _LOWER:
143 if (clockwise) {
144 tap_code(KC_WH_D);
145 } else {
146 tap_code(KC_WH_U);
147 }
148 break;
149 default:
150 if (clockwise) {
151 tap_code(KC_PGDN);
152 } else {
153 tap_code(KC_PGUP);
154 }
155 }
156}
diff --git a/keyboards/keebio/iris/keymaps/ddone/readme.md b/keyboards/keebio/iris/keymaps/ddone/readme.md
new file mode 100644
index 000000000..837e79bec
--- /dev/null
+++ b/keyboards/keebio/iris/keymaps/ddone/readme.md
@@ -0,0 +1,8 @@
1![Ddone's Iris](https://i.imgur.com/0wQ3o53.jpg)
2
3# Dddone's Iris keymap
4
5## Keymap
6
7![Layers 0 and 1](https://i.imgur.com/Mff2AIV.png)
8![Layers 2 and 3](https://i.imgur.com/h2vfPIp.png)
diff --git a/keyboards/keebio/iris/keymaps/ddone/rules.mk b/keyboards/keebio/iris/keymaps/ddone/rules.mk
new file mode 100644
index 000000000..c81eaa937
--- /dev/null
+++ b/keyboards/keebio/iris/keymaps/ddone/rules.mk
@@ -0,0 +1,4 @@
1LTO_ENABLE = yes
2COMMAND_ENABLE = no
3MOUSEKEY_ENABLE = yes
4BOOTMAGIC_ENABLE = lite