diff options
Diffstat (limited to 'keyboards/polilla')
-rw-r--r-- | keyboards/polilla/.noci | 0 | ||||
-rw-r--r-- | keyboards/polilla/chconf.h | 27 | ||||
-rw-r--r-- | keyboards/polilla/halconf.h | 35 | ||||
-rw-r--r-- | keyboards/polilla/info.json | 319 | ||||
-rw-r--r-- | keyboards/polilla/mcuconf.h | 28 | ||||
-rw-r--r-- | keyboards/polilla/polilla.c | 17 | ||||
-rw-r--r-- | keyboards/polilla/polilla.h | 42 | ||||
-rw-r--r-- | keyboards/polilla/readme.md | 16 | ||||
-rw-r--r-- | keyboards/polilla/rev1/.noci | 0 | ||||
-rw-r--r-- | keyboards/polilla/rev1/config.h | 70 | ||||
-rw-r--r-- | keyboards/polilla/rev1/keymaps/default/keymap.c | 102 | ||||
-rw-r--r-- | keyboards/polilla/rev1/keymaps/via/keymap.c | 124 | ||||
-rw-r--r-- | keyboards/polilla/rev1/keymaps/via/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/polilla/rev1/rules.mk | 18 | ||||
-rw-r--r-- | keyboards/polilla/rules.mk | 1 |
15 files changed, 0 insertions, 800 deletions
diff --git a/keyboards/polilla/.noci b/keyboards/polilla/.noci deleted file mode 100644 index e69de29bb2..0000000000 --- a/keyboards/polilla/.noci +++ /dev/null diff --git a/keyboards/polilla/chconf.h b/keyboards/polilla/chconf.h deleted file mode 100644 index 86d045b3da..0000000000 --- a/keyboards/polilla/chconf.h +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright 2020 QMK - * - * 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 <http://www.gnu.org/licenses/>. - */ - -/* - * This file was auto-generated by: - * `qmk chibios-confmigrate -i keyboards/polilla/chconf.h -r platforms/chibios/common/configs/chconf.h` - */ - -#pragma once - -#define CH_CFG_ST_FREQUENCY 10000 - -#include_next <chconf.h> - diff --git a/keyboards/polilla/halconf.h b/keyboards/polilla/halconf.h deleted file mode 100644 index 6849a69f20..0000000000 --- a/keyboards/polilla/halconf.h +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright 2020 QMK - * - * 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 <http://www.gnu.org/licenses/>. - */ - -/* - * This file was auto-generated by: - * `qmk chibios-confmigrate -i keyboards/polilla/halconf.h -r platforms/chibios/common/configs/halconf.h` - */ - -#pragma once - -#define ADC_USE_WAIT FALSE - -#define ADC_USE_MUTUAL_EXCLUSION FALSE - -#define SERIAL_USB_BUFFERS_SIZE 256 - -#define SPI_USE_WAIT FALSE - -#define SPI_USE_MUTUAL_EXCLUSION FALSE - -#include_next <halconf.h> - diff --git a/keyboards/polilla/info.json b/keyboards/polilla/info.json deleted file mode 100644 index bb6a98939c..0000000000 --- a/keyboards/polilla/info.json +++ /dev/null @@ -1,319 +0,0 @@ -{ - "keyboard_name": "Polilla", - "manufacturer": "elagil", - "url": "", - "maintainer": "elagil", - "usb": { - "vid": "0x6166", - "pid": "0x0010", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT": { - "layout": [ - { - "label": "0,0", - "x": 0.5, - "y": 0.5 - }, - { - "label": "0,1", - "x": 1.5, - "y": 0.5 - }, - { - "label": "0,2", - "x": 2.5, - "y": 0.375 - }, - { - "label": "0,3", - "x": 3.5, - "y": 0.25 - }, - { - "label": "0,4", - "x": 4.5, - "y": 0.25 - }, - { - "label": "0,5", - "x": 5.5, - "y": 0.25 - }, - { - "label": "0,6", - "x": 10, - "y": 0.25 - }, - { - "label": "0,7", - "x": 11, - "y": 0.25 - }, - { - "label": "0,8", - "x": 12, - "y": 0.25 - }, - { - "label": "0,9", - "x": 13, - "y": 0.375 - }, - { - "label": "0,10", - "x": 14, - "y": 0.5 - }, - { - "label": "0,11", - "x": 15, - "y": 0.5 - }, - { - "label": "1,0", - "x": 0.5, - "y": 1.5 - }, - { - "label": "1,1", - "x": 1.5, - "y": 1.5 - }, - { - "label": "1,2", - "x": 2.5, - "y": 1.375 - }, - { - "label": "1,3", - "x": 3.5, - "y": 1.25 - }, - { - "label": "1,4", - "x": 4.5, - "y": 1.25 - }, - { - "label": "1,5", - "x": 5.5, - "y": 1.25 - }, - { - "label": "1,6", - "x": 10, - "y": 1.25 - }, - { - "label": "1,7", - "x": 11, - "y": 1.25 - }, - { - "label": "1,8", - "x": 12, - "y": 1.25 - }, - { - "label": "1,9", - "x": 13, - "y": 1.375 - }, - { - "label": "1,10", - "x": 14, - "y": 1.5 - }, - { - "label": "1,11", - "x": 15, - "y": 1.5 - }, - { - "label": "2,0", - "x": 0.5, - "y": 2.5 - }, - { - "label": "2,1", - "x": 1.5, - "y": 2.5 - }, - { - "label": "2,2", - "x": 2.5, - "y": 2.375 - }, - { - "label": "2,3", - "x": 3.5, - "y": 2.25 - }, - { - "label": "2,4", - "x": 4.5, - "y": 2.25 - }, - { - "label": "2,5", - "x": 5.5, - "y": 2.25 - }, - { - "label": "2,6", - "x": 10, - "y": 2.25 - }, - { - "label": "2,7", - "x": 11, - "y": 2.25 - }, - { - "label": "2,8", - "x": 12, - "y": 2.25 - }, - { - "label": "2,9", - "x": 13, - "y": 2.375 - }, - { - "label": "2,10", - "x": 14, - "y": 2.5 - }, - { - "label": "2,11", - "x": 15, - "y": 2.5 - }, - { - "label": "3,0", - "x": 0.5, - "y": 3.5 - }, - { - "label": "3,1", - "x": 1.5, - "y": 3.5 - }, - { - "label": "3,2", - "x": 2.5, - "y": 3.375 - }, - { - "label": "3,3", - "x": 3.5, - "y": 3.25 - }, - { - "label": "3,4", - "x": 4.5, - "y": 3.25 - }, - { - "label": "3,5", - "x": 5.5, - "y": 3.25 - }, - { - "label": "3,6", - "x": 10, - "y": 3.25 - }, - { - "label": "3,7", - "x": 11, - "y": 3.25 - }, - { - "label": "3,8", - "x": 12, - "y": 3.25 - }, - { - "label": "3,9", - "x": 13, - "y": 3.375 - }, - { - "label": "3,10", - "x": 14, - "y": 3.5 - }, - { - "label": "3,11", - "x": 15, - "y": 3.5 - }, - { - "label": "4,0", - "x": 2.5, - "y": 4.375 - }, - { - "label": "4,1", - "x": 3.5, - "y": 4.25 - }, - { - "label": "4,2", - "x": 4.5, - "y": 4.25 - }, - { - "label": "4,3", - "x": 5.5, - "y": 4.25 - }, - { - "label": "4,4", - "x": 6.5, - "y": 4, - "h": 1.5 - }, - { - "label": "4,5", - "x": 6.5, - "y": 3 - }, - { - "label": "4,6", - "x": 9, - "y": 3 - }, - { - "label": "4,7", - "x": 9, - "y": 4, - "h": 1.5 - }, - { - "label": "4,8", - "x": 10, - "y": 4.25 - }, - { - "label": "4,9", - "x": 11, - "y": 4.25 - }, - { - "label": "4,10", - "x": 12, - "y": 4.25 - }, - { - "label": "4,11", - "x": 13, - "y": 4.375 - } - ] - } - } -} diff --git a/keyboards/polilla/mcuconf.h b/keyboards/polilla/mcuconf.h deleted file mode 100644 index c3ebb04abd..0000000000 --- a/keyboards/polilla/mcuconf.h +++ /dev/null @@ -1,28 +0,0 @@ -/* Copyright 2020 QMK - * - * 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 <http://www.gnu.org/licenses/>. - */ - -/* - * This file was auto-generated by: - * `qmk chibios-confmigrate -i keyboards/polilla/mcuconf.h -r platforms/chibios/GENERIC_STM32_F042X6/configs/mcuconf.h` - */ - -#pragma once - -#include_next <mcuconf.h> - -#undef STM32_SERIAL_USE_USART2 -#define STM32_SERIAL_USE_USART2 TRUE - diff --git a/keyboards/polilla/polilla.c b/keyboards/polilla/polilla.c deleted file mode 100644 index b8bfba2d9e..0000000000 --- a/keyboards/polilla/polilla.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright 2020 elagil - * - * 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 <http://www.gnu.org/licenses/>. - */ - -#include "polilla.h"
\ No newline at end of file diff --git a/keyboards/polilla/polilla.h b/keyboards/polilla/polilla.h deleted file mode 100644 index 39a706ee26..0000000000 --- a/keyboards/polilla/polilla.h +++ /dev/null @@ -1,42 +0,0 @@ -/* Copyright 2020 elagil - * - * 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 <http://www.gnu.org/licenses/>. - */ - -#pragma once - -#include "quantum.h" - -/* This is a shortcut to help you visually see your layout. - * - * The first section contains all of the arguments representing the physical - * layout of the board and position of the keys. - * - * The second converts the arguments into a two-dimensional array which - * represents the switch matrix.k - */ - -#define LAYOUT( \ - L00, L01, L02, L03, L04, L05, R01, R02, R03, R04, R05, R06, \ - L10, L11, L12, L13, L14, L15, R11, R12, R13, R14, R15, R16, \ - L20, L21, L22, L23, L24, L25, R21, R22, R23, R24, R25, R26, \ - L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, \ - L41, L42, L43, L44, L45, R41, R42, R43, R44, R45 \ -) { \ - { L00, L01, L02, L03, L04, L05, R01, R02, R03, R04, R05, R06 },\ - { L10, L11, L12, L13, L14, L15, R11, R12, R13, R14, R15, R16 },\ - { L20, L21, L22, L23, L24, L25, R21, R22, R23, R24, R25, R26 },\ - { L30, L31, L32, L33, L34, L35, R31, R32, R33, R34, R35, R36 },\ - { L41, L42, L43, L44, L45, L36, R30, R41, R42, R43, R44, R45 },\ -} diff --git a/keyboards/polilla/readme.md b/keyboards/polilla/readme.md deleted file mode 100644 index 8da942eb26..0000000000 --- a/keyboards/polilla/readme.md +++ /dev/null @@ -1,16 +0,0 @@ -# Polilla (the moth) - -The Polilla is a split ortholinear keyboard with 60 keys in a 6x4 layout + 6 thumb keys (per side). - -* Keyboard Maintainer: [elagil](https://github.com/elagil) -* Hardware Supported: [polilla](https://github.com/elagil/polilla) - -Make example for this keyboard (after setting up your build environment): - - make polilla/rev1:default - -For compiling a via-compatible keymap, use: - - make polilla/rev1:via - -See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). diff --git a/keyboards/polilla/rev1/.noci b/keyboards/polilla/rev1/.noci deleted file mode 100644 index e69de29bb2..0000000000 --- a/keyboards/polilla/rev1/.noci +++ /dev/null diff --git a/keyboards/polilla/rev1/config.h b/keyboards/polilla/rev1/config.h deleted file mode 100644 index 4584a939fc..0000000000 --- a/keyboards/polilla/rev1/config.h +++ /dev/null @@ -1,70 +0,0 @@ -/* -Copyright 2020 elagil - -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 <http://www.gnu.org/licenses/>. -*/ -#pragma once - -#include "config_common.h" - -#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE - -/* key matrix size */ -#define MATRIX_ROWS 5 -#define MATRIX_COLS 12 - -/* - * Keyboard Matrix Assignments - * - * Change this to how you wired your keyboard - * COLS: AVR pins used for columns, left to right - * ROWS: AVR pins used for rows, top to bottom - * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) - * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) - * - */ -#define MATRIX_ROW_PINS { B1, B0, A7, F1, A0 } -#define MATRIX_COL_PINS { A6, A5, A4, A3, A2, A1, F0, B7, B6, B5, B4, B3 } - - -/* COL2ROW, ROW2COL*/ -#define DIODE_DIRECTION ROW2COL - -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 - -/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ -#define LOCKING_SUPPORT_ENABLE -/* Locking resynchronize hack */ -#define LOCKING_RESYNC_ENABLE - -/* - * Feature disable options - * These options are also useful to firmware size reduction. - */ - -/* disable debug print */ -//#define NO_DEBUG - -/* disable print */ -//#define NO_PRINT - -/* disable action features */ -//#define NO_ACTION_LAYER -//#define NO_ACTION_TAPPING -//#define NO_ACTION_ONESHOT - -/* Bootmagic Lite key configuration */ -// #define BOOTMAGIC_LITE_ROW 0 -// #define BOOTMAGIC_LITE_COLUMN 0 diff --git a/keyboards/polilla/rev1/keymaps/default/keymap.c b/keyboards/polilla/rev1/keymaps/default/keymap.c deleted file mode 100644 index de0385e765..0000000000 --- a/keyboards/polilla/rev1/keymaps/default/keymap.c +++ /dev/null @@ -1,102 +0,0 @@ -/* Copyright 2020 elagil - * - * 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 <http://www.gnu.org/licenses/>. - */ - - #include QMK_KEYBOARD_H - -enum layers { - BASE, - _F1, - _F2 -}; - -#define ALT_BSL MT(MOD_RALT, KC_BSLS) - -#define PRE_WRD LCTL(KC_LEFT) // jump to next word -#define NXT_WRD LCTL(KC_RGHT) // jump to previous word - -#define NXT_WDL LCTL(KC_DEL) // delete next word -#define PRE_WDL LCTL(KC_BSPC) // delete previous word - -#define MF1 MO(_F1) // F1 layer access -#define MF2 MO(_F2) // F2 layer access - -/* - * This default keymap is aimed at users of the US or US international layout - */ -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* BASE - * ,-----------------------------------------. ,-----------------------------------------. - * | =+ | 1! | 2@ | 3# | 4$ | 5% | | 6^ | 7& | 8* | 9( | 0) | -_ | - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | Tab | Q | W | E | R | T | | Y | U | I | O | P | \| | - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | Del | A | S | D | F | G | | H | J | K | L | ;: | '" | - * |------+------+------+------+------+------+------. ,------+------+------+------+------+------+------| - * | Sft | Z | X | C | V | B | Esc | | Ent | N | M | ,< | .> | /? | Sft | - * `------------------------------------------------' `------------------------------------------------' - * | LAlt | LGUI | SYM | Back | Ctrl | | RAlt |Space | NAV | RWIN | Caps | - * `----------------------------------' `----------------------------------' - */ - [BASE] = LAYOUT( /* qwerty */ - KC_EQL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, - KC_LBRC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_RBRC, - KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_GESC, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, - KC_LALT, KC_LGUI, MF1, KC_BSPC, KC_LCTL, ALT_BSL, KC_SPC, MF2, KC_RWIN, KC_CAPS - ), - - /* F2 - * ,-----------------------------------------. ,-----------------------------------------. - * | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10| F11| - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | | | | Volu | | | | |PRE W | UP |NXT W | PGUP | F12| - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | Del | | Prev | Play | Next | | | HOME | LEFT | DOWN |RIGHT | END | | - * |------+------+------+------+------+------+------. ,------+------+------+------+------+------+------| - * | | | | Vold | | | | | | |DEL PW| Ins |DEL NW| PGDN | | - * `------------------------------------------------' `------------------------------------------------' - * | | | | | | | | | | | | - * `----------------------------------' `----------------------------------' - */ - [_F2] = LAYOUT( - XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, - XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, PRE_WRD, KC_UP, NXT_WRD, KC_PGUP, KC_F12, - KC_DEL, XXXXXXX, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, XXXXXXX, - _______, XXXXXXX, XXXXXXX, KC_VOLD, XXXXXXX, XXXXXXX, _______, _______, XXXXXXX, PRE_WDL, KC_INS, NXT_WDL, KC_PGDN, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - - /* F1 - * ,-----------------------------------------. ,-----------------------------------------. - * | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10| F11| - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | | PGUP |PRE W | UP |NXT W | | | | 7 | 8 | 9 | | F12| - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | Del | HOME | LEFT | DOWN |RIGHT | END | | + | 4 | 5 | 6 | - | | - * |------+------+------+------+------+------+------. ,------+------+------+------+------+------+------| - * | | PGDN |DEL PW| Ins |DEL NW| | | | NEnt | * | 1 | 2 | 3 | / | | - * `------------------------------------------------' `------------------------------------------------' - * | | | | | | | | 0 | | | NLck | - * `----------------------------------' `----------------------------------' - */ - [_F1] = LAYOUT( - XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, - XXXXXXX, KC_PGUP, PRE_WRD, KC_UP, NXT_WRD, XXXXXXX, XXXXXXX, KC_P7, KC_P8, KC_P9, XXXXXXX, KC_F12, - KC_DEL, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, KC_PPLS, KC_P4, KC_P5, KC_P6, KC_PMNS, XXXXXXX, - _______, KC_PGDN, PRE_WDL, KC_INS, NXT_WDL, XXXXXXX, _______, KC_PENT, KC_PAST, KC_P1, KC_P2, KC_P3, KC_PSLS, _______, - _______, _______, _______, _______, _______, _______, KC_P0, _______, _______, KC_NLCK - ) -}; diff --git a/keyboards/polilla/rev1/keymaps/via/keymap.c b/keyboards/polilla/rev1/keymaps/via/keymap.c deleted file mode 100644 index 8f4558b333..0000000000 --- a/keyboards/polilla/rev1/keymaps/via/keymap.c +++ /dev/null @@ -1,124 +0,0 @@ -/* Copyright 2020 elagil - * - * 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 <http://www.gnu.org/licenses/>. - */ - - #include QMK_KEYBOARD_H - -enum layers { - BASE, - _F1, - _F2, - _F3 -}; - -#define ALT_BSL MT(MOD_RALT, KC_BSLS) - -#define PRE_WRD LCTL(KC_LEFT) // jump to next word -#define NXT_WRD LCTL(KC_RGHT) // jump to previous word - -#define NXT_WDL LCTL(KC_DEL) // delete next word -#define PRE_WDL LCTL(KC_BSPC) // delete previous word - -#define MF1 MO(_F1) // F1 layer access -#define MF2 MO(_F2) // F2 layer access - -/* - * This default keymap is aimed at users of the US or US international layout - */ -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* BASE - * ,-----------------------------------------. ,-----------------------------------------. - * | =+ | 1! | 2@ | 3# | 4$ | 5% | | 6^ | 7& | 8* | 9( | 0) | -_ | - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | Tab | Q | W | E | R | T | | Y | U | I | O | P | \| | - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | Del | A | S | D | F | G | | H | J | K | L | ;: | '" | - * |------+------+------+------+------+------+------. ,------+------+------+------+------+------+------| - * | Sft | Z | X | C | V | B | Esc | | Ent | N | M | ,< | .> | /? | Sft | - * `------------------------------------------------' `------------------------------------------------' - * | LAlt | LGUI | SYM | Back | Ctrl | | RAlt |Space | NAV | RWIN | Caps | - * `----------------------------------' `----------------------------------' - */ - [BASE] = LAYOUT( /* qwerty */ - KC_EQL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, - KC_LBRC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_RBRC, - KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_GESC, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, - KC_LALT, KC_LGUI, MF1, KC_BSPC, KC_LCTL, ALT_BSL, KC_SPC, MF2, KC_RWIN, KC_CAPS - ), - - /* F2 - * ,-----------------------------------------. ,-----------------------------------------. - * | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10| F11| - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | | | | Volu | | | | |PRE W | UP |NXT W | PGUP | F12| - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | Del | | Prev | Play | Next | | | HOME | LEFT | DOWN |RIGHT | END | | - * |------+------+------+------+------+------+------. ,------+------+------+------+------+------+------| - * | | | | Vold | | | | | | |DEL PW| Ins |DEL NW| PGDN | | - * `------------------------------------------------' `------------------------------------------------' - * | | | | | | | | | | | | - * `----------------------------------' `----------------------------------' - */ - [_F2] = LAYOUT( - XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, - XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, PRE_WRD, KC_UP, NXT_WRD, KC_PGUP, KC_F12, - KC_DEL, XXXXXXX, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, XXXXXXX, - _______, XXXXXXX, XXXXXXX, KC_VOLD, XXXXXXX, XXXXXXX, _______, _______, XXXXXXX, PRE_WDL, KC_INS, NXT_WDL, KC_PGDN, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - - /* F1 - * ,-----------------------------------------. ,-----------------------------------------. - * | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10| F11| - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | | PGUP |PRE W | UP |NXT W | | | | 7 | 8 | 9 | | F12| - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | Del | HOME | LEFT | DOWN |RIGHT | END | | + | 4 | 5 | 6 | - | | - * |------+------+------+------+------+------+------. ,------+------+------+------+------+------+------| - * | | PGDN |DEL PW| Ins |DEL NW| | | | NEnt | * | 1 | 2 | 3 | / | | - * `------------------------------------------------' `------------------------------------------------' - * | | | | | | | | 0 | | | NLck | - * `----------------------------------' `----------------------------------' - */ - [_F1] = LAYOUT( - XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, - XXXXXXX, KC_PGUP, PRE_WRD, KC_UP, NXT_WRD, XXXXXXX, XXXXXXX, KC_P7, KC_P8, KC_P9, XXXXXXX, KC_F12, - KC_DEL, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, KC_PPLS, KC_P4, KC_P5, KC_P6, KC_PMNS, XXXXXXX, - _______, KC_PGDN, PRE_WDL, KC_INS, NXT_WDL, XXXXXXX, _______, KC_PENT, KC_PAST, KC_P1, KC_P2, KC_P3, KC_PSLS, _______, - _______, _______, _______, _______, _______, _______, KC_P0, _______, _______, KC_NLCK - ), - - /* F3 - * ,-----------------------------------------. ,-----------------------------------------. - * | | | | | | | | | | | | | | - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | | | | | | | | | | | | | | - * |------+------+------+------+------+------| |------+------+------+------+------+------| - * | | | | | | | | | | | | | | - * |------+------+------+------+------+------+------. ,------+------+------+------+------+------+------| - * | | | | | | | | | | | | | | | | - * `------------------------------------------------' `------------------------------------------------' - * | | | | | | | | | | | | - * `----------------------------------' `----------------------------------' - */ - [_F3] = LAYOUT( - XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, - XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, - XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, - XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, - XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX - ) -}; |