diff --git a/keyboards/40percentclub/foobar/keymaps/turky/config.h b/keyboards/40percentclub/foobar/keymaps/turky/config.h new file mode 100644 index 000000000000..38439aaa1a85 --- /dev/null +++ b/keyboards/40percentclub/foobar/keymaps/turky/config.h @@ -0,0 +1,24 @@ +/* Copyright 2018 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once + +// place overrides here + +#define PERMISSIVE_HOLD + +#define TAPPING_TERM 175 +#define TAPPING_TERM_PER_KEY diff --git a/keyboards/40percentclub/foobar/keymaps/turky/keymap.c b/keyboards/40percentclub/foobar/keymaps/turky/keymap.c new file mode 100644 index 000000000000..3abd014652b8 --- /dev/null +++ b/keyboards/40percentclub/foobar/keymaps/turky/keymap.c @@ -0,0 +1,168 @@ +/* Copyright 2018 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#include QMK_KEYBOARD_H +#include "keymap_japanese.h" + +enum foobar_layers { + QWERTY, + FN1, + FN2, + FN3, + FN4, + FN5 +}; + +enum { + TD_Q_ESC, +}; + +// Tap Dance definitions +tap_dance_action_t tap_dance_actions[] = { + // Tap once for Escape, twice for Caps Lock + [TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC), +}; + +#define FN1_SPC LT(FN1, KC_SPC) +#define FN2_ENT LT(FN2, KC_ENT) +#define FN3_V LT(FN3, KC_V) +#define FN4_B LT(FN4, KC_B) +#define FN5_C LT(FN5, KC_C) +#define RALT_N RALT_T(KC_N) +#define LALT_X LALT_T(KC_X) +#define LCTL_Z LCTL_T(KC_Z) +#define RCTL_M RCTL_T(KC_M) +#define LSFT_BSP LSFT_T(KC_BSPC) +#define RGUI_ESC RGUI_T(KC_ESC) + +#define EXLM JP_EXLM +#define HASH JP_HASH +#define DLR JP_DLR +#define PERC JP_PERC +#define AMPR JP_AMPR +#define QUOT JP_QUOT +#define DQT JP_DQUO +#define GRV JP_GRV +#define PIPE JP_PIPE +#define YEN JP_YEN +#define AT JP_AT +#define LCBR JP_LCBR +#define RCBR JP_RCBR +#define UNDS JP_UNDS +#define TILD JP_TILD +#define EQL JP_EQL +#define COLN JP_COLN +#define SLSH JP_SLSH +#define ASTR JP_ASTR +#define LPRN JP_LPRN +#define RPRN JP_RPRN +#define BSLS JP_BSLS +#define CIRC JP_CIRC +#define MINS JP_MINS +#define SCLN JP_SCLN +#define COMM JP_COMM +#define DOT JP_DOT +#define PLUS JP_PLUS +#define LBRC JP_LBRC +#define RBRC JP_RBRC +#define GUI KC_LGUI +#define ZHTG JP_ZHTG +#define ALT KC_LALT +#define CTL KC_LCTL +#define SFT KC_LSFT +#define ESC KC_ESC +#define TAB KC_TAB +#define SPC KC_SPC +#define BSPC KC_BSPC +#define HENK JP_HENK +#define MHEN JP_MHEN +#define HOME KC_HOME +#define END KC_END +#define DEL KC_DEL +#define WH_D KC_WH_D +#define MS_U KC_MS_U +#define WH_U KC_WH_U +#define PGDN KC_PGDN +#define PGUP KC_PGUP +#define MS_U KC_MS_U +#define MS_L KC_MS_L +#define MS_D KC_MS_D +#define MS_R KC_MS_R +#define KLEFT KC_LEFT +#define KUP KC_UP +#define KDOWN KC_DOWN +#define KRIGHT KC_RIGHT +#define MUTE KC_MUTE +#define VOLD KC_VOLD +#define VOLU KC_VOLU +#define BTN2 KC_BTN2 +#define BTN1 KC_BTN1 +#define CTGUI LCTL(KC_LGUI) +#define CUT LCTL(KC_X) +#define PASTE LCTL(KC_V) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [QWERTY] = LAYOUT_split( + TD(TD_Q_ESC), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, + KC_A, KC_S, KC_D, KC_F, KC_G, RGUI_ESC, KC_H, KC_J, KC_K, KC_L, + LCTL_Z, LALT_X, FN5_C, FN3_V, FN1_SPC, FN2_ENT, FN4_B, RALT_N, RCTL_M, LSFT_BSP + ), + + [FN1] = LAYOUT_split( + KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, + EXLM, DQT, HASH, DLR, PERC, AMPR, QUOT, LPRN, RPRN, TILD, + SFT, _______, BSPC, DEL, _______, MINS, EQL, LBRC, RBRC, _______ + ), + + [FN2] = LAYOUT_split( + KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, + KC_F11, KC_F12, _______, _______, _______, KLEFT, KDOWN, KUP, KRIGHT, KC_GRV, + CTGUI, _______, HENK, MHEN, _______, _______, _______, _______, _______, _______ + ), + + [FN3] = LAYOUT_split( + ESC, _______, _______, _______, _______, MINS, EQL, LBRC, RBRC, TILD, + KC_TAB, _______, _______, _______, _______, _______, SLSH, QUOT, SCLN, COLN, + CTGUI, _______, _______, _______, _______, _______, COMM, DOT, SLSH, BSLS + ), + + [FN4] = LAYOUT_split( + _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, + KC_TAB, _______, _______, _______, _______, KC_LABK, KC_RABK, KC_QUES, KC_COLN, KC_DQUO, + CTL, CUT, _______, PASTE, _______, _______, _______, _______, _______, _______ + ), + + [FN5] = LAYOUT_split( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, QK_BOOT, _______, _______, _______, _______ + ), +}; + +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + return true; +} + +void matrix_init_user(void) { + +} + +void matrix_scan_user(void) { + +} + +void led_set_user(uint8_t usb_led) { + +} diff --git a/keyboards/40percentclub/foobar/keymaps/turky/readme.md b/keyboards/40percentclub/foobar/keymaps/turky/readme.md new file mode 100644 index 000000000000..7113469e7ec0 --- /dev/null +++ b/keyboards/40percentclub/foobar/keymaps/turky/readme.md @@ -0,0 +1 @@ +# The default split keymap for foobar diff --git a/keyboards/40percentclub/foobar/keymaps/turky/rules.mk b/keyboards/40percentclub/foobar/keymaps/turky/rules.mk new file mode 100644 index 000000000000..ed9e73453416 --- /dev/null +++ b/keyboards/40percentclub/foobar/keymaps/turky/rules.mk @@ -0,0 +1,18 @@ +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = yes # Commands for debug and configuration +NKRO_ENABLE = yes # Enable N-Key Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow +AUDIO_ENABLE = no # Audio output + +# Enable generic behavior for split boards +SPLIT_KEYBOARD = yes + +# Enable Tap Dance +TAP_DANCE_ENABLE = yes diff --git a/keyboards/maple_computing/minidox/keymaps/turky/config.h b/keyboards/maple_computing/minidox/keymaps/turky/config.h new file mode 100644 index 000000000000..d82f55f75736 --- /dev/null +++ b/keyboards/maple_computing/minidox/keymaps/turky/config.h @@ -0,0 +1,2 @@ +#define TAPPING_TERM 180 +#define TAPPING_TERM_PER_KEY diff --git a/keyboards/maple_computing/minidox/keymaps/turky/keymap.c b/keyboards/maple_computing/minidox/keymaps/turky/keymap.c new file mode 100644 index 000000000000..ad6ac2992e07 --- /dev/null +++ b/keyboards/maple_computing/minidox/keymaps/turky/keymap.c @@ -0,0 +1,249 @@ +#include QMK_KEYBOARD_H +#include "keymap_japanese.h" + +// Each layer gets a name for readability, which is then used in the keymap matrix below. +// The underscores don't mean anything - you can have a layer called STUFF or any other name. +// Layer names don't all need to be of the same length, obviously, and you can also skip them +// entirely and just use numbers. +enum layer_names { + _QWERTY, + _LOWER, + _RAISE, + _ADJUST +}; + +#define ____ KC_TRNS +#define xxxx KC_NO + +enum custom_keycodes { + QWERTY = SAFE_RANGE, + LOWER, + RAISE, + ADJUST, +}; + +enum { + TD_Q_ESC, +}; + +#define KC_RST RESET +//#define KC_BL_S BL_STEP + +#define EXLM JP_EXLM +#define DQT JP_DQUO +#define HASH JP_HASH +#define DLR JP_DLR +#define PERC JP_PERC +#define AMPR JP_AMPR +#define QUOT JP_QUOT +#define GRV JP_GRV +#define PIPE JP_PIPE +#define YEN JP_YEN +#define AT JP_AT +#define LCBR JP_LCBR +#define RCBR JP_RCBR +#define UNDS JP_UNDS +#define TILD JP_TILD +#define EQL JP_EQL +#define COLN JP_COLN +#define SLSH JP_SLSH +#define ASTR JP_ASTR +#define LPRN JP_LPRN +#define RPRN JP_RPRN +#define BSLS JP_BSLS +#define CIRC JP_CIRC +#define MINS JP_MINS +#define SCLN JP_SCLN +#define COMM JP_COMM +#define DOT JP_DOT +#define PLUS JP_PLUS +#define LBRC JP_LBRC +#define RBRC JP_RBRC +#define GUI KC_LGUI +#define ZHTG JP_ZHTG +#define ALT KC_LALT +#define CTL KC_LCTL +#define SFT KC_LSFT +#define ESC KC_ESC +#define TAB KC_TAB +#define SPC KC_SPC +#define BSPC KC_BSPC +#define HENK JP_HENK +#define MHEN JP_MHEN +#define HOME KC_HOME +#define END KC_END +#define COPY LCTL(KC_C) +#define PASTE LCTL(KC_V) +#define DEL KC_DEL +#define WH_D KC_WH_D +#define MS_U KC_MS_U +#define WH_U KC_WH_U +#define PGDN KC_PGDN +#define PGUP KC_PGUP +#define MS_U KC_MS_U +#define MS_L KC_MS_L +#define MS_D KC_MS_D +#define MS_R KC_MS_R +#define KLEFT KC_LEFT +#define KUP KC_UP +#define KDOWN KC_DOWN +#define KRIGHT KC_RIGHT +#define MUTE KC_MUTE +#define VOLD KC_VOLD +#define VOLU KC_VOLU +#define BTN2 KC_BTN2 +#define BTN1 KC_BTN1 +#define PTSC KC_PRINT_SCREEN + +#define SFTZ LSFT_T(KC_Z) +#define GUIX LGUI_T(KC_X) +#define GUIENT LGUI_T(KC_ENT) + +// Defines for task manager and such +#define CALTDEL LCTL(LALT(KC_DEL)) +#define TSKMGR LCTL(LSFT(KC_ESC)) + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + +/* Qwerty + * + * ,----------------------------------. ,----------------------------------. + * | Q_ESC| W | E | R | T | | Y | U | I | O | P | + * |------+------+------+------+------| |------+------+------+------+------| + * | A | S | D | F | G | | H | J | K | L | ; | + * |------+------+------+------+------| |------+------+------+------+------| + * | Z | X | C | V | B | | N | M | , | . | / | + * `----------------------------------' `----------------------------------' + * ,--------------------. ,------,-------------. + * | Shift | Ctrl| | | |Lower |Raise | + * `-------------| Space| |Enter |------+------. + * | | | | + * `------' `------' + */ + +[_QWERTY] = LAYOUT( \ +TD(TD_Q_ESC), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, + KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, SCLN, + SFTZ, GUIX, KC_C, KC_V, KC_B, KC_N, KC_M, COMM, DOT, SLSH, + SFT, CTL, SPC, GUIENT,RAISE,LOWER +), + +/* Raise + * + * ,----------------------------------. ,----------------------------------. + * | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | + * |------+------+------+------+------| |------+------+------+------+------| + * | Tab | { | } | [ | ] | | Left | Down | Up |Right | : | + * |------+------+------+------+------| |------+------+------+------+------| + * | ! | " | # | $ | % | | & | ' | ( | ) | - | + * `----------------------------------' `----------------------------------' + * ,--------------------. ,------,-------------. + * | Del | BS | | | | | | + * `-------------| Alt | | Gui |------+------. + * | | | | + * `------' `------' + */ +[_RAISE] = LAYOUT( \ + KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, + TAB , LCBR, RCBR, LBRC, RBRC, KLEFT,KDOWN, KUP ,KRIGHT,COLN, + EXLM, DQT, HASH, DLR, PERC, AMPR, QUOT, LPRN, RPRN, MINS, + DEL, BSPC, ALT, GUI ,____, ____ +), + +/* Lower + * + * ,----------------------------------. ,----------------------------------. + * | Esc | PtSc | VolU | PgUp | Copy | | | _ | + | ~ | ^ | + * |------+------+------+------+------| |------+------+------+------+------| + * | Caps| | VolD | PgDn |Paste | | | @ | * | | | \ | + * |------+------+------+------+------| |------+------+------+------+------| + * | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | + * `----------------------------------' `----------------------------------' + * ,--------------------. ,------,-------------. + * | HENK | MHEN | | | | | | + * `-------------| Alt | | |------+------. + * | | | | + * `------' `------' + */ +[_LOWER] = LAYOUT( \ + ESC, PTSC, VOLU, PGUP, COPY, ____, UNDS, PLUS, TILD, CIRC, +JP_CAPS, ____, VOLD, PGDN,PASTE, ____, AT , ASTR, PIPE, BSLS, + KC_F1,KC_F2,KC_F3,KC_F4,KC_F5, KC_F6,KC_F7,KC_F8,KC_F9,KC_F10, + HENK, MHEN, ALT, ____, ____, ____ \ +), + +/* Adjust (Lower + Raise) + * + * ,----------------------------------. ,----------------------------------. + * | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | + * |------+------+------+------+------| |------+------+------+------+------| + * | F11 | F12 | | | | | | | |Taskmg|caltde| + * |------+------+------+------+------| |------+------+------+------+------| + * | Reset| | | | | | | | | | | + * `----------------------------------' `----------------------------------' + * ,--------------------. ,------,-------------. + * | | | | | | | | + * `-------------| | | |------+------. + * | | | | + * `------' `------' + */ +[_ADJUST] = LAYOUT( \ + KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, \ + KC_F11, KC_F12, ____, ____, ____, ____, ____, ____, TSKMGR, CALTDEL, \ + QK_BOOT, ____, ____, ____, ____, ____, ____, ____, ____, ____, \ + ____, ____, ____, ____, ____, ____ \ +) +}; + +void persistant_default_layer_set(uint16_t default_layer) { + eeconfig_update_default_layer(default_layer); + default_layer_set(default_layer); +} + +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + switch (keycode) { + case QWERTY: + if (record->event.pressed) { + #ifdef AUDIO_ENABLE + PLAY_SONG(tone_qwerty); + #endif + persistant_default_layer_set(1UL<<_QWERTY); + } + return false; + break; + case LOWER: + if (record->event.pressed) { + layer_on(_LOWER); + update_tri_layer(_LOWER, _RAISE, _ADJUST); + } else { + layer_off(_LOWER); + update_tri_layer(_LOWER, _RAISE, _ADJUST); + } + return false; + break; + case RAISE: + if (record->event.pressed) { + layer_on(_RAISE); + update_tri_layer(_LOWER, _RAISE, _ADJUST); + } else { + layer_off(_RAISE); + update_tri_layer(_LOWER, _RAISE, _ADJUST); + } + return false; + break; + case ADJUST: + if (record->event.pressed) { + layer_on(_ADJUST); + } else { + layer_off(_ADJUST); + } + return false; + break; + } + return true; +} + +tap_dance_action_t tap_dance_actions[] = { + [TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC) +}; diff --git a/keyboards/maple_computing/minidox/keymaps/turky/rules.mk b/keyboards/maple_computing/minidox/keymaps/turky/rules.mk new file mode 100644 index 000000000000..31e0fcf29339 --- /dev/null +++ b/keyboards/maple_computing/minidox/keymaps/turky/rules.mk @@ -0,0 +1 @@ +TAP_DANCE_ENABLE=yes