diff options
author | jonavin <71780717+Jonavin@users.noreply.github.com> | 2022-01-11 12:56:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 09:56:01 -0800 |
commit | 0963140149d43d40beef909bc4e181f8bd39acfd (patch) | |
tree | 4ced50921710a7c8ba0ba411827dbfc69d6820f6 | |
parent | 052a59fc3bff180244268d0d3509a9d22a86c89d (diff) | |
download | qmk_firmware-0963140149d43d40beef909bc4e181f8bd39acfd.tar.gz qmk_firmware-0963140149d43d40beef909bc4e181f8bd39acfd.zip |
[Keymap] Jonavin keymap kastenwagen48 (#15825)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Jonavin <=>
5 files changed, 164 insertions, 2 deletions
diff --git a/keyboards/nopunin10did/kastenwagen48/keymaps/jonavin/config.h b/keyboards/nopunin10did/kastenwagen48/keymaps/jonavin/config.h new file mode 100644 index 000000000..c6de1b416 --- /dev/null +++ b/keyboards/nopunin10did/kastenwagen48/keymaps/jonavin/config.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* Copyright 2021, 2022 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 | #define ENCODER_DIRECTION_FLIP // compensate for opposite encoder direction | ||
31 | #define ENCODER_DEFAULTACTIONS_INDEX 1 // Set default encoder functions to encoder 1 | ||
diff --git a/keyboards/nopunin10did/kastenwagen48/keymaps/jonavin/keymap.c b/keyboards/nopunin10did/kastenwagen48/keymaps/jonavin/keymap.c new file mode 100644 index 000000000..29c12b041 --- /dev/null +++ b/keyboards/nopunin10did/kastenwagen48/keymaps/jonavin/keymap.c | |||
@@ -0,0 +1,67 @@ | |||
1 | /* Copyright 2021 W. Alex Ronke, a.k.a. NoPunIn10Did (w.alex.ronke@gmail.com) | ||
2 | * Copyright 2022 Jonavin Eng, @Jonavin | ||
3 | * | ||
4 | * This program is free software: you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation, either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #include QMK_KEYBOARD_H | ||
19 | #include "jonavin.h" | ||
20 | |||
21 | #define L2_SPC LT(2,KC_SPC) | ||
22 | #define L3_SPC LT(3,KC_SPC) | ||
23 | #define RWINALT RALT_T(KC_RGUI) | ||
24 | #define ISO_LT KC_NUBS | ||
25 | #define ISO_GT LSFT(KC_NUBS) | ||
26 | |||
27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
28 | |||
29 | [_BASE] = LAYOUT_48( | ||
30 | |||
31 | 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_BSPC , KC_DEL , | ||
32 | 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 , KC_PGUP, | ||
33 | KC_LSFTCAPS ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B ,KC_N ,KC_M ,KC_COMM,KC_DOT ,KC_SLSH, KC_SFTENT ,KC_UP , KC_PGDN, | ||
34 | KC_LCTL ,KC_LALT ,KC_LGUI ,KC_SPC ,L3_SPC ,MO(_LOWER) ,MO(_FN1) ,KC_RCTL ,KC_LEFT,KC_DOWN,KC_RGHT | ||
35 | ), | ||
36 | [_FN1] = LAYOUT_48( | ||
37 | KC_GRV ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 ,KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,KC_RBRC,KC_DEL , KC_INS , | ||
38 | KC_CAPS ,KC_F11 ,KC_F12 ,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,KC_PSCR, KC_SLCK, KC_PAUS,XXXXXXX,XXXXXXX,XXXXXXX , KC_HOME, | ||
39 | _______ ,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,KC_NLCK ,XXXXXXX ,XXXXXXX,XXXXXXX,XXXXXXX,_______ ,KC_PGUP, KC_END , | ||
40 | _______ ,_______ ,KC_WINLCK,XXXXXXX ,XXXXXXX ,_______,_______ ,_______ ,KC_HOME,KC_PGDN,KC_END | ||
41 | ), | ||
42 | [_LOWER] = LAYOUT_48( | ||
43 | KC_TILD ,KC_EXLM, KC_AT, KC_HASH,KC_DLR,KC_PERC,KC_CIRC, KC_AMPR, KC_ASTR,KC_LPRN, KC_RPRN,KC_MINS,KC_EQL , RESET, | ||
44 | _______ ,KC_MINS, KC_EQL,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,KC_QUES,KC_SLSH,KC_PIPE,KC_BSLS,KC_TILD, XXXXXXX ,XXXXXXX, | ||
45 | _______ ,KC_UNDS, KC_PLUS,XXXXXXX,KC_LCBR, KC_RCBR, KC_LBRC, KC_RBRC,KC_LT,KC_GT, XXXXXXX ,_______ ,XXXXXXX,XXXXXXX, | ||
46 | _______ ,_______ ,_______,XXXXXXX ,XXXXXXX ,_______,_______ ,_______ ,XXXXXXX,XXXXXXX,XXXXXXX | ||
47 | ), | ||
48 | [_RAISE] = LAYOUT_48( | ||
49 | KC_ESC, KC_HOME,KC_UP, KC_END, KC_PGUP,KC_PMNS,KC_PPLS,KC_P7, KC_P8, KC_P9, KC_P0, KC_PMNS, KC_PEQL , KC_TSTOG, | ||
50 | TT(_RAISE),KC_LEFT,KC_DOWN,KC_RIGHT,KC_PGDN,KC_PSLS,KC_TAB,KC_P4, KC_P5, KC_P6, KC_PDOT,KC_PAST,KC_PENT , XXXXXXX, | ||
51 | _______, XXXXXXX,KC_DEL, KC_INS, KC_NO, KC_PAST,KC_P0, KC_P1, KC_P2, KC_P3, KC_PSLS ,_______, XXXXXXX,XXXXXXX, | ||
52 | _______ ,_______ ,_______,KC_BSPC ,XXXXXXX ,_______,_______ ,_______ ,XXXXXXX,XXXXXXX,XXXXXXX | ||
53 | ) | ||
54 | }; | ||
55 | |||
56 | #ifdef ENCODER_ENABLE // Encoder Functionality | ||
57 | bool encoder_update_keymap(uint8_t index, bool clockwise) { | ||
58 | switch (index) { | ||
59 | case 0: // Top left encoder | ||
60 | encoder_action_volume(clockwise); | ||
61 | break; | ||
62 | default: | ||
63 | break; | ||
64 | } | ||
65 | return true; // fall to encoder_update_user and encoder_update_kb definitions | ||
66 | } | ||
67 | #endif | ||
diff --git a/keyboards/nopunin10did/kastenwagen48/keymaps/jonavin/readme.md b/keyboards/nopunin10did/kastenwagen48/keymaps/jonavin/readme.md new file mode 100644 index 000000000..885e6b0dd --- /dev/null +++ b/keyboards/nopunin10did/kastenwagen48/keymaps/jonavin/readme.md | |||
@@ -0,0 +1,54 @@ | |||
1 | Jonavin Kastenwagen 48 Keymap | ||
2 | Designed to match my other keymaps | ||
3 | |||
4 | NOTE: Uses userpace user/jonavin | ||
5 | |||
6 | Feature changes from Default | ||
7 | - Bottom row mapping LCtrl, LAlt, LGui, spacebars, MO(2)/LOWER, MO(1)/FN, RCtrl | ||
8 | - CAPS as MO(3)/RAISE - tap to toggle | ||
9 | - numpad in MO(3) layer | ||
10 | - double tap L Shift for CAPS | ||
11 | - RESET moved to under encoder in MO(2) | ||
12 | - implement Win Key Lock | ||
13 | - GRV Escape overides | ||
14 | - ENCODERS | ||
15 | - TOP LEFT | ||
16 | - Volume up/down | ||
17 | - TOP RIGHT | ||
18 | - Left Shift held - change layers | ||
19 | - Right Shift held - Page Up/Down | ||
20 | - Left Ctrl held - navigate next/prev words | ||
21 | - Left Alt held - change media next/prev track | ||
22 | - RAISE + Encode push toggles between volume change and tab scrolling | ||
23 | - ENCODER_DIRECTION_FLIP has been defined to avoid issues with encoder going in opposition direction | ||
24 | |||
25 | OPTIONS in rules.mk | ||
26 | --------------------------------------- | ||
27 | |||
28 | STARTUP_NUMLOCK_ON = yes | ||
29 | - turns on NUMLOCK by default | ||
30 | |||
31 | ENCODER_DEFAULTACTIONS_ENABLE = yes | ||
32 | - Enabled default encoder funtions | ||
33 | - When enabled, use this in the keymap for an additional encoder processing | ||
34 | - bool encoder_update_keymap(uint8_t index, bool clockwise) | ||
35 | |||
36 | OPTION: set ENCODER_DEFAULTACTIONS_INDEX in config.h to the encoder number if the encoder is not index 0 -- set to 1 for top right encoder | ||
37 | |||
38 | TD_LSFT_CAPSLOCK_ENABLE = yes | ||
39 | - This will enable double tap on Left Shift to toggle CAPSLOCK | ||
40 | - KC_LSFTCAPS to bind to left Shift to enable feature | ||
41 | - KC_LSFTCAPSWIN does the same thing but will not turn on CAPS when Win Lkey is disabled | ||
42 | |||
43 | INVERT_NUMLOCK_INDICATOR | ||
44 | - inverts the Num lock indicator, LED is on when num lock is off | ||
45 | |||
46 | ALTTAB_SCROLL_ENABLE | ||
47 | - When ENCODER_DEFAULTACTIONS_ENABLE = yes, | ||
48 | Enables Alt-Tab scrolling functions in default encoder, | ||
49 | bind KS_TSTOG to a key to enable/disable Alt-Tab vs Volume control | ||
50 | - When defining your own encoder functions use encoder_action_alttabscroll(bool clockwise) to assign the encodr action | ||
51 | |||
52 | |||
53 | Layout | ||
54 |  | ||
diff --git a/keyboards/nopunin10did/kastenwagen48/keymaps/jonavin/rules.mk b/keyboards/nopunin10did/kastenwagen48/keymaps/jonavin/rules.mk new file mode 100644 index 000000000..97ccf0c35 --- /dev/null +++ b/keyboards/nopunin10did/kastenwagen48/keymaps/jonavin/rules.mk | |||
@@ -0,0 +1,11 @@ | |||
1 | VIA_ENABLE = yes # VIA support | ||
2 | LTO_ENABLE = yes # | ||
3 | |||
4 | TAP_DANCE_ENABLE = yes | ||
5 | |||
6 | TD_LSFT_CAPSLOCK_ENABLE = yes | ||
7 | STARTUP_NUMLOCK_ON = yes | ||
8 | |||
9 | ENCODER_DEFAULTACTIONS_ENABLE = yes | ||
10 | INVERT_NUMLOCK_INDICATOR = yes | ||
11 | ALTTAB_SCROLL_ENABLE = yes | ||
diff --git a/users/jonavin/readme.md b/users/jonavin/readme.md index 7712eda1e..204032ae1 100644 --- a/users/jonavin/readme.md +++ b/users/jonavin/readme.md | |||
@@ -120,6 +120,5 @@ LIST OF COMPATIBLE KEYMAPS | |||
120 | - mechwild/murphpad | 120 | - mechwild/murphpad |
121 | - mechwild/OBE | 121 | - mechwild/OBE |
122 | - kbdfans/kdb67 | 122 | - kbdfans/kdb67 |
123 | - nopunin10did/kastenwagen (*) | 123 | - nopunin10did/kastenwagen48 |
124 | 124 | ||
125 | (*) coming soon | ||