diff options
| author | Nick Choi <iinikchi@gmail.com> | 2017-05-15 00:10:25 -0400 |
|---|---|---|
| committer | Nick Choi <iinikchi@gmail.com> | 2017-05-15 00:10:25 -0400 |
| commit | 888026ae73e691e90ea34819e3f625d07aef2629 (patch) | |
| tree | 12feeb99b08d87cd4d7700f3322a5859a457c6fe | |
| parent | 05a6449d2dad0cac1b12671181bb70880384f31b (diff) | |
| download | qmk_firmware-888026ae73e691e90ea34819e3f625d07aef2629.tar.gz qmk_firmware-888026ae73e691e90ea34819e3f625d07aef2629.zip | |
nikchi flake
| -rw-r--r-- | keyboards/frosty_flake/keymaps/nikchi/Makefile | 23 | ||||
| -rw-r--r-- | keyboards/frosty_flake/keymaps/nikchi/config.h | 23 | ||||
| -rw-r--r-- | keyboards/frosty_flake/keymaps/nikchi/keymap.c | 85 | ||||
| -rw-r--r-- | keyboards/frosty_flake/keymaps/nikchi/readme.md | 24 |
4 files changed, 155 insertions, 0 deletions
diff --git a/keyboards/frosty_flake/keymaps/nikchi/Makefile b/keyboards/frosty_flake/keymaps/nikchi/Makefile new file mode 100644 index 000000000..377a25c28 --- /dev/null +++ b/keyboards/frosty_flake/keymaps/nikchi/Makefile | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # Build Options | ||
| 2 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 3 | # the appropriate keymap folder that will get included automatically | ||
| 4 | # | ||
| 5 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 6 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 9 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 11 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 12 | MIDI_ENABLE = no # MIDI controls | ||
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 14 | UNICODE_ENABLE = no # Unicode | ||
| 15 | UNICODEMAP_ENABLE = no # unicodemap | ||
| 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 17 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 18 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 19 | TAP_DANCE_ENABLE = yes | ||
| 20 | |||
| 21 | ifndef QUANTUM_DIR | ||
| 22 | include ../../../../Makefile | ||
| 23 | endif | ||
diff --git a/keyboards/frosty_flake/keymaps/nikchi/config.h b/keyboards/frosty_flake/keymaps/nikchi/config.h new file mode 100644 index 000000000..45825781d --- /dev/null +++ b/keyboards/frosty_flake/keymaps/nikchi/config.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | #ifndef CONFIG_USER_H | ||
| 2 | #define CONFIG_USER_H | ||
| 3 | |||
| 4 | #include "../../config.h" | ||
| 5 | |||
| 6 | #define TAPPING_TERM 200 | ||
| 7 | #define LEADER_TIMEOUT 400 | ||
| 8 | |||
| 9 | #define DISABLE_SPACE_CADET_ROLLOVER | ||
| 10 | |||
| 11 | #define UNICODE_TYPE_DELAY 0 | ||
| 12 | |||
| 13 | #define LSPO_KEY KC_9 | ||
| 14 | #define RSPC_KEY KC_0 | ||
| 15 | |||
| 16 | #define MOUSEKEY_INTERVAL 20 | ||
| 17 | #define MOUSEKEY_DELAY 0 | ||
| 18 | #define MOUSEKEY_TIME_TO_MAX 60 | ||
| 19 | #define MOUSEKEY_MAX_SPEED 7 | ||
| 20 | #define MOUSEKEY_WHEEL_DELAY 0 | ||
| 21 | // place overrides here | ||
| 22 | |||
| 23 | #endif | ||
diff --git a/keyboards/frosty_flake/keymaps/nikchi/keymap.c b/keyboards/frosty_flake/keymaps/nikchi/keymap.c new file mode 100644 index 000000000..955891eb2 --- /dev/null +++ b/keyboards/frosty_flake/keymaps/nikchi/keymap.c | |||
| @@ -0,0 +1,85 @@ | |||
| 1 | #include "frosty_flake.h" | ||
| 2 | #define _______ KC_TRNS | ||
| 3 | |||
| 4 | //Tap Dance Declarations | ||
| 5 | enum { | ||
| 6 | TD_CTCPS = 0 | ||
| 7 | }; | ||
| 8 | |||
| 9 | //Tap Dance Definitions | ||
| 10 | qk_tap_dance_action_t tap_dance_actions[] = { | ||
| 11 | //Tap once for CTRL, twice for Caps Lock | ||
| 12 | [TD_CTCPS] = ACTION_TAP_DANCE_DOUBLE(KC_LCTL, KC_CAPS) | ||
| 13 | // Other declarations would go here, separated by commas, if you have them | ||
| 14 | }; | ||
| 15 | |||
| 16 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) // this is the function signature -- just copy/paste it into your keymap file as it is. | ||
| 17 | { | ||
| 18 | switch(id) { | ||
| 19 | case 0: // this would trigger when you hit a key mapped as M(0) | ||
| 20 | if (record->event.pressed) { | ||
| 21 | return MACRO( I(1), D(LGUI), D(LCTL), D(D), U(LGUI), U(LCTL), U(D), END ); // NEW DESKTOP | ||
| 22 | } | ||
| 23 | break; | ||
| 24 | case 1: // this would trigger when you hit a key mapped as M(0) | ||
| 25 | if (record->event.pressed) { | ||
| 26 | return MACRO( I(1), D(LGUI), D(LCTL), D(LEFT), U(LGUI), U(LCTL), U(LEFT), END ); // LEFT DESKTOP | ||
| 27 | } | ||
| 28 | break; | ||
| 29 | case 2: // this would trigger when you hit a key mapped as M(0) | ||
| 30 | if (record->event.pressed) { | ||
| 31 | return MACRO( I(1), D(LGUI), D(LCTL), D(RGHT), U(LGUI), U(LCTL), U(RGHT), END ); // RIGHT DESKTOP | ||
| 32 | } | ||
| 33 | break; | ||
| 34 | case 3: // this would trigger when you hit a key mapped as M(0) | ||
| 35 | if (record->event.pressed) { | ||
| 36 | return MACRO( I(1), D(LGUI), D(LCTL), D(F4), U(LGUI), U(LCTL), U(F4), END ); // CLOSE DESKTOP | ||
| 37 | } | ||
| 38 | break; | ||
| 39 | } | ||
| 40 | return MACRO_NONE; | ||
| 41 | }; | ||
| 42 | |||
| 43 | LEADER_EXTERNS(); | ||
| 44 | |||
| 45 | void matrix_scan_user(void) { | ||
| 46 | LEADER_DICTIONARY() { | ||
| 47 | leading = false; | ||
| 48 | leader_end(); | ||
| 49 | |||
| 50 | SEQ_TWO_KEYS(KC_A, KC_A) { | ||
| 51 | register_code(KC_LCTL); | ||
| 52 | register_code(KC_A); | ||
| 53 | unregister_code(KC_A); | ||
| 54 | register_code(KC_C); | ||
| 55 | unregister_code(KC_C); | ||
| 56 | unregister_code(KC_LCTL); | ||
| 57 | } | ||
| 58 | |||
| 59 | } | ||
| 60 | } | ||
| 61 | |||
| 62 | |||
| 63 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 64 | [0] = KEYMAP(\ | ||
| 65 | 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_PSCR,KC_SLCK,KC_PAUS, \ | ||
| 66 | KC_GRV, 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, KC_INS,KC_HOME,KC_PGUP, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, \ | ||
| 67 | 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_BSLS, KC_DEL, KC_END,KC_PGDN, KC_P7, KC_P8, KC_P9,KC_PPLS, \ | ||
| 68 | KC_LCTL, 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_P4, KC_P5, KC_P6, \ | ||
| 69 | KC_LSPO,KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSPC, KC_UP, KC_P1, KC_P2, KC_P3,KC_PENT, \ | ||
| 70 | TD(TD_CTCPS),KC_LGUI,KC_LALT, KC_SPC, KC_LEAD,KC_RGUI, KC_APP,MO(1) , KC_LEFT,KC_DOWN,KC_RGHT, KC_P0,KC_PDOT), | ||
| 71 | [1] = KEYMAP(\ | ||
| 72 | 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_PSCR,KC_SLCK,KC_PAUS, \ | ||
| 73 | KC_GRV, 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, KC_MPRV,KC_MPLY,KC_MNXT, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, \ | ||
| 74 | KC_TAB, KC_Q, M(0), KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC,KC_RBRC,KC_BSLS, KC_MUTE,KC_VOLD,KC_VOLU, KC_P7, KC_P8, KC_P9,KC_PPLS, \ | ||
| 75 | KC_LCTL, M(1), M(3), M(2), KC_F, KC_G, KC_H, KC_J, KC_K, KC_L,KC_SCLN,KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, \ | ||
| 76 | KC_LSFT,KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSFT, KC_MS_U, KC_P1, KC_P2, KC_P3,KC_PENT, \ | ||
| 77 | KC_BTN1,KC_BTN3,KC_BTN2, KC_SPC, KC_RALT,KC_RGUI, TG(2),_______ , KC_MS_L,KC_MS_D,KC_MS_R, KC_P0,KC_PDOT), | ||
| 78 | [2] = KEYMAP(\ | ||
| 79 | 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_PSCR,KC_SLCK,KC_PAUS, \ | ||
| 80 | KC_GRV, 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, KC_MPRV,KC_MPLY,KC_MNXT, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, \ | ||
| 81 | 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_BSLS, KC_MUTE,KC_VOLD,KC_VOLU, KC_P7, KC_P8, KC_P9,KC_PPLS, \ | ||
| 82 | KC_LCTL, KC_D, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L,KC_SCLN,KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, \ | ||
| 83 | KC_LSFT,KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSFT, KC_MS_U, KC_P1, KC_P2, KC_P3,KC_PENT, \ | ||
| 84 | KC_BTN1,KC_BTN3,KC_BTN2, KC_SPC, KC_RALT,KC_RGUI, _______,_______ , KC_MS_L,KC_MS_D,KC_MS_R, KC_P0,KC_PDOT), | ||
| 85 | }; | ||
diff --git a/keyboards/frosty_flake/keymaps/nikchi/readme.md b/keyboards/frosty_flake/keymaps/nikchi/readme.md new file mode 100644 index 000000000..b6a89e8dd --- /dev/null +++ b/keyboards/frosty_flake/keymaps/nikchi/readme.md | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # The Nikchi's keymap for frosty_flake | ||
| 2 | |||
| 3 | ### FEATURING | ||
| 4 | -SPACE CADET | ||
| 5 | -Caps Lock is now LCTRL | ||
| 6 | -LCTRL is Tap(LCTRL, Caps Lock) | ||
| 7 | |||
| 8 | ### LEADER KEY - RALT | ||
| 9 | COMBOS | ||
| 10 | -a,s => Select All, Copy | ||
| 11 | |||
| 12 | |||
| 13 | |||
| 14 | ### FN REBINDS for Windows | ||
| 15 | ``` | ||
| 16 | [W] [New Desktop] | ||
| 17 | [A][S][D] [Left Desk][Delete Desk][Right Desk] | ||
| 18 | |||
| 19 | [Ins][Hom][PUp] [RW][PP][FF] | ||
| 20 | [Del][End][PDn] [MU][VD][VU] | ||
| 21 | |||
| 22 | Arrows are Mouskeys, left three mods are clicks | ||
| 23 | |||
| 24 | ``` \ No newline at end of file | ||
