From 381f4e6404f1aeb39851d950f747048dd13e828a Mon Sep 17 00:00:00 2001 From: Maarten Dekkers Date: Thu, 1 Mar 2018 16:51:11 +0100 Subject: [PATCH] Updated and added maartenwut's layouts (#2444) --- keyboards/kbd66/keymaps/maartenwut/config.h | 24 + keyboards/kbd66/keymaps/maartenwut/keymap.c | 69 +++ keyboards/kbd66/keymaps/maartenwut/readme.md | 3 + keyboards/tada68/keymaps/maartenwut/config.h | 2 - keyboards/tada68/keymaps/maartenwut/keymap.c | 428 ++---------------- keyboards/tada68/keymaps/maartenwut/readme.md | 2 +- keyboards/tada68/keymaps/maartenwut/rules.mk | 22 - keyboards/tada68/keymaps/maartenwut/tada68.h | 43 -- 8 files changed, 145 insertions(+), 448 deletions(-) create mode 100755 keyboards/kbd66/keymaps/maartenwut/config.h create mode 100755 keyboards/kbd66/keymaps/maartenwut/keymap.c create mode 100755 keyboards/kbd66/keymaps/maartenwut/readme.md delete mode 100644 keyboards/tada68/keymaps/maartenwut/rules.mk delete mode 100755 keyboards/tada68/keymaps/maartenwut/tada68.h diff --git a/keyboards/kbd66/keymaps/maartenwut/config.h b/keyboards/kbd66/keymaps/maartenwut/config.h new file mode 100755 index 00000000..c7b3d6ec --- /dev/null +++ b/keyboards/kbd66/keymaps/maartenwut/config.h @@ -0,0 +1,24 @@ +/* Copyright 2018 Alex Peters + * + * 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 . + */ + +#ifndef CONFIG_USER_H +#define CONFIG_USER_H + +#include "config_common.h" + +// place overrides here + +#endif diff --git a/keyboards/kbd66/keymaps/maartenwut/keymap.c b/keyboards/kbd66/keymaps/maartenwut/keymap.c new file mode 100755 index 00000000..762bed22 --- /dev/null +++ b/keyboards/kbd66/keymaps/maartenwut/keymap.c @@ -0,0 +1,69 @@ +#include "kbd66.h" + +#define _MA 0 +#define _GA 1 +#define _FL 2 +#define _AR 3 +#define _LE 4 +#define _LO 5 +#define _UL 6 + +#define TRNS KC_TRNS +#define ______ KC_NO +#define trigger_time 400 + +#define LSHIFT OSM(MOD_LSFT) +#define SPACE LT(_AR, KC_SPC) +#define CAPS LT(_LE, KC_CAPS) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { +// Main Layer +[_MA] = KEYMAP_ANSI( + 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_MPLY, KC_BSPC, KC_PSCR, + 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, + CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, + LSHIFT, TRNS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, TRNS, KC_UP, + KC_LCTL, KC_LGUI, KC_LALT, SPACE, SPACE, KC_RALT, KC_RCTRL, MO(_FL), KC_LEFT, KC_DOWN, KC_RGHT), + +//Function Layer +[_FL] = KEYMAP_ANSI( + KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, TRNS, RESET, KC_PGUP, + TRNS, KC_BTN1, KC_MS_U, KC_BTN2, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, KC_PGDN, + TRNS, KC_MS_L, KC_MS_D, KC_MS_R, TRNS, TG(_GA), TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, KC_VOLD, KC_VOLU, KC_MUTE, TRNS, TRNS, KC_WH_U, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, KC_WH_L, KC_WH_D, KC_WH_R), + +//Arrow keys layer (space bar) +[_AR] = KEYMAP_ANSI( + KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, M(0), TRNS, TRNS, TRNS), +//LED control layer (caps) +[_LE] = KEYMAP_ANSI( + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, BL_TOGG, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, BL_INC, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, BL_DEC, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS), + +//Game layer (fn + g) +[_GA] = KEYMAP_ANSI( + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + KC_CAPS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + KC_LSFT, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, KC_SPC, KC_SPC, TRNS, TRNS, MO(_FL), TRNS, TRNS, TRNS), +}; + +const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { + switch (id) { + case 0: + if (record->event.pressed) { + SEND_STRING("AdminF123!"); + } + break; + } + return MACRO_NONE; +}; \ No newline at end of file diff --git a/keyboards/kbd66/keymaps/maartenwut/readme.md b/keyboards/kbd66/keymaps/maartenwut/readme.md new file mode 100755 index 00000000..24be72c0 --- /dev/null +++ b/keyboards/kbd66/keymaps/maartenwut/readme.md @@ -0,0 +1,3 @@ +# Maartenwut's KBD66 layout + +This is Maartenwut's layout, which is really similar to Maartenwut's Tada68 layout. \ No newline at end of file diff --git a/keyboards/tada68/keymaps/maartenwut/config.h b/keyboards/tada68/keymaps/maartenwut/config.h index 7d81548b..a5568e40 100755 --- a/keyboards/tada68/keymaps/maartenwut/config.h +++ b/keyboards/tada68/keymaps/maartenwut/config.h @@ -1,3 +1 @@ #include "../../config.h" - -#define BACKLIGHT_BREATHING \ No newline at end of file diff --git a/keyboards/tada68/keymaps/maartenwut/keymap.c b/keyboards/tada68/keymaps/maartenwut/keymap.c index 8ddd6e30..c5b9d987 100755 --- a/keyboards/tada68/keymaps/maartenwut/keymap.c +++ b/keyboards/tada68/keymaps/maartenwut/keymap.c @@ -1,414 +1,82 @@ #include "tada68.h" -#include "action_layer.h" -#include "timer.h" -#include "bootloader.h" -#include "command.h" #define _MA 0 #define _GA 1 #define _FL 2 #define _AR 3 -#define _LO 4 -#define _UL 5 +#define _LE 4 +#define _LO 5 +#define _UL 6 #define TRNS KC_TRNS #define trigger_time 400 -#define T1 M(1) -#define T2 M(2) -#define T3 M(3) -#define T4 M(4) -#define T5 M(5) -#define T6 M(6) -#define T7 M(7) -#define T8 M(8) -#define T9 M(9) -#define T10 M(10) -#define T11 M(11) -#define T12 M(12) -#define END_HOME M(0) #define LSHIFT OSM(MOD_LSFT) #define SPACE LT(_AR, KC_SPC) - -static uint16_t key_timer; - -enum emoticons { - LENNY = SAFE_RANGE, - DWNHRT, - SHRUG -}; +#define CAPS LT(_LE, KC_CAPS) const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Keymap _MA: Main Layer, Default - * ,----------------------------------------------------------------. - * |Esc | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |P/P | - * |----------------------------------------------------------------| - * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ |Del | - * |----------------------------------------------------------------| - * |CAPS | A| S| D| F| G| H| J| K| L| ;| '|Return |PgUp| - * |----------------------------------------------------------------| - * |Shft|End| Z| X| C| V| B| N| M| ,| .| /|Shift | Up|PgDn| - * |----------------------------------------------------------------| - * |Ctrl|Win |Alt | Space |Alt|Ctrl| FN|Lef|Dow|Rig | - * `----------------------------------------------------------------' - */ +// Main Layer [_MA] = KEYMAP_ANSI( - KC_ESC, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, KC_BSPC, KC_MPLY, \ - 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_CAPS, 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, \ - LSHIFT, END_HOME, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, \ - KC_LCTL, KC_LGUI, KC_LALT, SPACE, KC_RALT, KC_RCTRL, MO(_FL), KC_LEFT, KC_DOWN, KC_RGHT), - - /* Keymap _FL: Function Layer - * ,----------------------------------------------------------------. - * |~` | F1|F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12|Reset |Prsc| - * |----------------------------------------------------------------| - * | |MbL|MsU|MbR| | | | | | | | | | |_LO | - * |----------------------------------------------------------------| - * | |MsL|MsD|MsR| |_GA| | | | | | | |Hme | - * |----------------------------------------------------------------| - * | | | | | | | | | |VoU|VoD|Mut| |MwU|End | - * |----------------------------------------------------------------| - * | | | | | | | |MwL|MwD|MwR | - * `----------------------------------------------------------------' - */ + 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_BSPC, KC_MPLY, + 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, + CAPS, 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, + LSHIFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, + KC_LCTL, KC_LGUI, KC_LALT, SPACE, KC_RALT, KC_RCTRL, MO(_FL), KC_LEFT, KC_DOWN, KC_RGHT), + +//Function Layer [_FL] = KEYMAP_ANSI( - KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, RESET, KC_PSCR, \ - TRNS, KC_BTN1, KC_MS_U, KC_BTN2, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TO(_LO), \ - TRNS, KC_MS_L, KC_MS_D, KC_MS_R, TRNS, TG(_GA), TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, KC_HOME, \ - TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, KC_VOLD, KC_VOLU, KC_MUTE, TRNS, KC_WH_U, KC_END, \ - TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, KC_WH_L, KC_WH_D, KC_WH_R), + KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, RESET, KC_PSCR, + TRNS, KC_BTN1, KC_MS_U, KC_BTN2, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TO(_LO), + TRNS, KC_MS_L, KC_MS_D, KC_MS_R, TRNS, TG(_GA), TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, KC_HOME, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, KC_VOLD, KC_VOLU, KC_MUTE, TRNS, KC_WH_U, KC_END, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, KC_WH_L, KC_WH_D, KC_WH_R), - /* Keymap _AR: Arrow layer - * ,----------------------------------------------------------------. - * |~` | F1|F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12| | | - * |----------------------------------------------------------------| - * |Lenny| | | | | | | | | | | | | | | - * |----------------------------------------------------------------| - * |Dwnhrt| | | | | |Lft|Dwn| Up|Rgt| | | | | - * |----------------------------------------------------------------| - * |Shrg| | | | | | | | | | | | | | | - * |----------------------------------------------------------------| - * | | | | | | | | | | | - * `----------------------------------------------------------------' - */ +//Arrow keys layer (space bar) [_AR] = KEYMAP_ANSI( - KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, TRNS, TRNS, \ - LENNY, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \ - DWNHRT, TRNS, TRNS, TRNS, TRNS, TRNS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, TRNS, TRNS, TRNS, TRNS, \ - SHRUG, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \ - TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS), + KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, TRNS, TRNS, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, TRNS, TRNS, TRNS, TRNS, + TRNS, TERM_ON, TERM_OFF, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, M(0), TRNS, TRNS, TRNS), +//LED control layer (caps) +[_LE] = KEYMAP_ANSI( + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, BL_TOGG, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, BL_INC, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, BL_DEC, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS), - /* Keymap _GA: Game layer - * ,----------------------------------------------------------------. - * |Esc | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |P/P | - * |----------------------------------------------------------------| - * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ |Del | - * |----------------------------------------------------------------| - * |CAPS | A| S| D| F| G| H| J| K| L| ;| '|Return |PgUp| - * |----------------------------------------------------------------| - * |Shft|End| Z| X| C| V| B| N| M| ,| .| /|Shift | Up|PgDn| - * |----------------------------------------------------------------| - * |Ctrl|Win |Alt | Space |Alt|Ctrl| FN|Lef|Dow|Rig | - * `----------------------------------------------------------------' - */ +//Game layer (fn + g) [_GA] = KEYMAP_ANSI( - KC_ESC, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, KC_BSPC, KC_MPLY, \ - 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_CAPS, 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, \ - KC_LSFT, END_HOME, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, \ - KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTRL, MO(_FL), KC_LEFT, KC_DOWN, KC_RGHT), + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + KC_CAPS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + KC_LSFT, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, + TRNS, TRNS, TRNS, KC_SPC, TRNS, TRNS, MO(_FL), TRNS, TRNS, TRNS), - /* Keymap _UL: Unlock layer - * ,----------------------------------------------------------------. - * | | | | | | | | | | | | | | | | - * |----------------------------------------------------------------| - * | | | | | | | | | | | | | | |_MA | - * |----------------------------------------------------------------| - * | | | | | | | | | | | | | | | - * |----------------------------------------------------------------| - * | | | | | | | | | | | | | | | | - * |----------------------------------------------------------------| - * | | | | | | | | | | | - * `----------------------------------------------------------------' - */ [_UL] = KEYMAP_ANSI( - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \ - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(_MA), \ - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \ - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \ - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TRNS, KC_NO, KC_NO, KC_NO), + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(_MA), + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TRNS, KC_NO, KC_NO, KC_NO), - /* Keymap _LO: Lock layer - * ,----------------------------------------------------------------. - * | | | | | | | | | | | | | | | | - * |----------------------------------------------------------------| - * | | | | | | | | | | | | | | | | - * |----------------------------------------------------------------| - * | | | | | | | | | | | | | | | - * |----------------------------------------------------------------| - * | | | | | | | | | | | | | | | | - * |----------------------------------------------------------------| - * | | | | | | | _UL | | | | - * `----------------------------------------------------------------' - */ [_LO] = KEYMAP_ANSI( - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \ - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \ - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \ - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \ - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, MO(_UL), KC_NO, KC_NO, KC_NO), -}; - -void tap(uint16_t keycode){ - register_code(keycode); - unregister_code(keycode); -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case LENNY: // ( ͡° ͜ʖ ͡°) - if(record->event.pressed){ - set_unicode_input_mode(UC_WIN); - register_code(KC_LSFT); - tap(KC_9); // Head - unregister_code(KC_LSFT); - tap(KC_SPC); // Space - process_unicode((0x0361|QK_UNICODE), record); // Eyebrow - process_unicode((0x00B0|QK_UNICODE), record); // Eye - tap(KC_SPC); - process_unicode((0x035C|QK_UNICODE), record); // Mouth - process_unicode((0x0296|QK_UNICODE), record); // Nose - tap(KC_SPC); - process_unicode((0x0361|QK_UNICODE), record); // Eyebrow - process_unicode((0x00B0|QK_UNICODE), record); // Eye - register_code(KC_LSFT); - tap(KC_0); // Head - unregister_code(KC_LSFT); - } - return false; - break; - case DWNHRT: // (´・ω・`) - if(record->event.pressed){ - set_unicode_input_mode(UC_WIN); - register_code(KC_LSFT); - tap(KC_9); // Head - unregister_code(KC_LSFT); - process_unicode((0x00B4|QK_UNICODE), record); // Eyebrow - process_unicode((0x30FB|QK_UNICODE), record); // Eye - process_unicode((0x03C9|QK_UNICODE), record); // Mouth - process_unicode((0x30FB|QK_UNICODE), record); // Eye - process_unicode((0x0060|QK_UNICODE), record); // Eyebrow - register_code(KC_LSFT); - tap(KC_0); // Head - unregister_code(KC_LSFT); - } - return false; - break; - case SHRUG: // ¯\_(ツ)_/¯ - if(record->event.pressed){ - set_unicode_input_mode(UC_WIN); - process_unicode((0x00AF|QK_UNICODE), record); // Hand - tap(KC_BSLS); // Arm - register_code(KC_LSFT); - tap(KC_UNDS); // Arm - tap(KC_LPRN); // Head - unregister_code(KC_LSFT); - process_unicode((0x30C4|QK_UNICODE), record); // Face - register_code(KC_LSFT); - tap(KC_RPRN); // Head - tap(KC_UNDS); // Arm - unregister_code(KC_LSFT); - tap(KC_SLSH); // Arm - process_unicode((0x00AF|QK_UNICODE), record); // Hand - } - return false; - break; - } - return true; + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, MO(_UL), KC_NO, KC_NO, KC_NO), }; const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { switch (id) { case 0: if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(END), END ); - } - else { - return MACRO( T(HOME), END ); - } - } - break; - case 1: - if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(F1), END ); - } - else { - return MACRO( T(1), END ); - } - } - break; - case 2: - if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(F2), END ); - } - else { - return MACRO( T(2), END ); - } - } - break; - case 3: - if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(F3), END ); - } - else { - return MACRO( T(3), END ); - } - } - break; - case 4: - if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(F4), END ); - } - else { - return MACRO( T(4), END ); - } - } - break; - case 5: - if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(F5), END ); - } - else { - return MACRO( T(5), END ); - } - } - break; - case 6: - if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(F6), END ); - } - else { - return MACRO( T(6), END ); - } - } - break; - case 7: - if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(F7), END ); - } - else { - return MACRO( T(7), END ); - } - } - break; - case 8: - if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(F8), END ); - } - else { - return MACRO( T(8), END ); - } - } - break; - case 9: - if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(F9), END ); - } - else { - return MACRO( T(9), END ); - } - } - break; - case 10: - if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(F10), END ); - } - else { - return MACRO( T(0), END ); - } - } - break; - case 11: - if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(F11), END ); - } - else { - return MACRO( T(MINS), END ); - } - } - break; - case 12: - if (record->event.pressed) { - key_timer = timer_read(); - } - else { - if (timer_elapsed(key_timer) > trigger_time) { - return MACRO( T(F12), END ); - } - else { - return MACRO( T(EQL), END ); - } + SEND_STRING("Password"); } break; } return MACRO_NONE; -}; - -void led_set_user(uint8_t usb_led) { - if (usb_led & (1<