108 lines
6.4 KiB
C
108 lines
6.4 KiB
C
/* Copyright 2022 CyanDuck
|
|
*
|
|
* 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 3 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
|
|
|
|
// Defines names for use in layer keycodes and the keymap
|
|
enum layer_names {
|
|
_QWERTY,
|
|
_NAVNUM,
|
|
_SYM,
|
|
_FUNC,
|
|
};
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
/* QWERTY
|
|
*
|
|
* ,----------------------------------. ,----------------------------------.
|
|
* | Q | W | E | R | T | | Y | U | I | O | P |
|
|
* |------+------+------+------+------| |------+------+------+------+------|
|
|
* | A | S | D | F | G | | H | J | K | L | ; |
|
|
* |------+------+------+------+------| ,-----. ,-----. |------+------+------+------+------|
|
|
* | Z | X | C | V | B | | 2 | | 3 | | N | M | , | . | / |
|
|
* `----------------------------------' `-----' `-----' `----------------------------------'
|
|
* ,-----. ,--------------------. ,--------------------. ,-----.
|
|
* | 1 | | DEL | SPACE | TAB | | ESC | BS | ENTER | | 4 |
|
|
* `-----' `--------------------' `--------------------' `-----'
|
|
*/
|
|
[_QWERTY] = LAYOUT(
|
|
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
|
MT(MOD_LGUI, KC_A), MT(MOD_LALT, KC_S), MT(MOD_LCTL, KC_D), MT(MOD_LSFT, KC_F), KC_G, KC_H, MT(MOD_LSFT, KC_J), MT(MOD_LCTL, KC_K), MT(MOD_LALT, KC_L), MT(MOD_LGUI, KC_SCLN),
|
|
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
|
KC_1, LT(3,KC_DEL), LT(1,KC_SPC), KC_TAB, KC_2, KC_3, KC_ESC, KC_BSPC, LT(2,KC_ENT), KC_4
|
|
),
|
|
|
|
/* NAVNUM
|
|
*
|
|
* ,----------------------------------. ,----------------------------------.
|
|
* | | PgUp | UP | PgDn | | | / | 7 | 8 | 9 | - |
|
|
* |------+------+------+------+------| |------+------+------+------+------|
|
|
* | Home | Left | Down | Right| End | | = | 4 | 5 | 6 | + |
|
|
* |------+------+------+------+------| ,-----. ,-----. |------+------+------+------+------|
|
|
* | | | INS | | | | 2 | | 3 | | 0 | 1 | 2 | 3 | * |
|
|
* `----------------------------------' `-----' `-----' `----------------------------------'
|
|
* ,-----. ,--------------------. ,--------------------. ,-----.
|
|
* | 1 | | DEL | SPACE | MO(3)| | ESC | BS | ENTER | | 4 |
|
|
* `-----' `--------------------' `--------------------' `-----'
|
|
*/
|
|
[_NAVNUM] = LAYOUT(
|
|
KC_NO, KC_PGUP, KC_UP, KC_PGDN, KC_NO, KC_SLSH, KC_7, KC_8, KC_9, KC_MINS,
|
|
KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, KC_EQL, KC_4, KC_5, KC_6, KC_PLUS,
|
|
KC_NO, KC_NO, KC_INS, KC_NO, KC_NO, KC_0, KC_1, KC_2, KC_3, KC_ASTR,
|
|
KC_1, LT(3,KC_DEL), LT(1,KC_SPC), KC_TAB, KC_2, KC_3, KC_ESC, KC_BSPC, LT(2,KC_ENT), KC_4
|
|
),
|
|
|
|
/* SYM
|
|
*
|
|
* ,----------------------------------. ,----------------------------------.
|
|
* | % | @ | [ | ] | \ | | ¦ | ¬ | ^ | | |
|
|
* |------+------+------+------+------| |------+------+------+------+------|
|
|
* | # | ! | ( | ) | | | | _ | ' | " | ~ | ` |
|
|
* |------+------+------+------+------| ,-----. ,-----. |------+------+------+------+------|
|
|
* | $ | £ | { | } | & | | 2 | | 3 | | | | | | |
|
|
* `----------------------------------' `-----' `-----' `----------------------------------'
|
|
* ,-----. ,--------------------. ,--------------------. ,-----.
|
|
* | 1 | | DEL | SPACE | TAB | | ESC | BS | ENTER | | 4 |
|
|
* `-----' `--------------------' `--------------------' `-----'
|
|
*/
|
|
[_SYM] = LAYOUT(
|
|
KC_PERC, S(KC_QUOT), KC_LBRC, KC_RBRC, KC_NUBS, RALT(KC_GRV), S(KC_GRV), KC_CIRC, KC_NO, KC_NO,
|
|
KC_NONUS_HASH, KC_EXLM, KC_LPRN, KC_RPRN, S(KC_NUBS), KC_UNDS, KC_QUOT, S(KC_2), S(KC_NUHS), KC_GRV,
|
|
KC_DLR, S(KC_3), KC_LCBR, KC_RCBR, KC_AMPR, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
|
KC_1, LT(3,KC_DEL), LT(1,KC_SPC), KC_TAB, KC_2, KC_3, KC_ESC, KC_BSPC, LT(2,KC_ENT), KC_4
|
|
),
|
|
|
|
/* FUNC
|
|
*
|
|
* ,----------------------------------. ,----------------------------------.
|
|
* | | | | | | | | F7 | F8 | F9 | F11 |
|
|
* |------+------+------+------+------| |------+------+------+------+------|
|
|
* | | | | | | | | F4 | F5 | F6 | F12 |
|
|
* |------+------+------+------+------| ,-----. ,-----. |------+------+------+------+------|
|
|
* | Reset| | | | | | 2 | | 3 | | F10 | F1 | F2 | F3 | F13 |
|
|
* `----------------------------------' `-----' `-----' `----------------------------------'
|
|
* ,-----. ,--------------------. ,--------------------. ,-----.
|
|
* | 1 | | DEL | SPACE | TAB | | ESC | BS | ENTER | | 4 |
|
|
* `-----' `--------------------' `--------------------' `-----'
|
|
*/
|
|
[_FUNC] = LAYOUT(
|
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_F7, KC_F8, KC_F9, KC_F11,
|
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_F4, KC_F5, KC_F6, KC_F12,
|
|
QK_BOOT, KC_NO, KC_NO, KC_NO, KC_NO, KC_F10, KC_F1, KC_F2, KC_F3, KC_F13,
|
|
KC_1, LT(3,KC_DEL), LT(1,KC_SPC), KC_TAB, KC_2, KC_3, KC_ESC, KC_BSPC, LT(2,KC_ENT), KC_4
|
|
),
|
|
};
|