diff options
-rw-r--r-- | keyboards/mechwild/obe/keymaps/jonavin/config.h | 39 | ||||
-rw-r--r-- | keyboards/mechwild/obe/keymaps/jonavin/keymap.c | 114 | ||||
-rw-r--r-- | keyboards/mechwild/obe/keymaps/jonavin/readme.md | 46 | ||||
-rw-r--r-- | keyboards/mechwild/obe/keymaps/jonavin/rules.mk | 11 | ||||
-rw-r--r-- | users/jonavin/jonavin.c | 32 | ||||
-rw-r--r-- | users/jonavin/jonavin.h | 14 | ||||
-rw-r--r-- | users/jonavin/readme.md | 106 | ||||
-rw-r--r-- | users/jonavin/rules.mk | 3 |
8 files changed, 322 insertions, 43 deletions
diff --git a/keyboards/mechwild/obe/keymaps/jonavin/config.h b/keyboards/mechwild/obe/keymaps/jonavin/config.h new file mode 100644 index 000000000..8a812f155 --- /dev/null +++ b/keyboards/mechwild/obe/keymaps/jonavin/config.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* Copyright 2021 Jonavin Eng | ||
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 | #pragma once | ||
18 | |||
19 | #define TAPPING_TOGGLE 2 | ||
20 | // TT set to two taps | ||
21 | |||
22 | /* Handle GRAVESC combo keys */ | ||
23 | #define GRAVE_ESC_ALT_OVERRIDE | ||
24 | //Always send Escape if Alt is pressed | ||
25 | #define GRAVE_ESC_CTRL_OVERRIDE | ||
26 | //Always send Escape if Control is pressed | ||
27 | |||
28 | #define TAPPING_TERM 180 | ||
29 | |||
30 | #ifdef RGBLIGHT_ENABLE | ||
31 | // Redefine number of LED | ||
32 | #ifdef RGBLED_NUM | ||
33 | #undef RGBLED_NUM | ||
34 | #endif // DEBUG | ||
35 | #define RGBLED_NUM 20 | ||
36 | |||
37 | #define RGBLIGHT_LAYERS | ||
38 | #define RGBLIGHT_SLEEP | ||
39 | #endif // RGBLIGHT_ENABLE | ||
diff --git a/keyboards/mechwild/obe/keymaps/jonavin/keymap.c b/keyboards/mechwild/obe/keymaps/jonavin/keymap.c new file mode 100644 index 000000000..b5b082965 --- /dev/null +++ b/keyboards/mechwild/obe/keymaps/jonavin/keymap.c | |||
@@ -0,0 +1,114 @@ | |||
1 | /* Copyright 2021 Kyle McCreery | ||
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 | #include "jonavin.h" | ||
19 | |||
20 | #ifdef RGBLIGHT_ENABLE | ||
21 | // Custom RGB Colours | ||
22 | #define RGB_OBE_BOW 0x00, 0xE4, 0xFF // colour for matching keycaps | ||
23 | #endif // RGBLIGHT_ENABLE | ||
24 | |||
25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
26 | /* Base */ | ||
27 | [_BASE] = LAYOUT( | ||
28 | KC_MUTE, KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_DEL, | ||
29 | KC_PGUP, KC_TAB, 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, | ||
30 | KC_PGDN, TT(_RAISE), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
31 | KC_LSFTCAPSWIN,KC_Z, KC_X, KC_C, KC_V, KC_B, LT(_LOWER,KC_B), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_RSFT, | ||
32 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(_FN1), LT(_RAISE,KC_SPC), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
33 | ), | ||
34 | [_FN1] = LAYOUT( | ||
35 | KC_NO, KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_INS, | ||
36 | KC_HOME, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_PSCR, KC_SLCK, KC_PAUS, KC_NO, KC_NO, KC_NO, RESET, | ||
37 | KC_END, KC_CAPS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, | ||
38 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NLCK, KC_NO, KC_NO, KC_NO, KC_NO, KC_PGUP, KC_TRNS, | ||
39 | KC_TRNS,KC_WINLCK,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_HOME, KC_PGDN, KC_END | ||
40 | ), | ||
41 | [_LOWER] = LAYOUT( | ||
42 | KC_NO, KC_TILD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAD, RGB_VAI, KC_TRNS, KC_DEL, | ||
43 | RGB_HUI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, EMO_TEARS, EMO_SAD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_TOG, | ||
44 | RGB_HUD, KC_NO, KC_NO, EMO_SHRUG,KC_NO, KC_NO, KC_NO, KC_NO, EMO_JOY, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, | ||
45 | KC_NO, KC_NO, KC_NO, EMO_CONFUSE,KC_NO,KC_NO,KC_TRNS,EMO_NERVOUS,KC_NO, KC_NO, KC_NO, KC_NO, RGB_MOD, KC_TRNS, | ||
46 | KC_TRNS, KC_APP, KC_TRNS, KC_BSPC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SPD, RGB_RMOD, RGB_SPI | ||
47 | ), | ||
48 | [_RAISE] = LAYOUT( | ||
49 | KC_NO, KC_TILD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_P7, KC_P8, KC_P9, KC_P0, KC_PMNS, KC_PPLS, KC_PSLS, KC_DEL, | ||
50 | KC_NO, KC_NO, KC_HOME,KC_UP, KC_END, KC_PGUP, KC_NO, KC_TAB, KC_P4, KC_P5, KC_P6, KC_NO, KC_NO, KC_NO, KC_PEQL, | ||
51 | KC_NO, TT(_RAISE),KC_LEFT,KC_DOWN, KC_RGHT, KC_PGDN, KC_NO, KC_NO, KC_P1, KC_P2, KC_P3, KC_NO, KC_PAST, KC_PENT, | ||
52 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_P0, KC_00, KC_NO, KC_PDOT, KC_PSLS, CT_PGUP, KC_TRNS, | ||
53 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, CT_HOME, CT_PGDN, CT_END | ||
54 | ) | ||
55 | }; | ||
56 | |||
57 | #ifdef RGBLIGHT_ENABLE | ||
58 | |||
59 | enum custom_rgblight_layers | ||
60 | { | ||
61 | _rgbWINLOCK, | ||
62 | _rgbFN, | ||
63 | _rgbLOWER, | ||
64 | _rgbRAISE | ||
65 | }; | ||
66 | |||
67 | // Optional RGB Light Mapping Zones {LED Posiiton, Number of LEDs, Colour} | ||
68 | const rgblight_segment_t PROGMEM _rgb_winlock_layer[] = RGBLIGHT_LAYER_SEGMENTS( | ||
69 | {1, 3, HSV_RED}, | ||
70 | {15, 3, HSV_RED} | ||
71 | ); | ||
72 | const rgblight_segment_t PROGMEM _rgb_fn_layer[] = RGBLIGHT_LAYER_SEGMENTS( | ||
73 | {6, 6, HSV_PURPLE} | ||
74 | ); | ||
75 | // Light LEDs 9 & 10 in cyan when keyboard layer 1 is active | ||
76 | const rgblight_segment_t PROGMEM _rgb_lower_layer[] = RGBLIGHT_LAYER_SEGMENTS( | ||
77 | {4, 10, HSV_YELLOW} | ||
78 | ); | ||
79 | |||
80 | const rgblight_segment_t PROGMEM _rgb_raise_layer[] = RGBLIGHT_LAYER_SEGMENTS( | ||
81 | {3, 5, HSV_GREEN}, | ||
82 | {10, 5, HSV_GREEN} | ||
83 | ); | ||
84 | |||
85 | const rgblight_segment_t* const PROGMEM _rgb_layers[] = RGBLIGHT_LAYERS_LIST( | ||
86 | _rgb_winlock_layer, | ||
87 | _rgb_fn_layer, | ||
88 | _rgb_lower_layer, | ||
89 | _rgb_raise_layer | ||
90 | ); | ||
91 | |||
92 | bool led_update_user(led_t led_state) { | ||
93 | rgblight_set_layer_state(_rgbWINLOCK, keymap_config.no_gui); | ||
94 | return true; | ||
95 | } | ||
96 | |||
97 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
98 | rgblight_set_layer_state(_rgbFN, layer_state_cmp(state, _FN1)); | ||
99 | rgblight_set_layer_state(_rgbLOWER, layer_state_cmp(state, _LOWER)); | ||
100 | rgblight_set_layer_state(_rgbRAISE, layer_state_cmp(state, _RAISE)); | ||
101 | return state; | ||
102 | } | ||
103 | #endif // RGBLIGHT_ENABLE | ||
104 | |||
105 | void keyboard_post_init_keymap(void) { | ||
106 | // keyboard_post_init_user() moved to userspace | ||
107 | #ifdef RGBLIGHT_ENABLE | ||
108 | rgblight_enable_noeeprom(); | ||
109 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
110 | rgblight_setrgb(RGB_OBE_BOW); // Default startup colour | ||
111 | rgblight_layers = _rgb_layers; | ||
112 | #endif | ||
113 | } | ||
114 | |||
diff --git a/keyboards/mechwild/obe/keymaps/jonavin/readme.md b/keyboards/mechwild/obe/keymaps/jonavin/readme.md new file mode 100644 index 000000000..d60958a4e --- /dev/null +++ b/keyboards/mechwild/obe/keymaps/jonavin/readme.md | |||
@@ -0,0 +1,46 @@ | |||
1 | # Jonavin's MechWild Orange Boy Ergo keymap | ||
2 | |||
3 | --> This keymap makes user of user/jonavin userspace | ||
4 | |||
5 | Features | ||
6 | - Split spacebars, Split Backspace | ||
7 | - RGB Winlock indicator (requires LED stripto be installed) | ||
8 | - RGB Layer indicators: FN/MO1 - Purple; LOWER/MO2 - Yellow; RAISE/MO3/NumPad - Green | ||
9 | - quick demo https://youtu.be/gR1awbsouLk | ||
10 | |||
11 | - Add PrtScr, Scroll Lock, Break, NumLock to Fn layer | ||
12 | - Implement Win key lock using Fn+Win | ||
13 | - Layer 2 (LOWER) when right B is held -- for emoticons | ||
14 | - Layer 2 RGB functions | ||
15 | - Layer 3 (RAISE) mod on Caps Lock with double-tap to switch to this layer, double tap to switch back | ||
16 | - provides arrows on WASD and additional nav keys + right hand numpad with 00; an be used for Alt Code entry | ||
17 | - left spacebar Backspace | ||
18 | - add double tap of Left Shift to toggle Caps Lock | ||
19 | |||
20 | |||
21 | rules.mk OPTIONS - Active features from userspace | ||
22 | -------------------------------------------------- | ||
23 | |||
24 | STARTUP_NUMLOCK_ON = yes | ||
25 | - turns on NUMLOCK by default | ||
26 | |||
27 | ENCODER_DEFAULTACTIONS_ENABLE = yes | ||
28 | - Enables default encoder funtions | ||
29 | - holding Left shift, change layers | ||
30 | - holding right shift, Navigate page up/down | ||
31 | - holding Left Ctrl, navigate prev/next word | ||
32 | - holding Left Alt, change media prev/next track | ||
33 | - default is change volume | ||
34 | |||
35 | TD_LSFT_CAPSLOCK_ENABLE = yes | ||
36 | - This will enable double tap on Left Shift to toggle CAPSLOCK when using KC_LSFTCAPS | ||
37 | |||
38 | IDLE_TIMEOUT_ENABLE = yes | ||
39 | - Enables Timer functionality; for RGB idle timeouts that can be changed dynamically | ||
40 | |||
41 | EMOTICON_ENABLE | ||
42 | - adds EMO_ keycodes for text emojis | ||
43 | |||
44 | ## All layers diagram | ||
45 |  | ||
46 | |||
diff --git a/keyboards/mechwild/obe/keymaps/jonavin/rules.mk b/keyboards/mechwild/obe/keymaps/jonavin/rules.mk new file mode 100644 index 000000000..e371b6349 --- /dev/null +++ b/keyboards/mechwild/obe/keymaps/jonavin/rules.mk | |||
@@ -0,0 +1,11 @@ | |||
1 | VIA_ENABLE = yes | ||
2 | LTO_ENABLE = yes | ||
3 | RGBLIGHT_ENABLE = yes | ||
4 | |||
5 | MOUSEKEY_ENABLE = no | ||
6 | TAP_DANCE_ENABLE = yes | ||
7 | |||
8 | TD_LSFT_CAPSLOCK_ENABLE = yes | ||
9 | STARTUP_NUMLOCK_ON = yes | ||
10 | ENCODER_DEFAULTACTIONS_ENABLE = yes | ||
11 | EMOTICON_ENABLE = yes | ||
diff --git a/users/jonavin/jonavin.c b/users/jonavin/jonavin.c index f53aa8664..1a0760ea8 100644 --- a/users/jonavin/jonavin.c +++ b/users/jonavin/jonavin.c | |||
@@ -256,7 +256,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
256 | break; | 256 | break; |
257 | } | 257 | } |
258 | } | 258 | } |
259 | return true; | 259 | return false; |
260 | } | 260 | } |
261 | #endif // ENCODER_ENABLE | 261 | #endif // ENCODER_ENABLE |
262 | 262 | ||
@@ -266,7 +266,7 @@ __attribute__ ((weak)) bool process_record_keymap(uint16_t keycode, keyrecord_t | |||
266 | 266 | ||
267 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 267 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
268 | if (!process_record_keymap(keycode, record)) { return false; } | 268 | if (!process_record_keymap(keycode, record)) { return false; } |
269 | switch (keycode) { | 269 | switch (keycode) { |
270 | case KC_00: | 270 | case KC_00: |
271 | if (record->event.pressed) { | 271 | if (record->event.pressed) { |
272 | // when keycode KC_00 is pressed | 272 | // when keycode KC_00 is pressed |
@@ -298,6 +298,34 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
298 | } else unregister_code16(keycode); | 298 | } else unregister_code16(keycode); |
299 | break; | 299 | break; |
300 | #endif // RGB_MATRIX_ENABLE | 300 | #endif // RGB_MATRIX_ENABLE |
301 | |||
302 | #ifdef EMOTICON_ENABLE | ||
303 | case EMO_SHRUG: | ||
304 | if (record->event.pressed) SEND_STRING("`\\_(\"/)_/`"); | ||
305 | else unregister_code16(keycode); | ||
306 | break; | ||
307 | case EMO_CONFUSE: | ||
308 | if (record->event.pressed) SEND_STRING("(*_*)"); | ||
309 | else unregister_code16(keycode); | ||
310 | break; | ||
311 | case EMO_TEARS: | ||
312 | if (record->event.pressed) SEND_STRING("(T_T)"); | ||
313 | else unregister_code16(keycode); | ||
314 | break; | ||
315 | case EMO_NERVOUS: | ||
316 | if (record->event.pressed) SEND_STRING("(~_~;)"); | ||
317 | else unregister_code16(keycode); | ||
318 | break; | ||
319 | case EMO_JOY: | ||
320 | if (record->event.pressed) SEND_STRING("(^o^)"); | ||
321 | else unregister_code16(keycode); | ||
322 | break; | ||
323 | case EMO_SAD: | ||
324 | if (record->event.pressed) SEND_STRING(":'-("); | ||
325 | else unregister_code16(keycode); | ||
326 | break; | ||
327 | #endif // EMOTICON_ENABLE | ||
328 | |||
301 | default: | 329 | default: |
302 | if (record->event.pressed) { | 330 | if (record->event.pressed) { |
303 | #ifdef RGB_MATRIX_ENABLE | 331 | #ifdef RGB_MATRIX_ENABLE |
diff --git a/users/jonavin/jonavin.h b/users/jonavin/jonavin.h index efe0301af..feaf6b6a1 100644 --- a/users/jonavin/jonavin.h +++ b/users/jonavin/jonavin.h | |||
@@ -38,13 +38,23 @@ enum custom_user_keycodes { | |||
38 | RGB_TOD, // Timeout idle time down | 38 | RGB_TOD, // Timeout idle time down |
39 | RGB_NITE, // Turns off all rgb but allow rgb indicators to work | 39 | RGB_NITE, // Turns off all rgb but allow rgb indicators to work |
40 | 40 | ||
41 | EMO_SHRUG, // `\_("/)_/` | ||
42 | EMO_CONFUSE, // (*_*) | ||
43 | EMO_SAD, // :'-( | ||
44 | EMO_NERVOUS, // (~_~;) | ||
45 | EMO_JOY, // (^o^) | ||
46 | EMO_TEARS, // (T_T) | ||
47 | |||
41 | NEW_SAFE_RANGE // new safe range for keymap level custom keycodes | 48 | NEW_SAFE_RANGE // new safe range for keymap level custom keycodes |
42 | }; | 49 | }; |
43 | 50 | ||
44 | #define KC_CAD LALT(LCTL(KC_DEL)) | 51 | #define KC_CAD LALT(LCTL(KC_DEL)) |
45 | #define KC_AF4 LALT(KC_F4) | 52 | #define KC_AF4 LALT(KC_F4) |
46 | #define KC_TASK LCTL(LSFT(KC_ESC)) | 53 | #define KC_TASK LCTL(LSFT(KC_ESC)) |
47 | 54 | #define CT_PGUP RCTL(KC_PGUP) | |
55 | #define CT_PGDN RCTL(KC_PGDN) | ||
56 | #define CT_HOME RCTL(KC_HOME) | ||
57 | #define CT_END RCTL(KC_END) | ||
48 | 58 | ||
49 | #ifdef TD_LSFT_CAPSLOCK_ENABLE | 59 | #ifdef TD_LSFT_CAPSLOCK_ENABLE |
50 | // Tap Dance Definitions | 60 | // Tap Dance Definitions |
diff --git a/users/jonavin/readme.md b/users/jonavin/readme.md index c029796b4..9fccb8c73 100644 --- a/users/jonavin/readme.md +++ b/users/jonavin/readme.md | |||
@@ -14,62 +14,90 @@ 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/>. | 14 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 | ||
16 | LAYERS: | 16 | LAYERS: |
17 | 0 = _BASE | 17 | - 0 = _BASE |
18 | 1 = _FN1 | 18 | - 1 = _FN1 |
19 | 2 = _LOWER | 19 | - 2 = _LOWER |
20 | 3 = _RAISE | 20 | - 3 = _RAISE |
21 | 21 | ||
22 | KEYCODES: | 22 | KEYCODES: |
23 | KC_CAD Ctrl-Alt-Del | 23 | - KC_CAD Ctrl-Alt-Del |
24 | KC_AF4 Alt-F4 | 24 | - KC_AF4 Alt-F4 |
25 | KC_TASK Windows Task Manager (Ctrl-Shift-Esc) | 25 | - KC_TASK Windows Task Manager (Ctrl-Shift-Esc) |
26 | LSFT_CAPSLOCK When LSFT_CAPSLOCK_ENABLE is defined, hold for Shift double tap for CAPSLOCK; otherwise, just Shift | 26 | - LSFT_CAPSLOCK When LSFT_CAPSLOCK_ENABLE is defined, hold for Shift double tap for CAPSLOCK; otherwise, just Shift |
27 | KC_00 double zero "00" | 27 | - KC_00 double zero "00" |
28 | KC_WINLCK toggles LGui/Win key lock | 28 | - KC_WINLCK toggles LGui/Win key lock |
29 | RGB_TOI Increase Timeout idle time threshold | 29 | - RGB_TOI Increase Timeout idle time threshold |
30 | RGB_TOD Decrease Timeout idle time threshold | 30 | - RGB_TOD Decrease Timeout idle time threshold |
31 | - CT_PGUP Ctrl-PgUp | ||
32 | - CT_PGDN Ctrl-PgDn | ||
33 | - CT_HOME Ctrl-HOme | ||
34 | - CT_END Ctrl-End | ||
35 | - | ||
36 | When EMOTICON_ENABLE = yes | ||
37 | - EMO_SHRUG `\_("/)_/` | ||
38 | - EMO_CONFUSE (*_*) | ||
39 | - EMD_TEARS (T_T) | ||
40 | - EMO_NERVOUS (~_~;) | ||
41 | - EMO_JOY (^o^) | ||
42 | |||
43 | |||
44 | AVAILABLE ENCODER ACTIONS: | ||
45 | - void encoder_action_volume(bool clockwise); | ||
46 | - void encoder_action_mediatrack(bool clockwise); | ||
47 | - void encoder_action_navword(bool clockwise); | ||
48 | - void encoder_action_navpage(bool clockwise); | ||
49 | - | ||
50 | - uint8_t get_selected_layer(void); | ||
51 | - void encoder_action_layerchange(bool clockwise); | ||
52 | - | ||
53 | - void encoder_action_rgb_speed(bool clockwise); | ||
54 | - void encoder_action_rgb_hue(bool clockwise); | ||
55 | - void encoder_action_rgb_saturation(bool clockwise); | ||
56 | - void encoder_action_rgb_brightness(bool clockwise); | ||
57 | - void encoder_action_rgb_mode(bool clockwise); | ||
58 | |||
31 | 59 | ||
32 | ENABLE FEATURES your keymap rules.mk | 60 | ENABLE FEATURES your keymap rules.mk |
61 | --------------------------------------- | ||
33 | 62 | ||
34 | STARTUP_NUMLOCK_ON = yes | 63 | STARTUP_NUMLOCK_ON = yes |
35 | turns on NUMLOCK by default | 64 | - turns on NUMLOCK by default |
36 | 65 | ||
37 | ENCODER_DEFAULTACTIONS_ENABLE = yes | 66 | ENCODER_DEFAULTACTIONS_ENABLE = yes |
38 | Enabled default encoder funtions | 67 | - Enabled default encoder funtions |
39 | When enabled, use this in the keymap for an additional encoder processing | 68 | - When enabled, use this in the keymap for an additional encoder processing |
40 | bool encoder_update_keymap(uint8_t index, bool clockwise) | 69 | - bool encoder_update_keymap(uint8_t index, bool clockwise) |
41 | |||
42 | OPTION: set ENCODER_DEFAULTACTIONS_INDEX to the encoder number if the encoder is not index 0 | ||
43 | 70 | ||
71 | OPTION: set ENCODER_DEFAULTACTIONS_INDEX to the encoder number if the encoder is not index 0 | ||
72 | |||
44 | TD_LSFT_CAPSLOCK_ENABLE = yes | 73 | TD_LSFT_CAPSLOCK_ENABLE = yes |
45 | This will enable double tap on Left Shift to toggle CAPSLOCK | 74 | - This will enable double tap on Left Shift to toggle CAPSLOCK |
46 | KC_LSFTCAPS to bind to left Shift to enable feature | 75 | - KC_LSFTCAPS to bind to left Shift to enable feature |
47 | KC_LSFTCAPSWIN does the same thing but will not turn on CAPS when Win Lkey is disabled | 76 | - KC_LSFTCAPSWIN does the same thing but will not turn on CAPS when Win Lkey is disabled |
48 | 77 | ||
49 | IDLE_TIMEOUT_ENABLE = yes | 78 | IDLE_TIMEOUT_ENABLE = yes |
50 | Enables Timer functionality; for RGB idle timeouts that can be changed dynamically | 79 | - Enables Timer functionality; for RGB idle timeouts that can be changed dynamically |
51 | When enabled, use this in the keymap for an additional matrix processing | 80 | - When enabled, use this in the keymap for an additional matrix processing: void matrix_scan_keymap(void) |
52 | void matrix_scan_keymap(void) | 81 | |
53 | 82 | - Functions: | |
54 | Functions: | 83 | - u16int_t get_timeout_threshold(void) // returns the current timeout threshold |
55 | u16int_t get_timeout_threshold(void) // returns the current timeout threshold | 84 | - void timeout_update_threshold(bool increase) // change threshold: true = increase, false = decrease |
56 | void timeout_update_threshold(bool increase) // change threshold: true = increase, false = decrease | 85 | - void timeout_reset_timer(void) // resets timer (put in process_record_user if you override it) |
57 | void timeout_reset_timer(void) // resets timer (put in process_record_user if you override it) | 86 | - void timeout_tick_timer(void) // registers time ticks (put in maxtrix_scan_user if you override it) |
58 | void timeout_tick_timer(void) // registers time ticks (put in maxtrix_scan_user if you override it) | ||
59 | 87 | ||
60 | Other Functions: | 88 | Other Functions: |
61 | - activate_numlock(bool turn_on) // true = turn on NUM LOCK, false = off | 89 | - activate_numlock(bool turn_on) // true = turn on NUM LOCK, false = off |
62 | 90 | ||
63 | KEYMAP LEVEL ADDITIONAL PROCESSING FUNCTIONS | 91 | KEYMAP LEVEL ADDITIONAL PROCESSING FUNCTIONS |
64 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record) | 92 | - bool process_record_keymap(uint16_t keycode, keyrecord_t *record) |
65 | void keyboard_post_init_keymap(void) | 93 | - void keyboard_post_init_keymap(void) |
66 | 94 | ||
67 | LIST OF COMPATIBLE KEYMAPS | 95 | LIST OF COMPATIBLE KEYMAPS |
68 | - gmmk/pro/ansi | 96 | - gmmk/pro/ansi |
69 | - keebio/quefrency/rev3 | 97 | - keebio/quefrency/rev3 |
70 | - mechwild/mercutio | 98 | - mechwild/mercutio |
71 | - mechwild/murphpad | 99 | - mechwild/murphpad |
72 | - mechwild/OBE (*) | 100 | - mechwild/OBE |
73 | - nopunin10did/kastenwagen (*) | 101 | - nopunin10did/kastenwagen (*) |
74 | 102 | ||
75 | (*) coming soon | 103 | (*) coming soon |
diff --git a/users/jonavin/rules.mk b/users/jonavin/rules.mk index e2918d9e2..eb279f629 100644 --- a/users/jonavin/rules.mk +++ b/users/jonavin/rules.mk | |||
@@ -14,3 +14,6 @@ endif | |||
14 | ifeq ($(strip $(COLEMAK_LAYER_ENABLE)), yes) | 14 | ifeq ($(strip $(COLEMAK_LAYER_ENABLE)), yes) |
15 | OPT_DEFS += -DCOLEMAK_LAYER_ENABLE | 15 | OPT_DEFS += -DCOLEMAK_LAYER_ENABLE |
16 | endif | 16 | endif |
17 | ifeq ($(strip $(EMOTICON_ENABLE)), yes) | ||
18 | OPT_DEFS += -DEMOTICON_ENABLE | ||
19 | endif | ||