diff options
| -rw-r--r-- | keyboards/gh60/keymaps/maxr1998/config.h | 30 | ||||
| -rw-r--r-- | keyboards/gh60/keymaps/maxr1998/keymap.c | 84 | ||||
| -rw-r--r-- | keyboards/gh60/keymaps/maxr1998/rules.mk | 6 |
3 files changed, 120 insertions, 0 deletions
diff --git a/keyboards/gh60/keymaps/maxr1998/config.h b/keyboards/gh60/keymaps/maxr1998/config.h new file mode 100644 index 000000000..8c3b9b250 --- /dev/null +++ b/keyboards/gh60/keymaps/maxr1998/config.h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2017 Max Rumpf alias Maxr1998 <max.rumpf1998@gmail.com> | ||
| 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 | #ifndef CONFIG_USER_H | ||
| 19 | #define CONFIG_USER_H | ||
| 20 | |||
| 21 | #include "../../config.h" | ||
| 22 | |||
| 23 | #define RGB_DI_PIN F4 // pin the DI on the WS2812B is hooked-up to | ||
| 24 | #define RGBLIGHT_ANIMATIONS // run RGB animations | ||
| 25 | #define RGBLED_NUM 6 // number of LEDs | ||
| 26 | #define RGBLIGHT_HUE_STEP 12 // units to step when in/decreasing hue | ||
| 27 | #define RGBLIGHT_SAT_STEP 25 // units to step when in/decresing saturation | ||
| 28 | #define RGBLIGHT_VAL_STEP 12 // units to step when in/decreasing value (brightness) | ||
| 29 | |||
| 30 | #endif \ No newline at end of file | ||
diff --git a/keyboards/gh60/keymaps/maxr1998/keymap.c b/keyboards/gh60/keymaps/maxr1998/keymap.c new file mode 100644 index 000000000..74dab4910 --- /dev/null +++ b/keyboards/gh60/keymaps/maxr1998/keymap.c | |||
| @@ -0,0 +1,84 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2017 Max Rumpf alias Maxr1998 <max.rumpf1998@gmail.com> | ||
| 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 "gh60.h" | ||
| 19 | #include "action_layer.h" | ||
| 20 | |||
| 21 | #define KC_EURO RALT(KC_5) | ||
| 22 | |||
| 23 | #define SWITCH_LANG SEND_STRING(SS_LGUI(SS_TAP(X_SPACE))) | ||
| 24 | #define PRINT_UMLAUT(str) SWITCH_LANG;_delay_ms(90);SEND_STRING(str);SWITCH_LANG; | ||
| 25 | |||
| 26 | enum custom_keycodes { | ||
| 27 | MCO_AE = SAFE_RANGE, | ||
| 28 | MCO_OE = SAFE_RANGE + 1, | ||
| 29 | MCO_UE = SAFE_RANGE + 2, | ||
| 30 | MCO_SS = SAFE_RANGE + 3, | ||
| 31 | TP_REQ = SAFE_RANGE + 10, | ||
| 32 | TP_ACC = SAFE_RANGE + 11 | ||
| 33 | }; | ||
| 34 | |||
| 35 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 36 | /* 0: qwertz */ | ||
| 37 | KEYMAP( | ||
| 38 | KC_ESC, 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_BSPC,\ | ||
| 39 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Z, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_NO, \ | ||
| 40 | KC_LOCK, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_HOME, KC_ENT, \ | ||
| 41 | KC_LSFT, KC_BSLS, KC_Y, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_RSFT,\ | ||
| 42 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_NO, F(0), KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 43 | /* 1: fn */ | ||
| 44 | KEYMAP( | ||
| 45 | 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_DEL, \ | ||
| 46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_EURO, TP_REQ, TP_ACC, KC_TRNS, MCO_UE, KC_TRNS, MCO_OE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,\ | ||
| 47 | KC_TRNS, MCO_AE, MCO_SS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_M_P, RGB_M_B, RGB_M_SW,KC_TRNS, KC_TRNS, KC_TRNS,\ | ||
| 48 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_HUI, RGB_HUD, KC_TRNS, KC_TRNS, KC_TRNS,\ | ||
| 49 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 50 | }; | ||
| 51 | |||
| 52 | const uint16_t PROGMEM fn_actions[] = { | ||
| 53 | [0] = ACTION_LAYER_MOMENTARY(1) // to Fn overlay | ||
| 54 | }; | ||
| 55 | |||
| 56 | void matrix_scan_user(void) { | ||
| 57 | |||
| 58 | } | ||
| 59 | |||
| 60 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 61 | if (record->event.pressed) { | ||
| 62 | switch (keycode) { | ||
| 63 | case MCO_AE: | ||
| 64 | PRINT_UMLAUT("'"); // ä | ||
| 65 | return false; | ||
| 66 | case MCO_OE: | ||
| 67 | PRINT_UMLAUT(";"); // ö | ||
| 68 | return false; | ||
| 69 | case MCO_UE: | ||
| 70 | PRINT_UMLAUT("["); // ü | ||
| 71 | return false; | ||
| 72 | case MCO_SS: | ||
| 73 | PRINT_UMLAUT("-"); // ß | ||
| 74 | return false; | ||
| 75 | case TP_REQ: | ||
| 76 | SEND_STRING("/tpa "); | ||
| 77 | return false; | ||
| 78 | case TP_ACC: | ||
| 79 | SEND_STRING("/tpaccept"SS_TAP(X_ENTER)); | ||
| 80 | return false; | ||
| 81 | } | ||
| 82 | } | ||
| 83 | return true; | ||
| 84 | } \ No newline at end of file | ||
diff --git a/keyboards/gh60/keymaps/maxr1998/rules.mk b/keyboards/gh60/keymaps/maxr1998/rules.mk new file mode 100644 index 000000000..d64f11e1f --- /dev/null +++ b/keyboards/gh60/keymaps/maxr1998/rules.mk | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # Build Options | ||
| 2 | # comment out to disable the options. | ||
| 3 | # | ||
| 4 | RGBLIGHT_ENABLE = yes # Enable RGB Underglow | ||
| 5 | KEY_LOCK_ENABLE = yes # Enable key lock option | ||
| 6 | SKIP_GIT = yes | ||
