aboutsummaryrefslogtreecommitdiff
path: root/keyboards/squiggle
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/squiggle')
-rw-r--r--keyboards/squiggle/keymaps/rick-complicated/config.h8
-rw-r--r--keyboards/squiggle/keymaps/rick-complicated/keymap.c195
-rw-r--r--keyboards/squiggle/keymaps/rick-complicated/readme.md3
-rw-r--r--keyboards/squiggle/keymaps/rick-complicated/rules.mk2
4 files changed, 208 insertions, 0 deletions
diff --git a/keyboards/squiggle/keymaps/rick-complicated/config.h b/keyboards/squiggle/keymaps/rick-complicated/config.h
new file mode 100644
index 000000000..5b9745189
--- /dev/null
+++ b/keyboards/squiggle/keymaps/rick-complicated/config.h
@@ -0,0 +1,8 @@
1#pragma once
2
3#define COMBO_TERM 100
4#define COMBO_COUNT 38
5#define IGNORE_MOD_TAP_INTERRUPT
6#define PERMISSIVE_HOLD
7
8#define LEADER_TIMEOUT 300
diff --git a/keyboards/squiggle/keymaps/rick-complicated/keymap.c b/keyboards/squiggle/keymaps/rick-complicated/keymap.c
new file mode 100644
index 000000000..eb5853e90
--- /dev/null
+++ b/keyboards/squiggle/keymaps/rick-complicated/keymap.c
@@ -0,0 +1,195 @@
1/* Copyright 2020 Ibnu D. Aji
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#include QMK_KEYBOARD_H
17
18// enum for combos.
19enum combos {
20 // left hand combinations.
21 COLON_COMMA,
22 COMMA_DOT,
23 DOT_P,
24 P_Y,
25 COMMA_P,
26 QUOT_Q,
27 Q_J,
28 J_K,
29 Q_K,
30 K_X,
31
32 // right hand combinations.
33 L_R,
34 R_C,
35 C_G,
36 R_G,
37 G_F,
38 V_W,
39 W_M,
40 V_M,
41 M_B,
42
43 // both hands combinations.
44 J_W,
45};
46
47enum {
48 _BASE,
49 _LOWER,
50 _RAISE,
51 _ADJUST,
52};
53
54enum custom_keycodes {
55 BASE = SAFE_RANGE,
56 LOWER,
57 RAISE,
58 ADJUST,
59};
60
61// thumb keys.
62#define ALT_ENT ALT_T(KC_ENT)
63#define SFT_ESC SFT_T(KC_ESC)
64
65// home row mods.
66#define CT_O LCTL_T(KC_O)
67#define CT_N RCTL_T(KC_N)
68#define SH_A LSFT_T(KC_A)
69#define SH_S RSFT_T(KC_S)
70#define AL_E LALT_T(KC_E)
71#define AL_T RALT_T(KC_T)
72#define GU_I LGUI_T(KC_I)
73#define GU_D RGUI_T(KC_D)
74
75// layer toggle.
76#define LW_BSPC LT(_LOWER, KC_BSPC)
77#define RS_SPC LT(_RAISE, KC_SPC)
78#define RS_D LT(_RAISE, KC_D)
79#define LW_I LT(_LOWER, KC_I)
80
81// idk, man. not used, i guess.
82#define ADDDD MO(_ADJUST)
83
84// common shortcuts for windows and linux that i use.
85#define NXTTAB LCTL(KC_PGDN)
86#define PRVTAB LCTL(KC_PGUP)
87#define UPTAB LCTL(LSFT(KC_PGUP))
88#define DNTAB LCTL(LSFT(KC_PGDN))
89#define NXTWIN LALT(KC_TAB)
90#define PRVWIN LALT(LSFT(KC_TAB))
91#define CALDL LCTL(LALT(KC_DELT))
92#define TSKMGR LCTL(LSFT(KC_ESC))
93#define EXPLR LGUI(KC_E)
94#define LCKGUI LGUI(KC_L)
95#define CONPST LSFT(KC_INS)
96#define CLSGUI LALT(KC_F4)
97
98// left hand combinations.
99const uint16_t PROGMEM colon_comma_combo[] = {KC_SCLN, KC_COMM, COMBO_END};
100const uint16_t PROGMEM comma_dot_combo[] = {KC_COMM, KC_DOT, COMBO_END};
101const uint16_t PROGMEM dot_p_combo[] = {KC_DOT, KC_P, COMBO_END};
102const uint16_t PROGMEM p_y_combo[] = {KC_P, KC_Y, COMBO_END};
103const uint16_t PROGMEM comma_p_combo[] = {KC_COMM, KC_P, COMBO_END};
104const uint16_t PROGMEM quot_q_combo[] = {KC_QUOT, KC_Q, COMBO_END};
105const uint16_t PROGMEM q_j_combo[] = {KC_Q, KC_J, COMBO_END};
106const uint16_t PROGMEM j_k_combo[] = {KC_J, KC_K, COMBO_END};
107const uint16_t PROGMEM q_k_combo[] = {KC_Q, KC_K, COMBO_END};
108const uint16_t PROGMEM k_x_combo[] = {KC_K, KC_X, COMBO_END};
109
110// right hand combinations.
111const uint16_t PROGMEM l_r_combo[] = {KC_L, KC_R, COMBO_END};
112const uint16_t PROGMEM r_c_combo[] = {KC_R, KC_C, COMBO_END};
113const uint16_t PROGMEM c_g_combo[] = {KC_C, KC_G, COMBO_END};
114const uint16_t PROGMEM r_g_combo[] = {KC_R, KC_G, COMBO_END};
115const uint16_t PROGMEM g_f_combo[] = {KC_G, KC_F, COMBO_END};
116const uint16_t PROGMEM v_w_combo[] = {KC_V, KC_W, COMBO_END};
117const uint16_t PROGMEM w_m_combo[] = {KC_W, KC_M, COMBO_END};
118const uint16_t PROGMEM v_m_combo[] = {KC_V, KC_M, COMBO_END};
119const uint16_t PROGMEM m_b_combo[] = {KC_M, KC_B, COMBO_END};
120
121// both hand combinations.
122const uint16_t PROGMEM j_w_combo[] = {KC_J, KC_W, COMBO_END};
123
124combo_t key_combos[COMBO_COUNT] = {
125 // left hand combinations.
126 [COLON_COMMA] = COMBO(colon_comma_combo, KC_TAB),
127 [COMMA_DOT] = COMBO(comma_dot_combo, KC_QUES),
128 [DOT_P] = COMBO(dot_p_combo, KC_UNDS),
129 [P_Y] = COMBO(p_y_combo, KC_PIPE),
130 [COMMA_P] = COMBO(comma_p_combo, PRVTAB),
131 [QUOT_Q] = COMBO(quot_q_combo, KC_ENT),
132 [Q_J] = COMBO(q_j_combo, LCTL(KC_W)),
133 [J_K] = COMBO(j_k_combo, KC_DELT),
134 [Q_K] = COMBO(q_k_combo, KC_TAB),
135 [K_X] = COMBO(k_x_combo, KC_TILD),
136
137 // right hand combinations.
138 [L_R] = COMBO(l_r_combo, KC_BSPC),
139 [R_C] = COMBO(r_c_combo, KC_SLSH),
140 [C_G] = COMBO(c_g_combo, KC_MINS),
141 [R_G] = COMBO(r_g_combo, NXTTAB),
142 [G_F] = COMBO(g_f_combo, KC_BSLS),
143 [V_W] = COMBO(v_w_combo, KC_APP),
144 [W_M] = COMBO(w_m_combo, KC_DELT),
145 [V_M] = COMBO(v_m_combo, LSFT(KC_TAB)),
146 [M_B] = COMBO(m_b_combo, KC_GRV),
147
148 // both hand combinations.
149 [J_W] = COMBO(j_w_combo, KC_ENT),
150};
151
152const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
153[_BASE] = LAYOUT_complicated(
154 KC_SCLN,KC_COMM,KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L,
155 SH_A, CT_O, AL_E, KC_U, GU_I, GU_D, KC_H, AL_T, CT_N, SH_S,
156 KC_QUOT,KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z,
157 LW_BSPC,KC_LEAD, ALT_ENT,RS_SPC,
158 LW_BSPC,SFT_ESC, ALT_ENT,RS_SPC
159),
160
161[_RAISE] = LAYOUT_complicated(
162 KC_EXLM,KC_AT, KC_UP, KC_LCBR,KC_RCBR, KC_BSLS,KC_7, KC_8, KC_9, KC_ASTR ,
163 KC_HASH,KC_LEFT,KC_DOWN,KC_RGHT,KC_DLR, KC_EQL, KC_4, KC_5, KC_6, KC_0 ,
164 KC_LBRC,KC_RBRC,KC_LPRN,KC_RPRN,KC_AMPR, KC_GRV, KC_1, KC_2, KC_3, KC_PLUS ,
165 ADDDD ,_______, _______,_______,
166 ADDDD ,_______, _______,_______
167),
168[_LOWER] = LAYOUT_complicated(
169 _______,_______,_______,KC_F1, KC_F2, KC_F3, KC_F4, _______,_______,_______ ,
170 KC_LSFT,KC_TAB, KC_PGUP,KC_F5, KC_F6, KC_F7, KC_F8, KC_HOME,KC_LALT,KC_ENT ,
171 KC_CLCK,KC_SLCK,KC_PGDN,KC_F9, KC_F10, KC_F11, KC_F12, KC_END, KC_INS, _______ ,
172 _______,_______, _______,ADDDD,
173 _______,_______, _______,ADDDD
174),
175[_ADJUST] = LAYOUT_complicated(
176 _______,EXPLR, KC_UP, PRVTAB, PRVWIN, NXTWIN, NXTTAB, _______,_______,LCKGUI,
177 TSKMGR, KC_LEFT,KC_DOWN,KC_RGHT,UPTAB, DNTAB, KC_ENT, KC_LGUI,_______,CALDL,
178 _______,CLSGUI, _______,CONPST, RESET, _______,_______,_______,_______,_______,
179 _______,_______, _______,_______,
180 _______,_______, _______,_______
181),
182};
183
184LEADER_EXTERNS();
185
186void matrix_scan_user() {
187 LEADER_DICTIONARY() {
188 leading = false;
189 leader_end();
190
191 SEQ_ONE_KEY(KC_U) {
192 SEND_STRING(":luvu:\n");
193 }
194 }
195}
diff --git a/keyboards/squiggle/keymaps/rick-complicated/readme.md b/keyboards/squiggle/keymaps/rick-complicated/readme.md
new file mode 100644
index 000000000..d14eb193c
--- /dev/null
+++ b/keyboards/squiggle/keymaps/rick-complicated/readme.md
@@ -0,0 +1,3 @@
1# goldberg keymap
2
3ricky rick's keymap on squiggle goldberg. ayyy.
diff --git a/keyboards/squiggle/keymaps/rick-complicated/rules.mk b/keyboards/squiggle/keymaps/rick-complicated/rules.mk
new file mode 100644
index 000000000..00c78275d
--- /dev/null
+++ b/keyboards/squiggle/keymaps/rick-complicated/rules.mk
@@ -0,0 +1,2 @@
1COMBO_ENABLE = yes
2LEADER_ENABLE = yes