[Keymap] add brandonschlack userspace and keymaps (#10411)
This commit is contained in:
parent
262a607334
commit
f12dcb0659
173
keyboards/cannonkeys/tmov2/keymaps/brandonschlack/keymap.c
Normal file
173
keyboards/cannonkeys/tmov2/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,173 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
/**
|
||||
* Layer Names
|
||||
*
|
||||
* Layers mostly used for macro keys
|
||||
*/
|
||||
#define _REEDER _M1
|
||||
#define _NAV _M2
|
||||
#define _MOUSE _M3
|
||||
|
||||
/**
|
||||
* Keycodes & Macros
|
||||
*/
|
||||
#define TG_BASE TO(_BASE)
|
||||
#define TG_REDR TO(_REEDER)
|
||||
#define TG_NAV TO(_NAV)
|
||||
#define TG_MOUS TO(_MOUSE)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/**
|
||||
* Base
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│││Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│Bck│
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │PgU│││HyEsc │ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │PgD│││Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│Shft│ Fn│
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │End│││││││││││Opt│Cmd │ │ │ Cmd│Ctl│││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_default(
|
||||
KC_ESC, 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_BSPC, \
|
||||
KC_PGUP, HY_ESC, 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_PGDN, KC_LSFT, XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, PLY_FN1, \
|
||||
KC_END, KC_LOPT, KC_LCMD, SPC_RAI, SPC_RAI, KC_RCMD, KC_RCTL \
|
||||
),
|
||||
/**
|
||||
* Reeder
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ P │││ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ K │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │ J │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │ N │││││││││││ │ │ │ │ │ │││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_REEDER] = LAYOUT_default( \
|
||||
KC_P, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_K, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_J, _______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_N, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/**
|
||||
* Nav
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ → │││ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ ↑ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │ ↓ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │ ← │││││││││││ │ │ │ │ │ │││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_NAV] = LAYOUT_default( \
|
||||
KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_DOWN, _______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_LEFT, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/**
|
||||
* Mouse
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │WhU│││ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ ↑ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │ ↓ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │WhD│││││││││││ │ │ │ │ │ │││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_MOUSE] = LAYOUT_default( \
|
||||
MC_WH_U, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_DOWN, _______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
MC_WH_D, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/**
|
||||
* Lower
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Nxt│││Del │BrD│BrU│Msn│LHP│ │ │ │ │ │ │ ↑ │Mut│SlD│
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │VlU│││HyCaps│ │ │NxW│PvT│Bck│Fwd│NxT│ │ │ ← │ → │ Play │
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │VlD│││ │ │ │ │1PX│1Ps│ │ │ │ │ ↓ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │Prv│││││││││││ │ │ │ │ │ │││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_LOWER] = LAYOUT_default( \
|
||||
KC_MNXT, KC_DELT, KC_BRMD, KC_BRMU, MC_MSSN, MC_LHPD, _______, _______, _______, _______, _______, _______, KC_UP, KC_MUTE, MC_SLPD, \
|
||||
KC_VOLU, HY_CAPS, _______, _______, NXT_WIN, PRV_TAB, MC_BACK, MC_FWRD, NXT_TAB, _______, _______, KC_LEFT, KC_RGHT, KC_MPLY, \
|
||||
KC_VOLD, _______, XXXXXXX, _______, _______, _______, PX_AFLL, OP_AFLL, _______, _______, _______, _______, KC_DOWN, _______, _______, \
|
||||
KC_MPRV, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/**
|
||||
* Raise
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Hom│││~ ` │! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│ │
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │PgU│││ │ F1│ F2│ F3│ F4│ F5│ F6│_ -│+ =│ │ │ │ │
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │PgD│││ │ F7│ F8│ F9│F10│F11│F12│ │ │ │| \│ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │End│││││││││││ │ │ │ │ │ │││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_RAISE] = LAYOUT_default( \
|
||||
KC_HOME, 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_PGUP, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, _______, _______, _______, _______, \
|
||||
KC_PGDN, _______, XXXXXXX, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, KC_BSLS, _______, _______, \
|
||||
KC_END, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/**
|
||||
* Adjust
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Bse│││Make │ │ │EEP│RST│ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │Rdr│││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │Nav│││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │Mse│││││││││││ │ │ │ │ │ │││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_default( \
|
||||
TG_BASE, QM_MAKE, _______, _______, EEP_RST, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_REDR, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_NAV, _______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_MOUS, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
};
|
||||
|
||||
void keyboard_post_init_keymap(void) {
|
||||
rgblight_disable_noeeprom();
|
||||
}
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │Esc│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│ Bckspc│Hom│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│| \│PgU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │HyCaps│ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│PgD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│ Shift│ Up│End│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴──┬───┼───┼───┤
|
||||
* │Ctrl│ Opt│ Cmd│ Space │ Cmd │FnPly│Lef│Dow│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_65_ansi_2_right_mods( \
|
||||
KC_ESC, 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_HOME, \
|
||||
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_PGUP, \
|
||||
HY_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_PGDN, \
|
||||
KC_LSFT, 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_END, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, PLY_FN1, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
/* Function Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │` ~│ F1│ F2│ F3│ F4│ F5│ F6│ F7│ F8│ F9│F10│F11│F12│ Del │SlD│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │F13│F14│F15│ LHP │VlU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │VlD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │ │RST│ │Mke│Prv│Nxt│Ply│ │PgU│Mut│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴──┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │Hom│PgD│End│
|
||||
* └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_65_ansi_2_right_mods( \
|
||||
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, KC_DELT, MC_SLPD, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_F13, KC_F14, KC_F15, MC_LHPD, KC_VOLU, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, \
|
||||
_______, _______, _______, _______, _______, RESET, _______, QM_MAKE, KC_MPRV, KC_MNXT, KC_MPLY, _______, KC_PGUP, KC_MUTE, \
|
||||
_______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END \
|
||||
)
|
||||
};
|
111
keyboards/coseyfannitutti/romeo/keymaps/brandonschlack/keymap.c
Normal file
111
keyboards/coseyfannitutti/romeo/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,111 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base Layer
|
||||
* ┌─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ Bspc│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │HyEsc │ A │ S │ D │ F │ G │ H │ J │ K │ L │ Enter│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│ ?/Sft│
|
||||
* ├────┬───┼───┼───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │Ctrl│Opt│Cmd│ Space │ Cmd│Opt│ Lwr│
|
||||
* └────┴───┴───┴────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_ansi_40( \
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
|
||||
HY_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, \
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, SF_SLSH, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, SPC_RAI, KC_RCMD, KC_ROPT, LOWER \
|
||||
),
|
||||
/* Lower
|
||||
* ┌─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │Del │BrD│BrU│Msn│LHP│ │ │ │PgU│Hom│End│ SlpD│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │HyCaps│Mut│VlU│NxW│PvT│Bck│Fwd│NxT│PgD│ ↑ │ Play│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │ │Prv│VlD│Nxt│1PX│1Ps│ │ ← │ ↓ │ → │ │
|
||||
* ├────┬───┼───┼───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │ │ │ │ │ │ │ │
|
||||
* └────┴───┴───┴────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
[_LOWER] = LAYOUT_ansi_40( \
|
||||
KC_DELT, KC_BRMD, KC_BRMU, MC_MSSN, MC_LHPD, _______, _______, _______, KC_PGUP, KC_HOME, KC_END, MC_SLPD, \
|
||||
HY_CAPS, KC_MUTE, KC_VOLU, NXT_WIN, PRV_TAB, MC_BACK, MC_FWRD, NXT_TAB, KC_PGDN, KC_UP, KC_MPLY, \
|
||||
_______, KC_MPRV, KC_VOLD, KC_MNXT, PX_AFLL, OP_AFLL, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/* Raise
|
||||
* ┌─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │~ ` │! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ F1│ F2│ F3│ F4│ F5│ F6│_ -│+ =│: ;│ " '│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │ │ F7│ F8│ F9│F10│F11│F12│ │{ [│} ]│ |\Sft│
|
||||
* ├────┬───┼───┼───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │ │ │ │ │ │ │ │
|
||||
* └────┴───┴───┴────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
[_RAISE] = LAYOUT_ansi_40( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, \
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, \
|
||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, KC_LBRC, KC_RBRC, SF_BSLS, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/* Adjust/Macro Layer
|
||||
* ┌─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │Make │ │ │EEP│RST│ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┼───┼───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │ │ │ │ │ │ │ │
|
||||
* └────┴───┴───┴────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_ansi_40( \
|
||||
QM_MAKE, _______, _______, EEP_RST, RESET, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
)
|
||||
/* Blank Layer
|
||||
* ┌─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┼───┼───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │ │ │ │ │ │ │ │
|
||||
* └────┴───┴───┴────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
/*
|
||||
[BLANK] = LAYOUT_ansi_40( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
)
|
||||
*/
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
#undef RGBLIGHT_ANIMATIONS
|
||||
#define RGBLIGHT_EFFECT_BREATHING // Only have Breathing Animation
|
@ -0,0 +1,80 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │Esc│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│ Bckspc│PgU│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│| \│PgD│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │HyCaps│ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤ │
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│ Shift│ Up│ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │Ctrl│ Opt│ Cmd│ Space │Cmd │FnPy│ │Lef│Dow│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_65_ansi_blocker( \
|
||||
KC_ESC, 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_PGUP, \
|
||||
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_PGDN, \
|
||||
HY_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, XXXXXXX, \
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, XXXXXXX, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, PLY_FN1, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
/* Function Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │` ~│ F1│ F2│ F3│ F4│ F5│ F6│ F7│ F8│ F9│F10│F11│F12│ Delete│VlU│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │RMod │RH+│RS+│RV+│ │ │ │ │ │ │F13│F14│F15│ SlpD│VlD│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │RTgl │RH-│RS-│RV-│ │ │ │ │ │ │MNC│LHP│ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤ │
|
||||
* │ │LYR│Thm│ │ │RST│ │Mke│Prv│Nxt│Ply│MteSft│PgU│ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │Hom│PgD│End│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_65_ansi_blocker( \
|
||||
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, KC_DELT, KC_VOLU, \
|
||||
RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______, KC_F13, KC_F14, KC_F15, MC_SLPD, KC_VOLD, \
|
||||
RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, MC_MSSN, MC_LHPD, _______, XXXXXXX, \
|
||||
_______, RGB_LYR, RGB_THM, _______, _______, RESET, _______, QM_MAKE, KC_MPRV, KC_MNXT, KC_MPLY, MUT_SFT, KC_PGUP, XXXXXXX, \
|
||||
_______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END \
|
||||
),
|
||||
/* Blank Layout
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤ │
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
[X] = LAYOUT_65_ansi_blocker( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
*/
|
||||
};
|
@ -0,0 +1,9 @@
|
||||
# brandonschlack's Think6.5 keymap
|
||||
|
||||
My keymap for the Think6.5. Using the `LAYOUT_65_ansi_blocker` LAYOUT and based on my keyboard-agnostic layout, some small changes for the navigation keys not present due to the badge.
|
||||
|
||||
## [Base Layer](http://www.keyboard-layout-editor.com/#/gists/b396fee9f49d6e9493876e82a8ee99ac)
|
||||
![Base Layer](https://i.imgur.com/AZYVuZS.jpg)
|
||||
|
||||
## [Function Layer](http://www.keyboard-layout-editor.com/#/gists/06e684133399bb63d8b72ac6982e0e68)
|
||||
![Function Layer](https://i.imgur.com/GbOOxME.jpg)
|
@ -0,0 +1,2 @@
|
||||
# Build Options
|
||||
MOUSEKEY_ENABLE = no # Don't need mouse keys
|
102
keyboards/kbdfans/kbd67/hotswap/keymaps/brandonschlack/keymap.c
Normal file
102
keyboards/kbdfans/kbd67/hotswap/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,102 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│| \│~ `│Hom│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│ Bspc│PgU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│PgD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│ Shift│ Up│End│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │Ctrl│ Opt│ Cmd│ Space │Cmd │FnPy│ │Lef│Dow│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
[_BASE] = LAYOUT(
|
||||
KC_ESC, 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_BSLS, KC_GRV, KC_HOME, \
|
||||
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_BSPC, KC_PGUP, \
|
||||
HY_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_PGDN, \
|
||||
KC_LSFT, 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_END, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, PLY_FN1, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
/* Function Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │MKE│ F1│ F2│ F3│ F4│ F5│ F6│ F7│ F8│ F9│F10│F11│F12│LHP│MSN│SLP│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │ │ │ │ │RST│ │ │ │ │ │F13│F14│F15│ Del│VlU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │KMP│ │ │ │ Adjust │VlD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │VRN│ │ │ │Prv│Nxt│Ply│ │PgU│Mut│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │Hom│PgD│End│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
[_FN1] = LAYOUT(
|
||||
QM_MAKE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, MC_LHPD, MC_MSSN, MC_SLPD, \
|
||||
_______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, KC_F13, KC_F14, KC_F15, KC_DEL, KC_VOLU, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, QM_KYMP, _______, _______, _______, TG_ADJT, KC_VOLD, \
|
||||
_______, _______, _______, _______, QM_VRSN, _______, _______, _______, KC_MPRV, KC_MNXT, KC_MPLY, _______, KC_PGUP, KC_MUTE, \
|
||||
_______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END ),
|
||||
|
||||
/* Adjust Layer Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │ │ │ │EEP│RST│ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ Adjust │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, EEP_RST, RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, TG_ADJT, XXXXXXX, \
|
||||
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, \
|
||||
_______, _______, _______, XXXXXXX, _______, _______, XXXXXXX, XXXXXXX, XXXXXXX),
|
||||
};
|
||||
|
||||
/* Blank Template
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
/*
|
||||
[_BLANK] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||
};
|
||||
*/
|
@ -0,0 +1,2 @@
|
||||
# Build Options
|
||||
BOOTMAGIC_ENABLE = full # Use full Bootmagic
|
102
keyboards/kbdfans/kbd67/rev2/keymaps/brandonschlack/keymap.c
Normal file
102
keyboards/kbdfans/kbd67/rev2/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,102 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│| \│~ `│Hom│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│ Bspc│PgU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│PgD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│ Shift│ Up│End│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │Ctrl│ Opt│ Cmd│ Space │Cmd │FnPy│ │Lef│Dow│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_all(
|
||||
KC_ESC, 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_BSLS, KC_GRV, KC_HOME, \
|
||||
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_BSPC, KC_PGUP, \
|
||||
HY_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_PGDN, \
|
||||
KC_LSFT, XXXXXXX, 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_END, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, XXXXXXX, KC_SPC, XXXXXXX, KC_RCMD, PLY_FN1, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
/* Function Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │MKE│ F1│ F2│ F3│ F4│ F5│ F6│ F7│ F8│ F9│F10│F11│F12│LHP│MSN│SLP│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │RMod │RH+│RS+│RV+│RST│ │ │ │ │ │F13│F14│F15│ Del│VlU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │RH-│RS-│RV-│ │ │ │ │KMP│ │ │ │ Adjust │VlD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │RTg│RLy│RTh│VRN│ │ │ │Prv│Nxt│Ply│ │PgU│Mut│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │Hom│PgD│End│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_all(
|
||||
QM_MAKE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, MC_LHPD, MC_MSSN, MC_SLPD, \
|
||||
RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RESET, _______, _______, _______, _______, _______, KC_F13, KC_F14, KC_F15, KC_DEL, KC_VOLU, \
|
||||
_______, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, QM_KYMP, _______, _______, _______, TG_ADJT, KC_VOLD, \
|
||||
_______, XXXXXXX, RGB_TOG, RGB_LYR, RGB_THM, QM_VRSN, _______, _______, _______, KC_MPRV, KC_MNXT, KC_MPLY, _______, KC_PGUP, KC_MUTE, \
|
||||
_______, _______, _______, XXXXXXX, _______, XXXXXXX, _______, _______, XXXXXXX, KC_HOME, KC_PGDN, KC_END ),
|
||||
|
||||
/* Adjust Layer Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │ │ │ │EEP│RST│ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ Adjust │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_all(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, EEP_RST, RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, TG_ADJT, XXXXXXX, \
|
||||
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, \
|
||||
_______, _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX),
|
||||
};
|
||||
|
||||
/* Blank Template
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
/*
|
||||
[_BLANK] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||
};
|
||||
*/
|
@ -0,0 +1,3 @@
|
||||
# Build Options
|
||||
MOUSEKEY_ENABLE = no # Don't need mouse keys
|
||||
BACKLIGHT_ENABLE = no # Backlights not installed
|
25
keyboards/keebio/bdn9/keymaps/brandonschlack/config.h
Normal file
25
keyboards/keebio/bdn9/keymaps/brandonschlack/config.h
Normal file
@ -0,0 +1,25 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
#define ENCODER_DIRECTION_FLIP
|
||||
|
||||
#undef RGBLIGHT_ANIMATIONS
|
||||
#define RGBLIGHT_EFFECT_BREATHING // Only have Breathing Animation
|
||||
|
||||
/* Mouse Keys Configuration */
|
||||
#define MK_3_SPEED
|
||||
#define MK_W_INTERVAL_UNMOD 20
|
393
keyboards/keebio/bdn9/keymaps/brandonschlack/keymap.c
Normal file
393
keyboards/keebio/bdn9/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,393 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
/**
|
||||
* Layer Names
|
||||
*/
|
||||
enum bdn9_layers {
|
||||
_REEDER = 0,
|
||||
_MEDIA,
|
||||
_NAVI,
|
||||
_KARABINER,
|
||||
LR_NAV,
|
||||
LR_REVIEW,
|
||||
LR_EDIT
|
||||
};
|
||||
|
||||
#define _AUDIO 13
|
||||
#define _LIGHT 14
|
||||
|
||||
/**
|
||||
* Keycodes & Macros
|
||||
*/
|
||||
#define DF_REDR DF(_REEDER) // Set Default Layer to Reeder shortcuts
|
||||
#define DF_MEDA DF(_MEDIA) // Set Default Layer to Media controls
|
||||
#define DF_NAVI DF(_NAVI) // Set Default Layer to Navigation shortcuts
|
||||
#define DF_KBNR DF(_KARABINER) // Set Default Layer to Basic Macro keys
|
||||
|
||||
enum bdn9_keycodes {
|
||||
TG_LNAV = KEYMAP_SAFE_RANGE,
|
||||
TG_REVW,
|
||||
TG_EDIT
|
||||
};
|
||||
|
||||
/**
|
||||
* Tap Dances
|
||||
*
|
||||
* Use tap dance for layer changes
|
||||
*/
|
||||
enum bdn9_dances {
|
||||
TD_DTAP_ADIO = 0,
|
||||
TD_DTAP_LGHT,
|
||||
TD_DTAP_ADJT
|
||||
};
|
||||
// Tap Dance Definitions
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
[TD_DTAP_ADIO] = ACTION_TAP_DANCE_TRIGGER_LAYER(DOUBLE_TAP, _AUDIO),
|
||||
[TD_DTAP_LGHT] = ACTION_TAP_DANCE_TRIGGER_LAYER(DOUBLE_TAP, _LIGHT),
|
||||
[TD_DTAP_ADJT] = ACTION_TAP_DANCE_TRIGGER_LAYER(DOUBLE_TAP, _ADJUST),
|
||||
};
|
||||
// Tap Dance Aliases
|
||||
#if defined(RGBLIGHT_ENABLE)
|
||||
#define DTP_AVC TD(TD_DTAP_LGHT) //
|
||||
#elif defined(AUDIO_ENABLE)
|
||||
#define DTP_AVC TD(TD_DTAP_ADIO)
|
||||
#endif
|
||||
#define DTP_ADJ TD(TD_DTAP_ADJT)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
Layer: Reeder
|
||||
┌───────────┐ ┌───────────┐
|
||||
│ Items │ │ Subs │
|
||||
│ Prv Nxt │ │ Prv Nxt │
|
||||
├────────┬──┴──┴──┬────────┤
|
||||
│ VwBrsw │ Star │ Sync │
|
||||
├────────┼────────┼────────┤
|
||||
│ CmdTab │ TgRead │ Clear │
|
||||
├────────┼────────┼────────┤
|
||||
│ VwStard│ VwUnrd │ VwAll │
|
||||
└────────┴────────┴────────┘
|
||||
*/
|
||||
[_REEDER] = LAYOUT(
|
||||
KC_H, KC_S, KC_R,
|
||||
CMD_TAB, KC_M, DTP_AVC,
|
||||
G(KC_1), G(KC_2), DTP_ADJ
|
||||
),
|
||||
/*
|
||||
Layer: Media
|
||||
┌───────────┐ ┌───────────┐
|
||||
│ Vol │ │ Track │
|
||||
│ Prv Nxt │ │ Prv Nxt │
|
||||
├────────┬──┴──┴──┬────────┤
|
||||
│ Mute │ Player │ Sync │
|
||||
├────────┼────────┼────────┤
|
||||
│ YT<10s │ YT Ply │ YT>10s │
|
||||
├────────┼────────┼────────┤
|
||||
│ Left │ Spce │ Rght │
|
||||
└────────┴────────┴────────┘
|
||||
*/
|
||||
[_MEDIA] = LAYOUT(
|
||||
KC_MUTE, MC_PLYR, KC_MPLY,
|
||||
KC_J, KC_K, DTP_AVC,
|
||||
KC_LEFT, KC_SPC, DTP_ADJ
|
||||
),
|
||||
/*
|
||||
Layer: Navigation
|
||||
┌───────────┐ ┌───────────┐
|
||||
│ Scroll │ │ Tab │
|
||||
│ Up Dn │ │ Prv Nxt │
|
||||
├────────┬──┴──┴──┬────────┤
|
||||
│ ReOTab │ CmdTab │ ClsTab │
|
||||
├────────┼────────┼────────┤
|
||||
│ PgDn │ Up │ PgUp │
|
||||
├────────┼────────┼────────┤
|
||||
│ Left │ Down │ Rght │
|
||||
└────────┴────────┴────────┘
|
||||
*/
|
||||
[_NAVI] = LAYOUT(
|
||||
REO_TAB, CMD_TAB, CLS_TAB,
|
||||
KC_PGDN, KC_UP, DTP_AVC,
|
||||
KC_LEFT, KC_DOWN, DTP_ADJ
|
||||
),
|
||||
/*
|
||||
Layer: Macro/Karabiner
|
||||
┌───────────┐ ┌───────────┐
|
||||
│ │ │ │
|
||||
│ - + │ │ . = │
|
||||
├────────┬──┴──┴──┬────────┤
|
||||
│ 1 │ 2 │ 3 │
|
||||
├────────┼────────┼────────┤
|
||||
│ 4 │ 5 │ 6 │
|
||||
├────────┼────────┼────────┤
|
||||
│ 7 │ 8 │ 9 │
|
||||
└────────┴────────┴────────┘
|
||||
*/
|
||||
[_KARABINER] = LAYOUT(
|
||||
KC_P1, KC_P2, KC_P3,
|
||||
KC_P4, KC_P5, DTP_AVC,
|
||||
KC_P7, KC_P8, DTP_ADJ
|
||||
),
|
||||
/*
|
||||
Layer: Lightroom Navigation
|
||||
┌───────────┐ ┌───────────┐
|
||||
│ Thumbnail │ │ Scrl Grid │
|
||||
│ Dec Inc │ │ Up Dn │
|
||||
├────────┬──┴──┴──┬────────┤
|
||||
│ TgRevw │CylGrdVw│ TgEdit │
|
||||
├────────┼────────┼────────┤
|
||||
│ Start │ Up │ End │
|
||||
├────────┼────────┼────────┤
|
||||
│ Left │ Down │ Rght │
|
||||
└────────┴────────┴────────┘
|
||||
*/
|
||||
[LR_NAV] = LAYOUT(
|
||||
TG_REVW, KC_J, TG_EDIT,
|
||||
KC_HOME, KC_UP, DTP_AVC,
|
||||
KC_LEFT, KC_DOWN, DTP_ADJ
|
||||
),
|
||||
/*
|
||||
Layer: Review/Rate
|
||||
┌───────────┐ ┌───────────┐
|
||||
│ Stars │ │ Flag │
|
||||
│ Dec Inc │ │ Dec Inc │
|
||||
├────────┬──┴──┴──┬────────┤
|
||||
│ TgLNav │ Yellow │ TgEdit │
|
||||
├────────┼────────┼────────┤
|
||||
│ NoStar │ Green │ UnFlag │
|
||||
├────────┼────────┼────────┤
|
||||
│ Left │ Blue │ Rght │
|
||||
└────────┴────────┴────────┘
|
||||
*/
|
||||
[LR_REVIEW] = LAYOUT(
|
||||
TG_LNAV, KC_7, TG_EDIT,
|
||||
KC_0, KC_8, DTP_AVC,
|
||||
KC_LEFT, KC_6, DTP_ADJ
|
||||
),
|
||||
/*
|
||||
Layer: Edit/Develop
|
||||
┌───────────┐ ┌───────────┐
|
||||
│ Sliders │ │ Value │
|
||||
│ Prv Nxt │ │ Dec Inc │
|
||||
├────────┬──┴──┴──┬────────┤
|
||||
│ TgRevw │ Bf/Aft │ TgLNav │
|
||||
├────────┼────────┼────────┤
|
||||
│ FlgRjt │ Undo │ FlgPkd │
|
||||
├────────┼────────┼────────┤
|
||||
│ Left │ Redo │ Rght │
|
||||
└────────┴────────┴────────┘
|
||||
*/
|
||||
[LR_EDIT] = LAYOUT(
|
||||
TG_REVW, KC_BSLS, TG_LNAV,
|
||||
KC_X, MC_UNDO, DTP_AVC,
|
||||
KC_LEFT, MC_REDO, DTP_ADJ
|
||||
),
|
||||
/*
|
||||
Layer: Light
|
||||
┌───────────┐ ┌───────────┐
|
||||
│ RGB Hue │ │ RGB Sat │
|
||||
│ Prv Nxt │ │ Dec Inc │
|
||||
├────────┬──┴──┴──┬────────┤
|
||||
│ RGBTgl │ Val+ │ TgLNav │
|
||||
├────────┼────────┼────────┤
|
||||
│ Mode- │ Val- │ Mode+ │
|
||||
├────────┼────────┼────────┤
|
||||
│ LyrTgl │ NxtThm │ XXXX │
|
||||
└────────┴────────┴────────┘
|
||||
*/
|
||||
[_LIGHT] = LAYOUT(
|
||||
RGB_TOG, RGB_VAI, TG_LGHT,
|
||||
RGB_RMOD,RGB_VAD, RGB_MOD,
|
||||
RGB_LYR, RGB_THM, XXXXXXX
|
||||
),
|
||||
/*
|
||||
Layer: ADJUST
|
||||
┌───────────┐ ┌───────────┐
|
||||
│ XXXX │ │ XXXX │
|
||||
│ │ │ │
|
||||
├────────┬──┴──┴──┬────────┤
|
||||
│ MAKE │ Reeder │ Light │
|
||||
├────────┼────────┼────────┤
|
||||
│ Media │ Navi │ Macro │
|
||||
├────────┼────────┼────────┤
|
||||
│ LR Rvw │ LR Nav │ LR Edt │
|
||||
└────────┴────────┴────────┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT(
|
||||
QM_MAKE, DF_REDR, TG_LGHT,
|
||||
DF_MEDA, DF_NAVI, DF_KBNR,
|
||||
TG_REVW, TG_LNAV, TG_EDIT
|
||||
),
|
||||
};
|
||||
|
||||
void keyboard_post_init_keymap(void){
|
||||
// Debug to Console by default
|
||||
debug_enable = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Encoder
|
||||
*/
|
||||
const uint16_t PROGMEM encoders[][2][2] = {
|
||||
[_REEDER] = {{ KC_K, KC_J }, { KC_P, KC_N }},
|
||||
[_MEDIA] = {{ KC_VOLD, KC_VOLU }, { KC_MPRV, KC_MNXT }},
|
||||
[_NAVI] = {{ MC_WH_U, MC_WH_D }, { PRV_TAB, NXT_TAB }},
|
||||
[_KARABINER] = {{ KC_PMNS, KC_PPLS }, { KC_PDOT, KC_PEQL }},
|
||||
[LR_NAV] = {{ KC_MINS, KC_EQL }, { KC_PGDN, KC_PGUP }},
|
||||
[LR_REVIEW] = {{ KC_LBRC, KC_RBRC }, { G(KC_DOWN), G(KC_UP) }},
|
||||
[LR_EDIT] = {{ KC_COMM, KC_DOT }, { KC_MINS, KC_EQL }},
|
||||
};
|
||||
|
||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||
uint8_t layer = get_highest_layer(layer_state);
|
||||
|
||||
switch (layer) {
|
||||
case _AUDIO:
|
||||
#ifdef AUDIO_ENABLE
|
||||
#endif
|
||||
break;
|
||||
case _LIGHT:
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
switch (index) {
|
||||
case 0:
|
||||
if (clockwise) {
|
||||
rgblight_increase_hue();
|
||||
} else {
|
||||
rgblight_decrease_hue();
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (clockwise) {
|
||||
rgblight_increase_sat();
|
||||
} else {
|
||||
rgblight_decrease_sat();
|
||||
}
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
tap_code16(pgm_read_word(&encoders[layer][index][clockwise]));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Keycodes
|
||||
*/
|
||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case TG_LNAV:
|
||||
if (!record->event.pressed) {
|
||||
tap_code(KC_G);
|
||||
layer_move(LR_NAV);
|
||||
}
|
||||
break;
|
||||
case TG_REVW:
|
||||
if (!record->event.pressed) {
|
||||
tap_code(KC_E);
|
||||
layer_move(LR_REVIEW);
|
||||
}
|
||||
break;
|
||||
case TG_EDIT:
|
||||
if (!record->event.pressed) {
|
||||
tap_code(KC_D);
|
||||
layer_move(LR_EDIT);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Layer Switch
|
||||
*/
|
||||
layer_state_t layer_state_set_keymap (layer_state_t state) {
|
||||
switch (get_highest_layer(state)) {
|
||||
case LR_NAV:
|
||||
#if defined(RGBLIGHT_ENABLE)
|
||||
rgb_layer_helper(HSV_TEAL);
|
||||
#endif
|
||||
break;
|
||||
case LR_REVIEW:
|
||||
#if defined(RGBLIGHT_ENABLE)
|
||||
rgb_layer_helper(HSV_CYAN);
|
||||
#endif
|
||||
break;
|
||||
case LR_EDIT:
|
||||
#if defined(RGBLIGHT_ENABLE)
|
||||
rgb_layer_helper(HSV_AZURE);
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tap Dances
|
||||
*/
|
||||
void process_tap_dance_keycode (bool reset, uint8_t toggle_layer) {
|
||||
uint16_t keycode = 0;
|
||||
switch (toggle_layer) {
|
||||
case _LIGHT:
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case _REEDER:
|
||||
case _MEDIA:
|
||||
keycode = KC_L;
|
||||
break;
|
||||
case _NAVI:
|
||||
keycode = KC_PGUP;
|
||||
break;
|
||||
case _KARABINER:
|
||||
keycode = KC_P6;
|
||||
break;
|
||||
case LR_NAV:
|
||||
keycode = KC_END;
|
||||
case LR_REVIEW:
|
||||
keycode = KC_U;
|
||||
case LR_EDIT:
|
||||
keycode = KC_P;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case _ADJUST:
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case _REEDER:
|
||||
keycode = G(KC_3);
|
||||
break;
|
||||
case _KARABINER:
|
||||
keycode = KC_P9;
|
||||
break;
|
||||
case _MEDIA:
|
||||
case _NAVI:
|
||||
case LR_NAV:
|
||||
case LR_REVIEW:
|
||||
case LR_EDIT:
|
||||
keycode = KC_RGHT;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (!reset) {
|
||||
register_code16(keycode);
|
||||
} else {
|
||||
unregister_code16(keycode);
|
||||
}
|
||||
}
|
107
keyboards/keebio/bdn9/keymaps/brandonschlack/readme.md
Normal file
107
keyboards/keebio/bdn9/keymaps/brandonschlack/readme.md
Normal file
@ -0,0 +1,107 @@
|
||||
# brandonschlack's Macropad/Lightroom layout for BDN9
|
||||
##### 2 encoders required
|
||||
|
||||
![brandonschlack BDN9](https://i.imgur.com/pai9M0m.jpg)
|
||||
|
||||
I built this pad to match my Lightroom photo editing workflow using
|
||||
[Lightroom Classic Keyboard shortcuts](https://helpx.adobe.com/lightroom-classic/help/keyboard-shortcuts.html), and added on general macropad layers along the way.
|
||||
|
||||
I use macOS, so shortcuts and macros are configured as such. Encoder functionality is in the header of the tables, as clockwise/counterclockwise.
|
||||
|
||||
---
|
||||
|
||||
## Macropad Layers
|
||||
|
||||
### Reeder Layer
|
||||
This layer is used for browsing [Reeder](https://reederapp.com/), an awesome RSS reader for Mac
|
||||
|
||||
| Prev/Next Item | **Knobs** | Prev/Next Subscription |
|
||||
| --- | --- | --- |
|
||||
| Open Item in Browser | Star Item/Save for Later | Sync |
|
||||
| Command+Tab | Toggle Read Status | Clear Read Items |
|
||||
| Starred Items | Unread Items | All Items |
|
||||
|
||||
|
||||
### Media Layer
|
||||
This layer is used for media controls. Player button is a hotkey to focus the current media player with [BeardedSpice](https://beardedspice.github.io/)
|
||||
|
||||
| Volume Down/Up | **Knobs** | Prev/Next Track |
|
||||
| --- | --- | --- |
|
||||
| Mute | Current Player | Play/Pause |
|
||||
| YouTube Rewind 10s (J) | YouTube Play/Pause (K) | YouTube Forward 10s (L) |
|
||||
| Left | Space | Right |
|
||||
|
||||
|
||||
### Navigation Layer
|
||||
This layer is used for general window navigation around macOS
|
||||
|
||||
| Scroll Up/Down | **Knobs** | Next/Prev Tab |
|
||||
| --- | --- | --- |
|
||||
| Reopen Tab | Cmd+Tab | Close Tab |
|
||||
| Page Down | Up | Page Up |
|
||||
| Left | Down | Right |
|
||||
|
||||
|
||||
### Macro Layer
|
||||
This layer is used to send generic macro keys, meant to be remapped based on current app with [Karabiner](https://pqrs.org/osx/karabiner/)
|
||||
|
||||
| +/- | **Knobs** | =/. |
|
||||
| --- | --- | --- |
|
||||
| 1 | 2 | 3 |
|
||||
| 4 | 5 | 6 |
|
||||
| 7 | 8 | 9 |
|
||||
|
||||
|
||||
## Lightroom Layers
|
||||
|
||||
### LR Navigation Layer
|
||||
This layer is used for navigating Grid View in the Library Module.
|
||||
|
||||
| Inc/Dec Thumbnail Size | **Knobs** | Scroll Up/Dn Grid Thumbnails |
|
||||
| --- | --- | --- |
|
||||
| Review Layer | Cycle Grid View options | Edit Layer |
|
||||
| Start of Grid View | Up | End of Grid View |
|
||||
| Left | Down | Right |
|
||||
|
||||
|
||||
### Lightroom Review Layer
|
||||
This layer is used for Reviewing, Rating, and Culling images with the Loupe View in the Library Module.
|
||||
|
||||
| Inc/Dec Star Rating | **Knobs** | Inc/Dec Flag Status |
|
||||
| --- | --- | --- |
|
||||
| LR Navigation Layer | Yellow Label | Edit Layer |
|
||||
| Remove Star Rating | Green Label | Unflag Photo |
|
||||
| Left | Blue Label | Right |
|
||||
|
||||
|
||||
### Lightroom Edit Layer
|
||||
This layer is used for editing photos in the Develop Module
|
||||
|
||||
| Next/Prev Basic Panel Settings | **Knobs** | Inc/Dec Selected Slider |
|
||||
| --- | --- | --- |
|
||||
| Review Layer | Toggle Before View | LR Navigation Layer |
|
||||
| Flag Rejected | Undo | Flag Picked |
|
||||
| Left | Redo | Right |
|
||||
|
||||
|
||||
## Meta Layers
|
||||
|
||||
### Light Layer
|
||||
This layer is used to control lighting for the pad. Currently nothing is saved in EEPROM, so it will reset after power loss. Also currently my userspace layer colors take priority until I build out that feature. This layer is accessed with a double tap of the middle right key via [tap dance](https://docs.qmk.fm/#/feature_tap_dance). A triple tap of the middle right key will also toggle lights on/off.
|
||||
|
||||
| Inc/Dec RGB Hue | **Knobs** | Inc/Dec RGB Saturation |
|
||||
| --- | --- | --- |
|
||||
| RGB Toggle | RGB Value Increase | Toggle Layer Off |
|
||||
| RGB Mode Prev | RGB Value Decrease | RGB Mode Next |
|
||||
| RGB Layer Indication | Cycle RGB Themes | XXX |
|
||||
|
||||
|
||||
### Adjust Layer
|
||||
This layer is used as a meta layer for the pad. This layer is accessed with a double tap of the bottom right key via [tap dance](https://docs.qmk.fm/#/feature_tap_dance).
|
||||
|
||||
| XXX | **Knobs** | XXX |
|
||||
| --- | --- | --- |
|
||||
| MAKE | **Reeder** Layer | **Light** Layer |
|
||||
| **Media** Layer | **Navigation** Layer | **Keypad** Layer |
|
||||
| **Lightroom Review** Layer | **Lightroom Navigation** Layer | **Lightroom Edit** Layer |
|
||||
|
11
keyboards/keebio/bdn9/keymaps/brandonschlack/rules.mk
Normal file
11
keyboards/keebio/bdn9/keymaps/brandonschlack/rules.mk
Normal file
@ -0,0 +1,11 @@
|
||||
# Use macropad-specific defines, layers, functions. Flash bootloader with QM_MAKE
|
||||
IS_MACROPAD = yes
|
||||
|
||||
# Use dfu bootloader for Elite-C
|
||||
BOOTLOADER = atmel-dfu
|
||||
|
||||
# Build Options
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
COMMAND_ENABLE = no # Disable Command, breaks with Mouse Keys set to constant.
|
||||
BACKLIGHT_ENABLE = no # No backlights installed
|
||||
TAP_DANCE_ENABLE = yes # Use tap dance
|
67
keyboards/kingly_keys/romac/keymaps/brandonschlack/keymap.c
Normal file
67
keyboards/kingly_keys/romac/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,67 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
enum romac_layers {
|
||||
NUMPAD = 0,
|
||||
FN,
|
||||
NUMLOCK,
|
||||
KARABINER
|
||||
};
|
||||
|
||||
#define DF_NMPD DF(NUMPAD)
|
||||
#define DF_NMLK DF(NUMLOCK)
|
||||
#undef DF_KBNR
|
||||
#define DF_KBNR DF(KARABINER)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[NUMPAD] = LAYOUT(
|
||||
KC_P7, KC_P8, KC_P9, \
|
||||
KC_P4, KC_P5, KC_P6, \
|
||||
KC_P1, KC_P2, KC_P3, \
|
||||
OSL(FN), KC_P0, KC_PDOT \
|
||||
),
|
||||
|
||||
[FN] = LAYOUT(
|
||||
KC_PSLS, KC_PAST, KC_BSPC, \
|
||||
KC_TRNS, KC_TRNS, KC_PMNS, \
|
||||
DF_NMLK, DF_KBNR, KC_PPLS, \
|
||||
KC_TRNS, TG_ADJT, KC_PENT \
|
||||
),
|
||||
|
||||
[NUMLOCK] = LAYOUT(
|
||||
KC_HOME, KC_UP, KC_PGUP, \
|
||||
KC_LEFT, CMD_TAB, KC_RGHT, \
|
||||
KC_END, KC_DOWN, KC_PGDN, \
|
||||
DF_NMPD, KC_INS, KC_DEL \
|
||||
),
|
||||
|
||||
[KARABINER] = LAYOUT(
|
||||
KC_F13, KC_F14, KC_F15, \
|
||||
KC_F16, KC_F17, KC_F18, \
|
||||
KC_F19, KC_F20, KC_F21, \
|
||||
LT(_ADJUST,KC_F22), KC_F23, KC_F24 \
|
||||
),
|
||||
|
||||
[_ADJUST] = LAYOUT(
|
||||
QM_MAKE, EEP_RST, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
DF_NMPD, DF_NMLK, DF_KBNR, \
|
||||
KC_TRNS, XXXXXXX, XXXXXXX \
|
||||
)
|
||||
};
|
@ -0,0 +1,8 @@
|
||||
# Use macropad-specific defines, layers, functions. Flash bootloader with QM_MAKE
|
||||
IS_MACROPAD = yes
|
||||
|
||||
# Use dfu bootloader for Elite-C
|
||||
BOOTLOADER = atmel-dfu
|
||||
|
||||
# Build Options
|
||||
# TAP_DANCE_ENABLE = yes # Use tap dance
|
32
keyboards/launchpad/keymaps/brandonschlack/config.h
Normal file
32
keyboards/launchpad/keymaps/brandonschlack/config.h
Normal file
@ -0,0 +1,32 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
/* Underlight Configuration */
|
||||
#ifdef RGB_DI_PIN
|
||||
#undef RGB_DI_PIN
|
||||
#define RGB_DI_PIN F4
|
||||
#undef RGBLED_NUM
|
||||
#define RGBLED_NUM 2 // Number of LEDs
|
||||
#endif
|
||||
#define RGBLIGHT_EFFECT_BREATHING // Only have Breathing Animation
|
||||
#define RGBLIGHT_HUE_STEP 10
|
||||
#define RGBLIGHT_SAT_STEP 17
|
||||
#define RGBLIGHT_VAL_STEP 17
|
||||
|
||||
/* Mouse Keys Configuration */
|
||||
#define MK_3_SPEED
|
||||
#define MK_W_INTERVAL_UNMOD 20
|
213
keyboards/launchpad/keymaps/brandonschlack/keymap.c
Normal file
213
keyboards/launchpad/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,213 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
/**
|
||||
* Layer Names
|
||||
*/
|
||||
#define _REEDER _BASE
|
||||
enum bdn9_layers {
|
||||
_MEDIA = KEYMAP_LAYERS,
|
||||
_NAVI,
|
||||
_KARABINER
|
||||
};
|
||||
|
||||
/**
|
||||
* Keycodes & Macros
|
||||
*/
|
||||
#define DF_REDR DF(_REEDER) // Set Default Layer to Reeder shortcuts
|
||||
#define DF_MEDA DF(_MEDIA) // Set Default Layer to Media controls
|
||||
#define DF_NAVI DF(_NAVI) // Set Default Layer to Navigation shortcuts
|
||||
#define DF_KBNR DF(_KARABINER) // Set Default Layer to Basic Macro keys
|
||||
|
||||
// Tap Dances
|
||||
enum launchpad_dances {
|
||||
TD_SHLD_LGHT = 0,
|
||||
TD_SHLD_ADJT,
|
||||
TD_REDR_H
|
||||
};
|
||||
//Tap Dance Definitions
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
[TD_SHLD_LGHT] = ACTION_TAP_DANCE_TRIGGER_LAYER(SINGLE_HOLD, _LIGHT),
|
||||
[TD_SHLD_ADJT] = ACTION_TAP_DANCE_TRIGGER_LAYER(SINGLE_HOLD, _ADJUST),
|
||||
[TD_REDR_H] = ACTION_TAP_DANCE_DOUBLE(KC_H, KC_R)
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Reeder
|
||||
* ┌──────┬──────┐
|
||||
* │CmdTab│ View │
|
||||
* ├──────┼──────┤
|
||||
* │PrvSub│PrvItm│
|
||||
* ├──────┼──────┤
|
||||
* │NxtSub│NxtItm│
|
||||
* ├──────┼──────┤
|
||||
* │ Clr │ Sync │
|
||||
* └──────┴──────┘
|
||||
*/
|
||||
[_REEDER] = LAYOUT( \
|
||||
CMD_TAB, TD(TD_REDR_H), \
|
||||
KC_P, KC_K, \
|
||||
KC_N, KC_J, \
|
||||
TD(TD_SHLD_LGHT), TD(TD_SHLD_ADJT) \
|
||||
),
|
||||
|
||||
/* Media
|
||||
* ┌──────┬──────┐
|
||||
* │ Mute │ Play │
|
||||
* ├──────┼──────┤
|
||||
* │ Vol+ │PrvTrk│
|
||||
* ├──────┼──────┤
|
||||
* │ Vol- │NxtTrk│
|
||||
* ├──────┼──────┤
|
||||
* │ Spce │ Plyr │
|
||||
* └──────┴──────┘
|
||||
*/
|
||||
[_MEDIA] = LAYOUT( \
|
||||
KC_MUTE, KC_MPLY, \
|
||||
KC_VOLU, KC_MNXT, \
|
||||
KC_VOLD, KC_MPRV, \
|
||||
TD(TD_SHLD_LGHT), TD(TD_SHLD_ADJT) \
|
||||
),
|
||||
|
||||
/* Navigation
|
||||
* ┌──────┬──────┐
|
||||
* │ PTab │ NTab │
|
||||
* ├──────┼──────┤
|
||||
* │ SclL │ SclU │
|
||||
* ├──────┼──────┤
|
||||
* │ SclR │ SclD │
|
||||
* ├──────┼──────┤
|
||||
* │LstTab│ClsTab│
|
||||
* └──────┴──────┘
|
||||
*/
|
||||
[_NAVI] = LAYOUT( \
|
||||
PRV_TAB, NXT_TAB, \
|
||||
MC_WH_L, MC_WH_U, \
|
||||
MC_WH_R, MC_WH_D, \
|
||||
TD(TD_SHLD_LGHT), TD(TD_SHLD_ADJT) \
|
||||
),
|
||||
|
||||
/* Macro
|
||||
* ┌──────┬──────┐
|
||||
* │ 1 │ 2 │
|
||||
* ├──────┼──────┤
|
||||
* │ 3 │ 4 │
|
||||
* ├──────┼──────┤
|
||||
* │ 5 │ 6 │
|
||||
* ├──────┼──────┤
|
||||
* │ 7 │ 8 │
|
||||
* └──────┴──────┘
|
||||
*/
|
||||
[_KARABINER] = LAYOUT( \
|
||||
KC_P1, KC_P2, \
|
||||
KC_P3, KC_P4, \
|
||||
KC_P5, KC_P6, \
|
||||
TD(TD_SHLD_LGHT), TD(TD_SHLD_ADJT) \
|
||||
),
|
||||
|
||||
/* Lights
|
||||
* ┌──────┬──────┐
|
||||
* │ THM+ │ HUE+ │
|
||||
* ├──────┼──────┤
|
||||
* │ SAT- │ SAT+ │
|
||||
* ├──────┼──────┤
|
||||
* │ VAL- │ VAL+ │
|
||||
* ├──────┼──────┤
|
||||
* │ XXXX │ Mde+ │
|
||||
* └──────┴──────┘
|
||||
*/
|
||||
[_LIGHT] = LAYOUT( \
|
||||
RGB_THM, RGB_HUI, \
|
||||
RGB_SAD, RGB_SAI, \
|
||||
RGB_VAD, RGB_VAI, \
|
||||
XXXXXXX, RGB_MOD \
|
||||
),
|
||||
|
||||
/* Adjust
|
||||
* ┌──────┬──────┐
|
||||
* │ Make │ Rset │
|
||||
* ├──────┼──────┤
|
||||
* │ Redr │ Meda │
|
||||
* ├──────┼──────┤
|
||||
* │ Navi │ Mcro │
|
||||
* ├──────┼──────┤
|
||||
* │ Lght │ XXXX │
|
||||
* └──────┴──────┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT( \
|
||||
QM_MAKE, RESET, \
|
||||
DF_REDR, DF_MEDA, \
|
||||
DF_NAVI, DF_KBNR, \
|
||||
TG_LGHT, XXXXXXX \
|
||||
)
|
||||
|
||||
};
|
||||
|
||||
void matrix_init_keymap(void) {
|
||||
}
|
||||
|
||||
// Runs once after keyboard initializes
|
||||
void keyboard_post_init_keymap(void) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Tap Dances
|
||||
*/
|
||||
void process_tap_dance_keycode (bool reset, uint8_t toggle_layer) {
|
||||
uint16_t keycode = 0;
|
||||
switch (toggle_layer) {
|
||||
case _LIGHT:
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case _REEDER:
|
||||
keycode = KC_L;
|
||||
break;
|
||||
case _MEDIA:
|
||||
keycode = KC_SPC;
|
||||
break;
|
||||
case _NAVI:
|
||||
keycode = REO_TAB;
|
||||
break;
|
||||
case _KARABINER:
|
||||
keycode = KC_P7;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case _ADJUST:
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case _REEDER:
|
||||
keycode = KC_R;
|
||||
break;
|
||||
case _MEDIA:
|
||||
keycode = MC_PLYR;
|
||||
break;
|
||||
case _NAVI:
|
||||
keycode = CLS_TAB;
|
||||
break;
|
||||
case _KARABINER:
|
||||
keycode = KC_P8;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (!reset) {
|
||||
register_code16(keycode);
|
||||
} else {
|
||||
unregister_code16(keycode);
|
||||
}
|
||||
}
|
31
keyboards/launchpad/keymaps/brandonschlack/readme.md
Normal file
31
keyboards/launchpad/keymaps/brandonschlack/readme.md
Normal file
@ -0,0 +1,31 @@
|
||||
# brandonschlack's layout for Launchpad
|
||||
Fun little macropad build, with an awesome case from [StrataKB](https://stratakb.com/store/cases/launchpad-v2-full-case).
|
||||
|
||||
## Media Layer
|
||||
This layer is used for media controls. Player button is a hotkey to focus the current media player with [BeardedSpice](https://beardedspice.github.io/)
|
||||
| | |
|
||||
|:-:|:-:|
|
||||
| Mute | Play/Pause |
|
||||
| Vol + | Next Track |
|
||||
| Vol - | Prev Track |
|
||||
| | Current Player |
|
||||
---
|
||||
|
||||
## Keypad Layer
|
||||
This layer is used to send keypad keys, meant to be remapped based on current app with [Karabiner](https://pqrs.org/osx/karabiner/)
|
||||
| | |
|
||||
|:-:|:-:|
|
||||
| 1 | 2 |
|
||||
| 3 | 4 |
|
||||
| 5 | 6 |
|
||||
| 7 | 8 |
|
||||
---
|
||||
|
||||
## Magic Layer
|
||||
This layer is used as a meta layer for the pad. This layer is accessed by holding key in Row 3, Col 0
|
||||
| | |
|
||||
|:-:|:-:|
|
||||
| MAKE | RESET |
|
||||
| **Media** Layer | **Keypad** Layer|
|
||||
| XXX | XXX |
|
||||
| ___ | XXX |
|
13
keyboards/launchpad/keymaps/brandonschlack/rules.mk
Normal file
13
keyboards/launchpad/keymaps/brandonschlack/rules.mk
Normal file
@ -0,0 +1,13 @@
|
||||
# Use macropad-specific defines, layers, functions. Flash bootloader with QM_MAKE
|
||||
IS_MACROPAD = yes
|
||||
|
||||
# Use dfu bootloader for Elite-C
|
||||
BOOTLOADER = atmel-dfu
|
||||
|
||||
# Build Options
|
||||
BOOTMAGIC_ENABLE = lite
|
||||
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
|
||||
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||
MOUSEKEY_ENABLE = yes # Use mouse keys for scrolling.
|
||||
COMMAND_ENABLE = no # Disable Command, breaks with Mouse Keys set to constant.
|
||||
TAP_DANCE_ENABLE = yes # Use tap dance
|
@ -0,0 +1,19 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
#define USE_LEDS_FOR_LAYERS
|
||||
#define STOPLIGHT_LED
|
170
keyboards/maartenwut/wonderland/keymaps/brandonschlack/keymap.c
Executable file
170
keyboards/maartenwut/wonderland/keymaps/brandonschlack/keymap.c
Executable file
@ -0,0 +1,170 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
// LEDs
|
||||
#define TOP_LED B1
|
||||
#define MIDDLE_LED B2
|
||||
#define BOTTOM_LED B3
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT( \
|
||||
KC_HOME, KC_ESC, 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_BSLS, KC_GRV, \
|
||||
KC_PGUP, 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_BSPC, \
|
||||
KC_PGDN, HY_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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, PLY_FN1, \
|
||||
KC_LOPT, KC_LCMD, SPC_RAI, KC_LCTL, SPC_RAI, KC_RCMD, KC_ROPT \
|
||||
),
|
||||
[_FN1] = LAYOUT( \
|
||||
KC_MUTE, QM_MAKE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, MC_LHPD, MC_SLPD, \
|
||||
KC_VOLU, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, KC_HOME, KC_UP, KC_END, KC_DELT, \
|
||||
KC_VOLD, RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, KC_MPRV, KC_MNXT, KC_PGDN, KC_UP, KC_MPLY, \
|
||||
_______, RGB_LYR, RGB_THM, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, RGT_SFT, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
[_FN2] = LAYOUT( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
[_ADJUST] = LAYOUT( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
)
|
||||
/*
|
||||
[_BLANK] = LAYOUT( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
)
|
||||
*/
|
||||
};
|
||||
|
||||
#ifdef STOPLIGHT_LED
|
||||
bool is_led_stoplight_active = false;
|
||||
uint8_t led_stoplight_index = 0;
|
||||
uint16_t led_stoplight_timer = 0;
|
||||
void matrix_scan_led_stoplight(void);
|
||||
|
||||
void led_stoplight_start(void) {
|
||||
writePinHigh(TOP_LED);
|
||||
writePinHigh(MIDDLE_LED);
|
||||
writePinHigh(BOTTOM_LED);
|
||||
|
||||
is_led_stoplight_active = true;
|
||||
led_stoplight_timer = timer_read();
|
||||
};
|
||||
|
||||
void led_stoplight_set(pin_t pin) {
|
||||
writePinLow(pin);
|
||||
};
|
||||
|
||||
void led_stoplight_end(void) {
|
||||
// Reset timer and status variables
|
||||
led_stoplight_index = 0;
|
||||
is_led_stoplight_active = false;
|
||||
led_stoplight_timer = 0;
|
||||
led_update_kb(host_keyboard_led_state());
|
||||
};
|
||||
|
||||
void matrix_scan_led_stoplight(void) {
|
||||
if (is_led_stoplight_active) {
|
||||
if (timer_elapsed(led_stoplight_timer) > (1000 * (led_stoplight_index + 1))) {
|
||||
switch (led_stoplight_index){
|
||||
case 0:
|
||||
led_stoplight_set(TOP_LED);
|
||||
led_stoplight_index++;
|
||||
break;
|
||||
case 1:
|
||||
led_stoplight_set(MIDDLE_LED);
|
||||
led_stoplight_index++;
|
||||
break;
|
||||
case 2:
|
||||
led_stoplight_set(BOTTOM_LED);
|
||||
led_stoplight_index++;
|
||||
break;
|
||||
default:
|
||||
led_stoplight_index = 0;
|
||||
is_led_stoplight_active = false;
|
||||
led_stoplight_timer = 0;
|
||||
led_update_kb(host_keyboard_led_state());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
void keyboard_post_init_keymap(void) {
|
||||
#ifdef STOPLIGHT_LED
|
||||
led_stoplight_start();
|
||||
#endif
|
||||
};
|
||||
|
||||
void matrix_scan_keymap(void) {
|
||||
#ifdef STOPLIGHT_LED
|
||||
matrix_scan_led_stoplight();
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef USE_LEDS_FOR_LAYERS
|
||||
// example of how to use LEDs as layer indicators
|
||||
static uint8_t top = 0;
|
||||
static uint8_t middle = 0;
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
top = middle = 0;
|
||||
state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
|
||||
switch (get_highest_layer(state)) {
|
||||
case _FN1:
|
||||
top = 1;
|
||||
break;
|
||||
case _FN2:
|
||||
middle = 1;
|
||||
break;
|
||||
case _ADJUST:
|
||||
top = 1;
|
||||
middle = 1;
|
||||
break;
|
||||
default: // for any other layers, or the default layer
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
// override kb level function
|
||||
bool led_update_user(led_t usb_led) {
|
||||
if (!is_led_stoplight_active) {
|
||||
writePin(TOP_LED, !top);
|
||||
writePin(MIDDLE_LED, !middle);
|
||||
writePin(BOTTOM_LED, !usb_led.caps_lock); // still use bottom for Caps Lock
|
||||
};
|
||||
return false; // we are using LEDs for something else override kb
|
||||
}
|
||||
#endif
|
8
keyboards/maartenwut/wonderland/keymaps/brandonschlack/rules.mk
Executable file
8
keyboards/maartenwut/wonderland/keymaps/brandonschlack/rules.mk
Executable file
@ -0,0 +1,8 @@
|
||||
# Build Options
|
||||
# comment out to disable the options.
|
||||
#
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
VELOCIKEY_ENABLE = no
|
||||
|
30
keyboards/mechlovin/adelais/keymaps/brandonschlack/config.h
Normal file
30
keyboards/mechlovin/adelais/keymaps/brandonschlack/config.h
Normal file
@ -0,0 +1,30 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
#define USE_LEDS_FOR_LAYERS
|
||||
#define STOPLIGHT_LED
|
||||
|
||||
// LEDs
|
||||
#define TOP_LED B2
|
||||
#define MIDDLE_LED C15
|
||||
#define BOTTOM_LED B9
|
||||
// #define LED_PIN_FLIP
|
||||
#ifdef LED_PIN_FLIP
|
||||
#define LED_ON(flag) !flag
|
||||
#else
|
||||
#define LED_ON(flag) flag
|
||||
#endif
|
270
keyboards/mechlovin/adelais/keymaps/brandonschlack/keymap.c
Normal file
270
keyboards/mechlovin/adelais/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,270 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
/**
|
||||
* Layer Names
|
||||
*
|
||||
* Layers mostly used for macro keys
|
||||
*/
|
||||
#define _REEDER _M1
|
||||
#define _MAIL _M2
|
||||
#define _REEDER_FN _M1_FN1
|
||||
#define _MAIL_FN _M2_FN1
|
||||
|
||||
/**
|
||||
* Keycodes & Macros
|
||||
*/
|
||||
#define TG_BASE TO(_BASE)
|
||||
#define TG_REDR TO(_REEDER)
|
||||
#define TG_MAIL TO(_MAIL)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Ply│ │Esc│! 1│@ 2│# 3│$ 4│% 5│^ 6│ │& 7│* 8│( 9│) 0│_ -│+ =│| \│~ `│
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │VlU│ │Tab │ Q │ W │ E │ R │ T │ │ Y │ U │ I │ O │ P │{ [│} ]│ Bspc│
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │VlD│ │HyCaps│ A │ S │ D │ F │ G │ │ H │ J │ K │ L │: ;│" '│ Enter│
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │LShift │ Z │ X │ C │ V │ B │ │ B │ N │ M │< ,│> .│? /│ Shft│Fn │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │Opt │ │Cmd │Spc/Lwr│Ctrl│ │ Spc/Rai│ Cmd│ │ Opt│
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_all( \
|
||||
KC_MPLY, KC_ESC, 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_BSLS, KC_GRV, \
|
||||
KC_VOLU, 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_BSPC, \
|
||||
KC_VOLD, HY_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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, LOWER, KC_RSFT, KC_SLSH, \
|
||||
KC_LOPT, KC_LCMD, SPC_LWR, KC_LCTL, SPC_RAI, KC_RCMD, KC_ROPT \
|
||||
),
|
||||
/* Reeder
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ H │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │ K │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ J │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_REEDER] = LAYOUT_all( \
|
||||
KC_H, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_K, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_J, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
/* Mail
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Del│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │It+│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │It-│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_MAIL] = LAYOUT_all( \
|
||||
G(KC_BSPC), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_DOWN, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
/* Lower
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Mut│ │Mke│ F1│ F2│ F3│ F4│ F5│ F6│ │ F7│ F8│ F9│F10│F11│F12│LHP│SLP│
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │Nxt│ │RMod │RH+│RS+│RV+│Sp+│ │ │ │ │ │ │PgU│Hom│End│ Del│
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │Prv│ │RTgl │RH-│RS-│RV-│Sp-│ │ │ │ │Prv│Nxt│PgD│ ↑ │ Play │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │LYR│Thm│ │ │ │ │ │ │ │ │ ← │ ↓ │→ Shft│ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_LOWER] = LAYOUT_all( \
|
||||
KC_MUTE, QM_MAKE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, MC_LHPD, MC_SLPD, \
|
||||
KC_MNXT, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, KC_PGUP, KC_HOME, KC_END, KC_DELT, \
|
||||
KC_MPRV, RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, KC_MPRV, KC_MNXT, KC_PGDN, KC_UP, KC_MPLY, \
|
||||
_______, RGB_LYR, RGB_THM, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, _______, RGT_SFT, KC_DOWN, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
/* Reeder Function
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ L │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │ P │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ N │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_REEDER_FN] = LAYOUT_all( \
|
||||
KC_L, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_P, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_N, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
/* Mail
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Del│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │It+│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │It-│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_MAIL_FN] = LAYOUT_all( \
|
||||
KC_BSPC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
A(G(KC_LBRC)), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
A(G(KC_RBRC)), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
/* Raise
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_RAISE] = LAYOUT_all( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
/* Adjust
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Bse│ │Mke│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │Rdr│ │RMod │RH+│RS+│RV+│Sp+│ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │Mai│ │RTgl │RH-│RS-│RV-│Sp-│ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │LYR│Thm│ │EEP│Rst│ │Rst│ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_all( \
|
||||
TG_BASE, QM_MAKE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_REDR, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_MAIL, RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, RGB_LYR, RGB_THM, _______, EEP_RST, RESET, RESET, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
)
|
||||
/* Layout
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
/*
|
||||
[_BLANK] = LAYOUT( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
)
|
||||
*/
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
state = update_tri_layer_state(state, _REEDER, _LOWER, _REEDER_FN);
|
||||
state = update_tri_layer_state(state, _MAIL, _LOWER, _MAIL_FN);
|
||||
return state;
|
||||
}
|
||||
|
||||
#ifdef USE_LEDS_FOR_LAYERS
|
||||
bool led_update_keymap(led_t led_state) {
|
||||
writePin(TOP_LED, LED_ON(IS_LAYER_ON(_REEDER) || IS_LAYER_ON(_MAIL))); // Use for Macro Layer
|
||||
writePin(MIDDLE_LED, LED_ON(IS_LAYER_ON(_FN1))); // Use for Layer 2
|
||||
writePin(BOTTOM_LED, LED_ON(led_state.caps_lock)); // Use for Caps Lock
|
||||
return false; // Override default set by KB
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (index == 0) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_VOLU);
|
||||
} else {
|
||||
tap_code(KC_VOLD);
|
||||
}
|
||||
}
|
||||
else if (index == 1) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_LEFT);
|
||||
} else {
|
||||
tap_code(KC_RGHT);
|
||||
}
|
||||
}
|
||||
else if (index == 2) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_UP);
|
||||
} else {
|
||||
tap_code(KC_DOWN);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
@ -0,0 +1 @@
|
||||
# The default keymap for adelais
|
195
keyboards/nightmare/keymaps/brandonschlack/keymap.c
Normal file
195
keyboards/nightmare/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,195 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
/**
|
||||
* Layer Names
|
||||
*
|
||||
* Layers mostly used for macro keys
|
||||
*/
|
||||
#define _REEDER _M1
|
||||
#define _NAV _M2
|
||||
#define _MOUSE _M3
|
||||
|
||||
/**
|
||||
* Keycodes & Macros
|
||||
*/
|
||||
#define TG_BASE TO(_BASE)
|
||||
#define TG_REDR TO(_REEDER)
|
||||
#define TG_NAV TO(_NAV)
|
||||
#define TG_MOUS TO(_MOUSE)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/**
|
||||
* Base
|
||||
* ┌───┬┬┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Hom│││Esc│ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│Bck│
|
||||
* ├───┼┼┼───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │PgU│││Tab │ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│
|
||||
* ├───┼┼┼────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │PgD│││Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│Shft│ Fn│
|
||||
* ├───┼┼┼┬┬┬┬┬─┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┼───┬┼┬┬┬┤
|
||||
* │End││││││││Opt│Cmd │ │ Cmd│Ctl││││││
|
||||
* └───┴┴┴┴┴┴┴┴───┴────┴───────────────────────────┴────┴───┴┴┴┴┴┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_default( \
|
||||
KC_HOME, KC_ESC, 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_BSPC, \
|
||||
KC_PGUP, HY_TAB, 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_PGDN, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, PLY_FN1, \
|
||||
KC_END, KC_LOPT, KC_LCMD, SPC_RAI, KC_RCMD, KC_RCTL \
|
||||
),
|
||||
|
||||
/**
|
||||
* Reeder
|
||||
* ┌───┬┬┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ P │││ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ K │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │ J │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬─┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┼───┬┼┬┬┬┤
|
||||
* │ N ││││││││ │ │ │ │ ││││││
|
||||
* └───┴┴┴┴┴┴┴┴───┴────┴───────────────────────────┴────┴───┴┴┴┴┴┘
|
||||
*/
|
||||
|
||||
[_REEDER] = LAYOUT_default( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/**
|
||||
* Nav
|
||||
* ┌───┬┬┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ → │││ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ ↑ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │ ↓ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬─┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┼───┬┼┬┬┬┤
|
||||
* │ ← ││││││││ │ │ │ │ ││││││
|
||||
* └───┴┴┴┴┴┴┴┴───┴────┴───────────────────────────┴────┴───┴┴┴┴┴┘
|
||||
*/
|
||||
[_NAV] = LAYOUT_default( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/**
|
||||
* Mouse
|
||||
* ┌───┬┬┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │WhU│││ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ ↑ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │ ↓ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬─┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┼───┬┼┬┬┬┤
|
||||
* │WhD││││││││ │ │ │ │ ││││││
|
||||
* └───┴┴┴┴┴┴┴┴───┴────┴───────────────────────────┴────┴───┴┴┴┴┴┘
|
||||
*/
|
||||
[_MOUSE] = LAYOUT_default( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/**
|
||||
* Lower
|
||||
* ┌───┬┬┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Nxt│││Del│BrD│BrU│Msn│LHP│ │ │ │ │ │ │ ↑ │Mut│SlD│
|
||||
* ├───┼┼┼───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │VlU│││ │ │ │NxW│PvT│Bck│Fwd│NxT│ │ │ ← │ → │ Play │
|
||||
* ├───┼┼┼────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │VlD│││SftCap│ │ │ │1PX│1Ps│ │ │ │ │ ↓ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬─┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┼───┬┼┬┬┬┤
|
||||
* │Prv││││││││ │ │ │ │ ││││││
|
||||
* └───┴┴┴┴┴┴┴┴───┴────┴───────────────────────────┴────┴───┴┴┴┴┴┘
|
||||
*/
|
||||
[_LOWER] = LAYOUT_default( \
|
||||
KC_MNXT, KC_DELT, KC_BRMD, KC_BRMU, MC_MSSN, MC_LHPD, _______, _______, _______, _______, _______, _______, KC_UP, KC_MUTE, MC_SLPD, \
|
||||
KC_VOLU, _______, _______, _______, NXT_WIN, PRV_TAB, MC_BACK, MC_FWRD, NXT_TAB, _______, _______, KC_LEFT, KC_RGHT, KC_MPLY, \
|
||||
KC_VOLD, SF_CAPS, _______, _______, _______, PX_AFLL, OP_AFLL, _______, _______, _______, _______, KC_DOWN, _______, _______, \
|
||||
KC_MPRV, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/**
|
||||
* Raise
|
||||
* ┌───┬┬┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Nxt│││~ `│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│ │
|
||||
* ├───┼┼┼───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │VlU│││ │ F1│ F2│ F3│ F4│ F5│ F6│_ -│+ =│ │ │ │ │
|
||||
* ├───┼┼┼────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │VlD│││ │ F7│ F8│ F9│F10│F11│F12│ │ │ │| \│ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬─┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┼───┬┼┬┬┬┤
|
||||
* │Prv││││││││ │ │ │ │ ││││││
|
||||
* └───┴┴┴┴┴┴┴┴───┴────┴───────────────────────────┴────┴───┴┴┴┴┴┘
|
||||
*/
|
||||
[_RAISE] = LAYOUT_default( \
|
||||
KC_MNXT, 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_VOLU, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, _______, _______, _______, _______, \
|
||||
KC_VOLD, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, KC_BSLS, _______, _______, \
|
||||
KC_MPRV, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/**
|
||||
* Adjust
|
||||
* ┌───┬┬┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Bse│││Mke│ │ │EEP│RST│ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │Rdr│││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │Nav│││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬─┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┼───┬┼┬┬┬┤
|
||||
* │Mse││││││││ │ │ │ │ ││││││
|
||||
* └───┴┴┴┴┴┴┴┴───┴────┴───────────────────────────┴────┴───┴┴┴┴┴┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_default( \
|
||||
TG_BASE, QM_MAKE, _______, _______, EEP_RST, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_REDR, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_NAV, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_MOUS, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/**
|
||||
* Blank
|
||||
* ┌───┬┬┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │││ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬─┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┼───┬┼┬┬┬┤
|
||||
* │ ││││││││ │ │ │ │ ││││││
|
||||
* └───┴┴┴┴┴┴┴┴───┴────┴───────────────────────────┴────┴───┴┴┴┴┴┘
|
||||
*/
|
||||
/*
|
||||
[] = LAYOUT_default( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
*/
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
20
keyboards/nightmare/keymaps/brandonschlack/readme.md
Normal file
20
keyboards/nightmare/keymaps/brandonschlack/readme.md
Normal file
@ -0,0 +1,20 @@
|
||||
# brandonschlack's Nightmare Keymap
|
||||
|
||||
![Base, Raise, Lower](https://i.imgur.com/08759vK.png)
|
||||
|
||||
## Features
|
||||
- Mod-Taps & Layer-Taps
|
||||
- Spacebar is used as a Fn button when held to access missing numrow and F-keys on the **RAISE** layer.
|
||||
- Holding `Tab` acts as `HYPER`, or `Shift+Control+Option+Command`. I use this set global shortcuts, such as `HYPER+w` for my **W**indow manager Moom.
|
||||
- **Lower** Layer
|
||||
- `Lower+Esc` for `Delete`
|
||||
- `Lower+LShift` for `Caps Lock`. Holding `Lower+LShift` still acts as `LShift`
|
||||
- Arrow keys as `Lower+[`,`;`,`'`,`/` for `Up`,`Left`,`Right`,`Down`.
|
||||
- Media keys as `Lower+Enter`,`Home`,`End` for `Play/Pause`,`Next Track`,`Prev Track`
|
||||
- Volume controls as `Lower+]`,`Page Up`,`Page Down` for `Mute`,`Volume Up`,`Volume Down`
|
||||
- MacOS shortcuts on **Lower** Layer
|
||||
- Display Brightness as `Lower+Q`,`W` for `Brightness Down`, `Brightness Up`
|
||||
- Mission Control as `Lower+E`
|
||||
- Launchpad as `Lower+R`
|
||||
- Sleep Display as `Lower+Backspace`
|
||||
- Browser
|
30
keyboards/primekb/prime_e/keymaps/brandonschlack/config.h
Normal file
30
keyboards/primekb/prime_e/keymaps/brandonschlack/config.h
Normal file
@ -0,0 +1,30 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
#define USE_LEDS_FOR_LAYERS
|
||||
#define STOPLIGHT_LED
|
||||
|
||||
#define TOP_LED B1
|
||||
#define MIDDLE_LED B2
|
||||
#define BOTTOM_LED B3
|
||||
|
||||
// #define LED_PIN_FLIP
|
||||
#ifdef LED_PIN_FLIP
|
||||
#define LED_ON(flag) !flag
|
||||
#else
|
||||
#define LED_ON(flag) flag
|
||||
#endif
|
95
keyboards/primekb/prime_e/keymaps/brandonschlack/keymap.c
Normal file
95
keyboards/primekb/prime_e/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,95 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
// Tap Dance declarations
|
||||
enum {
|
||||
TD_LR_BRC,
|
||||
TD_SD_QUOT
|
||||
};
|
||||
|
||||
// Tap Dance definitions
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
// Tap once for LBracket, twice for RBracket
|
||||
[TD_LR_BRC] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_RBRC),
|
||||
// Tap once for Single Quote, twice for Double Quote
|
||||
[TD_SD_QUOT] = ACTION_TAP_DANCE_DOUBLE(KC_QUOT, KC_DQT)
|
||||
};
|
||||
|
||||
#define LWR_B LT(_LOWER, KC_B)
|
||||
#define LWR_EQL LT(_LOWER, KC_EQL)
|
||||
#define TD_BRC TD(TD_LR_BRC)
|
||||
#define TD_QUOT TD(TD_SD_QUOT)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT( \
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, TD_BRC, KC_BSPC, \
|
||||
HY_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, TD_QUOT, KC_ENT, \
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, LWR_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, LOWER, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, SPC_RAI, SPC_RAI, KC_RCMD, KC_ROPT, KC_RCTL \
|
||||
),
|
||||
|
||||
[_LOWER] = LAYOUT( \
|
||||
KC_DELT, KC_BRMD, KC_BRMU, MC_MSSN, MC_LHPD, _______, _______, _______, _______, KC_HOME, KC_UP, KC_PGUP, MC_SLPD, \
|
||||
_______, KC_MUTE, KC_VOLU, NXT_WIN, PRV_TAB, MC_BACK, MC_FWRD, NXT_TAB, _______, KC_LEFT, KC_RGHT, KC_MPLY, \
|
||||
SF_CAPS, KC_MPRV, KC_VOLD, KC_MNXT, _______, PX_AFLL, OP_AFLL, _______, _______, KC_END, KC_DOWN, KC_PGDN, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
[_RAISE] = LAYOUT( \
|
||||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_LBRC, KC_RBRC, KC_7, KC_8, KC_9, KC_0, KC_RBRC, _______, \
|
||||
_______, KC_F5, KC_F6, KC_F7, KC_F8, KC_MINS, KC_PLUS, KC_4, KC_5, KC_6, KC_SCLN, _______, \
|
||||
_______, KC_F9, KC_F10, KC_F11, KC_F12, LWR_EQL, KC_EQL, KC_1, KC_2, KC_3, _______, KC_BSLS, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
[_ADJUST] = LAYOUT( \
|
||||
QM_MAKE, _______, _______, EEP_RST, RESET, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
)
|
||||
|
||||
/*
|
||||
[BLANK] = LAYOUT( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
)
|
||||
*/
|
||||
};
|
||||
|
||||
void keyboard_pre_init_user(void) {
|
||||
setPinOutput(TOP_LED);
|
||||
setPinOutput(MIDDLE_LED);
|
||||
setPinOutput(BOTTOM_LED);
|
||||
}
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
return state;
|
||||
}
|
||||
|
||||
#ifdef USE_LEDS_FOR_LAYERS
|
||||
bool led_update_keymap(led_t led_state) {
|
||||
writePin(TOP_LED, LED_ON(IS_LAYER_ON(_FN1))); // Use for Layer 1
|
||||
writePin(MIDDLE_LED, LED_ON(IS_LAYER_ON(_FN2))); // Use for Layer 2
|
||||
writePin(BOTTOM_LED, LED_ON(led_state.caps_lock)); // Use for Caps Lock
|
||||
return false; // Override default set by KB
|
||||
}
|
||||
#endif
|
@ -0,0 +1,2 @@
|
||||
BACKLIGHT_ENABLE = no
|
||||
TAP_DANCE_ENABLE = yes
|
115
keyboards/the_royal/liminal/keymaps/brandonschlack/keymap.c
Normal file
115
keyboards/the_royal/liminal/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,115 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base
|
||||
* ┌───┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │Hom│Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│ BsPc│
|
||||
* ├───┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │PgU│HyEsc │ A │ S │ D │ F │ G │ H │ J │ K │ L │" '│ Enter│
|
||||
* ├───┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │PgD│Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│ ↑Shft│
|
||||
* ├───┼────┬───┼───┴┬──┴───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │End│Ctrl│Opt│Cmd │ Space-Raise │←Cmd│↓Lw│→Opt│
|
||||
* └───┴────┴───┴────┴───────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_base_kit_all( \
|
||||
KC_HOME, 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_BSPC, \
|
||||
KC_PGUP, HY_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, XXXXXXX, KC_ENT, \
|
||||
KC_PGDN, KC_LSFT, XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, UP_RSFT, \
|
||||
KC_END, KC_LCTL, KC_LOPT, KC_LCMD, XXXXXXX, SPC_RAI, XXXXXXX, LFT_CMD, DWN_LWR, RGT_OPT \
|
||||
),
|
||||
|
||||
/* Lower
|
||||
* ┌───┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │Nxt│Del │BrD│BrU│Msn│LHP│ │ │ │ │ │ ↑ │Mut│ SlpD│
|
||||
* ├───┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │VlU│HyCaps│ │ │NxW│PvT│Bck│Fwd│NxT│ │ ← │ → │ Play│
|
||||
* ├───┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │VlD│ │ │ │ │1PX│1Ps│ │ │ │ ↓ │ │ │
|
||||
* ├───┼────┬───┼───┴┬──┴───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │Prv│ │ │ │ │ │ │ │
|
||||
* └───┴────┴───┴────┴───────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
[_LOWER] = LAYOUT_base_kit_all( \
|
||||
KC_MNXT, KC_DELT, KC_BRMD, KC_BRMU, MC_MSSN, MC_LHPD, _______, _______, _______, _______, _______, KC_UP, KC_MUTE, MC_SLPD, \
|
||||
KC_VOLU, HY_CAPS, _______, _______, NXT_WIN, PRV_TAB, MC_BACK, MC_FWRD, NXT_TAB, _______, KC_LEFT, KC_RGHT, XXXXXXX, KC_MPLY, \
|
||||
KC_VOLD, _______, XXXXXXX, _______, _______, _______, PX_AFLL, OP_AFLL, _______, _______, _______, KC_DOWN, _______, _______, \
|
||||
KC_MPRV, _______, _______, _______, XXXXXXX, _______, XXXXXXX, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/* Raise
|
||||
* ┌───┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │Nxt│~ ` │! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│} ]│ │
|
||||
* ├───┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │VlU│ │ F1│ F2│ F3│ F4│ F5│ F6│_ -│+ =│ │: ;│ │
|
||||
* ├───┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │VlD│ │ F7│ F8│ F9│F10│F11│F12│ │{ [│} ]│| \│ ⇞Shft│
|
||||
* ├───┼────┬───┼───┴┬──┴───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │Prv│ │ │ │ │↖︎Cmd│⇟Fn│↘︎Opt│
|
||||
* └───┴────┴───┴────┴───────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
[_RAISE] = LAYOUT_base_kit_all( \
|
||||
KC_MNXT, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_RBRC, _______, \
|
||||
KC_VOLU, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, _______, KC_SCLN, XXXXXXX, _______, \
|
||||
KC_VOLD, _______, XXXXXXX, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, KC_LBRC, KC_RBRC, KC_BSLS, PGU_SFT, \
|
||||
KC_MPRV, _______, _______, _______, XXXXXXX, _______, XXXXXXX, HOM_CMD, PGD_LWR, END_OPT \
|
||||
),
|
||||
|
||||
/* Adjust
|
||||
* ┌───┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │ │Make │ │ │EEP│RST│ │ │ │ │ │ │ │ │
|
||||
* ├───┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼────┬───┼───┴┬──┴───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │ │ │ │ │ │ │ │ │
|
||||
* └───┴────┴───┴────┴───────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_base_kit_all( \
|
||||
_______, QM_MAKE, _______, _______, EEP_RST, RESET, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, _______, \
|
||||
_______, _______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, XXXXXXX, _______, XXXXXXX, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/* Blank layer
|
||||
* ┌───┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼────┬───┼───┴┬──┴───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │ │ │ │ │ │ │ │ │
|
||||
* └───┴────┴───┴────┴───────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
/*
|
||||
[_BLANK] = LAYOUT_base_kit_all( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, _______, \
|
||||
_______, _______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, XXXXXXX, _______, XXXXXXX, _______, _______, _______ \
|
||||
),
|
||||
*/
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
30
keyboards/tkc/osav2/keymaps/brandonschlack/config.h
Normal file
30
keyboards/tkc/osav2/keymaps/brandonschlack/config.h
Normal file
@ -0,0 +1,30 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
#define USE_LEDS_FOR_LAYERS
|
||||
#define STOPLIGHT_LED
|
||||
|
||||
#define TOP_LED C7
|
||||
#define MIDDLE_LED C6
|
||||
#define BOTTOM_LED B6
|
||||
|
||||
// #define LED_PIN_FLIP
|
||||
#ifdef LED_PIN_FLIP
|
||||
#define LED_ON(flag) !flag
|
||||
#else
|
||||
#define LED_ON(flag) flag
|
||||
#endif
|
243
keyboards/tkc/osav2/keymaps/brandonschlack/keymap.c
Executable file
243
keyboards/tkc/osav2/keymaps/brandonschlack/keymap.c
Executable file
@ -0,0 +1,243 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
/**
|
||||
* Layer Names
|
||||
*
|
||||
* Layers mostly used for macro keys
|
||||
*/
|
||||
#define _REEDER _M1
|
||||
#define _MAIL _M2
|
||||
#define _REEDER_FN _M1_FN1
|
||||
#define _MAIL_FN _M2_FN1
|
||||
|
||||
/**
|
||||
* Keycodes & Macros
|
||||
*/
|
||||
#define TG_BASE TO(_BASE)
|
||||
#define TG_REDR TO(_REEDER)
|
||||
#define TG_MAIL TO(_MAIL)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Ply│ │Esc│! 1│@ 2│# 3│$ 4│% 5│^ 6│ │& 7│* 8│( 9│) 0│_ -│+ =│| \│~ `│
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │VlU│ │Tab │ Q │ W │ E │ R │ T │ │ Y │ U │ I │ O │ P │{ [│} ]│ Bspc│
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │VlD│ │HyCaps│ A │ S │ D │ F │ G │ │ H │ J │ K │ L │: ;│" '│ Enter│
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │LShift │ Z │ X │ C │ V │ B │ │ B │ N │ M │< ,│> .│? /│ Shft│Fn │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │Opt │ │Cmd │Spc/Lwr│Ctrl│ │ Spc/Rai│ Cmd│ │ Opt│
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_all( \
|
||||
KC_MPLY, KC_ESC, 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_BSLS, KC_GRV, \
|
||||
KC_VOLU, 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_BSPC, \
|
||||
KC_VOLD, HY_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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, LOWER, \
|
||||
KC_LOPT, KC_LCMD, SPC_LWR, KC_LCTL, SPC_RAI, KC_RCMD, KC_ROPT \
|
||||
),
|
||||
/* Reeder
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ H │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │ K │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ J │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_REEDER] = LAYOUT_all( \
|
||||
KC_H, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_K, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_J, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
/* Mail
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Del│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │It+│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │It-│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_MAIL] = LAYOUT_all( \
|
||||
G(KC_BSPC), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_DOWN, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
/* Lower
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Mut│ │Mke│ F1│ F2│ F3│ F4│ F5│ F6│ │ F7│ F8│ F9│F10│F11│F12│LHP│SLP│
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │Nxt│ │RMod │RH+│RS+│RV+│Sp+│ │ │ │ │ │ │PgU│Hom│End│ Del│
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │Prv│ │RTgl │RH-│RS-│RV-│Sp-│ │ │ │ │Prv│Nxt│PgD│ ↑ │ Play │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │LYR│Thm│ │ │ │ │ │ │ │ │ ← │ ↓ │→ Shft│ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_LOWER] = LAYOUT_all( \
|
||||
KC_MUTE, QM_MAKE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, MC_LHPD, MC_SLPD, \
|
||||
KC_MNXT, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, KC_PGUP, KC_HOME, KC_END, KC_DELT, \
|
||||
KC_MPRV, RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, KC_MPRV, KC_MNXT, KC_PGDN, KC_UP, KC_MPLY, \
|
||||
_______, RGB_LYR, RGB_THM, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, RGT_SFT, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
/* Reeder Function
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ L │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │ P │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ N │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_REEDER_FN] = LAYOUT_all( \
|
||||
KC_L, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_P, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_N, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
/* Mail
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Del│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │It+│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │It-│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_MAIL_FN] = LAYOUT_all( \
|
||||
KC_BSPC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
A(G(KC_LBRC)), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
A(G(KC_RBRC)), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
/* Raise
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_RAISE] = LAYOUT_all( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
),
|
||||
/* Adjust
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Bse│ │Mke│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │Rdr│ │RMod │RH+│RS+│RV+│Sp+│ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │Mai│ │RTgl │RH-│RS-│RV-│Sp-│ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │LYR│Thm│ │EEP│Rst│ │Rst│ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_all( \
|
||||
TG_BASE, QM_MAKE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_REDR, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_MAIL, RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, RGB_LYR, RGB_THM, _______, EEP_RST, RESET, RESET, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
)
|
||||
/* Layout
|
||||
* ┌───┐ ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┤ ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └───┘ ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┐ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴──┬┴───┴┬──┴───┴┬──┴─┐ ├───┴───┴──┬┴───┴┬──┴───┴────┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └─────┘ └─────┴───────┴────┘ └──────────┴─────┘ └─────┘
|
||||
*/
|
||||
/*
|
||||
[_BLANK] = LAYOUT( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
|
||||
)
|
||||
*/
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
state = update_tri_layer_state(state, _REEDER, _LOWER, _REEDER_FN);
|
||||
state = update_tri_layer_state(state, _MAIL, _LOWER, _MAIL_FN);
|
||||
return state;
|
||||
}
|
||||
|
||||
#ifdef USE_LEDS_FOR_LAYERS
|
||||
bool led_update_keymap(led_t led_state) {
|
||||
writePin(TOP_LED, LED_ON(IS_LAYER_ON(_REEDER) || IS_LAYER_ON(_MAIL))); // Use for Macro Layer
|
||||
writePin(MIDDLE_LED, LED_ON(IS_LAYER_ON(_FN1))); // Use for Layer 2
|
||||
writePin(BOTTOM_LED, LED_ON(led_state.caps_lock)); // Use for Caps Lock
|
||||
return false; // Override default set by KB
|
||||
}
|
||||
#endif
|
9
keyboards/tkc/osav2/keymaps/brandonschlack/rules.mk
Executable file
9
keyboards/tkc/osav2/keymaps/brandonschlack/rules.mk
Executable file
@ -0,0 +1,9 @@
|
||||
# Build Options
|
||||
# comment out to disable the options.
|
||||
#
|
||||
BACKLIGHT_ENABLE = no
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
VELOCIKEY_ENABLE = no
|
||||
|
132
keyboards/walletburner/neuron/keymaps/brandonschlack/keymap.c
Normal file
132
keyboards/walletburner/neuron/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,132 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │Bsp│
|
||||
* ├───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │HyTb│ A │ S │ D │ F │ G │ H │ J │ K │ L │ Enter│
|
||||
* ├────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬────┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│?/Lw│
|
||||
* ├┬┬┬┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┴┬┬┬┬┤
|
||||
* │││││Opt │Cmd │ SpcRse │Ctrl│││││
|
||||
* └┴┴┴┴────┴────┴────────────────────────┴────┴┴┴┴┘
|
||||
*/
|
||||
[_BASE] = LAYOUT( \
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
|
||||
HY_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, \
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, SLH_LWR, \
|
||||
KC_LOPT, KC_LCMD, XXXXXXX, SPC_RAI, XXXXXXX, XXXXXXX, KC_LCTL \
|
||||
),
|
||||
/* Lower
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Del│BrD│BrU│Msn│LHP│ │ │ │Hom│ ↑ │PgU│SlD│
|
||||
* ├───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ │Mut│VlU│NxW│PvT│Bck│Fwd│NxT│ ← │ → │ Ply │
|
||||
* ├────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬────┤
|
||||
* │SfCaps│Prv│VlD│Nxt│1PX│1Ps│ │End│ ↓ │PgD│ │
|
||||
* ├┬┬┬┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┴┬┬┬┬┤
|
||||
* │││││ │ │ │ │││││
|
||||
* └┴┴┴┴────┴────┴────────────────────────┴────┴┴┴┴┘
|
||||
*/
|
||||
[_LOWER] = LAYOUT( \
|
||||
KC_DELT, KC_BRMD, KC_BRMU, MC_MSSN, MC_LHPD, _______, _______, _______, KC_HOME, KC_UP, KC_PGUP, MC_SLPD, \
|
||||
_______, KC_MUTE, KC_VOLU, NXT_WIN, PRV_TAB, MC_BACK, MC_FWRD, NXT_TAB, KC_LEFT, KC_RGHT, KC_MPLY, \
|
||||
SF_CAPS, KC_MPRV, KC_VOLD, KC_MNXT, PX_AFLL, OP_AFLL, _______, KC_END, KC_DOWN, KC_PGDN, _______, \
|
||||
_______, _______, XXXXXXX, _______, XXXXXXX, XXXXXXX, _______ \
|
||||
),
|
||||
/* Raise
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │~ `│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│ │
|
||||
* ├───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ │ F1│ F2│ F3│ F4│ F5│ F6│_ -│+ =│: ;│ " '│
|
||||
* ├────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬────┤
|
||||
* │ │ F7│ F8│ F9│F10│F11│F12│ │{ [│} ]│|\Lw│
|
||||
* ├┬┬┬┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┴┬┬┬┬┤
|
||||
* │││││ │ │ │ │││││
|
||||
* └┴┴┴┴────┴────┴────────────────────────┴────┴┴┴┴┘
|
||||
*/
|
||||
/*
|
||||
[_RAISE] = LAYOUT( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, \
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, \
|
||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, KC_LBRC, KC_RBRC, BSL_LWR, \
|
||||
_______, _______, XXXXXXX, _______, XXXXXXX, XXXXXXX, _______ \
|
||||
), */
|
||||
/* Raise
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │~ `│ F1│ F2│ F3│ F4│{ [│} ]│& 7│* 8│( 9│) 0│ │
|
||||
* ├───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ │ F5│ F6│ F7│ F8│_ -│ + │$ 4│% 5│^ 6│ " '│
|
||||
* ├────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬────┤
|
||||
* │ │ F9│F10│F11│F12│+ =│! 1│@ 2│# 3│: ;│|\Lw│
|
||||
* ├┬┬┬┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┴┬┬┬┬┤
|
||||
* │││││ │ │ │ │││││
|
||||
* └┴┴┴┴────┴────┴────────────────────────┴────┴┴┴┴┘
|
||||
*/
|
||||
[_RAISE] = LAYOUT( \
|
||||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_LBRC, KC_RBRC, KC_7, KC_8, KC_9, KC_0, _______, \
|
||||
_______, KC_F5, KC_F6, KC_F7, KC_F8, KC_MINS, KC_PLUS, KC_4, KC_5, KC_6, KC_QUOT, \
|
||||
_______, KC_F9, KC_F10, KC_F11, KC_F12, KC_EQL, KC_1, KC_2, KC_3, KC_SCLN, BSL_LWR, \
|
||||
_______, _______, XXXXXXX, _______, XXXXXXX, XXXXXXX, _______ \
|
||||
),
|
||||
/* Adjust/Macro
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Mke│ │ │EEP│RST│ │ │ │ │ │ │ │
|
||||
* ├───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├┬┬┬┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┴┬┬┬┬┤
|
||||
* │││││ │ │ │ │││││
|
||||
* └┴┴┴┴────┴────┴────────────────────────┴────┴┴┴┴┘
|
||||
*/
|
||||
|
||||
[_ADJUST] = LAYOUT( \
|
||||
QM_MAKE, _______, _______, EEP_RST, RESET, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, XXXXXXX, _______, XXXXXXX, XXXXXXX, _______ \
|
||||
)
|
||||
/* Blank Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├┬┬┬┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴───┼───┴┬┬┬┬┤
|
||||
* │││││ │ │ │ │││││
|
||||
* └┴┴┴┴────┴────┴────────────────────────┴────┴┴┴┴┘
|
||||
*/
|
||||
/*
|
||||
[BLANK] = LAYOUT( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, XXXXXXX, _______, XXXXXXX, XXXXXXX, _______ \
|
||||
)
|
||||
*/
|
||||
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
83
layouts/community/60_ansi/brandonschlack-ansi/keymap.c
Normal file
83
layouts/community/60_ansi/brandonschlack-ansi/keymap.c
Normal file
@ -0,0 +1,83 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||
* │Esc│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│ Bckspc│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│| \│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │HyCaps│ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│ ↑ Shift│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||
* │Ctrl│ Opt│ Cmd│ Space │CmdP│←Opt│↓ Fn│→Ctl│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_60_ansi( \
|
||||
KC_ESC, 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_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, \
|
||||
HY_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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, UP_RSFT, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, PLY_CMD, LFT_OPT, DWN_FN1, RGT_CTL \
|
||||
),
|
||||
|
||||
/* Function Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||
* │~ `│ F1│ F2│ F3│ F4│ F5│ F6│ F7│ F8│ F9│F10│F11│F12│ Del │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||
* │RMod │RH+│RS+│RV+│AS+│ │ │ │F13│F14│F15│PgU│LHP│ SLP │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │RTgl │RH-│RS-│RV-│AS-│ │ │VlD│VlU│Mut│Hom│End│ PlyPse │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
|
||||
* │ │LYR│Thm│ │ │RST│ │MKE│Prv│Nxt│PgD│ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||
* │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_60_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, KC_DELT, \
|
||||
RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, KC_F13, KC_F14, KC_F15, KC_PGUP, MC_LHPD, MC_SLPD, \
|
||||
RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_HOME, KC_END, KC_MPLY, \
|
||||
_______, RGB_LYR, RGB_THM, _______, _______, RESET, _______, QM_MAKE, KC_MPRV, KC_MNXT, KC_PGDN, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/* Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||
* │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||
*/
|
||||
/*
|
||||
[BLANK] = LAYOUT_60_ansi( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
)
|
||||
*/
|
||||
};
|
1
layouts/community/60_ansi/brandonschlack-ansi/rules.mk
Normal file
1
layouts/community/60_ansi/brandonschlack-ansi/rules.mk
Normal file
@ -0,0 +1 @@
|
||||
USER_NAME := brandonschlack
|
@ -0,0 +1,83 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│| \│~ `│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│Bspc │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │HyCaps│ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ LShift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │↑ Shft│FnP│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬┴───┤
|
||||
* │Ctrl│Opt │Cmd │ Space │ Cmd│←Opt│↓ Fn│→Ctl│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_60_ansi_split_bs_rshift( \
|
||||
KC_ESC, 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_BSLS, KC_GRV, \
|
||||
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_BSPC, \
|
||||
HY_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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, UP_RSFT, PLY_FN1, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, LFT_OPT, DWN_FN1, RGT_CTL \
|
||||
),
|
||||
|
||||
/* Function Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │MKE│ F1│ F2│ F3│ F4│ F5│ F6│ F7│ F8│ F9│F10│F11│F12│LHP│SLP│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │RMod │RH+│RS+│RV+│AS+│ │ │ │ │ │ │ ↑ │MNC│ Del │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │RTgl │RH-│RS-│RV-│AS-│ │ │ │VlD│VlU│ ← │ → │ Play │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │LYR│Thm│ │ │RST│ │Mut│Prv│Nxt│ ↓ │PgUSft│ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬┴───┤
|
||||
* │ │ │ │ │ │HmOp│PgDF│EndC│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_60_ansi_split_bs_rshift( \
|
||||
QM_MAKE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, MC_LHPD, MC_SLPD, \
|
||||
RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, KC_VOLU, KC_MPRV, KC_MNXT, KC_UP, MC_MSSN, KC_DELT, \
|
||||
RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, KC_VOLD, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, KC_MPLY, \
|
||||
_______, RGB_LYR, RGB_THM, _______, _______, RESET, _______, KC_MUTE, KC_END, KC_PGDN, KC_DOWN, PGU_SFT, _______, \
|
||||
_______, _______, _______, _______, _______, HOM_OPT, PGD_FN1, END_CTL \
|
||||
)
|
||||
/* Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬┴───┤
|
||||
* │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||
*/
|
||||
/*
|
||||
[BLANK] = LAYOUT_60_ansi_split_bs_rshift( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
)
|
||||
*/
|
||||
};
|
@ -0,0 +1 @@
|
||||
USER_NAME := brandonschlack
|
@ -0,0 +1,84 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│| \│~ `│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│ Bspc│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │HyCaps│ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │LShift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │↑ Shft│FnP│
|
||||
* ├─────┬──┴┬──┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┴┬───┬─┴───┤
|
||||
* │Ctrl │Opt│Cmd │ │ ←Cmd│↓Op│→Ctrl│
|
||||
* └─────┴───┴─────┴───────────────────────────┴─────┴───┴─────┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_60_tsangan_hhkb( \
|
||||
KC_ESC, 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_BSLS, KC_GRV, \
|
||||
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_BSPC, \
|
||||
HY_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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, UP_RSFT, PLY_FN1, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, LFT_CMD, DWN_OPT, RGT_CTL \
|
||||
),
|
||||
|
||||
/* Function Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │MKE│ F1│ F2│ F3│ F4│ F5│ F6│ F7│ F8│ F9│F10│F11│F12│LHP│SLP│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │RMod │RH+│RS+│RV+│Bl+│ │ │ │ │ │ │ ↑ │MNC│ Del │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │RTgl │RH-│RS-│RV-│Bl-│ │ │ │VlD│Vlu│ ← │ → │ Play │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │LYR│Thm│BlT│ │RST│ │Mut│Prv│Nxt│ ↓ │PgUSft│ │
|
||||
* ├─────┬──┴┬──┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┴┬───┬─┴───┤
|
||||
* │ │ │ │ │HmCmd│PDO│EndCl│
|
||||
* └─────┴───┴─────┴───────────────────────────┴─────┴───┴─────┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_60_tsangan_hhkb( \
|
||||
QM_MAKE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, MC_LHPD, MC_SLPD, \
|
||||
RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, BL_INC, _______, _______, _______, _______, _______, _______, KC_UP, MC_MSSN, KC_DELT, \
|
||||
RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, BL_DEC, _______, _______, _______, KC_VOLD, KC_VOLU, KC_LEFT, KC_RGHT, KC_MPLY, \
|
||||
_______, RGB_LYR, RGB_THM, BL_TOGG, _______, RESET, _______, KC_MUTE, KC_MPRV, KC_MNXT, KC_DOWN, PGU_SFT, _______, \
|
||||
_______, _______, _______, _______, HOM_CMD, PGD_OPT, END_CTL \
|
||||
)
|
||||
/* Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┬──┴┬──┴──┬┴───┴───┴───┴───┴───┴───┴──┬┴───┴┬───┬─┴───┤
|
||||
* │ │ │ │ │ │ │ │
|
||||
* └─────┴───┴─────┴───────────────────────────┴─────┴───┴─────┘
|
||||
*/
|
||||
/*
|
||||
[BLANK] = LAYOUT_60_tsangan_hhkb( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
)
|
||||
*/
|
||||
|
||||
};
|
@ -0,0 +1,11 @@
|
||||
# brandonschlack's 60 Tsangan HHKB Layout
|
||||
|
||||
It is used on
|
||||
|
||||
* [AN-C](https://github.com/qmk/qmk_firmware/tree/master/keyboards/cannonkeys/an_c)
|
||||
* [Instant60](https://github.com/qmk/qmk_firmware/tree/master/keyboards/cannonkeys/instant60)
|
||||
* [Polaris](https://github.com/qmk/qmk_firmware/tree/master/keyboards/ai03/polaris)
|
||||
* [Plain60](https://github.com/qmk/qmk_firmware/tree/master/keyboards/maartenwut/plain60)
|
||||
|
||||
## Features
|
||||
### Mod-Taps & Layer-Taps
|
@ -0,0 +1 @@
|
||||
USER_NAME := brandonschlack
|
64
layouts/community/65_ansi_blocker/brandonschlack/config.h
Normal file
64
layouts/community/65_ansi_blocker/brandonschlack/config.h
Normal file
@ -0,0 +1,64 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
// Disable RGB Effects
|
||||
#define DISABLE_RGB_MATRIX_ALPHAS_MODS
|
||||
// #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||
// #define DISABLE_RGB_MATRIX_BREATHING
|
||||
#define DISABLE_RGB_MATRIX_BAND_SAT
|
||||
#define DISABLE_RGB_MATRIX_BAND_VAL
|
||||
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
|
||||
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_ALL
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_UP_DOWN
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
|
||||
#define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
#define DISABLE_RGB_MATRIX_DUAL_BEACON
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||
#define DISABLE_RGB_MATRIX_RAINBOW_BEACON
|
||||
#define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS
|
||||
#define DISABLE_RGB_MATRIX_RAINDROPS
|
||||
#define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
||||
#define DISABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
#define DISABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE
|
||||
// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||
#define DISABLE_RGB_MATRIX_SPLASH
|
||||
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
||||
#define DISABLE_RGB_MATRIX_SOLID_SPLASH
|
||||
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||
|
||||
#define QMK_KEYS_PER_SCAN 4
|
||||
|
||||
#define USB_LED_CAPS_LOCK_SCANCODE 30
|
||||
#endif
|
||||
|
||||
#ifdef KEYBOARD_massdrop_alt
|
||||
#undef USB_LED_INDICATOR_ENABLE
|
||||
#endif
|
117
layouts/community/65_ansi_blocker/brandonschlack/keymap.c
Normal file
117
layouts/community/65_ansi_blocker/brandonschlack/keymap.c
Normal file
@ -0,0 +1,117 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │Esc│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│ Bckspc│Hom│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│| \│PgU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │HyCaps│ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│PgD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│ Shift│ Up│End│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │Ctrl│ Opt│ Cmd│ Space │Cmd │FnPy│ │Lef│Dow│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_65_ansi_blocker( \
|
||||
KC_ESC, 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_HOME, \
|
||||
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_PGUP, \
|
||||
HY_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_PGDN, \
|
||||
KC_LSFT, 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_END, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, PLY_FN1, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
/* Function Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │` ~│ F1│ F2│ F3│ F4│ F5│ F6│ F7│ F8│ F9│F10│F11│F12│ Delete│SlD│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │RMod │RH+│RS+│RV+│AS+│ │ │ │ │ │F13│F14│F15│ LHP │VlU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │RTgl │RH-│RS-│RV-│AS-│ │ │ │ │ │ │ │ │VlD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │LYR│Thm│ │ │RST│ │Mke│Prv│Nxt│Ply│ │PgU│Mut│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │Hom│PgD│End│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_65_ansi_blocker( \
|
||||
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, KC_DELT, MC_SLPD, \
|
||||
RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, KC_F13, KC_F14, KC_F15, MC_LHPD, KC_VOLU, \
|
||||
RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, \
|
||||
_______, RGB_LYR, RGB_THM, _______, _______, RESET, _______, QM_MAKE, KC_MPRV, KC_MNXT, KC_MPLY, _______, KC_PGUP, KC_MUTE, \
|
||||
_______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END \
|
||||
),
|
||||
/* Blank Layout
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴─┴───┴───┴───┘
|
||||
[X] = LAYOUT_65_ansi_blocker( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
*/
|
||||
};
|
||||
|
||||
// Runs just one time when the keyboard initializes.
|
||||
void matrix_init_keymap(void) {
|
||||
};
|
||||
|
||||
// Runs once after keyboard initializes
|
||||
void keyboard_post_init_keymap(void) {
|
||||
};
|
||||
|
||||
// Runs constantly in the background, in a loop.
|
||||
void matrix_scan_keymap(void) {
|
||||
};
|
||||
|
||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
#ifdef KEYBOARD_massdrop
|
||||
case RGB_TOG:
|
||||
if (record->event.pressed) {
|
||||
rgb_matrix_cycle_flag();
|
||||
}
|
||||
return false;
|
||||
#endif
|
||||
default:
|
||||
return true; //Process all other keycodes normally
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
void rgb_matrix_indicators_user(void) {
|
||||
if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK)) {
|
||||
rgb_matrix_set_color(USB_LED_CAPS_LOCK_SCANCODE, RGB_GREEN);
|
||||
} else if (!HAS_ANY_FLAGS(rgb_matrix_get_flags(), LED_FLAG_KEYS)){
|
||||
rgb_matrix_set_color(USB_LED_CAPS_LOCK_SCANCODE, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
15
layouts/community/65_ansi_blocker/brandonschlack/readme.md
Normal file
15
layouts/community/65_ansi_blocker/brandonschlack/readme.md
Normal file
@ -0,0 +1,15 @@
|
||||
# brandonschlack's 65_ansi_blocker layout
|
||||
|
||||
This is my preferred 65% layout.
|
||||
|
||||
It is used on:
|
||||
|
||||
* [Massdrop ALT](https://github.com/qmk/qmk_firmware/tree/master/keyboards/massdrop/alt)
|
||||
* [KBD67 MKII](https://github.com/qmk/qmk_firmware/tree/master/keyboards/kbdfans/kbd67/mkiirgb)
|
||||
|
||||
## [Base Layer](http://www.keyboard-layout-editor.com/#/gists/a820c8629394f8f4c3943e6ee518d9a8)
|
||||
![Base Layer](https://i.imgur.com/gPxDZl7.jpg)
|
||||
|
||||
## [Function Layer](http://www.keyboard-layout-editor.com/#/gists/8ca73a6d3bec8ce736f5db60edf31dcf)
|
||||
![Function Layer](https://i.imgur.com/gNKHgWa.jpg)
|
||||
|
@ -0,0 +1,7 @@
|
||||
# Build Options
|
||||
ifeq ($(strip $(KEYBOARD)), gray_studio/space65)
|
||||
MOUSEKEY_ENABLE = no
|
||||
BACKLIGHT_ENABLE = no
|
||||
CONSOLE_ENABLE = yes
|
||||
COMMAND_ENABLE = yes
|
||||
endif
|
@ -0,0 +1,64 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
// Disable RGB Effects
|
||||
#define DISABLE_RGB_MATRIX_ALPHAS_MODS
|
||||
// #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||
// #define DISABLE_RGB_MATRIX_BREATHING
|
||||
#define DISABLE_RGB_MATRIX_BAND_SAT
|
||||
#define DISABLE_RGB_MATRIX_BAND_VAL
|
||||
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
|
||||
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_ALL
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_UP_DOWN
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
|
||||
#define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
#define DISABLE_RGB_MATRIX_DUAL_BEACON
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||
#define DISABLE_RGB_MATRIX_RAINBOW_BEACON
|
||||
#define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS
|
||||
#define DISABLE_RGB_MATRIX_RAINDROPS
|
||||
#define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
||||
#define DISABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
#define DISABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE
|
||||
// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||
#define DISABLE_RGB_MATRIX_SPLASH
|
||||
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
||||
#define DISABLE_RGB_MATRIX_SOLID_SPLASH
|
||||
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||
|
||||
#define QMK_KEYS_PER_SCAN 4
|
||||
|
||||
#define USB_LED_CAPS_LOCK_SCANCODE 30
|
||||
#endif
|
||||
|
||||
#ifdef KEYBOARD_massdrop_alt
|
||||
#undef USB_LED_INDICATOR_ENABLE
|
||||
#endif
|
@ -0,0 +1,104 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│| \│~ `│Hom│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│ Bspc│PgU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │HyCaps│ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│PgD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│ Shift│ Up│End│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬┬┬───┼───┼───┤
|
||||
* │Ctrl│ Opt│ Cmd│ Space │Cmd │FnPy│││Lef│Dow│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴┴┴───┴───┴───┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_65_ansi_blocker_split_bs( \
|
||||
KC_ESC, 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_BSLS, KC_GRV, KC_HOME, \
|
||||
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_BSPC, KC_PGUP, \
|
||||
HY_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_PGDN, \
|
||||
KC_LSFT, 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_END, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, PLY_FN1, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
/* Function Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Mke│ F1│ F2│ F3│ F4│ F5│ F6│ F7│ F8│ F9│F10│F11│F12│LHP│MNC│SlD│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │RMod │RH+│RS+│RV+│AS+│ │ │ │ │ │F13│F14│F15│ Del│VlU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │RTgl │RH-│RS-│RV-│AS-│ │ │ │ │ │ │ │ │VlD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │LYR│Thm│ │ │RST│ │ │Prv│Nxt│Ply│ │PgU│Mut│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬┬┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │││Hom│PgD│End│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴┴┴───┴───┴───┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_65_ansi_blocker_split_bs( \
|
||||
QM_MAKE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, MC_LHPD, MC_MSSN, MC_SLPD, \
|
||||
RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, KC_F13, KC_F14, KC_F15, KC_DELT, KC_VOLU, \
|
||||
RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, \
|
||||
_______, RGB_LYR, RGB_THM, _______, _______, RESET, _______, _______, KC_MPRV, KC_MNXT, KC_MPLY, _______, KC_PGUP, KC_MUTE, \
|
||||
_______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END \
|
||||
),
|
||||
/* Blank Layout
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬┬┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │││ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴┴┴───┴───┴───┘
|
||||
[X] = LAYOUT_65_ansi_blocker_split_bs( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
*/
|
||||
};
|
||||
|
||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
#ifdef KEYBOARD_massdrop
|
||||
case RGB_TOG:
|
||||
if (record->event.pressed) {
|
||||
rgb_matrix_cycle_flag();
|
||||
}
|
||||
return false;
|
||||
#endif
|
||||
default:
|
||||
return true; //Process all other keycodes normally
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
void rgb_matrix_indicators_user(void) {
|
||||
if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK)) {
|
||||
rgb_matrix_set_color(USB_LED_CAPS_LOCK_SCANCODE, RGB_GREEN);
|
||||
} else if (!HAS_ANY_FLAGS(rgb_matrix_get_flags(), LED_FLAG_KEYS)){
|
||||
rgb_matrix_set_color(USB_LED_CAPS_LOCK_SCANCODE, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
#endif
|
@ -0,0 +1,15 @@
|
||||
# brandonschlack's 65% ANSI blocker split backspace layout
|
||||
|
||||
This is my preferred 65% layout.
|
||||
|
||||
It is used on:
|
||||
|
||||
* [Massdrop ALT](https://github.com/qmk/qmk_firmware/tree/master/keyboards/massdrop/alt)
|
||||
* [KBD67 MKII](https://github.com/qmk/qmk_firmware/tree/master/keyboards/kbdfans/kbd67/mkiirgb)
|
||||
|
||||
## [Base Layer](http://www.keyboard-layout-editor.com/#/gists/a820c8629394f8f4c3943e6ee518d9a8)
|
||||
![Base Layer](https://i.imgur.com/gPxDZl7.jpg)
|
||||
|
||||
## [Function Layer](http://www.keyboard-layout-editor.com/#/gists/8ca73a6d3bec8ce736f5db60edf31dcf)
|
||||
![Function Layer](https://i.imgur.com/gNKHgWa.jpg)
|
||||
|
@ -0,0 +1,2 @@
|
||||
# Build Options
|
||||
USER_NAME := brandonschlack
|
105
layouts/community/75_ansi/brandonschlack/keymap.c
Normal file
105
layouts/community/75_ansi/brandonschlack/keymap.c
Normal file
@ -0,0 +1,105 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* LAYOUT
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ 2.0U │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │1.5U │ │ │ │ │ │ │ │ │ │ │ │ │1.5U │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │1.75U │ │ │ │ │ │ │ │ │ │ │ │2.25U │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │2.25U │ │ │ │ │ │ │ │ │ │ │1.75U │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬┴──┬───┼───┼───┤
|
||||
* │1.25│1.25│1.25│6.25U │1U │1U │1U │1U │1U │1U │
|
||||
* └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┴───┘
|
||||
*/
|
||||
|
||||
/* Base Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│ F1│ F2│ F3│ F4│ F5│ F6│ F7│ F8│ F9│F10│F11│F12│F13│F14│F15│
|
||||
* ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
* │~ `│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│ Bckspc│Hom│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│| \│PgU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│PgD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│ Shift│ Up│End│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬┴──┬───┼───┼───┤
|
||||
* │Ctrl│ Opt│ Cmd│ Space │Cmd│Opt│Fn │Lef│Dow│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┴───┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_75_ansi( \
|
||||
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_F13, KC_F14, KC_F15, \
|
||||
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_HOME, \
|
||||
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_PGUP, \
|
||||
HY_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_PGDN, \
|
||||
KC_LSFT, 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_END, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, RWD_CMD, FFD_OPT, PLY_FN1, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
/* Function Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Mke│BrD│BrU│Msn│LHP│RV-│RV+│ │ │ │ │ │ │Prv│Nxt│Ply│
|
||||
* ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ Del │SlD│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │RMod │RH+│RS+│RV+│AS+│ │ │ │ │ │ │ │ │ │VlU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │RTgl │RH-│RS-│RV-│AS-│ │ │ │ │ │ │ │ │VlD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │LYR│Thm│ │ │RST│ │ │ │ │ │ │PgU│Mte│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬┴──┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │Hom│PgD│End│
|
||||
* └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┴───┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_75_ansi( \
|
||||
QM_MAKE, KC_BRMD, KC_BRMU, MC_MSSN, MC_LHPD, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_MNXT, KC_MPLY, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DELT, MC_SLPD, \
|
||||
RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLU, \
|
||||
RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, \
|
||||
_______, RGB_LYR, RGB_THM, _______, _______, RESET, _______, _______, _______, _______, _______, _______, KC_PGUP, KC_MUTE, \
|
||||
_______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END \
|
||||
),
|
||||
/* Blank Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┴───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬┴──┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┴───┘
|
||||
[X] = LAYOUT_75_ansi( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
*/
|
||||
};
|
7
layouts/community/75_ansi/brandonschlack/readme.md
Normal file
7
layouts/community/75_ansi/brandonschlack/readme.md
Normal file
@ -0,0 +1,7 @@
|
||||
# brandonschlack's 75_ansi layout
|
||||
|
||||
This is my preferred 75% layout.
|
||||
|
||||
It is currently used on:
|
||||
|
||||
* [KBD75](https://github.com/qmk/qmk_firmware/tree/master/keyboards/kbdfans/kbd75)
|
5
layouts/community/75_ansi/brandonschlack/rules.mk
Normal file
5
layouts/community/75_ansi/brandonschlack/rules.mk
Normal file
@ -0,0 +1,5 @@
|
||||
# Build Options
|
||||
ifneq (, $(findstring kbd75, $(KEYBOARD)))
|
||||
MOUSEKEY_ENABLE = no
|
||||
endif
|
||||
BACKLIGHT_ENABLE = no # No backlights installed
|
55
layouts/community/ortho_4x12/brandonschlack/config.h
Normal file
55
layouts/community/ortho_4x12/brandonschlack/config.h
Normal file
@ -0,0 +1,55 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
#ifdef KEYBOARD_planck_rev6
|
||||
#ifdef AUDIO_ENABLE
|
||||
#define STARTUP_SONG SONG(PLANCK_SOUND)
|
||||
// #define STARTUP_SONG SONG(NO_SOUND)
|
||||
|
||||
#define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND) \
|
||||
}
|
||||
#endif
|
||||
|
||||
#define MUSIC_MASK (keycode != KC_NO)
|
||||
|
||||
/*
|
||||
* MIDI options
|
||||
*/
|
||||
|
||||
/* Prevent use of disabled MIDI features in the keymap */
|
||||
//#define MIDI_ENABLE_STRICT 1
|
||||
|
||||
/* enable basic MIDI features:
|
||||
- MIDI notes can be sent when in Music mode is on
|
||||
*/
|
||||
|
||||
#define MIDI_BASIC
|
||||
|
||||
/* enable advanced MIDI features:
|
||||
- MIDI notes can be added to the keymap
|
||||
- Octave shift and transpose
|
||||
- Virtual sustain, portamento, and modulation wheel
|
||||
- etc.
|
||||
*/
|
||||
//#define MIDI_ADVANCED
|
||||
|
||||
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
|
||||
//#define MIDI_TONE_KEYCODE_OCTAVES 2
|
||||
|
||||
// Most tactile encoders have detents every 4 stages
|
||||
#define ENCODER_RESOLUTION 4
|
||||
#endif
|
218
layouts/community/ortho_4x12/brandonschlack/keymap.c
Normal file
218
layouts/community/ortho_4x12/brandonschlack/keymap.c
Normal file
@ -0,0 +1,218 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#ifdef KEYBOARD_planck_rev6
|
||||
#include "muse.h"
|
||||
#endif
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty */
|
||||
[_BASE] = LAYOUT_ortho_4x12( \
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
HY_ESC, 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_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_ENT, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
MCO_LYR, KC_LCTL, KC_LOPT, KC_LCMD, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
// └────────┴────────┴────────┴────────┴────────┴─────────────────┴────────┴────────┴────────┴────────┴────────┘
|
||||
),
|
||||
|
||||
/* Lower */
|
||||
[_LOWER] = LAYOUT_ortho_4x12( \
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
KC_DELT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
SF_CAPS, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_HOME, KC_PGUP, KC_PGDN, KC_END, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, KC_MUTE, KC_MUTE, _______, KC_MPRV, KC_VOLD, KC_VOLU, KC_MNXT \
|
||||
// └────────┴────────┴────────┴────────┴────────┴─────────────────┴────────┴────────┴────────┴────────┴────────┘
|
||||
),
|
||||
|
||||
/* Raise */
|
||||
[_RAISE] = LAYOUT_ortho_4x12( \
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
KC_DELT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
SF_CAPS, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_HOME, KC_PGUP, KC_PGDN, KC_END, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, KC_MPLY, KC_MPLY, _______, KC_MPRV, KC_VOLD, KC_VOLU, KC_MNXT \
|
||||
// └────────┴────────┴────────┴────────┴────────┴─────────────────┴────────┴────────┴────────┴────────┴────────┘
|
||||
),
|
||||
|
||||
/* Macros */
|
||||
[_MACRO] = LAYOUT_ortho_4x12( \
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
_______, _______, _______, _______, _______, _______, _______, KC_BRMD, KC_BRMU, MC_MSSN, MC_LHPD, MC_SLPD, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, _______, _______, MC_BACK, MC_FWRD, PRV_TAB, NXT_TAB, NXT_WIN, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, _______, PX_AFLL, OP_AFLL, _______, _______, _______, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
// └────────┴────────┴────────┴────────┴────────┴─────────────────┴────────┴────────┴────────┴────────┴────────┘
|
||||
),
|
||||
|
||||
/* Adjust (Lower + Raise) */
|
||||
[_ADJUST] = LAYOUT_ortho_4x12( \
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
QM_MAKE, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, MC_SLPD, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
QM_FLSH, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, RGB_RTHM,RGB_THM, _______, _______, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
EEP_RST, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
// └────────┴────────┴────────┴────────┴────────┴─────────────────┴────────┴────────┴────────┴────────┴────────┘
|
||||
)
|
||||
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
return state;
|
||||
}
|
||||
|
||||
#ifdef KEYBOARD_plaid
|
||||
// Turn on Red LED when initialized
|
||||
void keyboard_post_init_keymap(void) {
|
||||
writePinHigh(LED_RED);
|
||||
}
|
||||
|
||||
// Use Green LED for Caps Lock
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
if (IS_LED_OFF(usb_led, USB_LED_CAPS_LOCK)) {
|
||||
writePinLow(LED_GREEN);
|
||||
} else {
|
||||
writePinHigh(LED_GREEN);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef KEYBOARD_planck_rev6
|
||||
#ifdef AUDIO_ENABLE
|
||||
float plover_song[][2] = SONG(PLOVER_SOUND);
|
||||
float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND);
|
||||
#endif
|
||||
|
||||
bool muse_mode = false;
|
||||
uint8_t last_muse_note = 0;
|
||||
uint16_t muse_counter = 0;
|
||||
uint8_t muse_offset = 70;
|
||||
uint16_t muse_tempo = 50;
|
||||
|
||||
void encoder_update_keymap(uint8_t index, bool clockwise) {
|
||||
if (muse_mode) {
|
||||
if (IS_LAYER_ON(_RAISE)) {
|
||||
if (clockwise) {
|
||||
muse_offset++;
|
||||
} else {
|
||||
muse_offset--;
|
||||
}
|
||||
} else {
|
||||
if (clockwise) {
|
||||
muse_tempo+=1;
|
||||
} else {
|
||||
muse_tempo-=1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (clockwise) {
|
||||
#ifdef MOUSEKEY_ENABLE
|
||||
tap_code(MC_WH_U);
|
||||
#else
|
||||
tap_code(KC_VOLU);
|
||||
#endif
|
||||
} else {
|
||||
#ifdef MOUSEKEY_ENABLE
|
||||
tap_code(MC_WH_D);
|
||||
#else
|
||||
tap_code(KC_VOLD);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void dip_switch_update_user(uint8_t index, bool active) {
|
||||
switch (index) {
|
||||
case 0: {
|
||||
#ifdef AUDIO_ENABLE
|
||||
static bool play_sound = false;
|
||||
#endif
|
||||
if (active) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
if (play_sound) { PLAY_SONG(plover_song); }
|
||||
#endif
|
||||
layer_on(_ADJUST);
|
||||
} else {
|
||||
#ifdef AUDIO_ENABLE
|
||||
if (play_sound) { PLAY_SONG(plover_gb_song); }
|
||||
#endif
|
||||
layer_off(_ADJUST);
|
||||
}
|
||||
#ifdef AUDIO_ENABLE
|
||||
play_sound = true;
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
if (active) {
|
||||
muse_mode = true;
|
||||
} else {
|
||||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void matrix_scan_keymap(void) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
if (muse_mode) {
|
||||
if (muse_counter == 0) {
|
||||
uint8_t muse_note = muse_offset + SCALE[muse_clock_pulse()];
|
||||
if (muse_note != last_muse_note) {
|
||||
stop_note(compute_freq_for_midi_note(last_muse_note));
|
||||
play_note(compute_freq_for_midi_note(muse_note), 0xF);
|
||||
last_muse_note = muse_note;
|
||||
}
|
||||
}
|
||||
muse_counter = (muse_counter + 1) % muse_tempo;
|
||||
} else {
|
||||
if (muse_counter) {
|
||||
stop_all_notes();
|
||||
muse_counter = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool music_mask_user(uint16_t keycode) {
|
||||
switch (keycode) {
|
||||
case RAISE:
|
||||
case LOWER:
|
||||
case MCO_LYR:
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
#endif
|
20
layouts/community/ortho_4x12/brandonschlack/readme.md
Normal file
20
layouts/community/ortho_4x12/brandonschlack/readme.md
Normal file
@ -0,0 +1,20 @@
|
||||
# brandonschlack's 4x12 Ortho Keymap
|
||||
|
||||
This layout is based on the Planck layout. It is macOS-centric, with Colemak and DVORAK removed as I don't use them.
|
||||
|
||||
## Keyboards Using This Layout
|
||||
|
||||
* [Planck](https://github.com/qmk/qmk_firmware/tree/master/keyboards/planck)
|
||||
* [Plaid](https://github.com/qmk/qmk_firmware/tree/master/keyboards/plaid)
|
||||
* [JNAO](https://github.com/qmk/qmk_firmware/tree/master/keyboards/planck) (FORCE_LAYOUT=ortho_4x12)
|
||||
|
||||
## Features
|
||||
|
||||
* *Enter* acts as *Right Shift* when held
|
||||
* On either **LOWER** or **RAISE** layers, tapping *Shift* will toggle *Caps Lock*, hold for Shift.
|
||||
* Bottom left key is *Hyper* (Shift+Control+Option+Command) which I use to map global shortcuts in macOS.
|
||||
* Holding *Esc* will also act as Hyper.
|
||||
* **ADJUST** Layer
|
||||
* Make command for compiling keyboard firmmware, a Reset key, and Debug toggle.
|
||||
* Mission Control, Launchpad, and Sleep Display macOS macros
|
||||
* Alt-Gui swapping
|
10
layouts/community/ortho_4x12/brandonschlack/rules.mk
Normal file
10
layouts/community/ortho_4x12/brandonschlack/rules.mk
Normal file
@ -0,0 +1,10 @@
|
||||
ifeq ($(strip $(KEYBOARD)), planck/rev6)
|
||||
SRC += muse.c
|
||||
endif
|
||||
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
BACKLIGHT_ENABLE = no # No backlights installed
|
||||
|
||||
ifeq ($(strip $(KEYBOARD)), jnao)
|
||||
BOOTMAGIC_ENABLE = lite
|
||||
endif
|
55
layouts/community/ortho_5x12/brandonschlack/config.h
Normal file
55
layouts/community/ortho_5x12/brandonschlack/config.h
Normal file
@ -0,0 +1,55 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
#ifdef KEYBOARD_preonic_rev3
|
||||
#ifdef AUDIO_ENABLE
|
||||
#define STARTUP_SONG SONG(PREONIC_SOUND)
|
||||
// #define STARTUP_SONG SONG(NO_SOUND)
|
||||
|
||||
#define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND) \
|
||||
}
|
||||
#endif
|
||||
|
||||
#define MUSIC_MASK (keycode != KC_NO)
|
||||
|
||||
/*
|
||||
* MIDI options
|
||||
*/
|
||||
|
||||
/* Prevent use of disabled MIDI features in the keymap */
|
||||
//#define MIDI_ENABLE_STRICT 1
|
||||
|
||||
/* enable basic MIDI features:
|
||||
- MIDI notes can be sent when in Music mode is on
|
||||
*/
|
||||
|
||||
#define MIDI_BASIC
|
||||
|
||||
/* enable advanced MIDI features:
|
||||
- MIDI notes can be added to the keymap
|
||||
- Octave shift and transpose
|
||||
- Virtual sustain, portamento, and modulation wheel
|
||||
- etc.
|
||||
*/
|
||||
//#define MIDI_ADVANCED
|
||||
|
||||
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
|
||||
//#define MIDI_TONE_KEYCODE_OCTAVES 2
|
||||
|
||||
// Most tactile encoders have detents every 4 stages
|
||||
#define ENCODER_RESOLUTION 4
|
||||
#endif
|
214
layouts/community/ortho_5x12/brandonschlack/keymap.c
Normal file
214
layouts/community/ortho_5x12/brandonschlack/keymap.c
Normal file
@ -0,0 +1,214 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#ifdef KEYBOARD_preonic_rev3
|
||||
#include "muse.h"
|
||||
#endif
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty */
|
||||
[_BASE] = LAYOUT_ortho_5x12( \
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
HY_ESC, 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_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_ENT, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
MCO_LYR, KC_LCTL, KC_LOPT, KC_LCMD, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
// └────────┴────────┴────────┴────────┴────────┴─────────────────┴────────┴────────┴────────┴────────┴────────┘
|
||||
),
|
||||
|
||||
/* Lower */
|
||||
[_LOWER] = LAYOUT_ortho_5x12( \
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
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_ESC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DELT, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
SF_CAPS, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, KC_MUTE, KC_MUTE, _______, KC_MPRV, KC_VOLD, KC_VOLU, KC_MNXT \
|
||||
// └────────┴────────┴────────┴────────┴────────┴─────────────────┴────────┴────────┴────────┴────────┴────────┘
|
||||
),
|
||||
|
||||
/* Raise */
|
||||
[_RAISE] = LAYOUT_ortho_5x12( \
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_PIPE, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DELT, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
SF_CAPS, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, KC_MPLY, KC_MPLY, _______, KC_MPRV, KC_VOLD, KC_VOLU, KC_MNXT \
|
||||
// └────────┴────────┴────────┴────────┴────────┴─────────────────┴────────┴────────┴────────┴────────┴────────┘
|
||||
),
|
||||
|
||||
/* Function */
|
||||
[_MACRO] = LAYOUT_ortho_5x12( \
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
_______, _______, _______, _______, _______, _______, _______, KC_BRMD, KC_BRMU, MC_MSSN, MC_LHPD, MC_SLPD, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, _______, _______, MC_BACK, MC_FWRD, PRV_TAB, NXT_TAB, NXT_WIN, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, _______, PX_AFLL, OP_AFLL, _______, _______, _______, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
// └────────┴────────┴────────┴────────┴────────┴─────────────────┴────────┴────────┴────────┴────────┴────────┘
|
||||
),
|
||||
|
||||
/* Adjust (Lower + Raise) */
|
||||
[_ADJUST] = LAYOUT_ortho_5x12( \
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
KC_ESC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, MC_SLPD, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
QM_MAKE, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
QM_FLSH, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, RGB_RTHM,RGB_THM, _______, _______, _______, \
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┴────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
EEP_RST, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
// └────────┴────────┴────────┴────────┴────────┴─────────────────┴────────┴────────┴────────┴────────┴────────┘
|
||||
)
|
||||
|
||||
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
return state;
|
||||
}
|
||||
|
||||
#ifdef KEYBOARD_preonic_rev3
|
||||
#ifdef AUDIO_ENABLE
|
||||
float plover_song[][2] = SONG(PLOVER_SOUND);
|
||||
float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND);
|
||||
#endif
|
||||
|
||||
bool muse_mode = false;
|
||||
uint8_t last_muse_note = 0;
|
||||
uint16_t muse_counter = 0;
|
||||
uint8_t muse_offset = 70;
|
||||
uint16_t muse_tempo = 50;
|
||||
|
||||
void encoder_update_keymap(uint8_t index, bool clockwise) {
|
||||
if (muse_mode) {
|
||||
if (IS_LAYER_ON(_RAISE)) {
|
||||
if (clockwise) {
|
||||
muse_offset++;
|
||||
} else {
|
||||
muse_offset--;
|
||||
}
|
||||
} else {
|
||||
if (clockwise) {
|
||||
muse_tempo+=1;
|
||||
} else {
|
||||
muse_tempo-=1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (clockwise) {
|
||||
#ifdef MOUSEKEY_ENABLE
|
||||
tap_code(MC_WH_U);
|
||||
#else
|
||||
tap_code(KC_VOLU);
|
||||
#endif
|
||||
} else {
|
||||
#ifdef MOUSEKEY_ENABLE
|
||||
tap_code(MC_WH_D);
|
||||
#else
|
||||
tap_code(KC_VOLD);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void dip_switch_update_user(uint8_t index, bool active) {
|
||||
switch (index) {
|
||||
case 0: {
|
||||
#ifdef AUDIO_ENABLE
|
||||
static bool play_sound = false;
|
||||
#endif
|
||||
if (active) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
if (play_sound) { PLAY_SONG(plover_song); }
|
||||
#endif
|
||||
layer_on(_ADJUST);
|
||||
} else {
|
||||
#ifdef AUDIO_ENABLE
|
||||
if (play_sound) { PLAY_SONG(plover_gb_song); }
|
||||
#endif
|
||||
layer_off(_ADJUST);
|
||||
}
|
||||
#ifdef AUDIO_ENABLE
|
||||
play_sound = true;
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
if (active) {
|
||||
muse_mode = true;
|
||||
} else {
|
||||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void matrix_scan_keymap(void) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
if (muse_mode) {
|
||||
if (muse_counter == 0) {
|
||||
uint8_t muse_note = muse_offset + SCALE[muse_clock_pulse()];
|
||||
if (muse_note != last_muse_note) {
|
||||
stop_note(compute_freq_for_midi_note(last_muse_note));
|
||||
play_note(compute_freq_for_midi_note(muse_note), 0xF);
|
||||
last_muse_note = muse_note;
|
||||
}
|
||||
}
|
||||
muse_counter = (muse_counter + 1) % muse_tempo;
|
||||
} else {
|
||||
if (muse_counter) {
|
||||
stop_all_notes();
|
||||
muse_counter = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool music_mask_user(uint16_t keycode) {
|
||||
switch (keycode) {
|
||||
case RAISE:
|
||||
case LOWER:
|
||||
case MCO_LYR:
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
#endif
|
19
layouts/community/ortho_5x12/brandonschlack/readme.md
Normal file
19
layouts/community/ortho_5x12/brandonschlack/readme.md
Normal file
@ -0,0 +1,19 @@
|
||||
# brandonschlack's 5x12 Ortho Keymap
|
||||
|
||||
This layout takes inspiration from the Preonic and JNAO. It is macOS-centric, with Colemak and DVORAK removed as I don't use them.
|
||||
|
||||
## Keyboards Using This Layout
|
||||
|
||||
* [Preonic](https://github.com/qmk/qmk_firmware/tree/master/keyboards/planck)
|
||||
* [JNAO](https://github.com/qmk/qmk_firmware/tree/master/keyboards/planck) (FORCE_LAYOUT=ortho_5x12)
|
||||
|
||||
## Features
|
||||
|
||||
* *Enter* acts as *Right Shift* when held
|
||||
* On either **LOWER** or **RAISE** layers, tapping *Shift* will toggle *Caps Lock*, hold for Shift.
|
||||
* Bottom left key is *Hyper* (Shift+Control+Option+Command) which I use to map global shortcuts in macOS.
|
||||
* Holding *Esc* will also act as Hyper.
|
||||
* **ADJUST** Layer
|
||||
* Make command for compiling keyboard firmmware, a Reset key, and Debug toggle.
|
||||
* Mission Control, Launchpad, and Sleep Display macOS macros
|
||||
* Alt-Gui swapping
|
10
layouts/community/ortho_5x12/brandonschlack/rules.mk
Normal file
10
layouts/community/ortho_5x12/brandonschlack/rules.mk
Normal file
@ -0,0 +1,10 @@
|
||||
ifeq ($(strip $(KEYBOARD)), preonic/rev3)
|
||||
SRC += muse.c
|
||||
endif
|
||||
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
BACKLIGHT_ENABLE = no # No backlights installed
|
||||
|
||||
ifeq ($(strip $(KEYBOARD)), jnao)
|
||||
BOOTMAGIC_ENABLE = lite
|
||||
endif
|
20
layouts/community/tkl_ansi/brandonschlack/config.h
Normal file
20
layouts/community/tkl_ansi/brandonschlack/config.h
Normal file
@ -0,0 +1,20 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
// Explicit RGB Animation Mode Include
|
||||
#undef RGBLIGHT_ANIMATIONS
|
||||
#define RGBLIGHT_EFFECT_BREATHING // Only have Breathing Animation
|
102
layouts/community/tkl_ansi/brandonschlack/keymap.c
Normal file
102
layouts/community/tkl_ansi/brandonschlack/keymap.c
Normal file
@ -0,0 +1,102 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
#include "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬─┬───┬───┬───┬───┬─┬───┬───┬───┬───┬─┬───┬───┬───┐
|
||||
* │Esc│ │ F1│ F2│ F3│ F4│ │ F5│ F6│ F7│ F8│ │ F9│F10│F11│F12│ │F13│F14│F15│
|
||||
* ├───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┤
|
||||
* ├───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ ┌───┬───┬───┤
|
||||
* │~ `│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│ Bckspc│ │Ins│Hom│PgU│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ ├───┼───┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│| \│ │Del│End│PgD│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ └───┴───┴───┤
|
||||
* │HyCaps│ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤ ┌───┐ │
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│ Shift│ │ Up│ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ ┌───┼───┼───┤
|
||||
* │Ctrl│ Opt│ Cmd│ Space │Cmd │Opt │Fn │Ctrl│ │Lef│Dow│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_tkl_ansi( \
|
||||
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_F13, KC_F14, KC_F15, \
|
||||
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_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, \
|
||||
HY_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_LSFT, 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_LCTL, KC_LOPT, KC_LCMD, KC_SPC, RWD_CMD, FFD_OPT, PLY_FN1, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
/* Function Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬─┬───┬───┬───┬───┬─┬───┬───┬───┬───┬─┬───┬───┬───┐
|
||||
* │Mke│ │BrD│BrU│Msn│LHP│ │RV-│RV+│ │ │ │ │ │ │ │ │ │ │Mut│
|
||||
* ├───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┤
|
||||
* ├───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ ┌───┬───┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ Del │ │Ply│Slp│VlU│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ ├───┼───┼───┤
|
||||
* │RMod │RH+│RS+│RV+│AS+│ │ │ │ │ │ │ │ │ │ │Prv│Nxt│VlD│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ └───┴───┴───┤
|
||||
* │RTgl │RH-│RS-│RV-│AS-│ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤ ┌───┐ │
|
||||
* │ │LYR│Thm│ │ │RST│ │ │ │ │ │ │ │PgU│ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ ┌───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │Hom│PgD│End│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_tkl_ansi( \
|
||||
QM_MAKE, KC_BRMD, KC_BRMU, MC_MSSN, MC_LHPD, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DELT, KC_MPLY, MC_SLPD, KC_VOLU, \
|
||||
RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_MNXT, KC_VOLD, \
|
||||
RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, RGB_LYR, RGB_THM, _______, _______, RESET, _______, _______, _______, _______, _______, _______, KC_PGUP, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END \
|
||||
)
|
||||
/* Blank Template
|
||||
* ┌───┬───┬───┬───┬───┬───┬─┬───┬───┬───┬───┬─┬───┬───┬───┬───┬─┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┤
|
||||
* ├───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ ┌───┬───┬───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ ├───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ └───┴───┴───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤ ┌───┐ │
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ ┌───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┴─┴───┴───┴───┘
|
||||
*/
|
||||
/*
|
||||
[BLANK] = LAYOUT_tkl_ansi( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
)
|
||||
*/
|
||||
};
|
||||
|
||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
|
||||
}
|
55
layouts/community/tkl_ansi/brandonschlack/readme.md
Normal file
55
layouts/community/tkl_ansi/brandonschlack/readme.md
Normal file
@ -0,0 +1,55 @@
|
||||
# brandonschlack's TKL ANSI layout
|
||||
|
||||
A mostly typical Mac setup, with some personal QMK touches.
|
||||
|
||||
## Base Layer
|
||||
|
||||
The base layer has a standard macOS modifier layout, with **F13-F15** in the F row, in place of **Print Screen**, **Scroll Lock**, and **Pause/Break**.
|
||||
|
||||
### [Mod-Taps](https://docs.qmk.fm/#/feature_advanced_keycodes?id=mod-tap)
|
||||
|
||||
* Hyper Caps Lock
|
||||
* Hold **Caps Lock** for '**Hyper**' (**Shift**+**Control**+**Option**+**Command**). I use it for mapping global shortcuts for apps.
|
||||
* Tapping **Caps Lock** functions normally
|
||||
* Media controls mapped to Right Modifiers
|
||||
* **Right Command** for **Prev Track**
|
||||
* **Right Option** for **Next Track**
|
||||
* **Fn** for **Play/Pause**
|
||||
|
||||
## Function Layer
|
||||
|
||||
The Function layer is a mix of [Apple's *Fn* shortcuts](https://support.apple.com/en-us/HT201236), [WASD Keyboard's Media shortcuts](https://codekeyboards.com/#multimedia), and some QMK functionality.
|
||||
|
||||
### [Apple's *Fn* shortcuts](https://support.apple.com/en-us/HT201236)
|
||||
|
||||
* **Home/Page Down/Page Up/End** as **Fn+Left/Down/Up/Right**
|
||||
* **Foward Delete** as **Fn+Backspace**
|
||||
* **Display Brightness Down/Up** as **Fn+F1/F2**
|
||||
* **Misson Control** (*KC_FIND, but use [Karabiner-Elements](https://pqrs.org/osx/karabiner/index.html) as find -> mission_control*) as **Fn+F3**
|
||||
* **Launchpad** (*KC_MENU, but use [Karabiner-Elements](https://pqrs.org/osx/karabiner/index.html) as menu -> launchpad*) as **Fn+F4**
|
||||
* Keyboard Illumination Down/Up used as **RGB Underglow Value Decrease/Increase** on **Fn+F5/F6**
|
||||
|
||||
### [WASD Keyboard's Media shortcuts](https://codekeyboards.com/#multimedia)
|
||||
|
||||
* **Play/Pause** as **Fn+Insert**
|
||||
* **Prev/Next Track** as **Fn+Delete/End**
|
||||
* **Volume Up/Down** as **Fn+Page Up/Page Down**
|
||||
* **Volume Mute** as **Fn+F15**
|
||||
|
||||
### Personal & QMK shortcuts
|
||||
|
||||
* **Sleep Display** (Shift+Control+Power) as **Fn+Home**.
|
||||
* **QMK Make** as **Fn+Esc**. Sends make command to command line. Holding **Shift** will also append `:flash` target and put keyboard into bootloader.
|
||||
* **Reset** as **Fn+B**
|
||||
|
||||
### RGB Controls
|
||||
|
||||
* **RGB Toggle** as **Fn+Caps Lock**
|
||||
* **RGB Hue Increase/Decrease** as **Fn+Q/A**
|
||||
* **RGB Saturation Increase/Decrease** as **Fn+W/S**
|
||||
* **RGB Value Increase/Decrease** as **Fn+E/D**
|
||||
* **RGB Mode Next/Previous** as **Fn+Tab/Shift+Tab**
|
||||
* **RGB Toggle Layer Indication** as **Fn+Z**
|
||||
* Changes RGB Color with Layer change (*uses custom RGB_THEME*).
|
||||
* **RGB Cycle Next Theme** as **Fn+X**
|
||||
|
4
layouts/community/tkl_ansi/brandonschlack/rules.mk
Normal file
4
layouts/community/tkl_ansi/brandonschlack/rules.mk
Normal file
@ -0,0 +1,4 @@
|
||||
# Build Options
|
||||
CONSOLE_ENABLE = yes # Enable Console for Debugging
|
||||
MOUSEKEY_ENABLE = no # Don't need Mouse Keys
|
||||
BACKLIGHT_ENABLE = no # Backlights not installed
|
214
users/brandonschlack/brandonschlack.c
Normal file
214
users/brandonschlack/brandonschlack.c
Normal file
@ -0,0 +1,214 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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 "brandonschlack.h"
|
||||
|
||||
user_config_t user_config;
|
||||
#ifdef STOPLIGHT_LED
|
||||
static stoplight_led_t stoplight_led;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Resets user config in EEPROM
|
||||
*
|
||||
* Default is use rgb for layer indication
|
||||
*/
|
||||
void eeconfig_init_user(void) {
|
||||
user_config.raw = 0;
|
||||
user_config.rgb_layer_change = true;
|
||||
user_config.rgb_theme = 0;
|
||||
eeconfig_update_user(user_config.raw);
|
||||
}
|
||||
|
||||
__attribute__((weak))
|
||||
void matrix_init_keymap(void){ }
|
||||
|
||||
void matrix_init_user(void) {
|
||||
matrix_init_keymap();
|
||||
}
|
||||
|
||||
__attribute__((weak))
|
||||
void keyboard_post_init_keymap(void){ }
|
||||
|
||||
/**
|
||||
* Reads user config from EEPROM,
|
||||
* calls RGB init if RGBs enabled
|
||||
*/
|
||||
void keyboard_post_init_user(void){
|
||||
// Read the user config from EEPROM
|
||||
user_config.raw = eeconfig_read_user();
|
||||
// Do Stoplight Animation if enabled
|
||||
#ifdef STOPLIGHT_LED
|
||||
led_stoplight_start();
|
||||
#endif
|
||||
// Do RGB things if RGBs enabled
|
||||
#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
|
||||
keyboard_post_init_rgb();
|
||||
#endif
|
||||
keyboard_post_init_keymap();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void shutdown_keymap(void) {}
|
||||
|
||||
/**
|
||||
* On shutdown,
|
||||
* If RGBs enabled,
|
||||
* then set RGB color to Red
|
||||
*/
|
||||
void shutdown_user (void) {
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
rgblight_enable_noeeprom();
|
||||
rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);
|
||||
rgblight_sethsv_noeeprom(0, 255, 127);
|
||||
#endif // RGBLIGHT_ENABLE
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
rgb_matrix_set_color_all( 0xFF, 0x00, 0x00 );
|
||||
#endif //RGB_MATRIX_ENABLE
|
||||
shutdown_keymap();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void suspend_power_down_keymap(void) {}
|
||||
|
||||
/**
|
||||
* Set rgb_matrix suspend state to true if not already
|
||||
*/
|
||||
void suspend_power_down_user(void) {
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
if (!g_suspend_state) {
|
||||
rgb_matrix_set_suspend_state(true);
|
||||
}
|
||||
#endif //RGB_MATRIX_ENABLE
|
||||
suspend_power_down_keymap();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void suspend_wakeup_init_keymap(void) {}
|
||||
|
||||
/**
|
||||
* Set rgb_matrix suspend state to false if not already
|
||||
*/
|
||||
void suspend_wakeup_init_user(void) {
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
if (g_suspend_state) {
|
||||
rgb_matrix_set_suspend_state(false);
|
||||
}
|
||||
#endif //RGB_MATRIX_ENABLE
|
||||
suspend_wakeup_init_keymap();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void matrix_scan_keymap(void) {}
|
||||
|
||||
/**
|
||||
* Checks for Super CMD↯TAB
|
||||
*/
|
||||
void matrix_scan_user(void) {
|
||||
matrix_scan_cmd_tab();
|
||||
#ifdef STOPLIGHT_LED
|
||||
matrix_scan_led_stoplight();
|
||||
#endif
|
||||
matrix_scan_keymap();
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
layer_state_t default_layer_state_set_keymap(layer_state_t state) {
|
||||
return state;
|
||||
}
|
||||
|
||||
/**
|
||||
* For macropads, if a new default layer is set from DF()
|
||||
* then automatically set that layer with layer_move()
|
||||
*/
|
||||
layer_state_t default_layer_state_set_user(layer_state_t state) {
|
||||
#if defined(IS_MACROPAD)
|
||||
layer_move(get_highest_layer(state));
|
||||
#endif
|
||||
return default_layer_state_set_keymap(state);
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
return state;
|
||||
}
|
||||
|
||||
/**
|
||||
* Do RGB things (like layer indication) on layer change
|
||||
*/
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
|
||||
state = layer_state_set_rgb(state);
|
||||
#endif // RGBLIGHT_ENABLE
|
||||
return layer_state_set_keymap(state);
|
||||
}
|
||||
|
||||
__attribute__((weak)) bool led_update_keymap(led_t led_state) { return true; }
|
||||
|
||||
bool led_update_user(led_t led_state) {
|
||||
#ifdef STOPLIGHT_LED
|
||||
if (stoplight_led.is_active) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
return led_update_keymap(led_state);
|
||||
}
|
||||
|
||||
#ifdef STOPLIGHT_LED
|
||||
void led_stoplight_start(void) {
|
||||
writePin(TOP_LED, LED_ON(false));
|
||||
writePin(MIDDLE_LED, LED_ON(false));
|
||||
writePin(BOTTOM_LED, LED_ON(false));
|
||||
|
||||
stoplight_led.is_active = true;
|
||||
stoplight_led.timer = timer_read();
|
||||
};
|
||||
|
||||
void led_stoplight_set(pin_t pin) {
|
||||
writePin(pin, LED_ON(true));
|
||||
};
|
||||
|
||||
void led_stoplight_end(void) {
|
||||
// Reset timer and status variables
|
||||
stoplight_led.is_active = false;
|
||||
stoplight_led.index = 0;
|
||||
stoplight_led.timer = 0;
|
||||
led_update_kb(host_keyboard_led_state());
|
||||
};
|
||||
|
||||
void matrix_scan_led_stoplight(void) {
|
||||
if (stoplight_led.is_active) {
|
||||
if (timer_elapsed(stoplight_led.timer) > (1000 * (stoplight_led.index + 1))) {
|
||||
switch (stoplight_led.index){
|
||||
case 0:
|
||||
led_stoplight_set(TOP_LED);
|
||||
stoplight_led.index++;
|
||||
break;
|
||||
case 1:
|
||||
led_stoplight_set(MIDDLE_LED);
|
||||
stoplight_led.index++;
|
||||
break;
|
||||
case 2:
|
||||
led_stoplight_set(BOTTOM_LED);
|
||||
stoplight_led.index++;
|
||||
break;
|
||||
default:
|
||||
led_stoplight_end();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
#endif
|
83
users/brandonschlack/brandonschlack.h
Normal file
83
users/brandonschlack/brandonschlack.h
Normal file
@ -0,0 +1,83 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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"
|
||||
#include "version.h"
|
||||
#include "eeprom.h"
|
||||
#include "process_records.h"
|
||||
#ifdef TAP_DANCE_ENABLE
|
||||
# include "tap_dances.h"
|
||||
#endif // TAP_DANCE_ENABLE
|
||||
#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
|
||||
# include "rgb_bs.h"
|
||||
#endif
|
||||
|
||||
/* TODO Layer Names */
|
||||
enum bs_layers {
|
||||
_BASE = 0,
|
||||
_M1 = 1,
|
||||
_M2 = 2,
|
||||
_M3 = 3,
|
||||
_M4 = 4,
|
||||
_FN1 = 5,
|
||||
_M1_FN1 = 6,
|
||||
_M2_FN1 = 7,
|
||||
_M3_FN1 = 8,
|
||||
_M4_FN1 = 9,
|
||||
_FN2 = 10,
|
||||
_M1_FN2 = 11,
|
||||
_M2_FN2 = 12,
|
||||
_M3_FN2 = 13,
|
||||
_M4_FN2 = 14,
|
||||
_ADJUST = 15 // 15: Change keyboard settings
|
||||
};
|
||||
|
||||
#define _LOWER _FN1
|
||||
#define _RAISE _FN2
|
||||
|
||||
/* TODO User EECONFIG */
|
||||
typedef union {
|
||||
uint32_t raw;
|
||||
struct {
|
||||
bool rgb_layer_change :1;
|
||||
uint8_t rgb_theme :4;
|
||||
};
|
||||
} user_config_t;
|
||||
extern user_config_t user_config;
|
||||
|
||||
void matrix_init_keymap(void);
|
||||
void keyboard_post_init_keymap(void);
|
||||
void shutdown_keymap(void);
|
||||
void suspend_power_down_keymap(void);
|
||||
void suspend_wakeup_init_keymap(void);
|
||||
void matrix_scan_keymap(void);
|
||||
layer_state_t default_layer_state_set_keymap(layer_state_t state);
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state);
|
||||
bool led_update_keymap(led_t led_state);
|
||||
|
||||
#ifdef STOPLIGHT_LED
|
||||
typedef struct {
|
||||
bool is_active :1;
|
||||
uint8_t index :7;
|
||||
uint16_t timer :16;
|
||||
} stoplight_led_t;
|
||||
|
||||
void led_stoplight_start(void);
|
||||
void led_stoplight_set(pin_t pin);
|
||||
void led_stoplight_end(void);
|
||||
void matrix_scan_led_stoplight(void);
|
||||
#endif
|
55
users/brandonschlack/config.h
Normal file
55
users/brandonschlack/config.h
Normal file
@ -0,0 +1,55 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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
|
||||
|
||||
#define TAPPING_TOGGLE 2
|
||||
#define TAPPING_TERM 200
|
||||
#define PERMISSIVE_HOLD
|
||||
#define TAP_HOLD_CAPS_DELAY 200
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
# define RGBLIGHT_SLEEP
|
||||
#endif
|
||||
|
||||
#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE) && !defined(RGBLIGHT_LAYERS)
|
||||
# define RGB_THEME_ENABLE
|
||||
#endif
|
||||
|
||||
#ifdef RGB_THEME_ENABLE
|
||||
# define DISABLE_RGB_THEME_JAMON
|
||||
# define DISABLE_RGB_THEME_OBLIQUE
|
||||
#endif
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
# define TAP_CODE_DELAY 10
|
||||
#else
|
||||
# define TAP_CODE_DELAY 5
|
||||
#endif
|
||||
|
||||
/* Disable unused and unneeded features to reduce on firmware size */
|
||||
#ifndef NO_ACTION_MACRO
|
||||
# define NO_ACTION_MACRO
|
||||
#endif
|
||||
#ifndef NO_ACTION_FUNCTION
|
||||
# define NO_ACTION_FUNCTION
|
||||
#endif
|
||||
|
||||
#ifdef LOCKING_SUPPORT_ENABLE
|
||||
# undef LOCKING_SUPPORT_ENABLE
|
||||
#endif
|
||||
#ifdef LOCKING_RESYNC_ENABLE
|
||||
# undef LOCKING_RESYNC_ENABLE
|
||||
#endif
|
172
users/brandonschlack/process_records.c
Normal file
172
users/brandonschlack/process_records.c
Normal file
@ -0,0 +1,172 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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 "brandonschlack.h"
|
||||
|
||||
// Super CMD↯TAB
|
||||
bool is_cmd_tab_active = false;
|
||||
uint16_t cmd_tab_timer = 0;
|
||||
|
||||
__attribute__ ((weak))
|
||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Consolidated Macros
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QM_MAKE: // Sends 'qmk compile' or 'qmk flash'
|
||||
if (record->event.pressed) {
|
||||
bool flash = false;
|
||||
// If is a keyboard and auto-flash is not set in rules.mk,
|
||||
// then Shift will trigger the flash command
|
||||
#if !defined(FLASH_BOOTLOADER) && !defined(IS_MACROPAD)
|
||||
uint8_t temp_mod = get_mods();
|
||||
uint8_t temp_osm = get_oneshot_mods();
|
||||
clear_mods();
|
||||
clear_oneshot_mods();
|
||||
if ( (temp_mod | temp_osm) & MOD_MASK_SHIFT )
|
||||
#endif
|
||||
{
|
||||
flash = true;
|
||||
}
|
||||
send_make_command(flash);
|
||||
}
|
||||
break;
|
||||
case QM_FLSH: // Sends flash command instead of compile
|
||||
if (record->event.pressed) {
|
||||
clear_mods();
|
||||
clear_oneshot_mods();
|
||||
send_make_command(true);
|
||||
}
|
||||
break;
|
||||
case QM_VRSN: // Prints firmware version
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION ", Built on: " QMK_BUILDDATE);
|
||||
}
|
||||
break;
|
||||
case QM_KYBD: // Prints keyboard path
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("keyboards/" QMK_KEYBOARD "/");
|
||||
}
|
||||
break;
|
||||
case QM_KYMP: // Prints keymap path
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("keyboards/" QMK_KEYBOARD "/keymaps/" QMK_KEYMAP "/keymap.c");
|
||||
}
|
||||
break;
|
||||
case CMD_TAB: // Super CMD↯TAB
|
||||
if (record->event.pressed) {
|
||||
if (!is_cmd_tab_active) {
|
||||
is_cmd_tab_active = true;
|
||||
register_code(KC_LGUI);
|
||||
}
|
||||
cmd_tab_timer = timer_read();
|
||||
register_code(KC_TAB);
|
||||
} else {
|
||||
unregister_code(KC_TAB);
|
||||
}
|
||||
break;
|
||||
#if defined(RGB_THEME_ENABLE)
|
||||
case RGB_LYR:
|
||||
if (record->event.pressed) {
|
||||
user_config.rgb_layer_change ^= 1;
|
||||
dprintf("rgb layer change [EEPROM]: %u\n", user_config.rgb_layer_change);
|
||||
eeconfig_update_user(user_config.raw);
|
||||
if (user_config.rgb_layer_change) {
|
||||
layer_state_set(layer_state);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case RGB_HUI ... RGB_SAD:
|
||||
if (record->event.pressed) {
|
||||
if (user_config.rgb_layer_change) {
|
||||
user_config.rgb_layer_change = false;
|
||||
dprintf("rgb layer change [EEPROM]: %u\n", user_config.rgb_layer_change);
|
||||
eeconfig_update_user(user_config.raw);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case RGB_THEME_FORWARD:
|
||||
if (record->event.pressed) {
|
||||
uint8_t shifted = get_mods() & (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT));
|
||||
if(shifted) {
|
||||
rgb_theme_step_reverse();
|
||||
} else {
|
||||
rgb_theme_step();
|
||||
}
|
||||
layer_state_set(layer_state);
|
||||
}
|
||||
break;
|
||||
case RGB_THEME_REVERSE:
|
||||
if (record->event.pressed) {
|
||||
uint8_t shifted = get_mods() & (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT));
|
||||
if(shifted) {
|
||||
rgb_theme_step();
|
||||
} else {
|
||||
rgb_theme_step_reverse();
|
||||
}
|
||||
layer_state_set(layer_state);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
return process_record_keymap(keycode, record);
|
||||
}
|
||||
|
||||
// Super CMD↯TAB
|
||||
void matrix_scan_cmd_tab(void) {
|
||||
if (is_cmd_tab_active) {
|
||||
if (timer_elapsed(cmd_tab_timer) > 500) {
|
||||
unregister_code(KC_LGUI);
|
||||
is_cmd_tab_active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Send Make Command
|
||||
*
|
||||
* Sends 'qmk compile -kb keyboard -km keymap' command to compile firmware
|
||||
* Uses 'qmk flash' and resets keyboard, if flash_bootloader set to true
|
||||
* Sends CTPC and/or FORCE_LAYOUT parameters if built with those options
|
||||
*/
|
||||
void send_make_command(bool flash_bootloader) {
|
||||
#ifdef FORCE_LAYOUT // Add layout string if built with FORCE_LAYOUT
|
||||
SEND_STRING("FORCE_LAYOUT=" FORCE_LAYOUT " ");
|
||||
#endif
|
||||
#ifdef CONVERT_TO_PROTON_C // Add CTPC if built with CONVERT_TO_PROTON_C
|
||||
SEND_STRING("CTPC=yes ");
|
||||
#endif
|
||||
SEND_STRING("qmk ");
|
||||
if (flash_bootloader) {
|
||||
#ifndef KEYBOARD_massdrop // Don't run flash for Massdrop boards
|
||||
SEND_STRING("flash ");
|
||||
} else {
|
||||
#endif
|
||||
SEND_STRING("compile ");
|
||||
}
|
||||
SEND_STRING("-kb " QMK_KEYBOARD " ");
|
||||
SEND_STRING("-km " QMK_KEYMAP);
|
||||
if (flash_bootloader) {
|
||||
#if defined(KEYBOARD_massdrop) // only run for Massdrop boards
|
||||
SEND_STRING(" && mdlflash " QMK_KEYBOARD " " QMK_KEYMAP);
|
||||
#endif
|
||||
}
|
||||
SEND_STRING(SS_TAP(X_ENTER));
|
||||
if (flash_bootloader) {
|
||||
reset_keyboard();
|
||||
}
|
||||
}
|
152
users/brandonschlack/process_records.h
Normal file
152
users/brandonschlack/process_records.h
Normal file
@ -0,0 +1,152 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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 "brandonschlack.h"
|
||||
|
||||
// Macros
|
||||
enum custom_keycodes {
|
||||
QM_MAKE = SAFE_RANGE,
|
||||
QM_FLSH,
|
||||
QM_VRSN,
|
||||
QM_KYBD,
|
||||
QM_KYMP,
|
||||
CMD_TAB,
|
||||
RGB_LYR,
|
||||
RGB_THEME_FORWARD,
|
||||
RGB_THEME_REVERSE,
|
||||
KEYMAP_SAFE_RANGE
|
||||
};
|
||||
|
||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record);
|
||||
void matrix_scan_cmd_tab(void);
|
||||
|
||||
/**
|
||||
* QMK Defines
|
||||
* Some meta aliases for QMK features such as Mod-Taps
|
||||
* and for cleaner looking Layer Toggles
|
||||
*/
|
||||
/* Control Mod-Tap */
|
||||
#define CTL_ESC CTL_T(KC_ESC) // Hold Escape for Control
|
||||
#define CTL_TAB CTL_T(KC_TAB) // Hold Tab for Control
|
||||
#define CTL_CAP CTL_T(KC_CAPS) // Hold Caps Lock for Control
|
||||
/* Command Mod-Tap */
|
||||
#define CMD_ESC CMD_T(KC_ESC) // Hold Escape for Command
|
||||
#define CMD_CAP CMD_T(KC_CAPS) // Hold Caps Lock for Command
|
||||
#define CMD_SPC CMD_T(KC_SPC) // Hold Space for Command
|
||||
/* Hyper Mod-Tap */
|
||||
#define HY_ESC ALL_T(KC_ESC) // Hold Escape for Hyper (Shift-Control-Option-Command)
|
||||
#define HY_TAB ALL_T(KC_TAB) // Hold Tab for Hyper (Shift-Control-Option-Command)
|
||||
#define HY_CAPS ALL_T(KC_CAPS) // Hold Caps Lock for Hyper (Shift-Control-Option-Command)
|
||||
/* Shift Mod-Tap */
|
||||
#define SF_CAPS LSFT_T(KC_CAPS) // Hold Caps Lock for Left Shift
|
||||
#define SFT_ENT RSFT_T(KC_ENT) // Hold Enter for Right Shift
|
||||
#define SF_SLSH RSFT_T(KC_SLSH) // Tap Right Shift for Slash (/)
|
||||
#define SF_BSLS RSFT_T(KC_BSLS) // Tap Right Shift for Back Slash (\)
|
||||
/* Layer Aliases */
|
||||
#define FN_LYR MO(_FN1) // Hold for FN Layer
|
||||
#define FN2_LYR MO(_FN2) // Hold for FN2 Layer
|
||||
#define LOWER MO(_LOWER) // Hold for LOWER Layer
|
||||
#define RAISE MO(_RAISE) // Hold for RAISE Layer
|
||||
#define TT_FN TT(_FN1) // Hold for FN Layer, or Double-Tap to Toggle
|
||||
#define TT_FN2 TT(_FN2) // Hold for FN2 Layer, or Double-Tap to Toggle
|
||||
#define TT_LWR TT(_LOWER) // Hold for LOWER Layer, or Double-Tap to Toggle
|
||||
#define TT_RAI TT(_RAISE) // Hold for RAISE Layer, or Double-Tap to Toggle
|
||||
#define SPC_LWR LT(_LOWER, KC_SPC) // Tap for Space, Hold for LOWER Layer
|
||||
#define SPC_RAI LT(_RAISE, KC_SPC) // Tap for Space, Hold for RAISE Layer
|
||||
#define SLH_LWR LT(_LOWER, KC_SLSH) // Tap for /, Hold for LOWER Layer
|
||||
#define BSL_LWR LT(_LOWER, KC_BSLS) // Tap for \, Hold for LOWER Layer
|
||||
#define MCO_LYR MO(_MACRO) // Hold for MACRO Layer
|
||||
#define TG_ADJT TG(_ADJUST) // Toggle ADJUST Layer
|
||||
#define TG_LGHT TG(_LIGHT) // Toggle LIGHT Layer
|
||||
/**
|
||||
* Media Mod-Tap
|
||||
* Use the Mod-Tap feature for easy media controls
|
||||
* Used with >=65% layouts
|
||||
*/
|
||||
#define RWD_CMD RCMD_T(KC_MPRV) // Tap Right Command for Prev Track
|
||||
#define PLY_CMD RCMD_T(KC_MPLY) // Tap Right Command for Play/Pause
|
||||
#define FFD_OPT ROPT_T(KC_MNXT) // Tap Right Option for Next Track
|
||||
#define PLY_FN1 LT(_FN1, KC_MPLY) // Tap Fn for Play/Pause
|
||||
#define PLY_FN2 LT(_FN2, KC_MPLY) // Tap Fn2 for Play/Pause
|
||||
#define MUT_SFT RSFT_T(KC_MUTE) // Tap Right Shift for Mute
|
||||
/**
|
||||
* Arrow Mod-Tap
|
||||
* Use the Mod-Tap feature for arrow keys
|
||||
* Mostly used for 40-60% layouts
|
||||
*/
|
||||
#define UP_RSFT RSFT_T(KC_UP) // Tap Right Shift for Up
|
||||
#define LFT_OPT ROPT_T(KC_LEFT) // Tap Right Option for Left
|
||||
#define LFT_CMD RCMD_T(KC_LEFT) // Tap Right Command for Left
|
||||
#define DWN_FN1 LT(1, KC_DOWN) // Tap Fn for Down
|
||||
#define DWN_LWR DWN_FN1 // Tap Lower for Down
|
||||
#define DWN_FN2 LT(2, KC_DOWN) // Tap Fn2 for Down
|
||||
#define DWN_RAI DWN_FN2 // Tap Raise for Down
|
||||
#define DWN_OPT ROPT_T(KC_DOWN) // Tap Right Option for Down
|
||||
#define RGT_SFT RSFT_T(KC_RGHT) // Tap Right Shift for Right
|
||||
#define RGT_OPT ROPT_T(KC_RGHT) // Tap Right Option for Right
|
||||
#define RGT_CTL RCTL_T(KC_RGHT) // Tap Right Ctrl for Right
|
||||
/**
|
||||
* Nav Mod-Tap
|
||||
* Use the Mod-Tap feature for nav keys (Home/End, Page Up/Down)
|
||||
* Mostly used for 40-60% layouts, on a function layer
|
||||
*/
|
||||
#define PGU_SFT RSFT_T(KC_PGUP) // Tap Right Shift for Page Up
|
||||
#define HOM_OPT ROPT_T(KC_HOME) // Tap Right Option for Home
|
||||
#define HOM_CMD RCMD_T(KC_HOME) // Tap Right Command for Home
|
||||
#define PGD_OPT ROPT_T(KC_PGDN) // Tap Right Option for Page Down
|
||||
#define PGD_FN1 LT(1, KC_PGDN) // Tap Fn for Page Down
|
||||
#define PGD_LWR PGD_FN1 // Tap Lower for Page Down
|
||||
#define PGD_FN2 LT(2, KC_PGDN) // Tap Fn2 for Page Down
|
||||
#define PGD_RAI PGD_FN2 // Tap Raise for Page Down
|
||||
#define END_OPT ROPT_T(KC_END) // Tap Right Option for End
|
||||
#define END_CTL RCTL_T(KC_END) // Tap Right Control for End
|
||||
|
||||
/**
|
||||
* MacOS
|
||||
* Common shortcuts used in macOS
|
||||
* Reference: https://support.apple.com/en-us/HT201236
|
||||
*/
|
||||
#define MC_POWR KC_POWER // Power (KC_POWER)
|
||||
#define MC_SLEP LOPT(LCMD(KC_POWER)) // Sleep (Option-Command-Power)
|
||||
#define MC_SLPD LCTL(LSFT(KC_POWER)) // Sleep Display (Control-Shift-Power)
|
||||
#define MC_LOCK LCTL(LCMD(KC_Q)) // Lock Screen (Control-Command-Q)
|
||||
#define MC_MSSN KC_FIND // Mission Control: Configure karabiner for find -> mission_control
|
||||
#define MC_LHPD KC_MENU // Launchpad: Configure karabiner for menu -> launchpad
|
||||
#define MC_CMTB LCMD(KC_TAB) // Command-Tab
|
||||
#define MC_BACK LCMD(KC_LBRC) // Back (Command–Left Bracket)
|
||||
#define MC_FWRD LCMD(KC_RBRC) // Forward (Command–Right Bracket)
|
||||
#define CLS_TAB LCMD(KC_W) // Close Tab (Command–W)
|
||||
#define REO_TAB LSFT(LCMD(KC_T)) // Reopen Last Tab (Shift-Command-T)
|
||||
#define NXT_TAB LCTL(KC_TAB) // Next Tab (Control-Tab)
|
||||
#define PRV_TAB LSFT(LCTL(KC_TAB)) // Previous Tab (Shift-Control-Tab)
|
||||
#define NXT_WIN LCMD(KC_GRV) // Next Window (Control-Grave)
|
||||
#define PRV_WIN LCMD(KC_TILD) // Previous Window (Shift-Control-Grave)
|
||||
#define MC_PLYR LCMD(KC_F8) // Focuses current Media Player
|
||||
#define MC_UNDO LCMD(KC_Z) // Undo (Command-Z)
|
||||
#define MC_REDO LSFT(LCMD(KC_Z)) // Redo (Shift-Command-Z)
|
||||
#define OP_AFLL HYPR(KC_BSLS) // 1Password Autofill (Shift-Control-Option-Command-\)
|
||||
#define PX_AFLL LSFT(LOPT(KC_X)) // 1PasswordX Autofill (Shift-Option-X)
|
||||
// Reverse scrolling for using with macOS Natural Scrolling.
|
||||
#define MC_WH_U KC_WH_D // Mouse Wheel Up
|
||||
#define MC_WH_D KC_WH_U // Mouse Wheel Down
|
||||
#define MC_WH_L KC_WH_R // Mouse Wheel Left
|
||||
#define MC_WH_R KC_WH_L // Mouse Wheel Right
|
||||
|
||||
// RGB Theme
|
||||
#define RGB_THM RGB_THEME_FORWARD // Cycle next RGB_THEME
|
||||
#define RGB_RTHM RGB_THEME_REVERSE // Cycle previous RGB_THEME
|
||||
|
||||
void send_make_command(bool flash_bootloader);
|
48
users/brandonschlack/readme.md
Normal file
48
users/brandonschlack/readme.md
Normal file
@ -0,0 +1,48 @@
|
||||
# Overview
|
||||
|
||||
My QMK home. I feel as though I stand on the shoulders of giants, for a lot of my code here is borrowed and adapted from so many contributors here, and that I hope my code here can help or inspire others.
|
||||
|
||||
## Layers, Handlers, and Macros
|
||||
### Layers
|
||||
|
||||
I have some predefined layer names for keyboards:
|
||||
* **_BASE**: Default Layer, QWERTY layout.
|
||||
* **_FN1**: Function Layer for 60% and above, and additional macros and shortcuts on 50% and below.
|
||||
* **_LOWER** and **_RAISE**: Function layers for 40%
|
||||
|
||||
and macropads:
|
||||
* **_REEDER**: Shortcuts for [Reeder.app](https://reederapp.com/), my RSS feed reader
|
||||
* **_MEDIA**: Media controls
|
||||
* **_NAVI**: Navigation macros, for changing tabs and scrolling
|
||||
* **_KARABINER**: Generic macro keys, meant to be customized per app with [Karabiner](https://pqrs.org/osx/karabiner/)
|
||||
|
||||
#### Protected Layers
|
||||
I have some named "protected" layers, meant to be at the end of the layer list for changing keyboard settings and features.
|
||||
|
||||
* **KEYMAP_LAYERS**: Add additional layers in keymap.
|
||||
* **_AUDIO**: Audio feature controls.
|
||||
* **_LIGHT**: RGB Light/Matrix feature controls.
|
||||
* **_ADJUST**: General keyboard settings and toggles. Can also contain RGB and Audio controls on larger boards that don't need and extra layer for those controls.
|
||||
|
||||
### EEPROM User Config
|
||||
|
||||
I have a custom userspace config implemented to save settings on the board to persist across shutdowns. I currently store:
|
||||
|
||||
* rgb_layer_change - a toggle for using RGB themes for layer indication
|
||||
* rgb_theme - a pointer to the currently set RGB Theme
|
||||
|
||||
### Process Handlers
|
||||
|
||||
### Keycode Aliases
|
||||
|
||||
I am a macOS user and so a lot of my aliases are
|
||||
|
||||
### Macros
|
||||
|
||||
|
||||
## Tap Dances
|
||||
|
||||
### Tap Dance Trigger Layer
|
||||
|
||||
## RGB
|
||||
### RGB Theme
|
146
users/brandonschlack/rgb_bs.c
Normal file
146
users/brandonschlack/rgb_bs.c
Normal file
@ -0,0 +1,146 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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 "brandonschlack.h"
|
||||
#include "rgb_theme.h"
|
||||
#include "rgb_bs.h"
|
||||
|
||||
#if defined(RGBLIGHT_ENABLE)
|
||||
extern rgblight_config_t rgblight_config;
|
||||
#elif defined(RGB_MATRIX_ENABLE)
|
||||
extern rgb_config_t rgb_matrix_config;
|
||||
extern bool g_suspend_state;
|
||||
extern led_config_t g_led_config;
|
||||
#endif
|
||||
|
||||
#if defined(RGB_THEME_ENABLE)
|
||||
// Should be rgb_theme.c
|
||||
#define RGB_THEME(name) const rgb_theme_t RGB_##name
|
||||
#define RGB_THEME_IMPLS
|
||||
#include "rgb_theme_user.inc"
|
||||
#undef RGB_THEME_IMPLS
|
||||
#undef RGB_THEME
|
||||
|
||||
#define RGB_THEME(name) [RGB_THEME_##name] = &RGB_##name,
|
||||
const rgb_theme_t *themes[] = {
|
||||
#include "rgb_theme_user.inc"
|
||||
};
|
||||
#undef RGB_THEME
|
||||
|
||||
// Userspace loose colors
|
||||
rgb_theme_color_t default_adjust = { HSV_SPRINGGREEN };
|
||||
#endif
|
||||
|
||||
void keyboard_post_init_rgb(void) {
|
||||
layer_state_set_user(layer_state);
|
||||
}
|
||||
|
||||
#if defined(RGB_THEME_ENABLE)
|
||||
void set_rgb_theme(uint8_t index) {
|
||||
if (!user_config.rgb_layer_change) {
|
||||
user_config.rgb_layer_change = true;
|
||||
}
|
||||
user_config.rgb_theme = index;
|
||||
dprintf("rgb theme [EEPROM]: %u\n", user_config.rgb_theme);
|
||||
eeconfig_update_user(user_config.raw);
|
||||
}
|
||||
|
||||
rgb_theme_t get_rgb_theme(void) {
|
||||
return *themes[user_config.rgb_theme];
|
||||
}
|
||||
|
||||
void rgb_theme_step(void) {
|
||||
uint8_t current = user_config.rgb_theme;
|
||||
current = (current + 1) % RGB_THEME_MAX;
|
||||
set_rgb_theme(current);
|
||||
}
|
||||
|
||||
void rgb_theme_step_reverse(void) {
|
||||
uint8_t current = user_config.rgb_theme;
|
||||
current = (current - 1) % RGB_THEME_MAX;
|
||||
set_rgb_theme(current);
|
||||
}
|
||||
|
||||
rgb_theme_color_t get_rgb_theme_color(uint8_t index) {
|
||||
rgb_theme_t theme = get_rgb_theme();
|
||||
size_t rgb_theme_color_max = sizeof theme.colors / sizeof *theme.colors;
|
||||
|
||||
if (index == _ADJUST) {
|
||||
return default_adjust;
|
||||
} else {
|
||||
return **(theme.colors + (index % rgb_theme_color_max));
|
||||
}
|
||||
};
|
||||
|
||||
void rgb_theme_layer(layer_state_t state) {
|
||||
uint8_t rgb_color_index = get_highest_layer(state);
|
||||
HSV color = get_rgb_theme_color(rgb_color_index);
|
||||
#if defined(RGBLIGHT_ENABLE)
|
||||
color.v = rgblight_config.val;
|
||||
#elif defined(RGB_MATRIX_ENABLE)
|
||||
color.v = rgb_matrix_config.hsv.v;
|
||||
#endif
|
||||
rgb_layer_helper( color.h, color.s, color.v );
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, uint8_t led_type) {
|
||||
for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
|
||||
if (!HAS_ANY_FLAGS(g_led_config.flags[i], led_type)) {
|
||||
rgb_matrix_set_color( i, red, green, blue );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void rgb_matrix_cycle_flag (void) {
|
||||
switch (rgb_matrix_get_flags()) {
|
||||
case LED_FLAG_ALL:
|
||||
rgb_matrix_set_flags(LED_FLAG_KEYS);
|
||||
rgb_matrix_set_color_all(0, 0, 0);
|
||||
break;
|
||||
case LED_FLAG_KEYS:
|
||||
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
|
||||
rgb_matrix_set_color_all(0, 0, 0);
|
||||
break;
|
||||
case LED_FLAG_UNDERGLOW:
|
||||
rgb_matrix_set_flags(LED_FLAG_NONE);
|
||||
rgb_matrix_set_color_all(0, 0, 0);
|
||||
break;
|
||||
default:
|
||||
rgb_matrix_set_flags(LED_FLAG_ALL);
|
||||
rgb_matrix_enable();
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void rgb_layer_helper(uint8_t hue, uint8_t sat, uint8_t val) {
|
||||
#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
|
||||
rgblight_sethsv_noeeprom(hue, sat, val);
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
rgb_matrix_layer_helper(0, 0, 0, rgb_matrix_get_flags());
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
layer_state_t layer_state_set_rgb(layer_state_t state) {
|
||||
#if defined(RGB_THEME_ENABLE)
|
||||
if (user_config.rgb_layer_change) {
|
||||
rgb_theme_layer(state);
|
||||
}
|
||||
#endif // RGBLIGHT_ENABLE
|
||||
return state;
|
||||
}
|
35
users/brandonschlack/rgb_bs.h
Normal file
35
users/brandonschlack/rgb_bs.h
Normal file
@ -0,0 +1,35 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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"
|
||||
#ifdef RGB_THEME_ENABLE
|
||||
# include "rgb_theme.h"
|
||||
#endif
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
# include "rgb_matrix.h"
|
||||
#endif
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#define LED_FLAG_KEYS (LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER)
|
||||
|
||||
void rgb_matrix_layer_helper(uint8_t red, uint8_t green, uint8_t blue, uint8_t led_type);
|
||||
void rgb_matrix_cycle_flag(void);
|
||||
#endif
|
||||
|
||||
void keyboard_post_init_rgb(void);
|
||||
void rgb_layer_helper(uint8_t hue, uint8_t sat, uint8_t val);
|
||||
|
||||
layer_state_t layer_state_set_rgb(layer_state_t state);
|
51
users/brandonschlack/rgb_theme.h
Normal file
51
users/brandonschlack/rgb_theme.h
Normal file
@ -0,0 +1,51 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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 "brandonschlack.h"
|
||||
#include "color.h"
|
||||
#include "rgblight_list.h"
|
||||
|
||||
/*TODO Update as RGBLIGHT Mode */
|
||||
#ifndef RGB_THEME_COLORS_MAX
|
||||
#define RGB_THEME_COLORS_MAX 5
|
||||
#endif
|
||||
|
||||
enum rgb_themes {
|
||||
#define RGB_THEME(name) RGB_THEME_##name,
|
||||
#include "rgb_theme_user.inc"
|
||||
#undef RGB_THEME
|
||||
RGB_THEME_MAX
|
||||
};
|
||||
|
||||
// RGB Theme Color
|
||||
typedef const HSV rgb_theme_color_t;
|
||||
#define RGB_THEME_COLOR(tname, tcolor,...) rgb_theme_color_t tname ## _ ## tcolor = { __VA_ARGS__ }
|
||||
|
||||
// RGB Theme
|
||||
typedef struct {
|
||||
const HSV *colors[RGB_THEME_COLORS_MAX];
|
||||
} rgb_theme_t;
|
||||
extern const rgb_theme_t *themes[];
|
||||
|
||||
void set_rgb_theme(uint8_t index);
|
||||
rgb_theme_t get_rgb_theme(void);
|
||||
|
||||
void rgb_theme_step(void);
|
||||
void rgb_theme_step_reverse(void);
|
||||
|
||||
rgb_theme_color_t get_rgb_theme_color(uint8_t index);
|
||||
void rgb_theme_layer(layer_state_t state);
|
95
users/brandonschlack/rgb_theme_user.inc
Normal file
95
users/brandonschlack/rgb_theme_user.inc
Normal file
@ -0,0 +1,95 @@
|
||||
// Basic Theme
|
||||
#ifndef DISABLE_RGB_THEME_BASIC
|
||||
#ifndef RGB_THEME_IMPLS
|
||||
RGB_THEME(BASIC)
|
||||
#else
|
||||
RGB_THEME_COLOR(BASIC, WHITE, HSV_WHITE);
|
||||
RGB_THEME_COLOR(BASIC, BLUE, HSV_BLUE);
|
||||
RGB_THEME_COLOR(BASIC, RED, HSV_RED);
|
||||
RGB_THEME_COLOR(BASIC, GREEN, HSV_GREEN);
|
||||
RGB_THEME_COLOR(BASIC, YELLOW, HSV_YELLOW);
|
||||
RGB_THEME(BASIC) = { { &BASIC_WHITE, &BASIC_BLUE, &BASIC_RED, &BASIC_GREEN, &BASIC_YELLOW } };
|
||||
#endif // RGB_THEME_IMPLS
|
||||
#endif // DISABLE_RGB_THEME_BASIC
|
||||
|
||||
// Laser Theme
|
||||
#ifndef DISABLE_RGB_THEME_LASER
|
||||
#ifndef RGB_THEME_IMPLS
|
||||
RGB_THEME(LASER)
|
||||
#else
|
||||
RGB_THEME_COLOR(LASER, PURPLE, 191, 255, 255);
|
||||
RGB_THEME_COLOR(LASER, PINK, 237, 255, 255);
|
||||
RGB_THEME_COLOR(LASER, BLUE, 165, 255, 255);
|
||||
RGB_THEME_COLOR(LASER, CYAN, 133, 255, 255);
|
||||
RGB_THEME_COLOR(LASER, MAGENTA, 213, 255, 255);
|
||||
RGB_THEME(LASER) = { { &LASER_PURPLE, &LASER_PINK, &LASER_BLUE, &LASER_CYAN, &LASER_MAGENTA } };
|
||||
#endif // RGB_THEME_IMPLS
|
||||
#endif // DISABLE_RGB_THEME_LASER
|
||||
|
||||
// Metropolis Theme
|
||||
#ifndef DISABLE_RGB_THEME_METROPOLIS
|
||||
#ifndef RGB_THEME_IMPLS
|
||||
RGB_THEME(METROPOLIS)
|
||||
#else
|
||||
RGB_THEME_COLOR(METROPOLIS, TEAL, 96, 207, 255);
|
||||
RGB_THEME_COLOR(METROPOLIS, RED, HSV_RED);
|
||||
RGB_THEME_COLOR(METROPOLIS, YELLOW, 24, 255, 255);
|
||||
RGB_THEME_COLOR(METROPOLIS, BLUE, 168, 255, 255);
|
||||
RGB_THEME_COLOR(METROPOLIS, WHITE, HSV_WHITE);
|
||||
RGB_THEME(METROPOLIS) = { { &METROPOLIS_TEAL, &METROPOLIS_RED, &METROPOLIS_YELLOW, &METROPOLIS_BLUE, &METROPOLIS_WHITE } };
|
||||
#endif // RGB_THEME_IMPLS
|
||||
#endif // DISABLE_RGB_THEME_METROPOLIS
|
||||
|
||||
// Canvas Theme
|
||||
#ifndef DISABLE_RGB_THEME_CANVAS
|
||||
#ifndef RGB_THEME_IMPLS
|
||||
RGB_THEME(CANVAS)
|
||||
#else
|
||||
RGB_THEME_COLOR(CANVAS, WHITE, HSV_WHITE);
|
||||
RGB_THEME_COLOR(CANVAS, ORANGE, 10, 255, 255);
|
||||
RGB_THEME_COLOR(CANVAS, RED, 0, 231, 255);
|
||||
RGB_THEME_COLOR(CANVAS, GREEN, 74, 207, 255);
|
||||
RGB_THEME_COLOR(CANVAS, BLUE, 170, 135, 255);
|
||||
RGB_THEME(CANVAS) = { { &CANVAS_WHITE, &CANVAS_ORANGE, &CANVAS_RED, &CANVAS_GREEN, &CANVAS_BLUE } };
|
||||
#endif // RGB_THEME_IMPLS
|
||||
#endif // DISABLE_RGB_THEME_CANVAS
|
||||
|
||||
// Jamon Theme
|
||||
#ifndef DISABLE_RGB_THEME_JAMON
|
||||
#ifndef RGB_THEME_IMPLS
|
||||
RGB_THEME(JAMON)
|
||||
#else
|
||||
RGB_THEME_COLOR(JAMON, RED, HSV_RED);
|
||||
RGB_THEME_COLOR(JAMON, LIGHTRED, 4, 255, 255);
|
||||
RGB_THEME_COLOR(JAMON, WHITE, HSV_WHITE);
|
||||
RGB_THEME_COLOR(JAMON, YELLOW, HSV_GOLD);
|
||||
RGB_THEME(JAMON) = { { &JAMON_RED, &JAMON_LIGHTRED, &JAMON_WHITE, &JAMON_YELLOW } };
|
||||
#endif // RGB_THEME_IMPLS
|
||||
#endif // DISABLE_RGB_THEME_JAMON
|
||||
|
||||
// Striker Theme
|
||||
#ifndef DISABLE_RGB_THEME_STRIKER
|
||||
#ifndef RGB_THEME_IMPLS
|
||||
RGB_THEME(STRIKER)
|
||||
#else
|
||||
RGB_THEME_COLOR(STRIKER, BLUE, HSV_BLUE);
|
||||
RGB_THEME_COLOR(STRIKER, AZURE, HSV_AZURE);
|
||||
RGB_THEME_COLOR(STRIKER, WHITE, HSV_WHITE);
|
||||
RGB_THEME_COLOR(STRIKER, RED, HSV_RED);
|
||||
RGB_THEME(STRIKER) = { { &STRIKER_BLUE, &STRIKER_AZURE, &STRIKER_WHITE, &STRIKER_RED } };
|
||||
#endif // RGB_THEME_IMPLS
|
||||
#endif // DISABLE_RGB_THEME_STRIKER
|
||||
|
||||
// Oblique Theme
|
||||
#ifndef DISABLE_RGB_THEME_OBLIQUE
|
||||
#ifndef RGB_THEME_IMPLS
|
||||
RGB_THEME(OBLIQUE)
|
||||
#else
|
||||
RGB_THEME_COLOR(OBLIQUE, WHITE, HSV_WHITE);
|
||||
RGB_THEME_COLOR(OBLIQUE, PURPLE, 186, 143, 255);
|
||||
RGB_THEME_COLOR(OBLIQUE, RED, 10, 200, 255);
|
||||
RGB_THEME_COLOR(OBLIQUE, ORANGE, 26, 215, 255);
|
||||
RGB_THEME_COLOR(OBLIQUE, GREEN, 58, 199, 255);
|
||||
RGB_THEME(OBLIQUE) = { { &OBLIQUE_WHITE, &OBLIQUE_PURPLE, &OBLIQUE_RED, &OBLIQUE_ORANGE, &OBLIQUE_GREEN } };
|
||||
#endif // RGB_THEME_IMPLS
|
||||
#endif // DISABLE_RGB_THEME_OBLIQUE
|
34
users/brandonschlack/rules.mk
Normal file
34
users/brandonschlack/rules.mk
Normal file
@ -0,0 +1,34 @@
|
||||
SRC += brandonschlack.c \
|
||||
process_records.c
|
||||
|
||||
SPACE_CADET_ENABLE = no
|
||||
|
||||
# Use LTO except for ChibiOS
|
||||
ifneq ($(PLATFORM),CHIBIOS)
|
||||
LTO_ENABLE = yes
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(IS_MACROPAD)), yes)
|
||||
OPT_DEFS += -DIS_MACROPAD
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
|
||||
SRC += rgb_bs.c
|
||||
endif
|
||||
|
||||
RGB_MATRIX_ENABLE ?= no
|
||||
ifneq ($(strip $(RGB_MATRIX_ENABLE)), no)
|
||||
SRC += rgb_bs.c
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
|
||||
SRC += tap_dances.c
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(FLASH_BOOTLOADER)), yes)
|
||||
OPT_DEFS += -DFLASH_BOOTLOADER
|
||||
endif
|
||||
|
||||
ifneq ($(FORCE_LAYOUT),)
|
||||
OPT_DEFS += -DFORCE_LAYOUT=\"$(FORCE_LAYOUT)\"
|
||||
endif
|
91
users/brandonschlack/tap_dances.c
Normal file
91
users/brandonschlack/tap_dances.c
Normal file
@ -0,0 +1,91 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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 "tap_dances.h"
|
||||
#include "process_keycode/process_tap_dance.h"
|
||||
|
||||
int cur_dance (qk_tap_dance_state_t *state) {
|
||||
if (state->count == 1) {
|
||||
if (state->interrupted || !state->pressed) return SINGLE_TAP;
|
||||
else return SINGLE_HOLD;
|
||||
} else if (state->count == 2) {
|
||||
if (state->interrupted) return DOUBLE_SINGLE_TAP;
|
||||
else if (state->pressed) return DOUBLE_HOLD;
|
||||
else return DOUBLE_TAP;
|
||||
}
|
||||
if (state->count == 3) {
|
||||
if (state->interrupted || !state->pressed) return TRIPLE_TAP;
|
||||
else return TRIPLE_HOLD;
|
||||
}
|
||||
else return 8;
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
void process_tap_dance_keycode (bool reset, uint8_t toggle_layer) { };
|
||||
|
||||
void td_trigger_layer_finished (qk_tap_dance_state_t *state, void *user_data) {
|
||||
qk_tap_dance_trigger_layer_t *data = (qk_tap_dance_trigger_layer_t *)user_data;
|
||||
data->state = cur_dance(state);
|
||||
|
||||
if (data->state == data->trigger) {
|
||||
layer_on(data->layer);
|
||||
} else {
|
||||
process_tap_dance_keycode(false, data->layer);
|
||||
}
|
||||
|
||||
}
|
||||
void td_trigger_layer_reset (qk_tap_dance_state_t *state, void *user_data) {
|
||||
qk_tap_dance_trigger_layer_t *data = (qk_tap_dance_trigger_layer_t *)user_data;
|
||||
if (data->state == data->trigger) {
|
||||
switch (data->trigger) {
|
||||
case SINGLE_HOLD:
|
||||
case DOUBLE_HOLD:
|
||||
case TRIPLE_HOLD:
|
||||
layer_off(data->layer);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
process_tap_dance_keycode(true, data->layer);
|
||||
}
|
||||
data->state = 0;
|
||||
}
|
||||
|
||||
/* Tap Dance: Layer Mod. Toggles Layer when tapped, Mod when held. */
|
||||
void td_layer_mod_each(qk_tap_dance_state_t *state, void *user_data) {
|
||||
qk_tap_dance_dual_role_t *data = (qk_tap_dance_dual_role_t *)user_data;
|
||||
|
||||
// Single tap → toggle layer, Single hold → mod
|
||||
if (state->pressed) {
|
||||
register_code(data->kc);
|
||||
} else if (state->count == 1) {
|
||||
state->finished = true;
|
||||
}
|
||||
}
|
||||
|
||||
void td_layer_mod_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||
qk_tap_dance_dual_role_t *data = (qk_tap_dance_dual_role_t *)user_data;
|
||||
|
||||
if (state->count == 1 && !state->pressed) {
|
||||
layer_invert(data->layer);
|
||||
}
|
||||
}
|
||||
|
||||
void td_layer_mod_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||
qk_tap_dance_dual_role_t *data = (qk_tap_dance_dual_role_t *)user_data;
|
||||
|
||||
if (state->count == 1) {
|
||||
unregister_code(data->kc);
|
||||
}
|
||||
}
|
52
users/brandonschlack/tap_dances.h
Normal file
52
users/brandonschlack/tap_dances.h
Normal file
@ -0,0 +1,52 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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 "brandonschlack.h"
|
||||
#ifdef TAP_DANCE_ENABLE
|
||||
# include "process_keycode/process_tap_dance.h"
|
||||
#endif
|
||||
|
||||
enum tap_dance_states {
|
||||
SINGLE_TAP = 1,
|
||||
SINGLE_HOLD = 2,
|
||||
DOUBLE_TAP = 3,
|
||||
DOUBLE_HOLD = 4,
|
||||
DOUBLE_SINGLE_TAP = 5,
|
||||
TRIPLE_TAP = 6,
|
||||
TRIPLE_HOLD = 7
|
||||
};
|
||||
|
||||
int cur_dance (qk_tap_dance_state_t *state);
|
||||
void process_tap_dance_keycode (bool reset, uint8_t toggle_layer);
|
||||
|
||||
/* Tap Dance: Trigger Layer
|
||||
*
|
||||
* Toggles Layer based on given trigger (Single Hold, Double Tap, Double Hold, etc).
|
||||
* Uses process_tap_dance_keycode() to allow keycode defines based on layer
|
||||
*/
|
||||
typedef struct {
|
||||
uint8_t trigger;
|
||||
uint8_t layer;
|
||||
uint8_t state;
|
||||
} qk_tap_dance_trigger_layer_t;
|
||||
|
||||
#define ACTION_TAP_DANCE_TRIGGER_LAYER(trigger, layer) { \
|
||||
.fn = { NULL, td_trigger_layer_finished, td_trigger_layer_reset }, \
|
||||
.user_data = (void *)&((qk_tap_dance_trigger_layer_t) { trigger, layer, 0 }), \
|
||||
}
|
||||
|
||||
void td_trigger_layer_finished (qk_tap_dance_state_t *state, void *user_data);
|
||||
void td_trigger_layer_reset (qk_tap_dance_state_t *state, void *user_data);
|
Loading…
Reference in New Issue
Block a user