mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-21 19:09:25 +00:00
Remove obvious user keymaps, keyboards/{i,j,k}* edition (#23102)
This commit is contained in:
parent
2d1aed78a6
commit
2eb9ff8efd
@ -1,10 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
//Force NKRO to be enabled.
|
||||
#define FORCE_NKRO
|
||||
|
||||
//GRAVE_ESC override for CTRL+SHIFT+ESC Windows task manager shortcut.
|
||||
//#define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
//Delay matrix scan for tap dance, reduce to activate modifier keys faster.
|
||||
//#define TAPPING_TERM 200
|
@ -1,261 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "version.h"
|
||||
|
||||
enum layers {
|
||||
_BL = 0, // Base Layer
|
||||
_WL, // Workman Layer
|
||||
_NL, // Norman Layer
|
||||
_DL, // Dvorak Layer
|
||||
_CL, // Base Layer
|
||||
_FL, // Function Layer
|
||||
_AL, // Adjust Layer
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QMK_REV = SAFE_RANGE,
|
||||
KC_WEB,
|
||||
KC_SP4,
|
||||
DYNAMIC_MACRO_RANGE
|
||||
};
|
||||
|
||||
extern backlight_config_t backlight_config;
|
||||
|
||||
#include "dynamic_macro.h"
|
||||
#define FN_CAPS LT(_FL, KC_CAPS)
|
||||
#define KC_DMR1 DM_REC1
|
||||
#define KC_DMR2 DM_REC2
|
||||
#define KC_DMP1 DM_PLY1
|
||||
#define KC_DMP2 DM_PLY2
|
||||
#define KC_DMRS DM_RSTP
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*#### _BL: Base Layer - Standard TKL QWERTY layout.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* |Esc|||||F1 |F2 |F3 |F4 |||F5 |F6 |F7 |F8 |||F9 |F10|F11|F12|PSc|SLk|Pau|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |~ |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backsp |Ins|Hom|PgU|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Del|End|PgD|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Caps |A |S |D |F |G |H |J |K |L |; |' |Return | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |Fn | | Up| |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Ctrl |Win|Alt | Space |RAlt |Fn |Ctrl |Lft|Dwn|Rgt|
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_BL] = LAYOUT_tkl(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
|
||||
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,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, XXXXXXX, KC_ENT,
|
||||
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, MO(_FL), KC_UP,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RGUI, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
/*#### _WL: Workman Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |- |= | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Q |D |R |W |B |J |F |U |P |; |[ |] |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |S |H |T |G |Y |N |E |O |I |' | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Z |X |M |C |V |K |L |, |. |/ | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_WL] = LAYOUT_tkl(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_Q , KC_D , KC_R , KC_W , KC_B , KC_J , KC_F , KC_U , KC_P , KC_SCLN, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_A , KC_S , KC_H , KC_T , KC_G , KC_Y , KC_N , KC_E , KC_O , KC_I , _______, _______, _______,
|
||||
_______, _______, KC_Z , KC_X , KC_M , KC_C , KC_V , KC_K , KC_L , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/*#### _NL: Norman Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |- |= | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Q |W |D |F |K |J |U |R |L |; |[ |] |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |S |E |T |G |Y |N |I |O |H |' | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Z |X |C |V |B |P |M |, |. |/ | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_NL] = LAYOUT_tkl(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_Q , KC_W , KC_D , KC_F , KC_K , KC_J , KC_U , KC_R , KC_L , KC_SCLN, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_A , KC_S , KC_E , KC_T , KC_G , KC_Y , KC_N , KC_I , KC_O , KC_H , _______, _______, _______,
|
||||
_______, _______, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_P , KC_M , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/*#### _DL: Dvorak Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |[ |] | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |' |, |. |P |Y |F |G |C |R |L |/ |= |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |O |E |U |I |D |H |T |N |S |- | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |; |Q |J |K |X |B |M |W |V |Z | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_DL] = LAYOUT_tkl(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, _______, _______, _______, _______,
|
||||
_______, KC_QUOT, KC_COMM, KC_DOT , KC_P , KC_Y , KC_F , KC_G , KC_C , KC_R , KC_L , KC_SLSH, KC_EQL , _______, _______, _______, _______,
|
||||
_______, KC_A , KC_O , KC_E , KC_U , KC_I , KC_D , KC_H , KC_T , KC_N , KC_S , KC_MINS, _______, _______,
|
||||
_______, _______, KC_SCLN, KC_Q , KC_J , KC_K , KC_X , KC_B , KC_M , KC_W , KC_V , KC_Z , _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/*#### _CL: Colmak Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |- |= | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Q |W |F |P |G |J |L |U |Y |; |[ |] |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |R |S |T |D |H |N |E |I |O |' | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Z |X |C |V |B |K |M |, |. |/ | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_CL] = LAYOUT_tkl(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_Q , KC_W , KC_F , KC_P , KC_G , KC_J , KC_L , KC_U , KC_Y , KC_SCLN, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_A , KC_R , KC_S , KC_T , KC_D , KC_H , KC_N , KC_E , KC_I , KC_O , _______, _______, _______,
|
||||
_______, _______, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_K , KC_M , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/*#### _FL: Function Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| |VlM|VlD|VlU| | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* |Web| | | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Fn_AL| | | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | |Lft|Dwn|Up |Rgt| | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | | |Fn | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | SP4 | |Fn | |WBk| |WFw|
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_FL] = LAYOUT_tkl(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MUTE, KC_VOLD, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
KC_WEB, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
MO(_AL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, KC_MENU, KC_SP4, XXXXXXX, _______, XXXXXXX, XXXXXXX, KC_WBAK, XXXXXXX, KC_WFWD
|
||||
),
|
||||
/*#### _AL: Adjust Layer - Keymap select, LED backlight, and Dynamic Macro settings.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* |Rst||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* |Rev|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| | |MR1|MP1|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Fn_AL|_BL|_WL| | | | | | | | | | | | MS|MR2|MP2|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | |_DL| | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | |_CL| |_BL|_NL| | | | | |Fn | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | |Fn | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_AL] = LAYOUT_tkl(
|
||||
QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
QMK_REV, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, XXXXXXX, BL_TOGG, BL_DOWN, BL_UP, XXXXXXX, XXXXXXX, KC_DMR1, KC_DMP1,
|
||||
_______, DF(_BL), DF(_WL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMRS, KC_DMR2, KC_DMP2,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, DF(_DL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, DF(_CL), XXXXXXX, DF(_BL), DF(_NL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QMK_REV:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP "@" QMK_VERSION ":" QMK_BUILDDATE);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_WEB:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(SS_LGUI("r"));
|
||||
wait_ms(100);
|
||||
SEND_STRING("chrome.exe\n");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_SP4:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING (" ");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
// Dynamic Macros.
|
||||
if (!process_record_dynamic_macro(keycode, record)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void custom_backlight_level(uint8_t level) {
|
||||
if (level > BACKLIGHT_LEVELS)
|
||||
level = BACKLIGHT_LEVELS;
|
||||
backlight_config.level = level;
|
||||
backlight_config.enable = !!backlight_config.level;
|
||||
backlight_set(backlight_config.level);
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
custom_backlight_level(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
switch (get_highest_layer(state)) {
|
||||
case _BL:
|
||||
custom_backlight_level(0);
|
||||
break;
|
||||
case _WL:
|
||||
case _NL:
|
||||
case _DL:
|
||||
case _CL:
|
||||
custom_backlight_level(1);
|
||||
break;
|
||||
case _FL:
|
||||
custom_backlight_level(2);
|
||||
break;
|
||||
case _AL:
|
||||
custom_backlight_level(3);
|
||||
break;
|
||||
default:
|
||||
custom_backlight_level(0);
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
}
|
@ -1,114 +0,0 @@
|
||||
# Keymap Maintainer: Gam3cat
|
||||
make gonnerd:gam3cat
|
||||
## Layout Config:
|
||||
2u backspace, 2.25u lshift/enter, [2.75u rshift] or [1.75u rshift, 1u Fn].
|
||||
[1.5u, 1u, 1.5u 1x7.0u, 1.5u, 1u, 1.5u, 3x1u] or [2x1.5u, 1x7.0u, 2x1.5u, 3x1u] bottom row.
|
||||
|
||||
## Base Layer Selection:
|
||||
(Fn+TAB+( )): (Q)WERTY, (W)orkman, (N)orman, (D)vorak, (C)olmak
|
||||
|
||||
### Base Layer Options:
|
||||
#### _BL: Base Layer - Standard TKL QWERTY layout.
|
||||
.-----------------------------------------------------------------------.
|
||||
|Esc|||||F1 |F2 |F3 |F4 |||F5 |F6 |F7 |F8 |||F9 |F10|F11|F12|PSc|SLk|Pau|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|~ |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backsp |Ins|Hom|PgU|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Del|End|PgD|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Caps |A |S |D |F |G |H |J |K |L |; |' |Return | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |Fn | | Up| |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Ctrl |Win|Alt | Space |RAlt |Fn |Ctrl |Lft|Dwn|Rgt|
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _WL: Workman Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | |- |= | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Q |D |R |W |B |J |F |U |P |; |[ |] |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |A |S |H |T |G |Y |N |E |O |I |' | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Z |X |M |C |V |K |L |, |. |/ | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _NL: Norman Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | |- |= | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Q |W |D |F |K |J |U |R |L |; |[ |] |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |A |S |E |T |G |Y |N |I |O |H |' | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Z |X |C |V |B |P |M |, |. |/ | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _DL: Dvorak Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | |[ |] | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |' |, |. |P |Y |F |G |C |R |L |/ |= |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |A |O |E |U |I |D |H |T |N |S |- | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |; |Q |J |K |X |B |M |W |V |Z | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _CL: Colmak Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | |- |= | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Q |W |F |P |G |J |L |U |Y |; |[ |] |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |A |R |S |T |D |H |N |E |I |O |' | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Z |X |C |V |B |K |M |, |. |/ | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _FL: Function Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| |VlM|VlD|VlU| | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
|Web| | | | | | | | | | | | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Fn_AL| | | | | | | | | | | | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | |Lft|Dwn|Up |Rgt| | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | | |Fn | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | SP4 | |Fn | |WBk| |WFw|
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _AL: Adjust Layer - Keymap select, LED backlight, and Dynamic Macro settings.
|
||||
.-----------------------------------------------------------------------.
|
||||
|Rst||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
|Rev|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| | |MR1|MP1|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Fn_AL|_BL|_WL| | | | | | | | | | | | MS|MR2|MP2|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | |_DL| | | | | | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | |_CL| |_BL|_NL| | | | | |Fn | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | |Fn | | | | |
|
||||
*-----------------------------------------------------------------------*
|
@ -1,23 +0,0 @@
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = no # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
NKRO_ENABLE = yes # USB Nkey Rollover - If this doesn't work, add this to config.h: #define FORCE_NKRO
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
MIDI_ENABLE = no # MIDI support
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
UNICODEMAP_ENABLE = no # Enable extended unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
#VARIABLE_TRACE = no # Use this to debug changes to variable values
|
||||
KEY_LOCK_ENABLE = no # This enables key lock
|
||||
SPLIT_KEYBOARD = no # This enables split keyboard support and includes all necessary files located at quantum/split_common
|
||||
TAP_DANCE_ENABLE = no # Enable TapDance functionality
|
@ -1,10 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
//Force NKRO to be enabled.
|
||||
#define FORCE_NKRO
|
||||
|
||||
//GRAVE_ESC override for CTRL+SHIFT+ESC Windows task manager shortcut.
|
||||
//#define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
//Delay matrix scan for tap dance, reduce to activate modifier keys faster.
|
||||
//#define TAPPING_TERM 200
|
@ -1,293 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "version.h"
|
||||
|
||||
enum layers {
|
||||
_BL = 0, // Base Layer
|
||||
_WL, // Workman Layer
|
||||
_NL, // Norman Layer
|
||||
_DL, // Dvorak Layer
|
||||
_CL, // Base Layer
|
||||
_FL, // Function Layer
|
||||
_AL, // Adjust Layer
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QMK_REV = SAFE_RANGE,
|
||||
KC_WEB,
|
||||
KC_SP4,
|
||||
DYNAMIC_MACRO_RANGE
|
||||
};
|
||||
|
||||
extern backlight_config_t backlight_config;
|
||||
|
||||
#include "dynamic_macro.h"
|
||||
#define FN_CAPS LT(_FL, KC_CAPS)
|
||||
#define KC_DMR1 DM_REC1
|
||||
#define KC_DMR2 DM_REC2
|
||||
#define KC_DMP1 DM_PLY1
|
||||
#define KC_DMP2 DM_PLY2
|
||||
#define KC_DMRS DM_RSTP
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*#### _BL: Base Layer - Standard TKL QWERTY layout.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* |Esc|||||F1 |F2 |F3 |F4 |||F5 |F6 |F7 |F8 |||F9 |F10|F11|F12|PSc|SLk|Pau|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |~ |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backsp |Ins|Hom|PgU|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Del|End|PgD|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Caps |A |S |D |F |G |H |J |K |L |; |' |Return | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |Fn | | Up| |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Ctrl |Win|Alt | Space |RAlt |Fn |Ctrl |Lft|Dwn|Rgt|
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_BL] = LAYOUT_all(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
|
||||
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_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,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, XXXXXXX, KC_ENT,
|
||||
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, MO(_FL), KC_UP,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RGUI, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
/*#### _WL: Workman Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |- |= | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Q |D |R |W |B |J |F |U |P |; |[ |] |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |S |H |T |G |Y |N |E |O |I |' | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Z |X |M |C |V |K |L |, |. |/ | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_WL] = LAYOUT_all(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_Q , KC_D , KC_R , KC_W , KC_B , KC_J , KC_F , KC_U , KC_P , KC_SCLN, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_A , KC_S , KC_H , KC_T , KC_G , KC_Y , KC_N , KC_E , KC_O , KC_I , _______, _______, _______,
|
||||
_______, _______, KC_Z , KC_X , KC_M , KC_C , KC_V , KC_K , KC_L , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/*#### _NL: Norman Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |- |= | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Q |W |D |F |K |J |U |R |L |; |[ |] |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |S |E |T |G |Y |N |I |O |H |' | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Z |X |C |V |B |P |M |, |. |/ | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_NL] = LAYOUT_all(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_Q , KC_W , KC_D , KC_F , KC_K , KC_J , KC_U , KC_R , KC_L , KC_SCLN, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_A , KC_S , KC_E , KC_T , KC_G , KC_Y , KC_N , KC_I , KC_O , KC_H , _______, _______, _______,
|
||||
_______, _______, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_P , KC_M , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/*#### _DL: Dvorak Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |[ |] | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |' |, |. |P |Y |F |G |C |R |L |/ |= |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |O |E |U |I |D |H |T |N |S |- | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |; |Q |J |K |X |B |M |W |V |Z | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_DL] = LAYOUT_all(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, _______, _______, _______, _______, _______,
|
||||
_______, KC_QUOT, KC_COMM, KC_DOT , KC_P , KC_Y , KC_F , KC_G , KC_C , KC_R , KC_L , KC_SLSH, KC_EQL , _______, _______, _______, _______,
|
||||
_______, KC_A , KC_O , KC_E , KC_U , KC_I , KC_D , KC_H , KC_T , KC_N , KC_S , KC_MINS, _______, _______,
|
||||
_______, _______, KC_SCLN, KC_Q , KC_J , KC_K , KC_X , KC_B , KC_M , KC_W , KC_V , KC_Z , _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/*#### _CL: Colmak Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |- |= | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Q |W |F |P |G |J |L |U |Y |; |[ |] |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |R |S |T |D |H |N |E |I |O |' | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Z |X |C |V |B |K |M |, |. |/ | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_CL] = LAYOUT_all(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_Q , KC_W , KC_F , KC_P , KC_G , KC_J , KC_L , KC_U , KC_Y , KC_SCLN, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_A , KC_R , KC_S , KC_T , KC_D , KC_H , KC_N , KC_E , KC_I , KC_O , _______, _______, _______,
|
||||
_______, _______, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_K , KC_M , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/*#### _FL: Function Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| |VlM|VlD|VlU| | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* |Web| | | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Fn_AL| | | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | |Lft|Dwn|Up |Rgt| | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | | |Fn | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | SP4 | |Fn | |WBk| |WFw|
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_FL] = LAYOUT_all(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MUTE, KC_VOLD, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
KC_WEB, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
MO(_AL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, KC_MENU, KC_SP4, XXXXXXX, _______, XXXXXXX, XXXXXXX, KC_WBAK, XXXXXXX, KC_WFWD
|
||||
),
|
||||
/*#### _AL: Adjust Layer - Keymap select, LED backlight, and Dynamic Macro settings.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* |Rst||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* |Rev|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| | |MR1|MP1|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Fn_AL|_BL|_WL| | | | | | | | | | | | MS|MR2|MP2|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | |_DL| | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | |_CL| |_BL|_NL| | | | | |Fn | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | |Fn | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_AL] = LAYOUT_all(
|
||||
QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
QMK_REV, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, XXXXXXX, BL_TOGG, BL_DOWN, BL_UP, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMR1, KC_DMP1,
|
||||
_______, DF(_BL), DF(_WL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMRS, KC_DMR2, KC_DMP2,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, DF(_DL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, DF(_CL), XXXXXXX, DF(_BL), DF(_NL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QMK_REV:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP "@" QMK_VERSION ":" QMK_BUILDDATE);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_WEB:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(SS_LGUI("r"));
|
||||
wait_ms(100);
|
||||
SEND_STRING("chrome.exe\n");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_SP4:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING (" ");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
// Dynamic Macros.
|
||||
if (!process_record_dynamic_macro(keycode, record)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void custom_backlight_level(uint8_t level) {
|
||||
if (level > BACKLIGHT_LEVELS)
|
||||
level = BACKLIGHT_LEVELS;
|
||||
backlight_config.level = level;
|
||||
backlight_config.enable = !!backlight_config.level;
|
||||
backlight_set(backlight_config.level);
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
custom_backlight_level(0);
|
||||
#endif
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
rgblight_mode(1);
|
||||
rgblight_sethsv_noeeprom(180,100,100);
|
||||
#endif
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
||||
}
|
||||
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
switch (get_highest_layer(state)) {
|
||||
case _BL:
|
||||
custom_backlight_level(0);
|
||||
rgblight_sethsv_noeeprom(180,100,255);
|
||||
break;
|
||||
case _WL:
|
||||
case _NL:
|
||||
case _DL:
|
||||
case _CL:
|
||||
custom_backlight_level(1);
|
||||
rgblight_sethsv_noeeprom(230,255,255);
|
||||
break;
|
||||
case _FL:
|
||||
custom_backlight_level(2);
|
||||
rgblight_sethsv_noeeprom(240,255,255);
|
||||
break;
|
||||
case _AL:
|
||||
custom_backlight_level(3);
|
||||
rgblight_sethsv_noeeprom(255,255,255);
|
||||
break;
|
||||
default:
|
||||
custom_backlight_level(0);
|
||||
rgblight_sethsv_noeeprom(180,100,100);
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
void led_init_ports(void) {
|
||||
DDRD |= (1<<5); // OUT
|
||||
DDRE |= (1<<6); // OUT
|
||||
}
|
||||
|
||||
bool led_update_user(led_t led_state) {
|
||||
if (led_state.caps_lock) {
|
||||
DDRD |= (1 << 5); PORTD &= ~(1 << 5);
|
||||
} else {
|
||||
DDRD &= ~(1 << 5); PORTD &= ~(1 << 5);
|
||||
}
|
||||
if (led_state.scroll_lock) {
|
||||
DDRE |= (1 << 6); PORTE &= ~(1 << 6);
|
||||
} else {
|
||||
DDRE &= ~(1 << 6); PORTE &= ~(1 << 6);
|
||||
}
|
||||
return false;
|
||||
}
|
@ -1,114 +0,0 @@
|
||||
# Keymap Maintainer: Gam3cat
|
||||
make h87a:gam3cat
|
||||
## Layout Config:
|
||||
2u backspace, 2.25u lshift/enter, [2.75u rshift] or [1.75u rshift, 1u Fn].
|
||||
[1.5u, 1u, 1.5u 1x7.0u, 1.5u, 1u, 1.5u, 3x1u] or [2x1.5u, 1x7.0u, 2x1.5u, 3x1u] bottom row.
|
||||
|
||||
## Base Layer Selection:
|
||||
(Fn+TAB+( )): (Q)WERTY, (W)orkman, (N)orman, (D)vorak, (C)olmak
|
||||
|
||||
### Base Layer Options:
|
||||
#### _BL: Base Layer - Standard TKL QWERTY layout.
|
||||
.-----------------------------------------------------------------------.
|
||||
|Esc|||||F1 |F2 |F3 |F4 |||F5 |F6 |F7 |F8 |||F9 |F10|F11|F12|PSc|SLk|Pau|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|~ |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backsp |Ins|Hom|PgU|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Del|End|PgD|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Caps |A |S |D |F |G |H |J |K |L |; |' |Return | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |Fn | | Up| |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Ctrl |Win|Alt | Space |RAlt |Fn |Ctrl |Lft|Dwn|Rgt|
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _WL: Workman Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | |- |= | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Q |D |R |W |B |J |F |U |P |; |[ |] |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |A |S |H |T |G |Y |N |E |O |I |' | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Z |X |M |C |V |K |L |, |. |/ | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _NL: Norman Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | |- |= | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Q |W |D |F |K |J |U |R |L |; |[ |] |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |A |S |E |T |G |Y |N |I |O |H |' | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Z |X |C |V |B |P |M |, |. |/ | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _DL: Dvorak Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | |[ |] | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |' |, |. |P |Y |F |G |C |R |L |/ |= |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |A |O |E |U |I |D |H |T |N |S |- | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |; |Q |J |K |X |B |M |W |V |Z | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _CL: Colmak Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | |- |= | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Q |W |F |P |G |J |L |U |Y |; |[ |] |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |A |R |S |T |D |H |N |E |I |O |' | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Z |X |C |V |B |K |M |, |. |/ | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _FL: Function Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| |VlM|VlD|VlU| | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
|Web| | | | | | | | | | | | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Fn_AL| | | | | | | | | | | | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | |Lft|Dwn|Up |Rgt| | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | | |Fn | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | SP4 | |Fn | |WBk| |WFw|
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _AL: Adjust Layer - Keymap select, LED backlight, and Dynamic Macro settings.
|
||||
.-----------------------------------------------------------------------.
|
||||
|Rst||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
|Rev|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| | |MR1|MP1|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Fn_AL|_BL|_WL| | | | | | | | | | | | MS|MR2|MP2|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | |_DL| | | | | | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | |_CL| |_BL|_NL| | | | | |Fn | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | |Fn | | | | |
|
||||
*-----------------------------------------------------------------------*
|
@ -1,22 +0,0 @@
|
||||
# Build Options
|
||||
# change to "no" to disable the options, or define them in the Makefile in
|
||||
# the appropriate keymap folder that will get included automatically
|
||||
#
|
||||
TAP_DANCE_ENABLE = no # Enable TapDance functionality
|
||||
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
|
||||
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+1500)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
NKRO_ENABLE = yes # Nkey Rollover - If this doesn't work, add this to config.h: #define FORCE_NKRO
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
MIDI_ENABLE = no # MIDI controls
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
UNICODEMAP_ENABLE = no # Enable extended unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
#VARIABLE_TRACE = no # Use this to debug changes to variable values
|
||||
KEY_LOCK_ENABLE = no # This enables key lock(+260)
|
||||
SPLIT_KEYBOARD = no # This enables split keyboard support and includes all necessary files located at quantum/split_common
|
@ -1,192 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "version.h"
|
||||
|
||||
#define BASE 0 // default layer
|
||||
#define SYMB 1 // symbols
|
||||
#define MDIA 2 // media keys
|
||||
|
||||
enum custom_keycodes {
|
||||
PLACEHOLDER = SAFE_RANGE, // can always be here
|
||||
VRSN,
|
||||
RGB_SLD
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Keymap 0: Basic layer
|
||||
*
|
||||
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||
* | Esc | 1 | 2 | 3 | 4 | 5 | ~ | | ' | 6 | 7 | 8 | 9 | 0 | = |
|
||||
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||
* | Del | Q | W | E | R | T | ~ | | " | Y | U | I | O | P | - |
|
||||
* |--------+------+------+------+------+------| ` | | |------+------+------+------+------+--------|
|
||||
* | Ctrl | A | S | D | F | G |------| |------| H | J | K | L | ; | \ |
|
||||
* |--------+------+------+------+------+------| { | | } |------+------+------+------+------+--------|
|
||||
* | LAlt | Z | X | C | V | B | [ | | ] | N | M | , | . | / | LShift |
|
||||
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||
* | LT-1 | F4 | F5 | F6 | F11 | | Left | Down | Up | Right| RAlt |
|
||||
* `----------------------------------' `----------------------------------'
|
||||
* ,-------------. ,-------------.
|
||||
* | L1 | Prev | | Vol+ | L2 |
|
||||
* ,------|------|------| |------+--------+------.
|
||||
* | | | Play | | Vol- | | |
|
||||
* | Space|Backsp|------| |------| Tab |Enter |
|
||||
* | |ace | Next | | Mute | | |
|
||||
* `--------------------' `----------------------'
|
||||
*/
|
||||
// If it accepts an argument (i.e, is a function), it doesn't need KC_.
|
||||
// Otherwise, it needs KC_*
|
||||
[BASE] = LAYOUT_ergodox( // layer 0 : default
|
||||
// left hand
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, LSFT(KC_GRV),
|
||||
KC_DEL, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_GRV,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G,
|
||||
KC_LALT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LBRC,
|
||||
LT(SYMB, KC_F2), KC_F4, KC_F5, KC_F6, KC_F11,
|
||||
TG(SYMB), KC_MPRV,
|
||||
KC_MPLY,
|
||||
KC_SPC,KC_BSPC,KC_MNXT,
|
||||
// right hand
|
||||
KC_QUOT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_EQL,
|
||||
LSFT(KC_QUOT), KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS,
|
||||
KC_H, KC_J, KC_K, KC_L, LT(MDIA, KC_SCLN),KC_BSLS,
|
||||
KC_RBRC, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_LSFT,
|
||||
KC_LEFT,KC_DOWN,KC_UP, KC_RGHT,KC_RALT,
|
||||
KC_VOLU, TG(MDIA),
|
||||
KC_VOLD,
|
||||
KC_MUTE,KC_TAB, KC_ENT
|
||||
),
|
||||
/* Keymap 1: Symbol Layer
|
||||
*
|
||||
* ,---------------------------------------------------. ,--------------------------------------------------.
|
||||
* |Version | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F11 |
|
||||
* |---------+------+------+------+------+------+------| |------+------+------+------+------+------+--------|
|
||||
* | | ! | @ | { | } | | | | | | Up | 7 | 8 | 9 | * | F12 |
|
||||
* |---------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | | # | $ | ( | ) | ` |------| |------| Down | 4 | 5 | 6 | + | |
|
||||
* |---------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | | % | ^ | [ | ] | ~ | | | | & | 1 | 2 | 3 | \ | |
|
||||
* `---------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||
* | EE_CLR | | | | | | | . | 0 | = | |
|
||||
* `-----------------------------------' `----------------------------------'
|
||||
* ,-------------. ,-------------.
|
||||
* |Animat| | |Toggle|Solid |
|
||||
* ,------|------|------| |------+------+------.
|
||||
* |Bright|Bright| | | |Hue- |Hue+ |
|
||||
* |ness- |ness+ |------| |------| | |
|
||||
* | | | | | | | |
|
||||
* `--------------------' `--------------------'
|
||||
*/
|
||||
// SYMBOLS
|
||||
[SYMB] = LAYOUT_ergodox(
|
||||
// left hand
|
||||
VRSN, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRNS,
|
||||
KC_TRNS,KC_EXLM,KC_AT, KC_LCBR,KC_RCBR,KC_PIPE,KC_TRNS,
|
||||
KC_TRNS,KC_HASH,KC_DLR, KC_LPRN,KC_RPRN,KC_GRV,
|
||||
KC_TRNS,KC_PERC,KC_CIRC,KC_LBRC,KC_RBRC,KC_TILD,KC_TRNS,
|
||||
EE_CLR, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
||||
RGB_MOD,KC_TRNS,
|
||||
KC_TRNS,
|
||||
RGB_VAD,RGB_VAI,KC_TRNS,
|
||||
// right hand
|
||||
KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
||||
KC_TRNS, KC_UP, KC_7, KC_8, KC_9, KC_ASTR, KC_F12,
|
||||
KC_DOWN, KC_4, KC_5, KC_6, KC_PLUS, KC_TRNS,
|
||||
KC_TRNS, KC_AMPR, KC_1, KC_2, KC_3, KC_BSLS, KC_TRNS,
|
||||
KC_TRNS,KC_DOT, KC_0, KC_EQL, KC_TRNS,
|
||||
RGB_TOG, RGB_SLD,
|
||||
KC_TRNS,
|
||||
KC_TRNS, RGB_HUD, RGB_HUI
|
||||
),
|
||||
/* Keymap 2: Media and mouse keys
|
||||
*
|
||||
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||
* | | | | MsUp | | | | | | | | | | | |
|
||||
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | | |MsLeft|MsDown|MsRght| |------| |------| | | | | | Play |
|
||||
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | | | | | | | | | | | | Prev | Next | | |
|
||||
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||
* | | | | Lclk | Rclk | |VolUp |VolDn | Mute | | |
|
||||
* `----------------------------------' `----------------------------------'
|
||||
* ,-------------. ,-------------.
|
||||
* | | | | | |
|
||||
* ,------|------|------| |------+------+------.
|
||||
* | | | | | | |Brwser|
|
||||
* | | |------| |------| |Back |
|
||||
* | | | | | | | |
|
||||
* `--------------------' `--------------------'
|
||||
*/
|
||||
// MEDIA AND MOUSE
|
||||
[MDIA] = LAYOUT_ergodox(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_MS_U, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_BTN1, KC_BTN2,
|
||||
KC_TRNS, KC_TRNS,
|
||||
KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
// right hand
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MNXT, KC_TRNS, KC_TRNS,
|
||||
KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS,
|
||||
KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_WBAK
|
||||
),
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
// dynamically generate these.
|
||||
case VRSN:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case RGB_SLD:
|
||||
if (record->event.pressed) {
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
rgblight_mode(1);
|
||||
#endif
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Runs just one time when the keyboard initializes.
|
||||
void matrix_init_user(void) {
|
||||
|
||||
};
|
||||
|
||||
|
||||
// Runs constantly in the background, in a loop.
|
||||
void matrix_scan_user(void) {
|
||||
|
||||
uint8_t layer = get_highest_layer(layer_state);
|
||||
|
||||
ergodox_board_led_off();
|
||||
ergodox_right_led_1_off();
|
||||
ergodox_right_led_2_off();
|
||||
ergodox_right_led_3_off();
|
||||
switch (layer) {
|
||||
// TODO: Make this relevant to the ErgoDox EZ.
|
||||
case 1:
|
||||
ergodox_right_led_1_on();
|
||||
break;
|
||||
case 2:
|
||||
ergodox_right_led_2_on();
|
||||
break;
|
||||
default:
|
||||
// none
|
||||
break;
|
||||
}
|
||||
|
||||
};
|
@ -1,23 +0,0 @@
|
||||
/* Copyright 2019 ashpil
|
||||
*
|
||||
* 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
|
||||
|
||||
// place overrides here
|
||||
|
||||
|
||||
/* Add combos */
|
||||
#define COMBO_TERM 200
|
@ -1,47 +0,0 @@
|
||||
/* Copyright 2019 ashpil
|
||||
*
|
||||
* 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
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT_fullsize_ansi_wkl( /* Base layer */
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
|
||||
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_MEDIA_PLAY_PAUSE, KC_AUDIO_MUTE, KC_AUDIO_VOL_UP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
|
||||
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_MEDIA_PREV_TRACK, KC_MEDIA_NEXT_TRACK, KC_AUDIO_VOL_DOWN, KC_P7, KC_P8, KC_P9, KC_PPLS,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6,
|
||||
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_P1, KC_P2, KC_P3, KC_PENT,
|
||||
KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
|
||||
),
|
||||
};
|
||||
|
||||
enum combo_events {
|
||||
CTRL_PAUS_RESET,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM reset_combo[] = {KC_LCTL, KC_PAUS, COMBO_END};
|
||||
|
||||
combo_t key_combos[] = {
|
||||
[CTRL_PAUS_RESET] = COMBO_ACTION(reset_combo),
|
||||
};
|
||||
|
||||
void process_combo_event(uint16_t combo_index, bool pressed) {
|
||||
switch(combo_index) {
|
||||
case CTRL_PAUS_RESET:
|
||||
if (pressed) {
|
||||
reset_keyboard();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
@ -1 +0,0 @@
|
||||
COMBO_ENABLE = yes # Reset combo
|
@ -1,27 +0,0 @@
|
||||
/* Copyright 2019 iw0rm3r
|
||||
*
|
||||
* 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
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT( /* Base layer */
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
|
||||
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_NUM, KC_PSLS, KC_PAST, KC_PMNS,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
|
||||
KC_LGUI, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_P4, KC_P5, KC_P6,
|
||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_CAPS,
|
||||
KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_APP, KC_PDOT
|
||||
),
|
||||
};
|
@ -1,5 +0,0 @@
|
||||
# This is my personal keymap for modelm101
|
||||
|
||||
Caps Lock is mapped as LGUI (Windows key).
|
||||
Num Enter is mapped as Caps Lock.
|
||||
Num0 is mapped as App key (context menu).
|
@ -1,53 +0,0 @@
|
||||
/* Copyright 2022 an_achronism <87213873+an-achronism@users.noreply.github.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum keyboard_layers {
|
||||
_BL, // Base Layer
|
||||
_FN // Function Layer
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Layer 0: Default Layer
|
||||
* ,-------------------------------------------------------------------------------------------------.
|
||||
* |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PSc|ScL|Cap| |
|
||||
* | |
|
||||
* |` |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |BSp|Pse| |Ins|Hom|PgU| |Num|/ |* |= |
|
||||
* |-----------------------------------------------------------| |-----------| |---------------|
|
||||
* |Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |RCtrl| |Del|End|PgD| |7 |8 |9 |- |
|
||||
* |-----------------------------------------------------------| |---------------|
|
||||
* |LCtrl |A |S |D |F |G |H |J |K |L |; |' |# |Rtn | |4 |5 |6 |+ |
|
||||
* |-----------------------------------------------------------| |---------------|
|
||||
* |LShift|\ |Z |X |C |V |B |N |M |, |. |/ |RShift | |Up | |1 |2 |3 |Ent|
|
||||
* |-----------------------------------------------------------| |---| |-----------| |
|
||||
* |Esc/LAlt| |LGUI | Space |BS/Fn| |RAlt | |Lt |Dn |Rt | |0 |Fn | .| |
|
||||
* `-------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_BL] = LAYOUT_all(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_CAPS,
|
||||
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_PAUS, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PEQL,
|
||||
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_RCTL, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PMNS,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_INT1, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
|
||||
LALT_T(KC_ESC), KC_LGUI, KC_SPC, LT(_FN, KC_BSPC), KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, MO(_FN), KC_PDOT, KC_NO),
|
||||
[_FN] = LAYOUT_all(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, KC_MSTP, C(KC_BRK), _______, _______, _______, KC_F10, KC_F11, KC_F12, KC_PWR,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_MPRV, KC_MNXT, KC_APP, _______, _______, _______, KC_F7, KC_F8, KC_F9, KC_SLEP,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY, KC_F4, KC_F5, KC_F6, KC_CALC,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_F1, KC_F2, KC_F3, KC_EJCT,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||
};
|
@ -1,3 +0,0 @@
|
||||
# an_achronism's custom 106-key layout (107-key if you stick the appropriate keys on RShift and JIS backslash, which are already mapped for convenience).
|
||||
|
||||
# With the exception of a single extra matrix position between LAlt and Space which only appears on certain later membranes and is almost never actually used, the only unmapped key is the bottom right corner of the numpad (the unused lower half of the vertical 2u key most commonly used as either Enter or Field +). If you like, you can easily add that into the keymap by changing the appropriate KC_NO to whatever you want.
|
@ -1,29 +0,0 @@
|
||||
/* Copyright 2018 andresteare
|
||||
*
|
||||
* 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
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
// Programmer's Dvorak
|
||||
[0] = LAYOUT(
|
||||
KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
|
||||
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_NO, 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_NUM, KC_PSLS, KC_PAST, KC_PMNS,
|
||||
KC_NO, KC_NO, 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_ENT, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
|
||||
KC_NO, KC_NO, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_UP, KC_P4, KC_P5, KC_P6, KC_BSPC,
|
||||
KC_NO, KC_NO, KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_LEFT, KC_NO, KC_RIGHT, KC_P1, KC_P2, KC_P3, KC_PENT,
|
||||
KC_NO, KC_NO, KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_DOWN, KC_P0, KC_PDOT
|
||||
),
|
||||
};
|
@ -1,21 +0,0 @@
|
||||
/* Copyright 2021 tiltowait
|
||||
*
|
||||
* 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
|
||||
|
||||
// place overrides here
|
||||
|
||||
#define PERMISSIVE_HOLD
|
@ -1,116 +0,0 @@
|
||||
/* Copyright 2021 tiltowait
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum custom_layers {
|
||||
_BASE,
|
||||
_SECOND,
|
||||
_NUMPAD,
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
NUM_SCRL = SAFE_RANGE /* Dual-purpose Scroll Lock / Numlock button as on original hardware */
|
||||
};
|
||||
|
||||
void toggle_numlock_layer(int set_state);
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT( /* Base layer */
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_MUTE, KC_F10, KC_VOLD, KC_VOLU, S(G(KC_4)), NUM_SCRL, KC_PAUS,
|
||||
|
||||
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_BSLS, KC_INS, KC_HOME, KC_PGUP,
|
||||
LT(_SECOND,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_DEL, KC_END, KC_PGDN,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
|
||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LALT, LGUI_T(KC_ENT), KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
[_SECOND] = LAYOUT( /* Layer 1 */
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, S(A(KC_MINS)), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, C(KC_LEFT), C(KC_RGHT), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, S(A(KC_M)), KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_ENT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, C(KC_SPC), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
[_NUMPAD] = LAYOUT( /* Numpad Layer */
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_7, KC_KP_8, KC_KP_9, KC_TRNS, KC_KP_MINUS, KC_KP_PLUS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_4, KC_KP_5, KC_KP_6, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ASTERISK, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_0, KC_TRNS, KC_KP_DOT, KC_KP_SLASH, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
static uint16_t last_num_scroll = 0; /* For unregistering the proper key */
|
||||
|
||||
switch (keycode) {
|
||||
case NUM_SCRL:
|
||||
if (record->event.pressed) {
|
||||
if (get_mods() & MOD_MASK_SHIFT) {
|
||||
/* Remove the shift modifiers */
|
||||
uint8_t shift_mods = get_mods() & (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT));
|
||||
set_mods(get_mods() & ~(MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) );
|
||||
|
||||
last_num_scroll = KC_NUM_LOCK;
|
||||
register_code(last_num_scroll);
|
||||
toggle_numlock_layer(-1);
|
||||
|
||||
/* Reset the shift modifiers */
|
||||
set_mods(shift_mods);
|
||||
} else {
|
||||
last_num_scroll = KC_SCROLL_LOCK;
|
||||
register_code(last_num_scroll);
|
||||
}
|
||||
} else {
|
||||
unregister_code(last_num_scroll);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void toggle_numlock_layer(int set_state) {
|
||||
static uint8_t numlock_enabled = 0;
|
||||
|
||||
/* set_state allows us to explicitly change the numlock state
|
||||
rather than merely toggling it. */
|
||||
if (set_state == -1) {
|
||||
numlock_enabled = !numlock_enabled;
|
||||
} else {
|
||||
numlock_enabled = set_state;
|
||||
}
|
||||
|
||||
if (numlock_enabled) {
|
||||
layer_on(_NUMPAD);
|
||||
}
|
||||
else {
|
||||
layer_off(_NUMPAD);
|
||||
}
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
static int8_t numlock_state = -1;
|
||||
|
||||
if (led_state.num_lock != numlock_state) {
|
||||
numlock_state = led_state.num_lock;
|
||||
toggle_numlock_layer(led_state.num_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
# The maintainer's personal keymap for modelm_ssk
|
||||
|
||||
This is a keymap suitable for macOS use.
|
||||
|
||||
* Backspace and backslash have been swapped (HHKB style)
|
||||
* Capslock is LCTRL
|
||||
* LCTRL is LALT
|
||||
* LALT is LGUI
|
||||
* Tab shifts to layer 1 on hold
|
||||
* Layer 1 has a couple of Mac shortcuts, plus Vim-style arrow keys
|
||||
* Shift+Numlock enables numlock
|
@ -1,21 +0,0 @@
|
||||
/* Copyright 2021 Ibnu D. Aji
|
||||
*
|
||||
* 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 COMBO_TERM 50
|
||||
#define PERMISSIVE_HOLD
|
||||
#define TAPPING_TERM 175
|
||||
#define TAPPING_TERM 175
|
@ -1,246 +0,0 @@
|
||||
/* Copyright 2021 Ibnu D. Aji
|
||||
*
|
||||
* 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 CONSOLE_ENABLE
|
||||
#include "print.h"
|
||||
#endif
|
||||
|
||||
// enum for combos.
|
||||
enum combos {
|
||||
// left hand combinations.
|
||||
L_U_PINKY_RING,
|
||||
L_U_RING_MIDDLE,
|
||||
L_U_RING_INDEX,
|
||||
L_U_MIDDLE_INDEX,
|
||||
L_U_MIDDLE_INNER_INDEX,
|
||||
L_U_INDEX_INNER_INDEX,
|
||||
L_L_PINKY_RING,
|
||||
L_L_RING_MIDDLE,
|
||||
L_L_RING_INDEX,
|
||||
L_L_MIDDLE_INDEX,
|
||||
L_L_INDEX_INNER_INDEX,
|
||||
|
||||
L_U_RING_MIDDLE_INDEX,
|
||||
L_L_RING_MIDDLE_INDEX,
|
||||
|
||||
// right hand combinations.
|
||||
R_U_PINKY_RING,
|
||||
R_U_RING_MIDDLE,
|
||||
R_U_RING_INDEX,
|
||||
R_U_MIDDLE_INDEX,
|
||||
R_U_MIDDLE_INNER_INDEX,
|
||||
R_U_INNER_INNER_INDEX,
|
||||
R_L_PINKY_RING,
|
||||
R_L_RING_MIDDLE,
|
||||
R_L_MIDDLE_INDEX,
|
||||
R_L_RING_INDEX,
|
||||
R_L_INDEX_INNER_INDEX,
|
||||
|
||||
R_U_RING_MIDDLE_INDEX,
|
||||
R_L_RING_MIDDLE_INDEX,
|
||||
|
||||
// both hands combinations.
|
||||
B_L_MIDDLE_MIDDLE,
|
||||
};
|
||||
|
||||
enum {
|
||||
_BASE,
|
||||
_LOWER,
|
||||
_RAISE,
|
||||
_ADJUST,
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
BASE = SAFE_RANGE,
|
||||
LOWER,
|
||||
RAISE,
|
||||
ADJUST,
|
||||
};
|
||||
|
||||
// keycode abstraction
|
||||
#define LUP KC_Q
|
||||
#define LUR KC_V
|
||||
#define LUM KC_C
|
||||
#define LUI KC_P
|
||||
#define LUII KC_B
|
||||
#define LMP KC_R
|
||||
#define LMR KC_S
|
||||
#define LMM KC_T
|
||||
#define LMI KC_H
|
||||
#define LMII KC_D
|
||||
#define LLP KC_QUOT
|
||||
#define LLR KC_J
|
||||
#define LLM KC_G
|
||||
#define LLI KC_K
|
||||
#define LLII KC_X
|
||||
|
||||
#define RUP KC_Z
|
||||
#define RUR KC_Y
|
||||
#define RUM KC_U
|
||||
#define RUI KC_L
|
||||
#define RUII KC_DOT
|
||||
#define RMP KC_O
|
||||
#define RMR KC_I
|
||||
#define RMM KC_A
|
||||
#define RMI KC_N
|
||||
#define RMII KC_F
|
||||
#define RLP KC_SLSH
|
||||
#define RLR KC_COMM
|
||||
#define RLM KC_W
|
||||
#define RLI KC_M
|
||||
#define RLII KC_SCLN
|
||||
|
||||
// thumb keys.
|
||||
#define TRAISE TG(_RAISE)
|
||||
#define AL_ENT ALT_T(KC_ENT)
|
||||
#define SF_BSPC SFT_T(KC_BSPC)
|
||||
#define CT_ESC CTL_T(KC_ESC)
|
||||
|
||||
// home row mods.
|
||||
#define CTLR LCTL_T(LMR)
|
||||
#define CTRR RCTL_T(RMR)
|
||||
#define CT_LEFT LCTL_T(KC_LEFT)
|
||||
#define CT_SIX RCTL_T(KC_6)
|
||||
|
||||
#define SHLP LSFT_T(LMP)
|
||||
#define SHRP RSFT_T(RMP)
|
||||
#define SH_HASH LSFT_T(KC_HASH)
|
||||
#define SH_ZERO RSFT_T(KC_0)
|
||||
|
||||
#define ALLM LALT_T(LMM)
|
||||
#define ALRM RALT_T(RMM)
|
||||
#define AL_DOWN LALT_T(KC_DOWN)
|
||||
#define AL_FIVE RALT_T(KC_5)
|
||||
|
||||
#define GULII RGUI_T(LMII)
|
||||
#define GURII LGUI_T(RMII)
|
||||
#define GU_DLR RGUI_T(KC_DLR)
|
||||
#define GU_EQL LGUI_T(KC_EQL)
|
||||
|
||||
// layer toggle.
|
||||
#define LW_E LT(_LOWER, KC_E)
|
||||
#define RS_SPC LT(_RAISE, KC_SPC)
|
||||
#define LW_RMI LT(_LOWER, RMI)
|
||||
#define RS_LMI LT(_RAISE, LMI)
|
||||
|
||||
// idk, man. not used, i guess.
|
||||
#define ADDDD MO(_ADJUST)
|
||||
|
||||
// common shortcuts for windows and linux that i use.
|
||||
#define NXTTAB LCTL(KC_PGDN)
|
||||
#define PRVTAB LCTL(KC_PGUP)
|
||||
#define UPTAB LCTL(LSFT(KC_PGUP))
|
||||
#define DNTAB LCTL(LSFT(KC_PGDN))
|
||||
#define NXTWIN LALT(KC_TAB)
|
||||
#define PRVWIN LALT(LSFT(KC_TAB))
|
||||
#define CALDL LCTL(LALT(KC_DEL))
|
||||
#define TSKMGR LCTL(LSFT(KC_ESC))
|
||||
#define EXPLR LGUI(KC_E)
|
||||
#define LCKGUI LGUI(KC_L)
|
||||
#define CONPST LSFT(KC_INS)
|
||||
#define CLSGUI LALT(KC_F4)
|
||||
|
||||
// left hand combinations.
|
||||
const uint16_t PROGMEM lu_p_r_combo[] = {LUP, LUR, COMBO_END};
|
||||
const uint16_t PROGMEM lu_r_m_combo[] = {LUR, LUM, COMBO_END};
|
||||
const uint16_t PROGMEM lu_r_i_combo[] = {LUR, LUI, COMBO_END};
|
||||
const uint16_t PROGMEM lu_m_i_combo[] = {LUM, LUI, COMBO_END};
|
||||
const uint16_t PROGMEM lu_m_ii_combo[] = {LUM, LUII, COMBO_END};
|
||||
const uint16_t PROGMEM lu_i_ii_combo[] = {LUI, LUII, COMBO_END};
|
||||
const uint16_t PROGMEM ll_p_r_combo[] = {LLP, LLR, COMBO_END};
|
||||
const uint16_t PROGMEM ll_r_m_combo[] = {LLR, LLM, COMBO_END};
|
||||
const uint16_t PROGMEM ll_r_i_combo[] = {LLR, LLI, COMBO_END};
|
||||
const uint16_t PROGMEM ll_m_i_combo[] = {LLM, LLI, COMBO_END};
|
||||
const uint16_t PROGMEM ll_i_ii_combo[] = {LLI, LLII, COMBO_END};
|
||||
|
||||
const uint16_t PROGMEM lu_r_m_i_combo[] = {LUR, LUM, LUI, COMBO_END};
|
||||
const uint16_t PROGMEM ll_r_m_i_combo[] = {LLR, LLM, LLI, COMBO_END};
|
||||
|
||||
// right hand combinations.
|
||||
const uint16_t PROGMEM ru_p_r_combo[] = {RUP, RUR, COMBO_END};
|
||||
const uint16_t PROGMEM ru_r_m_combo[] = {RUR, RUM, COMBO_END};
|
||||
const uint16_t PROGMEM ru_r_i_combo[] = {RUR, RUI, COMBO_END};
|
||||
const uint16_t PROGMEM ru_m_i_combo[] = {RUM, RUI, COMBO_END};
|
||||
const uint16_t PROGMEM ru_m_ii_combo[] = {RUM, RUII, COMBO_END};
|
||||
const uint16_t PROGMEM ru_i_ii_combo[] = {RUI, RUII, COMBO_END};
|
||||
const uint16_t PROGMEM rl_p_r_combo[] = {RLP, RLR, COMBO_END};
|
||||
const uint16_t PROGMEM rl_r_m_combo[] = {RLR, RLM, COMBO_END};
|
||||
const uint16_t PROGMEM rl_r_i_combo[] = {RLR, RLI, COMBO_END};
|
||||
const uint16_t PROGMEM rl_m_i_combo[] = {RLM, RLI, COMBO_END};
|
||||
const uint16_t PROGMEM rl_i_ii_combo[] = {RLI, RLII, COMBO_END};
|
||||
|
||||
const uint16_t PROGMEM ru_r_m_i_combo[] = {RUR, RUM, RUI, COMBO_END};
|
||||
const uint16_t PROGMEM rl_r_m_i_combo[] = {RLR, RLM, RLI, COMBO_END};
|
||||
|
||||
// both hand combinations.
|
||||
const uint16_t PROGMEM bl_m_m_combo[] = {LLM, RLM, COMBO_END};
|
||||
|
||||
combo_t key_combos[] = {
|
||||
// left hand combinations.
|
||||
[L_U_PINKY_RING] = COMBO(lu_p_r_combo, KC_TAB),
|
||||
[L_U_RING_MIDDLE] = COMBO(lu_r_m_combo, KC_QUES),
|
||||
[L_U_RING_INDEX] = COMBO(lu_r_i_combo, PRVTAB),
|
||||
[L_U_MIDDLE_INDEX] = COMBO(lu_m_i_combo, KC_UNDS),
|
||||
[L_U_MIDDLE_INNER_INDEX] = COMBO(lu_m_ii_combo, KC_ENT),
|
||||
[L_U_INDEX_INNER_INDEX] = COMBO(lu_i_ii_combo, KC_PIPE),
|
||||
[L_L_PINKY_RING] = COMBO(ll_p_r_combo, KC_ENT),
|
||||
[L_L_RING_MIDDLE] = COMBO(ll_r_m_combo, LCTL(KC_W)),
|
||||
[L_L_RING_INDEX] = COMBO(ll_r_i_combo, KC_TAB),
|
||||
[L_L_MIDDLE_INDEX] = COMBO(ll_m_i_combo, KC_DEL),
|
||||
[L_L_INDEX_INNER_INDEX] = COMBO(ll_i_ii_combo, KC_TILD),
|
||||
|
||||
[L_U_RING_MIDDLE_INDEX] = COMBO(lu_r_m_i_combo, KC_PIPE),
|
||||
[L_L_RING_MIDDLE_INDEX] = COMBO(ll_r_m_i_combo, KC_TILD),
|
||||
|
||||
// right hand combinations.
|
||||
[R_U_PINKY_RING] = COMBO(ru_p_r_combo, KC_BSPC),
|
||||
[R_U_RING_MIDDLE] = COMBO(ru_r_m_combo, KC_SLSH),
|
||||
[R_U_RING_INDEX] = COMBO(ru_r_i_combo, NXTTAB),
|
||||
[R_U_MIDDLE_INDEX] = COMBO(ru_m_i_combo, KC_MINS),
|
||||
[R_U_MIDDLE_INNER_INDEX] = COMBO(ru_m_ii_combo, KC_ENT),
|
||||
[R_U_INNER_INNER_INDEX] = COMBO(ru_i_ii_combo, KC_BSLS),
|
||||
[R_L_PINKY_RING] = COMBO(rl_p_r_combo, KC_BSLS),
|
||||
[R_L_RING_MIDDLE] = COMBO(rl_r_m_combo, KC_APP),
|
||||
[R_L_RING_INDEX] = COMBO(rl_r_i_combo, LSFT(KC_TAB)),
|
||||
[R_L_MIDDLE_INDEX] = COMBO(rl_m_i_combo, KC_DEL),
|
||||
[R_L_INDEX_INNER_INDEX] = COMBO(rl_i_ii_combo, KC_GRV),
|
||||
|
||||
[R_U_RING_MIDDLE_INDEX] = COMBO(ru_r_m_i_combo, KC_BSLS),
|
||||
[R_L_RING_MIDDLE_INDEX] = COMBO(rl_r_m_i_combo, KC_GRV),
|
||||
|
||||
// both hand combinations.
|
||||
[B_L_MIDDLE_MIDDLE] = COMBO(bl_m_m_combo, KC_ENT),
|
||||
};
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT_all(
|
||||
KC_ESC, LUP, LUR, LUM, LUI, LUII, RUII, RUI, RUM, RUR, RUP, KC_BSPC, KC_BSPC,
|
||||
KC_LCTL,SHLP, CTLR, ALLM, RS_LMI, GULII, GURII, LW_RMI, ALRM, CTRR, SHRP, KC_ENT,
|
||||
KC_LSFT,LLP, LLR, LLM, LLI, LLII, RLII, RLI, RLM, RLR, RLP, KC_RSFT,MO(1),
|
||||
KC_LGUI,KC_LALT, KC_LGUI,LW_E, SF_BSPC, AL_ENT, RS_SPC, KC_LALT, KC_RGUI,KC_RCTL
|
||||
),
|
||||
[1] = 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_DEL, KC_BSPC,
|
||||
KC_LCTL,KC_EXLM,KC_AT, KC_HASH,KC_DLR, KC_PERC, KC_CIRC,KC_AMPR,KC_ASTR,KC_LPRN,KC_RPRN, KC_SCLN,
|
||||
KC_LSFT,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH,KC_RSFT,MO(2),
|
||||
KC_LGUI,KC_LALT, KC_LGUI,LW_E, SF_BSPC, AL_ENT, RS_SPC, KC_LALT, KC_RGUI,KC_RCTL
|
||||
),
|
||||
[2] = LAYOUT_all(
|
||||
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_LCTL,KC_EXLM,KC_AT, KC_HASH,KC_DLR, KC_PERC, KC_CIRC,KC_AMPR,KC_ASTR,KC_LPRN,KC_RPRN, KC_SCLN,
|
||||
KC_LSFT,KC_Z, KC_X, KC_C, KC_V, QK_BOOT, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH,KC_RSFT,MO(1),
|
||||
KC_LGUI,KC_LALT, KC_LGUI,LW_E, SF_BSPC, AL_ENT, RS_SPC, KC_LALT, KC_RGUI,KC_RCTL
|
||||
),
|
||||
};
|
@ -1 +0,0 @@
|
||||
# Rick's Keymap for Alicia Cook
|
@ -1,2 +0,0 @@
|
||||
COMBO_ENABLE = yes
|
||||
CONSOLE_ENABLE = yes
|
@ -1,6 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#define COMBO_TERM 100
|
||||
#define PERMISSIVE_HOLD
|
||||
|
||||
#define LEADER_TIMEOUT 300
|
@ -1,188 +0,0 @@
|
||||
/* Copyright 2020 Ibnu D. Aji
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
// enum for combos.
|
||||
enum combos {
|
||||
// left hand combinations.
|
||||
COLON_COMMA,
|
||||
COMMA_DOT,
|
||||
DOT_P,
|
||||
P_Y,
|
||||
COMMA_P,
|
||||
QUOT_Q,
|
||||
Q_J,
|
||||
J_K,
|
||||
Q_K,
|
||||
K_X,
|
||||
|
||||
// right hand combinations.
|
||||
L_R,
|
||||
R_C,
|
||||
C_G,
|
||||
R_G,
|
||||
G_F,
|
||||
V_W,
|
||||
W_M,
|
||||
V_M,
|
||||
M_B,
|
||||
|
||||
// both hands combinations.
|
||||
J_W,
|
||||
};
|
||||
|
||||
enum {
|
||||
_BASE,
|
||||
_LOWER,
|
||||
_RAISE,
|
||||
_ADJUST,
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
BASE = SAFE_RANGE,
|
||||
LOWER,
|
||||
RAISE,
|
||||
ADJUST,
|
||||
};
|
||||
|
||||
// thumb keys.
|
||||
#define ALT_ENT ALT_T(KC_ENT)
|
||||
#define SFT_ESC SFT_T(KC_ESC)
|
||||
|
||||
// home row mods.
|
||||
#define CT_O LCTL_T(KC_O)
|
||||
#define CT_N RCTL_T(KC_N)
|
||||
#define SH_A LSFT_T(KC_A)
|
||||
#define SH_S RSFT_T(KC_S)
|
||||
#define AL_E LALT_T(KC_E)
|
||||
#define AL_T RALT_T(KC_T)
|
||||
#define GU_I LGUI_T(KC_I)
|
||||
#define GU_D RGUI_T(KC_D)
|
||||
|
||||
// layer toggle.
|
||||
#define LW_BSPC LT(_LOWER, KC_BSPC)
|
||||
#define RS_SPC LT(_RAISE, KC_SPC)
|
||||
#define RS_D LT(_RAISE, KC_D)
|
||||
#define LW_I LT(_LOWER, KC_I)
|
||||
|
||||
// idk, man. not used, i guess.
|
||||
#define ADDDD MO(_ADJUST)
|
||||
|
||||
// common shortcuts for windows and linux that i use.
|
||||
#define NXTTAB LCTL(KC_PGDN)
|
||||
#define PRVTAB LCTL(KC_PGUP)
|
||||
#define UPTAB LCTL(LSFT(KC_PGUP))
|
||||
#define DNTAB LCTL(LSFT(KC_PGDN))
|
||||
#define NXTWIN LALT(KC_TAB)
|
||||
#define PRVWIN LALT(LSFT(KC_TAB))
|
||||
#define CALDL LCTL(LALT(KC_DEL))
|
||||
#define TSKMGR LCTL(LSFT(KC_ESC))
|
||||
#define EXPLR LGUI(KC_E)
|
||||
#define LCKGUI LGUI(KC_L)
|
||||
#define CONPST LSFT(KC_INS)
|
||||
#define CLSGUI LALT(KC_F4)
|
||||
|
||||
// left hand combinations.
|
||||
const uint16_t PROGMEM colon_comma_combo[] = {KC_SCLN, KC_COMM, COMBO_END};
|
||||
const uint16_t PROGMEM comma_dot_combo[] = {KC_COMM, KC_DOT, COMBO_END};
|
||||
const uint16_t PROGMEM dot_p_combo[] = {KC_DOT, KC_P, COMBO_END};
|
||||
const uint16_t PROGMEM p_y_combo[] = {KC_P, KC_Y, COMBO_END};
|
||||
const uint16_t PROGMEM comma_p_combo[] = {KC_COMM, KC_P, COMBO_END};
|
||||
const uint16_t PROGMEM quot_q_combo[] = {KC_QUOT, KC_Q, COMBO_END};
|
||||
const uint16_t PROGMEM q_j_combo[] = {KC_Q, KC_J, COMBO_END};
|
||||
const uint16_t PROGMEM j_k_combo[] = {KC_J, KC_K, COMBO_END};
|
||||
const uint16_t PROGMEM q_k_combo[] = {KC_Q, KC_K, COMBO_END};
|
||||
const uint16_t PROGMEM k_x_combo[] = {KC_K, KC_X, COMBO_END};
|
||||
|
||||
// right hand combinations.
|
||||
const uint16_t PROGMEM l_r_combo[] = {KC_L, KC_R, COMBO_END};
|
||||
const uint16_t PROGMEM r_c_combo[] = {KC_R, KC_C, COMBO_END};
|
||||
const uint16_t PROGMEM c_g_combo[] = {KC_C, KC_G, COMBO_END};
|
||||
const uint16_t PROGMEM r_g_combo[] = {KC_R, KC_G, COMBO_END};
|
||||
const uint16_t PROGMEM g_f_combo[] = {KC_G, KC_F, COMBO_END};
|
||||
const uint16_t PROGMEM v_w_combo[] = {KC_V, KC_W, COMBO_END};
|
||||
const uint16_t PROGMEM w_m_combo[] = {KC_W, KC_M, COMBO_END};
|
||||
const uint16_t PROGMEM v_m_combo[] = {KC_V, KC_M, COMBO_END};
|
||||
const uint16_t PROGMEM m_b_combo[] = {KC_M, KC_B, COMBO_END};
|
||||
|
||||
// both hand combinations.
|
||||
const uint16_t PROGMEM j_w_combo[] = {KC_J, KC_W, COMBO_END};
|
||||
|
||||
combo_t key_combos[] = {
|
||||
// left hand combinations.
|
||||
[COLON_COMMA] = COMBO(colon_comma_combo, KC_TAB),
|
||||
[COMMA_DOT] = COMBO(comma_dot_combo, KC_QUES),
|
||||
[DOT_P] = COMBO(dot_p_combo, KC_UNDS),
|
||||
[P_Y] = COMBO(p_y_combo, KC_PIPE),
|
||||
[COMMA_P] = COMBO(comma_p_combo, PRVTAB),
|
||||
[QUOT_Q] = COMBO(quot_q_combo, KC_ENT),
|
||||
[Q_J] = COMBO(q_j_combo, LCTL(KC_W)),
|
||||
[J_K] = COMBO(j_k_combo, KC_DEL),
|
||||
[Q_K] = COMBO(q_k_combo, KC_TAB),
|
||||
[K_X] = COMBO(k_x_combo, KC_TILD),
|
||||
|
||||
// right hand combinations.
|
||||
[L_R] = COMBO(l_r_combo, KC_BSPC),
|
||||
[R_C] = COMBO(r_c_combo, KC_SLSH),
|
||||
[C_G] = COMBO(c_g_combo, KC_MINS),
|
||||
[R_G] = COMBO(r_g_combo, NXTTAB),
|
||||
[G_F] = COMBO(g_f_combo, KC_BSLS),
|
||||
[V_W] = COMBO(v_w_combo, KC_APP),
|
||||
[W_M] = COMBO(w_m_combo, KC_DEL),
|
||||
[V_M] = COMBO(v_m_combo, LSFT(KC_TAB)),
|
||||
[M_B] = COMBO(m_b_combo, KC_GRV),
|
||||
|
||||
// both hand combinations.
|
||||
[J_W] = COMBO(j_w_combo, KC_ENT),
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT_complicated(
|
||||
KC_SCLN,KC_COMM,KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L,
|
||||
SH_A, CT_O, AL_E, KC_U, GU_I, GU_D, KC_H, AL_T, CT_N, SH_S,
|
||||
KC_QUOT,KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z,
|
||||
LW_BSPC,QK_LEAD, ALT_ENT,RS_SPC,
|
||||
LW_BSPC,SFT_ESC, ALT_ENT,RS_SPC
|
||||
),
|
||||
|
||||
[_RAISE] = LAYOUT_complicated(
|
||||
KC_EXLM,KC_AT, KC_UP, KC_LCBR,KC_RCBR, KC_BSLS,KC_7, KC_8, KC_9, KC_ASTR ,
|
||||
KC_HASH,KC_LEFT,KC_DOWN,KC_RGHT,KC_DLR, KC_EQL, KC_4, KC_5, KC_6, KC_0 ,
|
||||
KC_LBRC,KC_RBRC,KC_LPRN,KC_RPRN,KC_AMPR, KC_GRV, KC_1, KC_2, KC_3, KC_PLUS ,
|
||||
ADDDD ,_______, _______,_______,
|
||||
ADDDD ,_______, _______,_______
|
||||
),
|
||||
[_LOWER] = LAYOUT_complicated(
|
||||
_______,_______,_______,KC_F1, KC_F2, KC_F3, KC_F4, _______,_______,_______ ,
|
||||
KC_LSFT,KC_TAB, KC_PGUP,KC_F5, KC_F6, KC_F7, KC_F8, KC_HOME,KC_LALT,KC_ENT ,
|
||||
KC_CAPS,KC_SCRL,KC_PGDN,KC_F9, KC_F10, KC_F11, KC_F12, KC_END, KC_INS, _______ ,
|
||||
_______,_______, _______,ADDDD,
|
||||
_______,_______, _______,ADDDD
|
||||
),
|
||||
[_ADJUST] = LAYOUT_complicated(
|
||||
_______,EXPLR, KC_UP, PRVTAB, PRVWIN, NXTWIN, NXTTAB, _______,_______,LCKGUI,
|
||||
TSKMGR, KC_LEFT,KC_DOWN,KC_RGHT,UPTAB, DNTAB, KC_ENT, KC_LGUI,_______,CALDL,
|
||||
_______,CLSGUI, _______,CONPST, QK_BOOT, _______,_______,_______,_______,_______,
|
||||
_______,_______, _______,_______,
|
||||
_______,_______, _______,_______
|
||||
),
|
||||
};
|
||||
|
||||
void leader_end_user(void) {
|
||||
if (leader_sequence_one_key(KC_U)) {
|
||||
SEND_STRING(":luvu:\n");
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
# goldberg keymap
|
||||
|
||||
ricky rick's keymap on squiggle goldberg. ayyy.
|
@ -1,2 +0,0 @@
|
||||
COMBO_ENABLE = yes
|
||||
LEADER_ENABLE = yes
|
@ -1,4 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#define COMBO_TERM 100
|
||||
#define PERMISSIVE_HOLD
|
@ -1,178 +0,0 @@
|
||||
/* Copyright 2020 Ibnu D. Aji
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
// enum for combos.
|
||||
enum combos {
|
||||
// left hand combinations.
|
||||
COLON_COMMA,
|
||||
COMMA_DOT,
|
||||
DOT_P,
|
||||
P_Y,
|
||||
COMMA_P,
|
||||
QUOT_Q,
|
||||
Q_J,
|
||||
J_K,
|
||||
Q_K,
|
||||
K_X,
|
||||
|
||||
// right hand combinations.
|
||||
L_R,
|
||||
R_C,
|
||||
C_G,
|
||||
R_G,
|
||||
G_F,
|
||||
V_W,
|
||||
W_M,
|
||||
V_M,
|
||||
M_B,
|
||||
|
||||
// both hands combinations.
|
||||
J_W,
|
||||
};
|
||||
|
||||
enum {
|
||||
_BASE,
|
||||
_LOWER,
|
||||
_RAISE,
|
||||
_ADJUST,
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
BASE = SAFE_RANGE,
|
||||
LOWER,
|
||||
RAISE,
|
||||
ADJUST,
|
||||
};
|
||||
|
||||
// thumb keys.
|
||||
#define ALT_ENT ALT_T(KC_ENT)
|
||||
#define SFT_ESC SFT_T(KC_ESC)
|
||||
|
||||
// home row mods.
|
||||
#define CT_O LCTL_T(KC_O)
|
||||
#define CT_N RCTL_T(KC_N)
|
||||
#define SH_A LSFT_T(KC_A)
|
||||
#define SH_S RSFT_T(KC_S)
|
||||
#define AL_E LALT_T(KC_E)
|
||||
#define AL_T RALT_T(KC_T)
|
||||
#define GU_I LGUI_T(KC_I)
|
||||
#define GU_D RGUI_T(KC_D)
|
||||
|
||||
// layer toggle.
|
||||
#define LW_BSPC LT(_LOWER, KC_BSPC)
|
||||
#define RS_SPC LT(_RAISE, KC_SPC)
|
||||
#define RS_D LT(_RAISE, KC_D)
|
||||
#define LW_I LT(_LOWER, KC_I)
|
||||
|
||||
// idk, man. not used, i guess.
|
||||
#define ADDDD MO(_ADJUST)
|
||||
|
||||
// common shortcuts for windows and linux that i use.
|
||||
#define NXTTAB LCTL(KC_PGDN)
|
||||
#define PRVTAB LCTL(KC_PGUP)
|
||||
#define UPTAB LCTL(LSFT(KC_PGUP))
|
||||
#define DNTAB LCTL(LSFT(KC_PGDN))
|
||||
#define NXTWIN LALT(KC_TAB)
|
||||
#define PRVWIN LALT(LSFT(KC_TAB))
|
||||
#define CALDL LCTL(LALT(KC_DEL))
|
||||
#define TSKMGR LCTL(LSFT(KC_ESC))
|
||||
#define EXPLR LGUI(KC_E)
|
||||
#define LCKGUI LGUI(KC_L)
|
||||
#define CONPST LSFT(KC_INS)
|
||||
#define CLSGUI LALT(KC_F4)
|
||||
|
||||
// left hand combinations.
|
||||
const uint16_t PROGMEM colon_comma_combo[] = {KC_SCLN, KC_COMM, COMBO_END};
|
||||
const uint16_t PROGMEM comma_dot_combo[] = {KC_COMM, KC_DOT, COMBO_END};
|
||||
const uint16_t PROGMEM dot_p_combo[] = {KC_DOT, KC_P, COMBO_END};
|
||||
const uint16_t PROGMEM p_y_combo[] = {KC_P, KC_Y, COMBO_END};
|
||||
const uint16_t PROGMEM comma_p_combo[] = {KC_COMM, KC_P, COMBO_END};
|
||||
const uint16_t PROGMEM quot_q_combo[] = {KC_QUOT, KC_Q, COMBO_END};
|
||||
const uint16_t PROGMEM q_j_combo[] = {KC_Q, KC_J, COMBO_END};
|
||||
const uint16_t PROGMEM j_k_combo[] = {KC_J, KC_K, COMBO_END};
|
||||
const uint16_t PROGMEM q_k_combo[] = {KC_Q, KC_K, COMBO_END};
|
||||
const uint16_t PROGMEM k_x_combo[] = {KC_K, KC_X, COMBO_END};
|
||||
|
||||
// right hand combinations.
|
||||
const uint16_t PROGMEM l_r_combo[] = {KC_L, KC_R, COMBO_END};
|
||||
const uint16_t PROGMEM r_c_combo[] = {KC_R, KC_C, COMBO_END};
|
||||
const uint16_t PROGMEM c_g_combo[] = {KC_C, KC_G, COMBO_END};
|
||||
const uint16_t PROGMEM r_g_combo[] = {KC_R, KC_G, COMBO_END};
|
||||
const uint16_t PROGMEM g_f_combo[] = {KC_G, KC_F, COMBO_END};
|
||||
const uint16_t PROGMEM v_w_combo[] = {KC_V, KC_W, COMBO_END};
|
||||
const uint16_t PROGMEM w_m_combo[] = {KC_W, KC_M, COMBO_END};
|
||||
const uint16_t PROGMEM v_m_combo[] = {KC_V, KC_M, COMBO_END};
|
||||
const uint16_t PROGMEM m_b_combo[] = {KC_M, KC_B, COMBO_END};
|
||||
|
||||
// both hand combinations.
|
||||
const uint16_t PROGMEM j_w_combo[] = {KC_J, KC_W, COMBO_END};
|
||||
|
||||
combo_t key_combos[] = {
|
||||
// left hand combinations.
|
||||
[COLON_COMMA] = COMBO(colon_comma_combo, KC_TAB),
|
||||
[COMMA_DOT] = COMBO(comma_dot_combo, KC_QUES),
|
||||
[DOT_P] = COMBO(dot_p_combo, KC_UNDS),
|
||||
[P_Y] = COMBO(p_y_combo, KC_PIPE),
|
||||
[COMMA_P] = COMBO(comma_p_combo, PRVTAB),
|
||||
[QUOT_Q] = COMBO(quot_q_combo, KC_ENT),
|
||||
[Q_J] = COMBO(q_j_combo, LCTL(KC_W)),
|
||||
[J_K] = COMBO(j_k_combo, KC_DEL),
|
||||
[Q_K] = COMBO(q_k_combo, KC_TAB),
|
||||
[K_X] = COMBO(k_x_combo, KC_TILD),
|
||||
|
||||
// right hand combinations.
|
||||
[L_R] = COMBO(l_r_combo, KC_BSPC),
|
||||
[R_C] = COMBO(r_c_combo, KC_SLSH),
|
||||
[C_G] = COMBO(c_g_combo, KC_MINS),
|
||||
[R_G] = COMBO(r_g_combo, NXTTAB),
|
||||
[G_F] = COMBO(g_f_combo, KC_BSLS),
|
||||
[V_W] = COMBO(v_w_combo, KC_APP),
|
||||
[W_M] = COMBO(w_m_combo, KC_DEL),
|
||||
[V_M] = COMBO(v_m_combo, LSFT(KC_TAB)),
|
||||
[M_B] = COMBO(m_b_combo, KC_GRV),
|
||||
|
||||
// both hand combinations.
|
||||
[J_W] = COMBO(j_w_combo, KC_ENT),
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT(
|
||||
KC_SCLN,KC_COMM,KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L,
|
||||
SH_A, CT_O, AL_E, KC_U, GU_I, GU_D, KC_H, AL_T, CT_N, SH_S,
|
||||
KC_QUOT,KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z,
|
||||
LW_BSPC,SFT_ESC, ALT_ENT,RS_SPC
|
||||
),
|
||||
|
||||
[_RAISE] = LAYOUT(
|
||||
KC_EXLM,KC_AT, KC_UP, KC_LCBR,KC_RCBR, KC_BSLS,KC_7, KC_8, KC_9, KC_ASTR ,
|
||||
KC_HASH,KC_LEFT,KC_DOWN,KC_RGHT,KC_DLR, KC_EQL, KC_4, KC_5, KC_6, KC_0 ,
|
||||
KC_LBRC,KC_RBRC,KC_LPRN,KC_RPRN,KC_AMPR, KC_GRV, KC_1, KC_2, KC_3, KC_PLUS ,
|
||||
ADDDD ,_______, _______,_______
|
||||
),
|
||||
[_LOWER] = LAYOUT(
|
||||
KC_ESC, KC_QUES,KC_UNDS,KC_F1, KC_F2, KC_F3, KC_F4, KC_MINS,KC_SLSH,KC_BSPC ,
|
||||
KC_LSFT,KC_TAB, KC_PGUP,KC_F5, KC_F6, KC_F7, KC_F8, KC_HOME,KC_LALT,KC_ENT ,
|
||||
KC_CAPS,KC_SCRL,KC_PGDN,KC_F9, KC_F10, KC_F11, KC_F12, KC_END, KC_INS, KC_SLSH ,
|
||||
_______,_______, _______,ADDDD
|
||||
),
|
||||
[_ADJUST] = LAYOUT(
|
||||
_______,EXPLR, KC_UP, PRVTAB, PRVWIN, NXTWIN, NXTTAB, _______,_______,LCKGUI,
|
||||
TSKMGR, KC_LEFT,KC_DOWN,KC_RGHT,UPTAB, DNTAB, KC_ENT, KC_LGUI,_______,CALDL,
|
||||
_______,CLSGUI, _______,CONPST, QK_BOOT, _______,_______,_______,_______,_______,
|
||||
_______,_______, _______,_______
|
||||
),
|
||||
};
|
@ -1,3 +0,0 @@
|
||||
# water
|
||||
|
||||
ricky rick's keymap. ayyy.
|
@ -1 +0,0 @@
|
||||
COMBO_ENABLE = yes
|
@ -1,27 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[0] = LAYOUT(
|
||||
QK_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_NO,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Z, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
|
||||
LT(2, KC_CAPS), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_NUBS, KC_Y, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1),
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_MENU, KC_RGUI
|
||||
),
|
||||
[1] = LAYOUT(
|
||||
QK_BOOT, 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_DEL, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[2] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
|
||||
};
|
@ -1,82 +0,0 @@
|
||||
// Copyright 2021 Werther (@thewerther)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define DRIVER_LED_UNDERGLOW 10
|
||||
#define TAPPING_TERM 500
|
||||
#define PERMISSIVE_HOLD
|
||||
|
||||
#if defined(RGB_MATRIX_ENABLE)
|
||||
#undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
|
||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
|
||||
|
||||
// change saturation and hue step size
|
||||
#undef RGBLIGHT_HUE_STEP
|
||||
#undef RGBLIGHT_SAT_STEP
|
||||
#define RGBLIGHT_SAT_STEP 5
|
||||
#define RGBLIGHT_HUE_STEP 5
|
||||
|
||||
#define RGB_MATRIX_KEYPRESSES
|
||||
|
||||
// disable effects from keyboard level config.h
|
||||
#undef ENABLE_RGB_MATRIX_ALPHAS_MODS
|
||||
#undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||
#undef ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
|
||||
#undef ENABLE_RGB_MATRIX_BREATHING
|
||||
#undef ENABLE_RGB_MATRIX_BAND_SAT
|
||||
#undef ENABLE_RGB_MATRIX_BAND_VAL
|
||||
#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||
#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
|
||||
#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||
#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
|
||||
#undef ENABLE_RGB_MATRIX_CYCLE_ALL
|
||||
#undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
#undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
|
||||
#undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN
|
||||
#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
|
||||
#undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
|
||||
#undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||
#undef ENABLE_RGB_MATRIX_DUAL_BEACON
|
||||
#undef ENABLE_RGB_MATRIX_RAINBOW_BEACON
|
||||
#undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
|
||||
#undef ENABLE_RGB_MATRIX_RAINDROPS
|
||||
#undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
||||
#undef ENABLE_RGB_MATRIX_HUE_BREATHING
|
||||
#undef ENABLE_RGB_MATRIX_HUE_PENDULUM
|
||||
#undef ENABLE_RGB_MATRIX_HUE_WAVE
|
||||
#undef ENABLE_RGB_MATRIX_PIXEL_FRACTAL
|
||||
#undef ENABLE_RGB_MATRIX_PIXEL_RAIN
|
||||
#undef ENABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
#undef ENABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE
|
||||
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||
#undef ENABLE_RGB_MATRIX_SPLASH
|
||||
#undef ENABLE_RGB_MATRIX_MULTISPLASH
|
||||
#undef ENABLE_RGB_MATRIX_SOLID_SPLASH
|
||||
#undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||
|
||||
// only enable a few
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||
#define ENABLE_RGB_MATRIX_DUAL_BEACON
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
|
||||
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
|
||||
|
||||
// #if defined(RGB_MATRIX_KEYPRESSES) || defined(RGB_MATRIX_KEYRELEASES)
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE// Pulses keys hit to hue & value then fades value out
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE // Static single hue, pulses keys hit to shifted hue then fades to current hue
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
|
||||
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH // Hue & value pulse away from multiple key hits then fades value out
|
||||
// #endif // # if defined(RGB_MATRIX_KEYPRESSES) || defined(RGB_MATRIX_KEYRELEASES)
|
||||
#endif // # if defined(RGB_MATRIX_ENABLE)
|
||||
|
@ -1,42 +0,0 @@
|
||||
// Copyright 2021 Werther (@thewerther)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = 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_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_BSLS, KC_DEL,
|
||||
KC_RALT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, LT(1, KC_SPC), MO(2), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
[1] = LAYOUT_65_ansi_blocker(
|
||||
_______, 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_PGUP, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, KC_PGDN, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[2] = LAYOUT_65_ansi_blocker(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, RGB_TOG, _______, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_MPLY, KC_MPRV, KC_MNXT, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME,
|
||||
_______, QK_BOOT, RGB_SPI, RGB_SPD, _______, KC_VOLD, KC_MUTE, KC_VOLU, _______, _______, _______, _______, _______, KC_END,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
|
||||
};
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
#if defined(RGB_MATRIX_ENABLE)
|
||||
int current_effect = rgb_matrix_get_mode();
|
||||
if (current_effect >= RGB_MATRIX_SOLID_REACTIVE_SIMPLE && current_effect <= RGB_MATRIX_SOLID_MULTISPLASH) {
|
||||
// set all underglow leds to current color
|
||||
RGB current_color = hsv_to_rgb(rgb_matrix_get_hsv());
|
||||
for (int i = RGB_MATRIX_LED_COUNT - DRIVER_LED_UNDERGLOW; i < RGB_MATRIX_LED_COUNT; i++) {
|
||||
rgb_matrix_set_color(i, current_color.r, current_color.g, current_color.b);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
@ -1,74 +0,0 @@
|
||||
// Copyright 2022 Vino Rodrigues (@vinorodrigues)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*
|
||||
* IDOBAO ID67 Keymap for a ID67 Bestype, built for Mac use
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#define ID67_DISABLE_UNDERGLOW
|
||||
|
||||
#ifdef RGB_MATRIX_MAXIMUM_BRIGHTNESS
|
||||
#undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
|
||||
#endif
|
||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to x out of 255
|
||||
|
||||
//// #define RGB_MATRIX_KEYPRESSES
|
||||
|
||||
// RGB Matrix config, nit-pick a few animations. "////" = already defined in base `config.h`, `#undef` disables it
|
||||
|
||||
//// #define ENABLE_RGB_MATRIX_ALPHAS_MODS // Static dual hue, speed is hue for secondary hue
|
||||
//// #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN // Static gradient top to bottom, speed controls how much gradient changes
|
||||
//// #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT // Static gradient left to right, speed controls how much gradient changes
|
||||
//// #define ENABLE_RGB_MATRIX_BREATHING // Single hue brightness cycling animation
|
||||
//// #define ENABLE_RGB_MATRIX_BAND_SAT // Single hue band fading saturation scrolling left to right
|
||||
//// #define ENABLE_RGB_MATRIX_BAND_VAL // Single hue band fading brightness scrolling left to right
|
||||
//// #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT // Single hue 3 blade spinning pinwheel fades saturation
|
||||
//// #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL // Single hue 3 blade spinning pinwheel fades brightness
|
||||
//// #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT // Single hue spinning spiral fades saturation
|
||||
//// #define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL // Single hue spinning spiral fades brightness
|
||||
//// #define ENABLE_RGB_MATRIX_CYCLE_ALL // Full keyboard solid hue cycling through full gradient
|
||||
//// #define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT // Full gradient scrolling left to right
|
||||
//// #define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN // Full gradient scrolling top to bottom
|
||||
//// #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN // Full gradient scrolling out to in
|
||||
//// #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL // Full dual gradients scrolling out to in
|
||||
//// #define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON // Full gradient Chevron shaped scrolling left to right
|
||||
//// #define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL // Full gradient spinning pinwheel around center of keyboard
|
||||
//// #define ENABLE_RGB_MATRIX_CYCLE_SPIRAL // Full gradient spinning spiral around center of keyboard
|
||||
//// #define ENABLE_RGB_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard
|
||||
//// #define ENABLE_RGB_MATRIX_RAINBOW_BEACON // Full tighter gradient spinning around center of keyboard
|
||||
//// #define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS // Full dual gradients spinning two halfs of keyboard
|
||||
//// #define ENABLE_RGB_MATRIX_RAINDROPS // Randomly changes a single key's hue
|
||||
//// #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS // Randomly changes a single key's hue and saturation
|
||||
//// #define ENABLE_RGB_MATRIX_HUE_BREATHING // Hue shifts up a slight amount at the same time, then shifts back
|
||||
//// #define ENABLE_RGB_MATRIX_HUE_PENDULUM // Hue shifts up a slight amount in a wave to the right, then back to the left
|
||||
//// #define ENABLE_RGB_MATRIX_HUE_WAVE // Hue shifts up a slight amount and then back down in a wave to the right
|
||||
|
||||
#undef ENABLE_RGB_MATRIX_PIXEL_RAIN
|
||||
#undef ENABLE_RGB_MATRIX_PIXEL_FLOW
|
||||
//// #undef ENABLE_RGB_MATRIX_PIXEL_FRACTAL
|
||||
|
||||
// don't need `#if`, animation modes themselves check defines
|
||||
// #if defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS)
|
||||
//// #define ENABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
//// #define ENABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
// #endif
|
||||
|
||||
// don't need `#if`, animation modes themselves check defines
|
||||
// #if defined(RGB_MATRIX_KEYPRESSES) || defined(RGB_MATRIX_KEYRELEASES)
|
||||
//// #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE // Pulses keys hit to hue & value then fades value out
|
||||
//// #define ENABLE_RGB_MATRIX_SOLID_REACTIVE // Static single hue, pulses keys hit to shifted hue then fades to current hue
|
||||
//// #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
|
||||
//// #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE // Hue & value pulse near multiple key hits then fades value out
|
||||
//// #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS // Hue & value pulse the same column and row of a single key hit then fades value out
|
||||
//// #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS // Hue & value pulse the same column and row of multiple key hits then fades value out
|
||||
//// #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS // Hue & value pulse away on the same column and row of a single key hit then fades value out
|
||||
//// #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS // Hue & value pulse away on the same column and row of multiple key hits then fades value out
|
||||
//// #define ENABLE_RGB_MATRIX_SPLASH // Full gradient & value pulse away from a single key hit then fades value out
|
||||
//// #define ENABLE_RGB_MATRIX_MULTISPLASH // Full gradient & value pulse away from multiple key hits then fades value out
|
||||
//// #define ENABLE_RGB_MATRIX_SOLID_SPLASH // Hue & value pulse away from a single key hit then fades value out
|
||||
//// #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH // Hue & value pulse away from multiple key hits then fades value out
|
||||
// #endif
|
||||
#endif
|
@ -1,272 +0,0 @@
|
||||
// Copyright 2022 Vino Rodrigues (@vinorodrigues)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
/*
|
||||
* IDOBAO ID67 Keymap for a ID67 Bestype, built for Mac use
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "version.h"
|
||||
|
||||
enum {
|
||||
_BASE = 0,
|
||||
_FN1,
|
||||
_FN2,
|
||||
_FN3
|
||||
};
|
||||
|
||||
enum {
|
||||
KB_VRSN = SAFE_RANGE
|
||||
};
|
||||
|
||||
#define LT1_C_L LT(_FN1, KC_CAPS)
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │Esc│ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │Backspc│ ~ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ │Del│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │*Caps*│ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter │PUp│ *Caps* => `LT(1, KC_CAPS)`
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shft │Up │PDn│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │Ctrl│Opt │Comm│ │Fn1 │Fn2 │ │Lf │Dn │Rt │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_65_ansi_blocker(
|
||||
QK_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_GRAVE,
|
||||
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_DELETE,
|
||||
LT1_C_L, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
|
||||
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, FN_MO13, FN_MO23, KC_LEFT, KC_DOWN, KC_RIGHT),
|
||||
|
||||
/*
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │ ~ │F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│ ERASE │F13│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ │ │Up │ │ │ │ │ │ │ │PSc│Hom│End│Eject│Ins│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ Caps │Lf │Dn │Rt │ │ │ │ │ │ │PUp│PDn│ enter │Hom│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ Shft │ │ │ │ │ │ │ │ │Ins│Del│Shift │ │End│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ctrl│opt │comm│ │ │Fn3 │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_65_ansi_blocker(
|
||||
KC_GRAVE, 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_ERAS, KC_F13,
|
||||
_______, XXXXXXX, KC_UP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PSCR, KC_HOME, KC_END, KC_EJCT, KC_INS,
|
||||
KC_CAPS, KC_LEFT, KC_DOWN, KC_RIGHT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PGUP, KC_PGDN, KC_PENT, KC_HOME,
|
||||
KC_RSFT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_INS, KC_DELETE, KC_LSFT, _______, KC_END,
|
||||
KC_RCTL, KC_RALT, KC_RGUI, _______, _______, _______, _______, _______, _______),
|
||||
|
||||
/*
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │Esc│SB-│SB+│mMC│mLP│Br-│Br+│Prv│Ply│Nxt│Mut│Vl-│Vl+│ out │F14│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ Tog │Mod│ │ │ │ │ │ │ │ │ │ │ │ │PSc│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │mod│ │ │ │ │ │ │ │ │Hu+│Sa+│ │SLk│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │Hu-│Sa-│ │Br+│Pau│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ │Fn3 │ │ │Sp-│Br-│Sp+│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
|
||||
*/
|
||||
[_FN2] = LAYOUT_65_ansi_blocker(
|
||||
KC_ESC, KC_BRID, KC_BRIU, KC_MCON, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_OUT, KC_F14,
|
||||
RGB_TOG, RGB_MOD, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PSCR,
|
||||
XXXXXXX, RGB_RMOD, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_HUI, RGB_SAI, XXXXXXX, KC_SCRL,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_HUD, RGB_SAD, XXXXXXX, RGB_VAI, KC_PAUS,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_SPD, RGB_VAD, RGB_SPI),
|
||||
|
||||
/*
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │RST│M01│M02│M03│M04│M05│M06│M07│M08│M09│M10│M11│M12│ Power │F15│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │Sleep│ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ Debug │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │Ver│ │ │ │ │ │ │ │M00│ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ Wake │ │ │ │M13│M14│M15│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
|
||||
*/
|
||||
[_FN3] = LAYOUT_65_ansi_blocker(
|
||||
QK_BOOT, MC_1, MC_2, MC_3, MC_4, MC_5, MC_6, MC_7, MC_8, MC_9, MC_10, MC_11, MC_12, KC_PWR, KC_F15,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_SLEP, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, DB_TOGG, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KB_VRSN, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, MC_0, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_WAKE, XXXXXXX, XXXXXXX, MC_13, MC_14, MC_15)
|
||||
};
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
|
||||
/*
|
||||
* RGB Stuff
|
||||
*/
|
||||
|
||||
#ifdef RGBLIGHT_VAL_STEP
|
||||
#define RGB_BRIGHTER_BY RGBLIGHT_VAL_STEP
|
||||
#else
|
||||
#define RGB_BRIGHTER_BY 26 // about 10%
|
||||
#endif
|
||||
|
||||
#define LED_FLAG_ALPHA_KEY 0x10 // Alpha keys (for Caps Lock)
|
||||
#define LED_FLAG_LAYER_IND 0x20 // Layer indicator
|
||||
|
||||
const uint8_t g_led_config_new_flags[RGB_MATRIX_LED_COUNT] = {
|
||||
// Extended LED Index to Flag
|
||||
// ** Remember: on ID67 this is in reverse order
|
||||
0x21, 0x01, 0x01, 0x01, 0x01, 0x04, 0x01, 0x01, 0x21, // Spc row
|
||||
0x21, 0x01, 0x01, 0x04, 0x04, 0x04, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x21, // ZXC row
|
||||
0x21, 0x01, 0x04, 0x04, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x29, // ASD row
|
||||
0x21, 0x04, 0x04, 0x04, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x21, // QWE row
|
||||
0x21, 0x01, 0x04, 0x04, 0x04, 0x04, 0x24, 0x24, 0x24, 0x24, 0x04, 0x04, 0x04, 0x04, 0x21 // 123 row
|
||||
};
|
||||
|
||||
#define ID67_CAPS_LOCK_KEY_INDEX 36 // position of Caps Lock key
|
||||
|
||||
bool isRGBOff = false;
|
||||
bool isCapsBlink = false;
|
||||
static uint16_t recording_timer;
|
||||
|
||||
void keyboard_pre_init_user(void) {
|
||||
// override `config.h` flags with new values
|
||||
for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) g_led_config.flags[i] = g_led_config_new_flags[i];
|
||||
}
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
isRGBOff = false;
|
||||
}
|
||||
|
||||
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
||||
|
||||
uint8_t v = MIN( rgblight_get_val() + RGB_BRIGHTER_BY, 0xFF );
|
||||
uint8_t current_layer = get_highest_layer(layer_state);
|
||||
|
||||
// Caps Lock key stuff
|
||||
|
||||
if (host_keyboard_led_state().caps_lock) {
|
||||
if (isRGBOff) {
|
||||
rgb_matrix_set_color(ID67_CAPS_LOCK_KEY_INDEX, v, v, v); // white
|
||||
} else {
|
||||
// Caps Lock key/LED
|
||||
if (timer_elapsed(recording_timer) > 500) {
|
||||
isCapsBlink = !isCapsBlink;
|
||||
recording_timer = timer_read();
|
||||
}
|
||||
if (isCapsBlink) {
|
||||
rgb_matrix_set_color(ID67_CAPS_LOCK_KEY_INDEX, v, v, v); // white
|
||||
}
|
||||
|
||||
// Alpha keys/LEDs
|
||||
for (uint8_t i = led_min; i <= led_max; i++) {
|
||||
if ((g_led_config.flags[i] & LED_FLAG_ALPHA_KEY) != 0) {
|
||||
rgb_matrix_set_color(i, v, 0, 0); //red
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (isRGBOff) {
|
||||
uint8_t r = 0;
|
||||
uint8_t g = 0;
|
||||
uint8_t b = 0;
|
||||
|
||||
if ((g_led_config.flags[ID67_CAPS_LOCK_KEY_INDEX] & LED_FLAG_LAYER_IND) != 0) {
|
||||
switch (current_layer) {
|
||||
case _FN1: b = v; break; // blue
|
||||
case _FN2: g = v; break; // green
|
||||
case _FN3: r = v; break; // red
|
||||
}
|
||||
}
|
||||
|
||||
rgb_matrix_set_color(ID67_CAPS_LOCK_KEY_INDEX, r, g, b); // off
|
||||
}
|
||||
|
||||
// Layer indicator stuff
|
||||
|
||||
switch (current_layer) {
|
||||
case _FN1:
|
||||
for (uint8_t i = led_min; i <= led_max; i++) {
|
||||
if ((g_led_config.flags[i] & LED_FLAG_LAYER_IND) != 0) {
|
||||
rgb_matrix_set_color(i, 0, 0, v); // blue
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case _FN2:
|
||||
for (uint8_t i = led_min; i <= led_max; i++) {
|
||||
if ((g_led_config.flags[i] & LED_FLAG_LAYER_IND) != 0) {
|
||||
rgb_matrix_set_color(i, 0, v, 0); // green
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case _FN3:
|
||||
for (uint8_t i = led_min; i <= led_max; i++) {
|
||||
if ((g_led_config.flags[i] & LED_FLAG_LAYER_IND) != 0) {
|
||||
rgb_matrix_set_color(i, v, 0, 0); // red
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
if (isRGBOff) {
|
||||
// switch layer indicators off only if in OFF mode
|
||||
for (uint8_t i = led_min; i <= led_max; i++) {
|
||||
if ((g_led_config.flags[i] & LED_FLAG_LAYER_IND) != 0) {
|
||||
rgb_matrix_set_color(i, 0, 0, 0); // red
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Mac Fn-key stuff
|
||||
*/
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
|
||||
switch (keycode) {
|
||||
// handle RGB toggle key
|
||||
case RGB_TOG:
|
||||
if (record->event.pressed) {
|
||||
switch (rgb_matrix_get_flags()) {
|
||||
case LED_FLAG_ALL:
|
||||
isRGBOff = true;
|
||||
rgb_matrix_set_flags(LED_FLAG_INDICATOR | LED_FLAG_LAYER_IND);
|
||||
rgb_matrix_set_color_all(0, 0, 0);
|
||||
break;
|
||||
default:
|
||||
isRGBOff = false;
|
||||
rgb_matrix_set_flags(LED_FLAG_ALL);
|
||||
rgb_matrix_enable_noeeprom(); // turn the lights back on
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
// print firmware version
|
||||
case KB_VRSN:
|
||||
if (!get_mods()) {
|
||||
if (!record->event.pressed) {
|
||||
SEND_STRING(QMK_KEYBOARD ":" QMK_KEYMAP " (v" QMK_VERSION ")");
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
default:
|
||||
return true; /* Process all other keycodes normally */
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
LTO_ENABLE = yes
|
||||
VIA_ENABLE = yes
|
||||
NKRO_ENABLE = no # N-Key Rollover must be OFF for mac keys to work
|
@ -1,190 +0,0 @@
|
||||
[
|
||||
{
|
||||
"name": "gsm-idobo",
|
||||
"notes": "Massdrop xd75\n\nFront Legend = \"Adust\" layer (both lower and Raise)"
|
||||
},
|
||||
[
|
||||
{
|
||||
"a": 3
|
||||
},
|
||||
"Esc\n\n\n\nreset",
|
||||
{
|
||||
"t": "#0000ff\n#ff0000",
|
||||
"a": 4
|
||||
},
|
||||
"\nF1\n\n\n\n\n\n\n\n1 !",
|
||||
"\nF2\n\n\n\n\n\n\n\n2 @",
|
||||
"\nF3\n\n\n\n\n\n\n\n3 #",
|
||||
"\nF4\n\n\n\n\n\n\n\n4 $",
|
||||
"\nF5\n\n\n\n\n\n\n\n5 %",
|
||||
{
|
||||
"t": "#000000",
|
||||
"a": 7
|
||||
},
|
||||
"= +",
|
||||
"",
|
||||
"- _",
|
||||
{
|
||||
"t": "#0000ff\n#ff0000",
|
||||
"a": 0
|
||||
},
|
||||
"\nF6\n\n\nrgbplain\n\n\n\n\n6 ^",
|
||||
"\nF7\n\n\nrgbtest\n\n\n\n\n7 &",
|
||||
"\nF8\n\n\nrgbmode\n\n\n\n\n8 *",
|
||||
{
|
||||
"a": 4
|
||||
},
|
||||
"\nF9\n\n\n\n\n\n\n\n9 (",
|
||||
"\nF10\n\n\n\n\n\n\n\n0 )",
|
||||
{
|
||||
"t": "#000000",
|
||||
"a": 7
|
||||
},
|
||||
"Bksp"
|
||||
],
|
||||
[
|
||||
"Tab",
|
||||
"Q",
|
||||
{
|
||||
"t": "#0000ff\n#ff0000",
|
||||
"a": 4
|
||||
},
|
||||
"PgUp\nUP\n\n\n\n\n\n\n\nW",
|
||||
{
|
||||
"t": "#000000",
|
||||
"a": 7
|
||||
},
|
||||
"E",
|
||||
{
|
||||
"a": 3
|
||||
},
|
||||
"R\n\n\n\nrgb_tog",
|
||||
"T\n\n\n\nbl_tog",
|
||||
{
|
||||
"a": 7
|
||||
},
|
||||
"",
|
||||
"",
|
||||
"[ {",
|
||||
"T",
|
||||
"Y",
|
||||
"I",
|
||||
"O",
|
||||
"P",
|
||||
"]"
|
||||
],
|
||||
[
|
||||
{
|
||||
"c": "#0000ff",
|
||||
"t": "#ffffff"
|
||||
},
|
||||
"Raise",
|
||||
{
|
||||
"c": "#cccccc",
|
||||
"t": "#0000ff\n#ff0000",
|
||||
"a": 4
|
||||
},
|
||||
"Home\nLEFT\n\n\n\n\n\n\n\nA",
|
||||
{
|
||||
"a": 0
|
||||
},
|
||||
"PgDwn\nDOWN\n\n\nrgb_hai\n\n\n\n\nS",
|
||||
"End\nRIGHT\n\n\nrgb_sai\n\n\n\n\nD",
|
||||
{
|
||||
"t": "#000000",
|
||||
"a": 3
|
||||
},
|
||||
"F\n\n\n\nrgb_vai",
|
||||
"G\n\n\n\nbl_inc",
|
||||
{
|
||||
"a": 7
|
||||
},
|
||||
"",
|
||||
"UP",
|
||||
"PrtScr",
|
||||
"H",
|
||||
"J",
|
||||
"K",
|
||||
"L",
|
||||
"; :",
|
||||
"' \""
|
||||
],
|
||||
[
|
||||
{
|
||||
"a": 3
|
||||
},
|
||||
"Shift\n\n\n\neep_rst",
|
||||
{
|
||||
"a": 7
|
||||
},
|
||||
"Z",
|
||||
{
|
||||
"a": 3
|
||||
},
|
||||
"X\n\n\n\nrgb_hud",
|
||||
"C\n\n\n\nrgb_sad",
|
||||
"V\n\n\n\nrgb_vad",
|
||||
"B\n\n\n\nbl_dec",
|
||||
{
|
||||
"a": 7
|
||||
},
|
||||
"LEFT",
|
||||
"DOWN",
|
||||
"RIGHT",
|
||||
"N",
|
||||
"M",
|
||||
", <",
|
||||
". >",
|
||||
"/ ?",
|
||||
{
|
||||
"a": 6
|
||||
},
|
||||
"Shift"
|
||||
],
|
||||
[
|
||||
{
|
||||
"a": 7
|
||||
},
|
||||
"` ~",
|
||||
"\\ |",
|
||||
"Alt",
|
||||
"Ctrl",
|
||||
{
|
||||
"c": "#ff0000"
|
||||
},
|
||||
"Lower",
|
||||
{
|
||||
"c": "#eb7c15"
|
||||
},
|
||||
"Space",
|
||||
{
|
||||
"c": "#cccccc",
|
||||
"t": "#0000ff\n#ff0000",
|
||||
"a": 4
|
||||
},
|
||||
"\nApp\n\n\n\n\n\n\n\nOS",
|
||||
{
|
||||
"t": "#000000",
|
||||
"a": 7
|
||||
},
|
||||
"Del",
|
||||
"Enter",
|
||||
{
|
||||
"c": "#eb7c15"
|
||||
},
|
||||
"Space",
|
||||
{
|
||||
"c": "#0000ff",
|
||||
"t": "#ffffff"
|
||||
},
|
||||
"Raise",
|
||||
{
|
||||
"c": "#cccccc",
|
||||
"t": "#000000"
|
||||
},
|
||||
"Left",
|
||||
"Down",
|
||||
"Up",
|
||||
"Right"
|
||||
]
|
||||
]
|
@ -1,128 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum custom_keycodes {
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
};
|
||||
|
||||
enum layer_names {
|
||||
_QWERTY,
|
||||
_LOWER,
|
||||
_RAISE,
|
||||
_ADJUST,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* QWERTY
|
||||
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
||||
* | ESC | 1 | 2 | 3 | 4 | 5 | = | | - | 6 | 7 | 8 | 9 | 0 | BACKSP |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
|
||||
* | TAB | Q | W | E | R | T | | | [ | Y | U | I | O | P | ] |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
|
||||
* | RAISE | A | S | D | F | G | | UP | PrtScr | H | J | K | L | ; | ' |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
|
||||
* | LSHIFT | Z | X | C | V | B | LEFT | DOWN | RIGHT | N | M | , | . | / | RSHIFT |
|
||||
* |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------|
|
||||
* | ` | \ | LALT | LCTRL | LOWER | SPACE | LGUI | DEL | ENTER | SPACE | RAISE | LEFT | DOWN | UP | RIGHT |
|
||||
* '--------------------------------------------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_QWERTY] = LAYOUT_ortho_5x15(
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_EQL, XXXXXXX, KC_MINS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, XXXXXXX, XXXXXXX, KC_LBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_RBRC,
|
||||
RAISE, KC_A, KC_S, KC_D, KC_F, KC_G, XXXXXXX, KC_UP, KC_PSCR, 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_LEFT, KC_DOWN, KC_RGHT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
|
||||
KC_GRAVE, KC_BSLS, KC_LALT, KC_LCTL, LOWER, KC_SPC, KC_LGUI, KC_DEL, KC_ENT, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
||||
),
|
||||
|
||||
|
||||
/* LOWER
|
||||
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
||||
* | | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
* | | | UP | | | | | | | | | | PR SCR | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
* | RAISE | LEFT | DOWN | RIGHT | | | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
* | | | | | LOWER | | APP | | | | RAISE | | | | |
|
||||
* '--------------------------------------------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_LOWER] = LAYOUT_ortho_5x15(
|
||||
XXXXXXX, KC_F1, KC_F2, KC_F3, XXXXXXX, KC_F5, XXXXXXX, XXXXXXX, XXXXXXX, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, KC_UP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
RAISE, KC_LEFT, KC_DOWN, KC_RGHT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, LOWER, XXXXXXX, KC_APP, XXXXXXX, XXXXXXX, XXXXXXX, RAISE, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
/* RAISE
|
||||
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
* | | | pgup | | | | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
* | RAISE | home | pgdn | end | | | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
* | | | | | LOWER | | | | | | RAISE | | | | |
|
||||
* '--------------------------------------------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_RAISE] = LAYOUT_ortho_5x15(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, KC_UP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
RAISE, KC_HOME, KC_PGDN, KC_END, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, LOWER, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RAISE, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
|
||||
/* ADJUST
|
||||
* .--------------------------------------------------------------------------------------------------------------------------------------.
|
||||
* | QK_BOOT | | | | | | | | |rgbplain|rgbtest | rgbmode| | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
* | | | | |rgb tog | bl_tog | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
* | RAISE | | rgb hi | rgb sai|rgb vai | bl inc | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
* | EEP Rst| | rgb hd | rgb sad|rgb vad | bl dec | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|
||||
* | | | | | LOWER | | | | | | RAISE | | | | |
|
||||
* '--------------------------------------------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_ortho_5x15(
|
||||
QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_M_P, RGB_M_T, RGB_MOD, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_TOG, BL_TOGG, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
RAISE, XXXXXXX, RGB_HUI, RGB_SAI, RGB_VAI, BL_UP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
EE_CLR, XXXXXXX, RGB_HUD, RGB_SAD, RGB_VAD, BL_DOWN,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, LOWER, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RAISE, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
} else {
|
||||
layer_off(_LOWER);
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
return false;
|
||||
case RAISE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_RAISE);
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
} else {
|
||||
layer_off(_RAISE);
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
# GreenShadowMaker keymap for idobo
|
||||
|
||||
make idobo:greenshadowmaker:dfu
|
||||
|
||||
Note: keyboard-layout-editor-gsm-idobo.json shoudl be the matching layout for http://www.keyboard-layout-editor.com
|
@ -1,3 +0,0 @@
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
@ -1,23 +0,0 @@
|
||||
/* Copyright 2021 msf@github
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
Set any config.h overrides for your specific keymap here.
|
||||
See config.h options at https://docs.qmk.fm/#/config_options?id=the-configh-file
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define COMBO_TERM 200
|
@ -1,59 +0,0 @@
|
||||
/* Copyright 2021 Miguel Filipe <miguel.filipe@gmail.com>
|
||||
*
|
||||
* 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
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT_ansi(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_VOLD, KC_VOLU, KC_F8, KC_F9, KC_F10, KC_PSTE, KC_PSCR, KC_DEL, MO(1),
|
||||
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_END,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_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_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
[1] = LAYOUT_ansi(
|
||||
QK_BOOT, KC_CALC, _______, _______, _______, KC_MUTE, KC_F6, KC_F7, KC_MPLY, KC_MSTP, KC_BRID, KC_BRIU, KC_F11, KC_F12, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS,
|
||||
_______, RGB_TOG, _______, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, KC_DEL,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, BL_DOWN, BL_TOGG, BL_UP, NK_TOGG, _______, _______, _______, _______, _______, BL_UP,
|
||||
_______, _______, _______, _______, _______, _______, BL_TOGG, BL_DOWN, BL_STEP
|
||||
),
|
||||
[2] = LAYOUT_ansi(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
};
|
||||
|
||||
enum combos {
|
||||
SLSHDN_PGDN,
|
||||
SLSHUP_PGUP,
|
||||
RALTBKSPC_DELETE,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM slashDown_combo[] = {KC_SLSH, KC_DOWN, COMBO_END};
|
||||
const uint16_t PROGMEM slashUp_combo[] = {KC_SLSH, KC_UP, COMBO_END};
|
||||
const uint16_t PROGMEM raltBackspace_combo[] = {KC_RALT, KC_BSPC, COMBO_END};
|
||||
|
||||
combo_t key_combos[] = {
|
||||
[SLSHDN_PGDN] = COMBO(slashDown_combo, KC_PGDN),
|
||||
[SLSHUP_PGUP] = COMBO(slashUp_combo, KC_PGUP),
|
||||
[RALTBKSPC_DELETE] = COMBO(raltBackspace_combo, KC_DEL),
|
||||
};
|
@ -1,4 +0,0 @@
|
||||
# slightly modified:
|
||||
- some key combos
|
||||
- don't use f-keys,
|
||||
- pgup/down, home/end tweaks
|
@ -1 +0,0 @@
|
||||
COMBO_ENABLE = yes
|
@ -1,22 +0,0 @@
|
||||
/* Copyright 2019 Ryota Goto
|
||||
*
|
||||
* 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
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT( /* Base */
|
||||
LCTL(LALT(KC_DEL))
|
||||
),
|
||||
};
|
@ -1,3 +0,0 @@
|
||||
# The ctrlaltdel keymap for is0
|
||||
|
||||
A simple keymap to send Ctrl + Alt + Del on keypress.
|
@ -1,40 +0,0 @@
|
||||
/*
|
||||
Copyright 2021 Brandon Lee
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layer_names {
|
||||
_BASE,
|
||||
_FN
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT_60_ansi_tsangan_split_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_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,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1),
|
||||
KC_LGUI, KC_TRNS, KC_LALT, KC_SPC, KC_RALT, KC_TRNS, KC_RCTL
|
||||
),
|
||||
[_FN] = LAYOUT_60_ansi_tsangan_split_rshift(
|
||||
KC_TRNS, 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_DEL,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS,
|
||||
KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_RIGHT, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DOWN, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
)
|
||||
};
|
@ -1 +0,0 @@
|
||||
# Oggi's custom Rosa keymap
|
@ -1,243 +0,0 @@
|
||||
// Nordic layout for Ergodox infinity
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "version.h"
|
||||
#include "keymap_nordic.h"
|
||||
#include "keymap_german.h"
|
||||
|
||||
enum layer_names {
|
||||
BASE,
|
||||
FUNCL,
|
||||
SYMB,
|
||||
MDIA
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
VRSN = SAFE_RANGE,
|
||||
RGB_SLD
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Keymap 0: Basic layer
|
||||
*
|
||||
*
|
||||
*
|
||||
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||
* | Esc | 1 | 2 | 3 | 4 | 5 | §½ | | PRSC | 6 | 7 | 8 | 9 | 0 | - |
|
||||
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||
* | Tab | Q | W | E | R | T | L1 | | L1 | Y | U | I | O | P | Å |
|
||||
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | Caps | A | S | D | F | G |------| |------| H | J | K | L | Ö | Ä |
|
||||
* |--------+------+------+------+------+------| L2 | | L2 |------+------+------+------+------+--------|
|
||||
* | LShift | Z | X | C | V | B | | | | N | M | , | . | - | RShift |
|
||||
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||
* | Ctrl | ¨^ | <|> | LGui | Alt | | Ctrl | Alt | ´` | + | RGui |
|
||||
* `----------------------------------' `----------------------------------'
|
||||
* ,-------------. ,-------------.
|
||||
* | LEFT |RIGHT | | DOWN | UP |
|
||||
* ,------+------+------| |------+--------+------.
|
||||
* | | | Home | | PgUp | | |
|
||||
* | Space|Del |------| |------| Enter | Bkspc|
|
||||
* | | | End | | PgDn | | |
|
||||
* `--------------------' `----------------------'
|
||||
*/
|
||||
|
||||
[BASE] = LAYOUT_ergodox( // layer 0 : default
|
||||
// left hand
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_GRV,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, TG(1),
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, MO(2),
|
||||
KC_LCTL, MO(3), KC_EQL, KC_LGUI, KC_LALT,
|
||||
KC_NUM, KC_SCRL,
|
||||
KC_HOME,
|
||||
KC_SPC, KC_DEL, KC_END,
|
||||
|
||||
// right hand
|
||||
KC_BSLS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,
|
||||
TG(1), KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,
|
||||
KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT,
|
||||
MO(2), KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH,KC_NUBS,
|
||||
KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_RBRC,
|
||||
KC_RGUI, KC_RALT,
|
||||
KC_PGUP,
|
||||
KC_PGDN, KC_ENT, KC_BSPC
|
||||
),
|
||||
/* Keymap 1: Basic layer with functions
|
||||
*
|
||||
*
|
||||
*
|
||||
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||
* | | F1 | F2 | F3 | F4 | F5 | F11 | | F12 | F6 | F7 | F8 | F9 | 0 | |
|
||||
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | | | | | | |------| |------| | | | | | |
|
||||
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||
* | | ¨ | | | | | | | | | |
|
||||
* `----------------------------------' `----------------------------------'
|
||||
* ,-------------. ,-------------.
|
||||
* | | | | | |
|
||||
* ,------+------+------| |------+--------+------.
|
||||
* | | | | | | | |
|
||||
* | | |------| |------| | |
|
||||
* | | | | | | | |
|
||||
* `--------------------' `----------------------'
|
||||
*/
|
||||
|
||||
[FUNCL] = LAYOUT_ergodox( // layer 1 : functions
|
||||
// left hand
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F11,
|
||||
_______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______,
|
||||
_______, _______,
|
||||
_______,
|
||||
_______, _______, _______,
|
||||
// right hand
|
||||
KC_F12, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______,
|
||||
_______, _______,
|
||||
_______,
|
||||
_______, _______, _______
|
||||
),
|
||||
|
||||
/* Keymap 2: Symbol Layer
|
||||
*
|
||||
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||
* | | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F11 |
|
||||
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||
* | | ! | @ | { | } | | | | | | Up | 7 | 8 | 9 | * | F12 |
|
||||
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | | # | $ | ( | ) | ` |------| |------| Down | 4 | 5 | 6 | + | |
|
||||
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | | % | ^ | [ | ] | ~ | | | | & | 1 | 2 | 3 | \ | |
|
||||
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||
* | | | | | | | | . | 0 | = | |
|
||||
* `----------------------------------' `----------------------------------'
|
||||
* ,-------------. ,-------------.
|
||||
* |Animat| BLTOG| |Toggle|Solid |
|
||||
* ,------|------|------| |------+------+------.
|
||||
* |Bright|Bright| BL+ | | |Hue- |Hue+ |
|
||||
* |ness- |ness+ |------| |------| | |
|
||||
* | | | BL- | | | | |
|
||||
* `--------------------' `--------------------'
|
||||
*/
|
||||
// SYMBOLS
|
||||
[SYMB] = LAYOUT_ergodox(
|
||||
// left hand
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F11,
|
||||
_______, DE_EXLM, DE_AT, DE_LCBR, DE_RCBR, DE_PIPE, _______,
|
||||
_______, DE_HASH, DE_DLR, DE_LPRN, DE_RPRN, DE_GRV,
|
||||
_______, DE_PERC, DE_CIRC, DE_LBRC, DE_RBRC, DE_TILD, _______,
|
||||
_______, _______, _______, _______, _______,
|
||||
RGB_MOD, BL_TOGG,
|
||||
BL_UP,
|
||||
RGB_VAD, RGB_VAI, BL_DOWN,
|
||||
// right hand
|
||||
KC_F12, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
||||
_______, KC_UP, KC_7, KC_8, KC_9, DE_ASTR, _______,
|
||||
KC_DOWN, KC_4, KC_5, KC_6, DE_PLUS, _______,
|
||||
_______, DE_AMPR, KC_1, KC_2, KC_3, DE_BSLS, _______,
|
||||
_______, KC_DOT, KC_0, DE_EQL, _______,
|
||||
RGB_TOG, RGB_SLD,
|
||||
_______,
|
||||
_______, RGB_HUD, RGB_HUI
|
||||
),
|
||||
|
||||
/* Keymap 3: Media and mouse keys
|
||||
*
|
||||
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||
* | QK_BOOT | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F11 |
|
||||
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||
* | | | Lclk | MsUp | Rclk | | | | | |VolDwn| Mute |VolUp | | F12 |
|
||||
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | | Btn4 |MsLeft|MsDown|MsRght| Btn5 |------| |------| | Prev | Stop | Play | Next | |
|
||||
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | |WhRght|WhDown| WhUp |WhLeft|WhClk | | | |BwSrch|BwBack|BwHome|BwRefr|BwFwd | |
|
||||
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||
* | | |MsAcl0|MsAcl1|MsAcl2| | | | | | |
|
||||
* `----------------------------------' `----------------------------------'
|
||||
* ,-------------. ,-------------.
|
||||
* | | | | | |
|
||||
* ,------|------|------| |------+------+------.
|
||||
* | | | | | |Brwser|Brwser|
|
||||
* | Lclk | Rclk |------| |------|Back |Forwd |
|
||||
* | | | | | | | |
|
||||
* `--------------------' `--------------------'
|
||||
*/
|
||||
|
||||
// MEDIA AND MOUSE
|
||||
[MDIA] = LAYOUT_ergodox(
|
||||
QK_BOOT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F11,
|
||||
_______, _______, KC_BTN1, KC_MS_U, KC_BTN2, _______, _______,
|
||||
_______, KC_BTN4, KC_MS_L, KC_MS_D, KC_MS_R, KC_BTN5,
|
||||
_______, KC_WH_L, KC_WH_D, KC_WH_U, KC_WH_R, KC_BTN3, _______,
|
||||
_______, _______, KC_ACL0, KC_ACL1, KC_ACL2,
|
||||
_______, _______,
|
||||
_______,
|
||||
KC_BTN1, KC_BTN2, _______,
|
||||
// right hand
|
||||
KC_F12, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,
|
||||
_______, _______, KC_VOLD, KC_MUTE, KC_VOLU, _______, _______,
|
||||
_______, KC_MPRV, KC_MSTP, KC_MPLY, KC_MNXT, _______,
|
||||
_______, KC_WSCH, KC_WBAK, KC_WHOM, KC_WREF, KC_WFWD, _______,
|
||||
_______, _______, _______, _______, _______,
|
||||
_______, _______,
|
||||
_______,
|
||||
_______, KC_WBAK, KC_WFWD
|
||||
),
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case VRSN:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case RGB_SLD:
|
||||
if (record->event.pressed) {
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
rgblight_mode(1);
|
||||
#endif
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Runs just one time when the keyboard initializes.
|
||||
void matrix_init_user(void){
|
||||
|
||||
};
|
||||
|
||||
// Runs constantly in the background, in a loop.
|
||||
void matrix_scan_user(void) {
|
||||
uint8_t layer = get_highest_layer(layer_state);
|
||||
|
||||
ergodox_board_led_off();
|
||||
ergodox_right_led_1_off();
|
||||
ergodox_right_led_2_off();
|
||||
ergodox_right_led_3_off();
|
||||
switch (layer) {
|
||||
case 1:
|
||||
ergodox_right_led_1_on();
|
||||
break;
|
||||
case 2:
|
||||
ergodox_right_led_2_on();
|
||||
break;
|
||||
case 3:
|
||||
ergodox_right_led_3_on();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
};
|
@ -1,9 +0,0 @@
|
||||
# Nordic Ergodox Infinity layout
|
||||
|
||||
QWERTY Nordic layout for ergodox infinity.
|
||||
|
||||
Features:
|
||||
|
||||
- Basic ISO Nordic qwerty layout.
|
||||
- Backlight control.
|
||||
- Still work in progress.
|
@ -1,3 +0,0 @@
|
||||
# Truly Ergonomic like layout
|
||||
|
||||
A basic ErgoDox layout that imitates the Truly Ergonomic keyboard layout.
|
@ -1,159 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "debug.h"
|
||||
#include "action_layer.h"
|
||||
#include "version.h"
|
||||
|
||||
#define BASE 0 // default layer
|
||||
#define EXTRA 1 // extra
|
||||
|
||||
enum custom_keycodes {
|
||||
PLACEHOLDER = SAFE_RANGE, // can always be here
|
||||
EPRM,
|
||||
VRSN,
|
||||
RGB_SLD
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Keymap 0: Basic layer
|
||||
*
|
||||
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||
* | ESC | 1 | 2 | 3 | 4 | 5 | LGui | | LGui | 6 | 7 | 8 | 9 | 0 | - |
|
||||
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||
* | Tab | Q | W | E | R | T | Del | | Tab | Y | U | I | O | P | = |
|
||||
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | LShift | A | S | D | F | G |------| |------| H | J | K | L | ; | RShift |
|
||||
* |--------+------+------+------+------+------| Back | | Back |------+------+------+------+------+--------|
|
||||
* | LCtrl | Z | X | C | V | B | space| | space| N | M | , | . | ' | RCtrl |
|
||||
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||
* | LAlt | Home | PgUp | PgDn | End | | Left | Up | Down | Rigth| RAlt |
|
||||
* `----------------------------------' `----------------------------------'
|
||||
* ,-------------. ,-------------.
|
||||
* | ~ | | | | [ | ] |
|
||||
* ,------|------|------| |------+------+------.
|
||||
* | | | L1 | | Grv | | |
|
||||
* | Space|Enter |------| |------| Enter|Space |
|
||||
* | | | / | | \ | | |
|
||||
* `--------------------' `--------------------'
|
||||
*/
|
||||
// If it accepts an argument (i.e, is a function), it doesn't need KC_.
|
||||
// Otherwise, it needs KC_*
|
||||
[BASE] = LAYOUT_ergodox( // layer 0 : default
|
||||
// left hand
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LGUI,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL,
|
||||
KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G,
|
||||
KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_BSPC,
|
||||
KC_LALT, KC_HOME, KC_PGUP, KC_PGDN, KC_END,
|
||||
KC_TILD, KC_PIPE,
|
||||
TG(EXTRA),
|
||||
KC_SPC, KC_ENT, KC_SLSH,
|
||||
// right hand
|
||||
KC_LGUI, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,
|
||||
KC_TAB, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL,
|
||||
KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_RSFT,
|
||||
KC_BSPC, KC_N, KC_M, KC_COMM, KC_DOT, KC_QUOT, KC_RCTL,
|
||||
KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, KC_RALT,
|
||||
KC_LBRC, KC_RBRC,
|
||||
KC_GRV,
|
||||
KC_BSLS, KC_ENT, KC_SPC
|
||||
),
|
||||
/* Keymap 1: Extra Layer
|
||||
*
|
||||
* ,---------------------------------------------------. ,--------------------------------------------------.
|
||||
* | | F1 | F2 | F3 | F4 | F5 | | | PSCR | F6 | F7 | F8 | F9 | F10 | F11 |
|
||||
* |---------+------+------+------+------+------+------| |------+------+------+------+------+------+--------|
|
||||
* | | ! | @ | { | } | | | | | | Up | 7 | 8 | 9 | * | F12 |
|
||||
* |---------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | Caps | # | $ | ( | ) | ` |------| |------| Down | 4 | 5 | 6 | + | |
|
||||
* |---------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||
* | | % | ^ | [ | ] | ~ | | | | & | 1 | 2 | 3 | \ | |
|
||||
* `---------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||
* | | | | | | | 0 | , | . | = | |
|
||||
* `-----------------------------------' `----------------------------------'
|
||||
* ,-------------. ,-------------.
|
||||
* |VolUp |VolDn | | Prev | Next |
|
||||
* ,------|------|------| |------+------+------.
|
||||
* | | | | | Stop |Bright|Bright|
|
||||
* | Mute |Pause |------| |------|ness- |ness+ |
|
||||
* | | | | | Play | | |
|
||||
* `--------------------' `--------------------'
|
||||
*/
|
||||
// SYMBOLS
|
||||
[EXTRA] = LAYOUT_ergodox(
|
||||
// left hand
|
||||
KC_TRNS,KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRNS,
|
||||
KC_TRNS,KC_EXLM,KC_AT, KC_LCBR,KC_RCBR,KC_PIPE,KC_TRNS,
|
||||
KC_CAPS,KC_HASH,KC_DLR, KC_LPRN,KC_RPRN,KC_GRV,
|
||||
KC_TRNS,KC_PERC,KC_CIRC,KC_LBRC,KC_RBRC,KC_TILD,KC_TRNS,
|
||||
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
||||
KC_VOLU,KC_VOLD,
|
||||
KC_TRNS,
|
||||
KC_MUTE,KC_PAUS,KC_TRNS,
|
||||
// right hand
|
||||
KC_PSCR, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
||||
KC_TRNS, KC_UP, KC_7, KC_8, KC_9, KC_ASTR, KC_F12,
|
||||
KC_DOWN, KC_4, KC_5, KC_6, KC_PLUS, KC_TRNS,
|
||||
KC_TRNS, KC_AMPR, KC_1, KC_2, KC_3, KC_BSLS, KC_TRNS,
|
||||
KC_0, KC_COMM, KC_DOT, KC_EQL, KC_TRNS,
|
||||
KC_MPRV, KC_MNXT,
|
||||
KC_STOP,
|
||||
KC_MPLY, RGB_VAD, RGB_VAI
|
||||
),
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
// dynamically generate these.
|
||||
case EPRM:
|
||||
if (record->event.pressed) {
|
||||
eeconfig_init();
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case VRSN:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case RGB_SLD:
|
||||
if (record->event.pressed) {
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
rgblight_mode(1);
|
||||
#endif
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Runs just one time when the keyboard initializes.
|
||||
void matrix_init_user(void) {
|
||||
|
||||
};
|
||||
|
||||
|
||||
// Runs constantly in the background, in a loop.
|
||||
void matrix_scan_user(void) {
|
||||
|
||||
uint8_t layer = get_highest_layer(layer_state);
|
||||
|
||||
ergodox_board_led_off();
|
||||
ergodox_right_led_1_off();
|
||||
ergodox_right_led_2_off();
|
||||
ergodox_right_led_3_off();
|
||||
switch (layer) {
|
||||
// TODO: Make this relevant to the ErgoDox EZ.
|
||||
case 1:
|
||||
ergodox_right_led_1_on();
|
||||
break;
|
||||
case 2:
|
||||
ergodox_right_led_2_on();
|
||||
break;
|
||||
default:
|
||||
// none
|
||||
break;
|
||||
}
|
||||
|
||||
};
|
@ -1,87 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Layer 0: Default Layer
|
||||
* ,-----------------------------------------------------------.
|
||||
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \| `|
|
||||
* |-----------------------------------------------------------|
|
||||
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| Bksp|
|
||||
* |-----------------------------------------------------------|
|
||||
* |Contro| A| S| D| F| G| H| J| K| L| ;| '|Enter |
|
||||
* |-----------------------------------------------------------|
|
||||
* |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |Fn2|
|
||||
* |-----------------------------------------------------------'
|
||||
* |Fn2 |Gui |Alt | Space |RAlt|Prv|PlPs|Next|
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[0] = 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,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, LT(5, KC_ENT),
|
||||
SC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SC_RSPC, MO(4),
|
||||
MO(4), KC_LGUI, KC_LALT, LT(3, KC_SPC), KC_RALT, KC_MPRV, KC_MPLY, KC_MNXT),
|
||||
|
||||
/* Layer 1: "Toggle" off SpaceFn for League of Legends
|
||||
*/
|
||||
[1] = 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,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(4),
|
||||
MO(4), KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_MPRV, KC_MPLY, KC_MNXT),
|
||||
|
||||
/* Layer 2: "Toggle" off SpaceFn for MapleRoyals
|
||||
*/
|
||||
[2] = 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,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_LSFT,
|
||||
MO(4), KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
/* Layer 3: FN layer 1
|
||||
*/
|
||||
[3] = LAYOUT_60_ansi_split_bs_rshift(
|
||||
KC_NO, 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_NO, KC_NO,
|
||||
KC_NO, KC_BTN1, KC_MS_U, KC_BTN2, LALT(KC_F4), KC_HOME, KC_PGUP, KC_PSCR, KC_SCRL, KC_UP, KC_NO, KC_LPRN, KC_RPRN, KC_DEL,
|
||||
MO(6), KC_MS_L, KC_MS_D, KC_MS_R, KC_NO, KC_END, KC_PGDN, KC_TILD, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_NO,
|
||||
LGUI(KC_SPC), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_CALC, KC_MENU, KC_TRNS, TG(4),
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, LT(3, KC_SPC), KC_TRNS, KC_VOLD, KC_MUTE, KC_VOLU),
|
||||
|
||||
/* Layer 4: FN layer 2
|
||||
*/
|
||||
[4] = LAYOUT_60_ansi_split_bs_rshift(
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_PMNS, KC_PPLS, KC_PSLS, TG(2),
|
||||
KC_CAPS, KC_NO, KC_UP, KC_NO, KC_NO, KC_NO, KC_NO, KC_PSCR, KC_NO, KC_P7, KC_P8, KC_P9, KC_PAST, KC_BSPC,
|
||||
KC_LCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_P4, KC_P5, KC_P6, KC_PENT,
|
||||
KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_P1, KC_P2, KC_P3, KC_RSFT, MO(4),
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P0, KC_PDOT, KC_NO, TG(1)),
|
||||
|
||||
/* Layer 5: FN layer 3
|
||||
*/
|
||||
[5] = LAYOUT_60_ansi_split_bs_rshift(
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_TAB , KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_F13, KC_F14, KC_F15, KC_F16, KC_NO, KC_TRNS,
|
||||
KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_F17, KC_F18, KC_F19, KC_F20, LT(5, KC_ENT),
|
||||
KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_F21, KC_F22, KC_F23, KC_F24, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_RALT, KC_NO, KC_NO, KC_NO),
|
||||
|
||||
/* Layer 6: FN layer 4
|
||||
*/
|
||||
[6] = LAYOUT_60_ansi_split_bs_rshift(
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
LCTL(LSFT(KC_TAB)), KC_NO, LGUI(KC_UP), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
MO(6), LGUI(KC_LEFT), LGUI(KC_DOWN), LGUI(KC_RGHT), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO),
|
||||
};
|
||||
|
||||
// Runs just one time when the keyboard initializes.
|
||||
void matrix_init_user(void) {
|
||||
|
||||
};
|
||||
|
||||
// Runs constantly in the background, in a loop.
|
||||
void matrix_scan_user(void) {
|
||||
|
||||
};
|
@ -1,20 +0,0 @@
|
||||
/* Copyright 2021 Andrew Fahmy
|
||||
*
|
||||
* 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 RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_RAINDROPS
|
||||
#define RGB_MATRIX_LED_FLUSH_LIMIT 100
|
@ -1,60 +0,0 @@
|
||||
/* Copyright 2021 Andrew Fahmy
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layer_names {
|
||||
_MAIN,
|
||||
_L1
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_MAIN] = 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_PSCR, KC_SCRL, KC_PAUS,
|
||||
|
||||
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,
|
||||
MO(_L1), 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_LALT, KC_SPC, KC_RALT, MO(_L1), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
[_L1] = LAYOUT_tkl_ansi(
|
||||
QK_BOOT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, RGB_MOD, _______,
|
||||
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SPD, RGB_SPI, _______, RGB_HUI, RGB_SAI, RGB_VAI,
|
||||
_______, KC_MPRV, KC_MPLY, KC_MNXT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD,
|
||||
_______, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_LGUI, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
// Customise these values to desired behaviour
|
||||
// debug_enable=true;
|
||||
// debug_matrix=true;
|
||||
// debug_keyboard=true;
|
||||
// debug_mouse=true;
|
||||
}
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
// Turn off SDB
|
||||
void keyboard_pre_init_user(void) {
|
||||
palSetPadMode(GPIOB, 16, PAL_MODE_OUTPUT_PUSHPULL);
|
||||
palSetPad(GPIOB, 16);
|
||||
}
|
||||
|
||||
#endif
|
@ -1 +0,0 @@
|
||||
RGB_MATRIX_ENABLE = yes
|
@ -1,95 +0,0 @@
|
||||
/*
|
||||
Copyright 2015 Jun Wako <wakojun@gmail.com>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum custom_keycodes {
|
||||
AL_FILE = SAFE_RANGE,
|
||||
AL_WWW,
|
||||
AL_HELP,
|
||||
AL_CMD
|
||||
};
|
||||
|
||||
const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Layer 0: Default Layer
|
||||
* ,---------------------------------------------------------------.
|
||||
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \| `|Ins|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]|Backs|Del|
|
||||
* |---------------------------------------------------------------|
|
||||
* |CapsLo| A| S| D| F| G| H| J| K| L| ;| '|Enter |PgU|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Shif| | Z| X| C| V| B| N| M| ,| .| /|Shift |Up |PgD|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Ctrl|Gui |Alt | Space |Fn0 |Alt |Gui | |Lef|Dow|Rig|
|
||||
* `---------------------------------------------------------------'
|
||||
*/
|
||||
[0] = 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_MUTE,
|
||||
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_DEL,
|
||||
MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT,KC_NUHS,KC_ENT, KC_PGUP,
|
||||
KC_LSFT,KC_NUBS,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH,KC_RSFT, KC_UP, KC_PGDN,
|
||||
KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,MO(2), KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT
|
||||
),
|
||||
[1] = LAYOUT(
|
||||
KC_TRNS,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_TRNS,KC_TRNS,KC_TRNS,
|
||||
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_DEL , KC_INS ,
|
||||
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_VOLU,
|
||||
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_PGUP,KC_VOLD,
|
||||
KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_HOME,KC_PGDN,KC_END
|
||||
),
|
||||
[2] = LAYOUT(
|
||||
KC_SLEP,KC_P1, KC_P2, KC_P3, KC_P4, KC_P5, KC_P6, KC_P7, KC_P8, KC_P9, KC_P0, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_NO,
|
||||
KC_TRNS,KC_TRNS,AL_WWW ,AL_HELP ,KC_TRNS,AL_CMD ,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_PSCR,KC_TRNS,KC_TRNS,KC_TRNS, KC_NO,
|
||||
KC_CAPS,KC_TRNS,KC_TRNS,KC_TRNS,AL_FILE ,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,
|
||||
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_CALC,KC_TRNS,KC_TRNS,KC_TRNS,KC_MAIL,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,
|
||||
KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS
|
||||
),
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case AL_FILE:
|
||||
if (record->event.pressed) {
|
||||
host_consumer_send(0x1B4); // AL File Browser
|
||||
} else {
|
||||
host_consumer_send(0);
|
||||
}
|
||||
return false;
|
||||
case AL_WWW:
|
||||
if (record->event.pressed) {
|
||||
host_consumer_send(0x196); // AL Internet Browser
|
||||
} else {
|
||||
host_consumer_send(0);
|
||||
}
|
||||
return false;
|
||||
case AL_HELP:
|
||||
if (record->event.pressed) {
|
||||
host_consumer_send(0x1A6); // AL Integrated Help Center
|
||||
} else {
|
||||
host_consumer_send(0);
|
||||
}
|
||||
return false;
|
||||
case AL_CMD:
|
||||
if (record->event.pressed) {
|
||||
host_consumer_send(0x1A0); // AL Command Line Processor/Run
|
||||
} else {
|
||||
host_consumer_send(0);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
@ -1,81 +0,0 @@
|
||||
|
||||
/*
|
||||
Copyright 2021 Mattia Righetti
|
||||
|
||||
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
|
||||
|
||||
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 │Del│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter │PgU│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ LShift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │RSfRCt│ ↑ │PgD│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │LCtl│LAlt│LGUI│ Space │RAlt│Lay1│ │ ← │ ↓ │ → │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
|
||||
*/
|
||||
[0] = LAYOUT_truefox(
|
||||
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_GRV, 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_LBRC, KC_RBRC, KC_BSPC, KC_DEL,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
|
||||
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
/* Function layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │ │F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼─────┤
|
||||
* │ │ │ ↑ │ │ │ │ │ │ │ │ │ │ │Reset│ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼─────┤
|
||||
* │ │ ← │ ↓ │ → │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼─────┤
|
||||
* │ │VoU│VoD│VoM│ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼─────┤
|
||||
* │ │ │ │ │Lay2│ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴─────┘
|
||||
*/
|
||||
[1] = LAYOUT_truefox(
|
||||
_______, 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_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_BOOT, _______,
|
||||
_______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_VOLD, KC_VOLU, KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, MO(2), KC_TRNS, _______, _______, _______
|
||||
),
|
||||
/* Third layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │ │1 │2 │3 │4 │5 │6 │7 │8 │9 │0 │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
|
||||
*/
|
||||
[2] = LAYOUT_truefox(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
@ -1,10 +0,0 @@
|
||||
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
||||
|
||||
# Keyboard-specific features
|
||||
BACKLIGHT_ENABLE = no
|
||||
VISUALIZER_ENABLE = no
|
||||
|
||||
# Firmware size reduction
|
||||
GRAVE_ESC_ENABLE = no
|
||||
MAGIC_ENABLE = no
|
||||
SPACE_CADET_ENABLE = no
|
@ -1,60 +0,0 @@
|
||||
/*
|
||||
Copyright 2015 Jun Wako <wakojun@gmail.com>
|
||||
|
||||
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
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ ~ │ \ │PrS│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │Backs│Del│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │Enter │PgU│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │Shift │ ↑ │PgD│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │Ctrl│GUI │Alt │ │Alt │Fn │ │ ← │ ↓ │ → │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
|
||||
*/
|
||||
[0] = 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_GRV, KC_BSLS, KC_PSCR,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_DEL,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
/*
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Fla│F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│PrS│ \ │Mut│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │Delet│Del│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │Enter │Vl+│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │Shift │PgU│Vl-│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │Ctrl│GUI │Alt │ │Alt │Fn │ │Hom│PgD│End│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
|
||||
*/
|
||||
[1] = LAYOUT_65_ansi_blocker_split_bs(
|
||||
QK_BOOT, 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_MUTE,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLU,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, KC_VOLD,
|
||||
_______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END
|
||||
)
|
||||
};
|
@ -1,25 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
QK_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, KC_INS,
|
||||
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_DEL,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP,
|
||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
|
||||
KC_LALT, KC_LCTL, KC_LGUI, KC_SPACE, KC_SPACE, KC_SPACE, MO(1), KC_NO, MO(2), KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
[1] = LAYOUT(
|
||||
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_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_BTN2, KC_MS_U, KC_BTN1, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_HOME, KC_END, KC_DEL, KC_TRNS,
|
||||
KC_CAPS, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_UP, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_VOLU,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGDN, KC_PGUP, KC_TRNS, KC_TRNS, KC_PGUP, KC_VOLD,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END
|
||||
),
|
||||
[2] = LAYOUT(
|
||||
RGB_TOG, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, RGB_M_K, RGB_M_X, RGB_M_G, RGB_MOD, RGB_RMOD, BL_STEP, BL_TOGG, KC_TRNS, KC_TRNS, QK_BOOT,
|
||||
KC_TRNS, RGB_HUI, RGB_SAI, RGB_VAI, KC_TRNS, RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, BL_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, RGB_HUD, RGB_SAD, RGB_VAD, KC_TRNS, RGB_HUD, RGB_HUI, KC_TRNS, KC_TRNS, KC_TRNS, BL_DOWN, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAD, RGB_VAI, KC_TRNS, KC_TRNS, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
ChildoftheHorn's Keymap
|
||||
===
|
||||
|
||||
Layer 1: "HHKB Mac" Split backspace, 6.25u space, caps is cntl
|
||||
|
||||
Layer 2: V60++ with mouse controls on WASD
|
||||
|
||||
Layer 3: RGB control on number row, LED controls, and Reset
|
||||
|
||||
Keymap Maintainer: [Stacy Devino](https://github.com/childofthehorn)
|
||||
|
||||
Difference from base layout: Primarily the HHKB-ness
|
||||
|
||||
Intended usage: Daily driver for programming
|
@ -1,35 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
// How long (in ms) to wait between animation steps for the breathing mode
|
||||
const uint8_t RGBLED_BREATHING_INTERVALS[] PROGMEM = {30, 20, 10, 5};
|
||||
|
||||
// How long (in ms) to wait between animation steps for the rainbow mode
|
||||
const uint8_t RGBLED_RAINBOW_MOOD_INTERVALS[] PROGMEM = {120, 60, 30};
|
||||
|
||||
// How long (in ms) to wait between animation steps for the swirl mode
|
||||
const uint8_t RGBLED_RAINBOW_SWIRL_INTERVALS[] PROGMEM = {30, 20, 3};
|
||||
|
||||
// How long (in ms) to wait between animation steps for the snake mode
|
||||
const uint8_t RGBLED_SNAKE_INTERVALS[] PROGMEM = {100, 50, 20};
|
||||
|
||||
// How long (in ms) to wait between animation steps for the knight modes
|
||||
const uint8_t RGBLED_KNIGHT_INTERVALS[] PROGMEM = {127, 63, 31};
|
||||
|
||||
// These control which colors are selected for the gradient mode
|
||||
const uint8_t RGBLED_GRADIENT_RANGES[] PROGMEM = {255, 170, 127, 85, 64};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
QK_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, KC_PSCR,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_PGUP,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
|
||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_DEL,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, KC_SPACE, KC_SPACE, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
[1] = LAYOUT(
|
||||
QK_BOOT, 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_INS, KC_PAUS, KC_TRNS,
|
||||
KC_TRNS, RGB_TOG, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, RGB_M_K, RGB_M_X, RGB_M_G, RGB_MOD, KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS,
|
||||
KC_TRNS, RGB_HUI, RGB_SAI, RGB_VAI, RGB_HUD, RGB_SAD, RGB_VAD, KC_DOWN, KC_HOME, KC_PGUP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, BL_TOGG, BL_STEP, BL_UP, BL_DOWN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_MPRV, KC_MPLY, KC_MPLY, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
};
|
@ -1,10 +0,0 @@
|
||||
Dead's Keymap
|
||||
===
|
||||
|
||||
Split backspace, 6.25u space, 2 Function Layers, reset + rgb controls on layer(2)
|
||||
|
||||
Intended usage: This is my daily driver keymap
|
||||
|
||||
===
|
||||
|
||||
Encryption Complete
|
@ -1,10 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
//Force NKRO to be enabled.
|
||||
#define FORCE_NKRO
|
||||
|
||||
//GRAVE_ESC override for CTRL+SHIFT+ESC Windows task manager shortcut.
|
||||
#define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
//Delay matrix scan for tap dance, reduce to activate modifier keys faster.
|
||||
//#define TAPPING_TERM 200
|
@ -1,258 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "version.h"
|
||||
|
||||
enum layers {
|
||||
_BL = 0, // Base Layer
|
||||
_WL, // Workman Layer
|
||||
_NL, // Norman Layer
|
||||
_DL, // Dvorak Layer
|
||||
_CL, // Base Layer
|
||||
_FL, // Function Layer
|
||||
_AL, // Adjust Layer
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QMK_REV = SAFE_RANGE,
|
||||
KC_WEB,
|
||||
KC_SP4,
|
||||
DYNAMIC_MACRO_RANGE
|
||||
};
|
||||
|
||||
extern backlight_config_t backlight_config;
|
||||
|
||||
#include "dynamic_macro.h"
|
||||
#define FN_CAPS LT(_FL, KC_CAPS)
|
||||
#define KC_DMR1 DM_REC1
|
||||
#define KC_DMR2 DM_REC2
|
||||
#define KC_DMP1 DM_PLY1
|
||||
#define KC_DMP2 DM_PLY2
|
||||
#define KC_DMRS DM_RSTP
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*#### _BL: Base Layer - Mostly standard 65% QWERTY layout.
|
||||
* .---------------------------------------------------------------.
|
||||
* |GrE|1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backsp |Ins|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Del|
|
||||
* |---------------------------------------------------------------|
|
||||
* |FnCaps|A |S |D |F |G |H |J |K |L |; |' |Return |PgU|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |Up |PgD|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Ctrl|Gui |Alt | Space |RAlt |Ctrl |Lft|Dwn|Rgt|
|
||||
* *---------------------------------------------------------------*
|
||||
*/
|
||||
[_BL] = LAYOUT(
|
||||
QK_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, XXXXXXX, KC_BSPC, KC_INS,
|
||||
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,
|
||||
FN_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP,
|
||||
KC_LSFT, 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_PGDN,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
/*#### _WL: Workman Layer.
|
||||
* .---------------------------------------------------------------.
|
||||
* | | | | | | | | | | | |- |= | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | |Q |D |R |W |B |J |F |U |P |; |[ |] |\ | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | |A |S |H |T |G |Y |N |E |O |I |' | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | |Z |X |M |C |V |K |L |, |. |/ | | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | | | | | | | | |
|
||||
* *---------------------------------------------------------------*
|
||||
*/
|
||||
[_WL] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_Q , KC_D , KC_R , KC_W , KC_B , KC_J , KC_F , KC_U , KC_P , KC_SCLN, _______, _______, _______, _______,
|
||||
_______, KC_A , KC_S , KC_H , KC_T , KC_G , KC_Y , KC_N , KC_E , KC_O , KC_I , _______, _______, _______,
|
||||
_______, _______, KC_Z , KC_X , KC_M , KC_C , KC_V , KC_K , KC_L , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/*#### _NL: Norman Layer.
|
||||
* .---------------------------------------------------------------.
|
||||
* | | | | | | | | | | | |- |= | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | |Q |W |D |F |K |J |U |R |L |; |[ |] |\ | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | |A |S |E |T |G |Y |N |I |O |H |' | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | |Z |X |C |V |B |P |M |, |. |/ | | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | | | | | | | | |
|
||||
* *---------------------------------------------------------------*
|
||||
*/
|
||||
[_NL] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_Q , KC_W , KC_D , KC_F , KC_K , KC_J , KC_U , KC_R , KC_L , KC_SCLN, _______, _______, _______, _______,
|
||||
_______, KC_A , KC_S , KC_E , KC_T , KC_G , KC_Y , KC_N , KC_I , KC_O , KC_H , _______, _______, _______,
|
||||
_______, _______, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_P , KC_M , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/*#### _DL: Dvorak Layer.
|
||||
* .---------------------------------------------------------------.
|
||||
* | | | | | | | | | | | |[ |] | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | |' |, |. |P |Y |F |G |C |R |L |/ |= |\ | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | |A |O |E |U |I |D |H |T |N |S |- | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | |; |Q |J |K |X |B |M |W |V |Z | | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | | | | | | | | |
|
||||
* *---------------------------------------------------------------*
|
||||
*/
|
||||
[_DL] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, _______, _______, _______,
|
||||
_______, KC_QUOT, KC_COMM, KC_DOT , KC_P , KC_Y , KC_F , KC_G , KC_C , KC_R , KC_L , KC_SLSH, KC_EQL , _______, _______,
|
||||
_______, KC_A , KC_O , KC_E , KC_U , KC_I , KC_D , KC_H , KC_T , KC_N , KC_S , KC_MINS, _______, _______,
|
||||
_______, _______, KC_SCLN, KC_Q , KC_J , KC_K , KC_X , KC_B , KC_M , KC_W , KC_V , KC_Z , _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/*#### _CL: Colmak Layer.
|
||||
* .---------------------------------------------------------------.
|
||||
* | | | | | | | | | | | |- |= | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | |Q |W |F |P |G |J |L |U |Y |; |[ |] |\ | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | |A |R |S |T |D |H |N |E |I |O |' | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | |Z |X |C |V |B |K |M |, |. |/ | | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | | | | | | | | |
|
||||
* *---------------------------------------------------------------*
|
||||
*/
|
||||
[_CL] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_Q , KC_W , KC_F , KC_P , KC_G , KC_J , KC_L , KC_U , KC_Y , KC_SCLN, _______, _______, _______, _______,
|
||||
_______, KC_A , KC_R , KC_S , KC_T , KC_D , KC_H , KC_N , KC_E , KC_I , KC_O , _______, _______, _______,
|
||||
_______, _______, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_K , KC_M , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/*#### _FL: Function Layer.
|
||||
* .---------------------------------------------------------------.
|
||||
* |Web|F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12|SLock |PSc|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Fn_AL| | | | | | | | | | | | | |Pau|
|
||||
* |---------------------------------------------------------------|
|
||||
* |FnCaps| | | | | |Lft|Dwn|Up |Rgt| | | |Hme|
|
||||
* |---------------------------------------------------------------|
|
||||
* | | | | | | | | | | | |VlMute|VlU|End|
|
||||
* |---------------------------------------------------------------|
|
||||
* | | |Menu| SP4 | | |WBk|VlD|WFw|
|
||||
* *---------------------------------------------------------------*
|
||||
*/
|
||||
[_FL] = LAYOUT(
|
||||
KC_WEB, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, XXXXXXX, KC_SCRL, KC_PSCR,
|
||||
MO(_AL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PAUS,
|
||||
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, XXXXXXX, XXXXXXX, KC_HOME,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MUTE, KC_VOLU, KC_END,
|
||||
XXXXXXX, XXXXXXX, KC_MENU, KC_SP4, KC_SP4, KC_SP4, XXXXXXX, XXXXXXX, XXXXXXX, KC_WBAK, KC_VOLD, KC_WFWD
|
||||
),
|
||||
/*#### _AL: Adjust Layer - Keymap select, RGB Underglow, LED backlight, and Dynamic Macro settings.
|
||||
* .---------------------------------------------------------------.
|
||||
* |Rev|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| |MP1|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Fn_AL|_BL|_WL| | | | | | | | | | | |MR1|
|
||||
* |---------------------------------------------------------------|
|
||||
* |FnCaps| | |_DL| | | | | | | | | |MS |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | | |_CL| |_BL|_NL| | | | | | |MR2|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Rst | | | | | | | |MP2|
|
||||
* *---------------------------------------------------------------*
|
||||
*/
|
||||
[_AL] = LAYOUT(
|
||||
QMK_REV, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, XXXXXXX, BL_TOGG, BL_DOWN, BL_UP, XXXXXXX, XXXXXXX, KC_DMP1,
|
||||
_______, DF(_BL), DF(_WL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMR1,
|
||||
_______, XXXXXXX, XXXXXXX, DF(_DL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMRS,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, DF(_CL), XXXXXXX, DF(_BL), DF(_NL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMR2,
|
||||
QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMP2
|
||||
),
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QMK_REV:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP "@" QMK_VERSION ":" QMK_BUILDDATE);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_WEB:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(SS_LGUI("r"));
|
||||
wait_ms(100);
|
||||
SEND_STRING("chrome.exe https://geekhack.org/index.php?topic=86756.new;topicseen#new\n");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_SP4:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING (" ");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
// Dynamic Macros.
|
||||
if (!process_record_dynamic_macro(keycode, record)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void custom_backlight_level(uint8_t level) {
|
||||
if (level > BACKLIGHT_LEVELS)
|
||||
level = BACKLIGHT_LEVELS;
|
||||
backlight_config.level = level;
|
||||
backlight_config.enable = !!backlight_config.level;
|
||||
backlight_set(backlight_config.level);
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
custom_backlight_level(0);
|
||||
#endif
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
rgblight_mode(1);
|
||||
rgblight_sethsv_noeeprom(180,100,100);
|
||||
#endif
|
||||
}
|
||||
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
switch (get_highest_layer(state)) {
|
||||
case _BL:
|
||||
custom_backlight_level(0);
|
||||
rgblight_sethsv_noeeprom(180,100,255);
|
||||
break;
|
||||
case _WL:
|
||||
custom_backlight_level(1);
|
||||
rgblight_sethsv_noeeprom(180,95,240);
|
||||
break;
|
||||
case _NL:
|
||||
custom_backlight_level(1);
|
||||
rgblight_sethsv_noeeprom(180,90,225);
|
||||
break;
|
||||
case _DL:
|
||||
custom_backlight_level(1);
|
||||
rgblight_sethsv_noeeprom(180,85,210);
|
||||
break;
|
||||
case _CL:
|
||||
custom_backlight_level(1);
|
||||
rgblight_sethsv_noeeprom(180,80,195);
|
||||
break;
|
||||
case _FL:
|
||||
custom_backlight_level(2);
|
||||
rgblight_sethsv_noeeprom(230,255,255);
|
||||
break;
|
||||
case _AL:
|
||||
custom_backlight_level(3);
|
||||
rgblight_sethsv_noeeprom(250,255,255);
|
||||
break;
|
||||
default:
|
||||
custom_backlight_level(0);
|
||||
rgblight_sethsv_noeeprom(180,100,100);
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
}
|
@ -1,105 +0,0 @@
|
||||
# Keymap Maintainer: Gam3cat
|
||||
make jc65/v32u4:gam3cat
|
||||
## Layout Config:
|
||||
2u backspace, 2.25u left shift/enter, 1.75u right shift.
|
||||
(2x1.5u, 1x7.0u, 2x1.5u, 3x1u), (3x1.25u, 1x6.25u, 2x1.5u, 3x1u), or
|
||||
(3x1.25u, 1x6.25u, 6x1u) bottom row.
|
||||
|
||||
FN_CAPS = MO(_FL) when held, CAPS when tapped.
|
||||
GRAVE_ESC + GUI = `
|
||||
GRAVE_ESC + SHIFT = ~
|
||||
|
||||
## Base Layer Selection:
|
||||
(Caps+TAB+( )): (Q)WERTY, (W)orkman, (N)orman, (D)vorak, (C)olmak
|
||||
|
||||
### Base Layer Options:
|
||||
#### _BL: Base Layer - Mostly standard 65% QWERTY layout.
|
||||
.---------------------------------------------------------------.
|
||||
|GrE|1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backsp |Ins|
|
||||
|---------------------------------------------------------------|
|
||||
|Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Del|
|
||||
|---------------------------------------------------------------|
|
||||
|FnCaps|A |S |D |F |G |H |J |K |L |; |' |Return |PgU|
|
||||
|---------------------------------------------------------------|
|
||||
|Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |Up |PgD|
|
||||
|---------------------------------------------------------------|
|
||||
|Ctrl|Gui |Alt | Space |RAlt |Ctrl |Lft|Dwn|Rgt|
|
||||
*---------------------------------------------------------------*
|
||||
|
||||
#### _WL: Workman Layer.
|
||||
.---------------------------------------------------------------.
|
||||
| | | | | | | | | | | |- |= | | |
|
||||
|---------------------------------------------------------------|
|
||||
| |Q |D |R |W |B |J |F |U |P |; |[ |] |\ | |
|
||||
|---------------------------------------------------------------|
|
||||
| |A |S |H |T |G |Y |N |E |O |I |' | | |
|
||||
|---------------------------------------------------------------|
|
||||
| |Z |X |M |C |V |K |L |, |. |/ | | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | | | | | | | | |
|
||||
*---------------------------------------------------------------*
|
||||
|
||||
#### _NL: Norman Layer.
|
||||
.---------------------------------------------------------------.
|
||||
| | | | | | | | | | | |- |= | | |
|
||||
|---------------------------------------------------------------|
|
||||
| |Q |W |D |F |K |J |U |R |L |; |[ |] |\ | |
|
||||
|---------------------------------------------------------------|
|
||||
| |A |S |E |T |G |Y |N |I |O |H |' | | |
|
||||
|---------------------------------------------------------------|
|
||||
| |Z |X |C |V |B |P |M |, |. |/ | | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | | | | | | | | |
|
||||
*---------------------------------------------------------------*
|
||||
|
||||
#### _DL: Dvorak Layer.
|
||||
.---------------------------------------------------------------.
|
||||
| | | | | | | | | | | |[ |] | | |
|
||||
|---------------------------------------------------------------|
|
||||
| |' |, |. |P |Y |F |G |C |R |L |/ |= |\ | |
|
||||
|---------------------------------------------------------------|
|
||||
| |A |O |E |U |I |D |H |T |N |S |- | | |
|
||||
|---------------------------------------------------------------|
|
||||
| |; |Q |J |K |X |B |M |W |V |Z | | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | | | | | | | | |
|
||||
*---------------------------------------------------------------*
|
||||
|
||||
#### _CL: Colmak Layer.
|
||||
.---------------------------------------------------------------.
|
||||
| | | | | | | | | | | |- |= | | |
|
||||
|---------------------------------------------------------------|
|
||||
| |Q |W |F |P |G |J |L |U |Y |; |[ |] |\ | |
|
||||
|---------------------------------------------------------------|
|
||||
| |A |R |S |T |D |H |N |E |I |O |' | | |
|
||||
|---------------------------------------------------------------|
|
||||
| |Z |X |C |V |B |K |M |, |. |/ | | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | | | | | | | | |
|
||||
*---------------------------------------------------------------*
|
||||
|
||||
#### _FL: Function Layer.
|
||||
.---------------------------------------------------------------.
|
||||
|Web|F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12|SLock |PSc|
|
||||
|---------------------------------------------------------------|
|
||||
|Fn_AL| | | | | | | | | | | | | |Pau|
|
||||
|---------------------------------------------------------------|
|
||||
|FnCaps| | | | | |Lft|Dwn|Up |Rgt| | | |Hme|
|
||||
|---------------------------------------------------------------|
|
||||
| | | | | | | | | | | |VlMute|VlU|End|
|
||||
|---------------------------------------------------------------|
|
||||
| | |Menu| SP4 | | |WBk|VlD|WFw|
|
||||
*---------------------------------------------------------------*
|
||||
|
||||
#### _AL: Adjust Layer - Keymap select, RGB Underglow, LED backlight, and Dynamic Macro settings.
|
||||
.---------------------------------------------------------------.
|
||||
|Rev|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| |MP1|
|
||||
|---------------------------------------------------------------|
|
||||
|Fn_AL|_BL|_WL| | | | | | | | | | | |MR1|
|
||||
|---------------------------------------------------------------|
|
||||
|FnCaps| | |_DL| | | | | | | | | |MS |
|
||||
|---------------------------------------------------------------|
|
||||
| | | |_CL| |_BL|_NL| | | | | | |MR2|
|
||||
|---------------------------------------------------------------|
|
||||
|Rst | | | | | | | |MP2|
|
||||
*---------------------------------------------------------------*
|
@ -1,21 +0,0 @@
|
||||
# Build Options
|
||||
# change to "no" to disable the options, or define them in the Makefile in
|
||||
# the appropriate keymap folder that will get included automatically
|
||||
#
|
||||
TAP_DANCE_ENABLE = no # Enable TapDance functionality
|
||||
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
|
||||
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+1500)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
NKRO_ENABLE = yes # Nkey Rollover - If this doesn't work, add this to config.h: #define FORCE_NKRO
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
MIDI_ENABLE = no # MIDI controls
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
UNICODEMAP_ENABLE = no # Enable extended unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
AUDIO_ENABLE = no # Audio output on port C6#VARIABLE_TRACE = no # Use this to debug changes to variable values
|
||||
KEY_LOCK_ENABLE = no # This enables key lock(+260)
|
||||
SPLIT_KEYBOARD = no # This enables split keyboard support and includes all necessary files located at quantum/split_common
|
@ -1,18 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
QK_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_NO, KC_BSLS, 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,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
|
||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, MO(1),
|
||||
KC_LCTL, KC_LALT, KC_LALT, KC_SPACE, KC_SPACE, KC_SPACE, KC_SPACE, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
[1] = LAYOUT(
|
||||
QK_BOOT, 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_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_END, KC_DEL, KC_TRNS,
|
||||
KC_CAPS, RGB_TOG, RGB_MOD, RGB_RMOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MNXT, KC_MPLY, KC_MPLY, KC_VOLU, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_VOLD, KC_TRNS
|
||||
),
|
||||
};
|
@ -1,10 +0,0 @@
|
||||
Default Keymap
|
||||
===
|
||||
|
||||
Super simple default keymap with only a base layer.
|
||||
|
||||
Keymap Maintainer: [Ethan Madden](https://github.com/jetpacktuxedo)
|
||||
|
||||
Difference from base layout: This is (as close as I can tell) the same as the layout that ships on the boards other than default underglow color.
|
||||
|
||||
Intended usage: This is mostly provided for testing before you build your own keymap and as a reference to a stock(ish) configuration
|
@ -1,17 +0,0 @@
|
||||
Vanagon
|
||||
===
|
||||
Port of [evangs'](https://thevankeyboards.com) [MiniVan layout](https://www.massdrop.com/talk/115/where-did-all-my-keys-go-a-look-into-the-function-layers-of-the-mini-van) to the JD40. Includes colon/semicolon support, which is missing from the MiniVan layout.
|
||||
|
||||
This layout uses a 44 key configuration similar to the following:
|
||||
|
||||
```
|
||||
,------+------+------+------+------+------+------+------+------+------+------+------.
|
||||
| | | | | | | | | | | | |
|
||||
|------`------`------`------`------`------`------`------`------`------`------`------|
|
||||
| | | | | | | | | | | |
|
||||
|-------`------`------`------`------`------`------`------`------`------`------------|
|
||||
| | | | | | | | | | | |
|
||||
|---------`------`------`------`------`------'-------`------`------`------`---------|
|
||||
| | | | | | | | | | |
|
||||
`------+------+------+-------+----^^^-----+----^^^-----+-------+------+------+------'
|
||||
```
|
@ -1,13 +0,0 @@
|
||||
#include "../../config.h"
|
||||
|
||||
#define LAYOUT_VANAGON(\
|
||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, \
|
||||
K13, K14, K15, K16, K17, K18, K19, K20, K21, K22, K23, \
|
||||
K24, K25, K26, K27, K28, K29, K30, K31, K32, K33, K34, \
|
||||
K35, K36, K37, K38, K39, K40, K41, K42, K43, K44 \
|
||||
) { \
|
||||
{ K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12 }, \
|
||||
{ K13, K14, K15, K16, K17, K18, K19, K20, K21, K22, K23 }, \
|
||||
{ K24, K25, K26, K27, K28, K29, K30, K31, K32, K33, K34 }, \
|
||||
{ K35, K36, K37, K38, K39, KC_NO, K40, K41, K42, K43, K44 } \
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "action_layer.h"
|
||||
|
||||
enum
|
||||
{
|
||||
_BL = 0,
|
||||
_AL1,
|
||||
_AL2,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BL] = LAYOUT_VANAGON(
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
MO(_AL1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, MO(_AL1),
|
||||
SC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
MO(_AL2), KC_LCTL, KC_LALT, KC_LGUI, KC_ENT, KC_SPC, KC_RGUI, KC_RALT, SC_RSPC, MO(_AL2)),
|
||||
[_AL1] = LAYOUT_VANAGON(
|
||||
KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LBRC, KC_RBRC, KC_TRNS,
|
||||
KC_TRNS, KC_BSLS, KC_QUOT, KC_MINS, KC_EQL, KC_COLN, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, KC_TRNS,
|
||||
KC_TRNS, KC_ESC, KC_VOLD, KC_VOLU, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
[_AL2] = LAYOUT_VANAGON(
|
||||
KC_TILD, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS,
|
||||
KC_TRNS, KC_PIPE, KC_DQT, KC_UNDS, KC_PLUS, KC_SCLN, KC_TRNS, KC_4, KC_5, KC_6, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_0, KC_1, KC_2, KC_3, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)};
|
@ -1,3 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 50
|
@ -1,153 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum jd45_layers
|
||||
{
|
||||
_QWERTY,
|
||||
_QWERTYNUMMODS,
|
||||
_NUMSYM,
|
||||
_FUNCTION,
|
||||
_NUMPAD,
|
||||
_FKEYNUMPAD,
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum jd45_keycodes
|
||||
{
|
||||
NUMSYM = SAFE_RANGE,
|
||||
MACSLEEP,
|
||||
USEFNMODS,
|
||||
USENUMMODS,
|
||||
DYNAMIC_MACRO_RANGE,
|
||||
};
|
||||
|
||||
#include "dynamic_macro.h"
|
||||
|
||||
#define LONGPRESS_DELAY 150
|
||||
#define LAYER_TOGGLE_DELAY 900
|
||||
|
||||
#define __MOD__ KC_TRNS
|
||||
#define F_FNSPC LT(_NUMSYM, KC_SPC)
|
||||
#define F_NUMSPC LT(_NUMPAD, KC_SPC)
|
||||
#define F_FNTAB LT(_FUNCTION, KC_TAB)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QWERTY] = LAYOUT(
|
||||
F_FNTAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, KC_BSPC,
|
||||
CTL_T(KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, LT(_ADJUST, 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_T(KC_ENT),
|
||||
XXXXXXX, KC_LALT, KC_LGUI, XXXXXXX, XXXXXXX, F_FNSPC, XXXXXXX, MO(_FUNCTION), MO(_ADJUST), XXXXXXX
|
||||
),
|
||||
|
||||
[_QWERTYNUMMODS] = LAYOUT(
|
||||
F_FNTAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, KC_BSPC,
|
||||
CTL_T(KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, LT(_ADJUST, 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_T(KC_ENT),
|
||||
XXXXXXX, KC_LALT, KC_LGUI, XXXXXXX, XXXXXXX, F_NUMSPC, XXXXXXX, MO(_FKEYNUMPAD), MO(_ADJUST), XXXXXXX
|
||||
),
|
||||
|
||||
[_NUMSYM] = LAYOUT(
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, KC_DEL,
|
||||
__MOD__, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______,
|
||||
_______, _______, _______, _______, _______, KC_SPC, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, _______,
|
||||
XXXXXXX, __MOD__, __MOD__, XXXXXXX, XXXXXXX, _______, XXXXXXX, __MOD__, __MOD__, XXXXXXX
|
||||
),
|
||||
|
||||
[_FUNCTION] = LAYOUT(
|
||||
__MOD__, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
|
||||
__MOD__, _______, _______, _______, _______, _______, KC_MPRV, KC_VOLD, KC_VOLU, KC_MNXT, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
XXXXXXX, __MOD__, __MOD__, XXXXXXX, XXXXXXX, _______, XXXXXXX, __MOD__, __MOD__, XXXXXXX
|
||||
),
|
||||
|
||||
[_NUMPAD] = LAYOUT(
|
||||
KC_GRV, _______, KC_UP, _______, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_PSCR, KC_LBRC, KC_RBRC,
|
||||
_______, KC_LEFT, KC_DOWN, KC_RGHT, KC_4, KC_5, KC_6, KC_INS, KC_HOME, KC_PGUP, _______, _______,
|
||||
_______, _______, _______, _______, KC_1, KC_2, KC_3, KC_DEL, KC_END, KC_PGDN, _______, _______,
|
||||
XXXXXXX, _______, _______, XXXXXXX, XXXXXXX, _______, XXXXXXX, __MOD__, __MOD__, XXXXXXX
|
||||
),
|
||||
|
||||
[_FKEYNUMPAD] = LAYOUT(
|
||||
_______, _______, KC_VOLU, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, _______, _______,
|
||||
_______, KC_MPRV, KC_VOLD, KC_MNXT, KC_F4, KC_F5, KC_F6, KC_J, KC_K, KC_L, KC_SCLN, _______,
|
||||
_______, _______, _______, _______, KC_F1, KC_F2, KC_F3, KC_MUTE, KC_MPRV, KC_MNXT, KC_MSTP, _______,
|
||||
XXXXXXX, _______, _______, XXXXXXX, XXXXXXX, _______, XXXXXXX, __MOD__, __MOD__, XXXXXXX
|
||||
),
|
||||
|
||||
[_ADJUST] = LAYOUT(
|
||||
_______, QK_BOOT, _______, _______, _______, _______, _______, DM_REC1, DM_REC2, _______, KC_PSCR, _______, _______,
|
||||
_______, _______, _______, _______, USEFNMODS, _______, _______, DM_PLY1, DM_PLY2, MACSLEEP, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, USENUMMODS, _______, _______, _______, _______, _______,
|
||||
XXXXXXX, _______, _______, XXXXXXX, XXXXXXX, _______, XXXXXXX, __MOD__, __MOD__, XXXXXXX
|
||||
)
|
||||
};
|
||||
|
||||
void persistent_default_layer_set(uint16_t default_layer)
|
||||
{
|
||||
eeconfig_update_default_layer(default_layer);
|
||||
default_layer_set(default_layer);
|
||||
}
|
||||
|
||||
static bool singular_key = false;
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record)
|
||||
{
|
||||
uint16_t macro_kc = (keycode == MO(_ADJUST) ? DM_RSTP : keycode);
|
||||
if (!process_record_dynamic_macro(macro_kc, record))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
println(" ");
|
||||
print("process record");
|
||||
|
||||
switch (keycode)
|
||||
{
|
||||
case MACSLEEP:
|
||||
if (record->event.pressed)
|
||||
{
|
||||
// ACTION_MODS_KEY(MOD_LCTL | MOD_LSFT, KC_PWR);
|
||||
register_code(KC_RSFT);
|
||||
register_code(KC_RCTL);
|
||||
register_code(KC_PWR);
|
||||
unregister_code(KC_PWR);
|
||||
unregister_code(KC_RCTL);
|
||||
unregister_code(KC_RSFT);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case USEFNMODS:
|
||||
if (record->event.pressed)
|
||||
{
|
||||
persistent_default_layer_set(1UL << _QWERTY);
|
||||
#ifdef AUDIO_ENABLE
|
||||
PLAY_SONG(tone_fnpc);
|
||||
#endif
|
||||
print("Space-FN");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case USENUMMODS:
|
||||
if (record->event.pressed)
|
||||
{
|
||||
persistent_default_layer_set(1UL << _QWERTYNUMMODS);
|
||||
#ifdef AUDIO_ENABLE
|
||||
PLAY_SONG(tone_fnmac);
|
||||
#endif
|
||||
print("Space-Numpad");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
default:
|
||||
singular_key = false;
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
void matrix_init_user(void)
|
||||
{
|
||||
#ifdef AUDIO_ENABLE
|
||||
startup_user();
|
||||
#endif
|
||||
// debug_enable = true;
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
# Mike's JD45 with 6u Spacebar
|
||||
|
||||
- Early draft of numsym that misses a lot of symbols
|
||||
- Numpad layer available for evaluation
|
||||
- Works with iPhone Camera Adapter
|
||||
- Dynamic macros
|
||||
|
||||
## Layers
|
||||
|
||||
Qwerty for letters and mods.
|
||||
|
||||
Qwertymods layer switches some Modifiers around
|
||||
|
||||
Numsym puts the number keys across the top row like a Planck. Arrows are on hjkl
|
||||
which makes the other NumSym dynamic from my other boards fall apart
|
||||
|
||||
Function layer replaces the top row numbers with Fkeys.
|
||||
|
||||
Numpad layer makes a number pad in the center.
|
||||
|
||||
Fkeynumpad replaces the numpad numbers with Fkeys.
|
||||
|
||||
Adjust layer has macros and configuration.
|
@ -1,20 +0,0 @@
|
||||
# Build Options
|
||||
# change to "no" to disable the options, or define them in the Makefile in
|
||||
# the appropriate keymap folder that will get included automatically
|
||||
#
|
||||
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
MIDI_ENABLE = no # MIDI controls
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
|
||||
DEBUG_ENABLE = yes
|
||||
|
@ -1,70 +0,0 @@
|
||||
/*
|
||||
* Copyright 2021 JKDLAB. <jkdlab.co@gmail.com>
|
||||
* Copyright 2021 Jaehee <ljh34210329@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License,
|
||||
* or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see https://www.gnu.org/licenses/.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
char ascii = 0;
|
||||
|
||||
enum custom_keycodes {
|
||||
BIN_0 = SAFE_RANGE,
|
||||
BIN_1,
|
||||
BIN_RETURN
|
||||
};
|
||||
|
||||
enum layers {
|
||||
_BASE = 0
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT(
|
||||
BIN_0, BIN_1,
|
||||
BIN_RETURN
|
||||
)
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t* record) {
|
||||
switch (keycode) {
|
||||
case BIN_0:
|
||||
if (record->event.pressed) {
|
||||
ascii = ascii << 1;
|
||||
}
|
||||
|
||||
return true;
|
||||
case BIN_1:
|
||||
if (record->event.pressed) {
|
||||
ascii = ascii << 1;
|
||||
++ascii;
|
||||
}
|
||||
|
||||
return true;
|
||||
case BIN_RETURN:
|
||||
if (record->event.pressed) {
|
||||
char str[2] = { ascii & 127, '\0' };
|
||||
|
||||
send_string(str);
|
||||
|
||||
ascii = 0;
|
||||
}
|
||||
|
||||
return true;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layer_names {
|
||||
_BL,
|
||||
_FL
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BL] = LAYOUT_60_ansi(
|
||||
QK_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,
|
||||
KC_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,
|
||||
MO(_FL), 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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(_FL), KC_RCTL
|
||||
),
|
||||
|
||||
[_FL] = 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_DEL,
|
||||
_______, KC_MPRV, KC_MPLY, KC_MNXT, _______, _______, _______, KC_PGUP, KC_UP, KC_PGDN, KC_PSCR, KC_SCRL, KC_PAUS, _______,
|
||||
KC_CAPS, _______, KC_VOLD, KC_VOLU, KC_MUTE, _______, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_INS, KC_DEL, _______,
|
||||
_______, KC_APP, _______, _______, _______, _______, KC_END, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
@ -1,45 +0,0 @@
|
||||
/*
|
||||
Copyright 2019 Josh Johnson
|
||||
|
||||
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 RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||
// /*== customize breathing effect ==*/
|
||||
// /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
|
||||
// #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
|
||||
// /*==== use exp() and sin() ====*/
|
||||
// #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
|
||||
// #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
|
||||
// #endif
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 20
|
||||
|
||||
// Time out one shot layers after 3 seconds
|
||||
#define ONESHOT_TIMEOUT 3000
|
||||
|
||||
// Undef and redefine default brightness to half of 255
|
||||
#undef RGBLIGHT_LIMIT_VAL
|
||||
#define RGBLIGHT_LIMIT_VAL 255
|
||||
|
||||
//Define a preview timeout for RGB reviews
|
||||
#define PREVIEW_TIMEOUT 5000
|
||||
|
||||
// Enable Light Layers implementation
|
||||
#define RGBLIGHT_LAYERS
|
||||
// Allow Light Layers to override RGB off configuration
|
||||
#define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF
|
@ -1,209 +0,0 @@
|
||||
/*
|
||||
Copyright 2019 Josh Johnson 2021 peepeetee
|
||||
|
||||
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
|
||||
|
||||
#if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_LAYERS)
|
||||
static uint32_t rgb_preview_timer = 0;
|
||||
#endif
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
|
||||
// Layer 0 - Base Layer (F13 to F24, and One Shot Layer 1,2,3 or Toggle Layer 4)
|
||||
[0] = LAYOUT(
|
||||
KC_MPLY, KC_MUTE,
|
||||
TG(3), TG(2), TG(1), TG(0),
|
||||
KC_PSCR, KC_SCRL, KC_PAUS, A(KC_F4),
|
||||
KC_INS, KC_HOME, KC_PGUP, KC_F12, //Transparent to let you go between layers
|
||||
KC_DEL, A(KC_F4), KC_PGDN, KC_CALCULATOR
|
||||
|
||||
),
|
||||
|
||||
[1] = LAYOUT(
|
||||
KC_MPLY, KC_MUTE,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_F7, KC_F8, KC_F9, KC_F10,
|
||||
KC_F4, KC_F5, KC_F6, KC_F11,
|
||||
KC_F1, KC_F2, KC_F3, KC_F12 //Transparent to let you go between layers
|
||||
),
|
||||
|
||||
|
||||
//Layer 5 - Keyboard Lights, Programming and Special Functions
|
||||
[2] = LAYOUT(
|
||||
KC_MPLY, KC_MUTE,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, //Transparent to let you go between layers
|
||||
RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI,
|
||||
RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD,
|
||||
RGB_TOG, EE_CLR, QK_BOOT, KC_TRNS
|
||||
),
|
||||
|
||||
[3] = LAYOUT(
|
||||
KC_MPLY, KC_MUTE,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, //Transparent to let you go between layers
|
||||
RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI,
|
||||
RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD,
|
||||
RGB_TOG, EE_CLR, QK_BOOT, KC_TRNS
|
||||
)
|
||||
|
||||
|
||||
//Layer 0 - Base Layer (F13 to F24, and One Shot Layer 1,2,3 or Toggle Layer 4)
|
||||
// [0] = LAYOUT(
|
||||
// KC_MPLY, KC_MUTE,
|
||||
// KC_F13, KC_F14, KC_F15, KC_F16,
|
||||
// KC_F17, KC_F18, KC_F19, KC_F20,
|
||||
// KC_F21, KC_F22, KC_F23, KC_F24,
|
||||
// OSL(1), OSL(2), OSL(3), TG(4) //Transparent to let you go between layers
|
||||
// ),
|
||||
|
||||
// [1] = LAYOUT(
|
||||
// KC_MPLY, KC_MUTE,
|
||||
// LALT(KC_F13), LALT(KC_F14), LALT(KC_F15), LALT(KC_F16),
|
||||
// LALT(KC_F17), LALT(KC_F18), LALT(KC_F19), LALT(KC_F20),
|
||||
// LALT(KC_F21), LALT(KC_F22), LALT(KC_F23), LALT(KC_F24),
|
||||
// KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS //Transparent to let you go between layers
|
||||
// ),
|
||||
|
||||
//Layer 2 - Shift + Function Key Layer
|
||||
// [2] = LAYOUT(
|
||||
// KC_MPLY, KC_MUTE,
|
||||
// LSFT(KC_F13), LSFT(KC_F14), LSFT(KC_F15), LSFT(KC_F16),
|
||||
// LSFT(KC_F17), LSFT(KC_F18), LSFT(KC_F19), LSFT(KC_F20),
|
||||
// LSFT(KC_F21), LSFT(KC_F22), LSFT(KC_F23), LSFT(KC_F24),
|
||||
// KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS //Transparent to let you go between layers
|
||||
// ),
|
||||
|
||||
// //Layer 3 - Control + Function Key
|
||||
// [3] = LAYOUT(
|
||||
// KC_MPLY, KC_MUTE,
|
||||
// LCTL(KC_F13), LCTL(KC_F14), LCTL(KC_F15), LCTL(KC_F16),
|
||||
// LCTL(KC_F17), LCTL(KC_F18), LCTL(KC_F19), LCTL(KC_F20),
|
||||
// LCTL(KC_F21), LCTL(KC_F22), LCTL(KC_F23), LCTL(KC_F24),
|
||||
// KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS //Transparent to let you go between layers
|
||||
// ),
|
||||
|
||||
// //Layer 4 - Multimedia
|
||||
// [4] = LAYOUT(
|
||||
// KC_MPLY, KC_MUTE,
|
||||
// KC_MPRV, KC_MPLY, KC_U, KC_K,
|
||||
// KC_NO, KC_NO, KC_ENT, KC_X,
|
||||
// KC_NO, QK_BOOT, LSFT(KC_HASH), KC_J,
|
||||
// TG(5), KC_TRNS, KC_TRNS, KC_TRNS //Transparent to let you go between layers
|
||||
// ),
|
||||
|
||||
// //Layer 5 - Keyboard Lights, Programming and Special Functions
|
||||
// [5] = LAYOUT(
|
||||
// KC_MPLY, KC_MUTE,
|
||||
// RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI,
|
||||
// RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD,
|
||||
// RGB_TOG, EE_CLR, QK_BOOT, KC_LSFT,
|
||||
// KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS //Transparent to let you go between layers
|
||||
// ),
|
||||
};
|
||||
|
||||
const rgblight_segment_t PROGMEM my_layer0_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0,16,HSV_WHITE}
|
||||
);
|
||||
const rgblight_segment_t PROGMEM my_layer1_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0,16,HSV_ORANGE}
|
||||
);
|
||||
const rgblight_segment_t PROGMEM my_layer2_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0,16,HSV_RED}
|
||||
);
|
||||
const rgblight_segment_t PROGMEM my_layer3_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0,16,HSV_BLUE}
|
||||
);
|
||||
// const rgblight_segment_t PROGMEM my_layer4_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
// {0,16,HSV_WHITE}
|
||||
// );
|
||||
// const rgblight_segment_t PROGMEM my_layer5_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
// {0,16,HSV_TEAL}
|
||||
// );
|
||||
const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
||||
my_layer0_layer,
|
||||
my_layer1_layer,
|
||||
my_layer2_layer,
|
||||
my_layer3_layer//,
|
||||
// my_layer4_layer,
|
||||
// my_layer5_layer
|
||||
);
|
||||
|
||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (index == 0) { /* Left Encoder */
|
||||
if (clockwise) {
|
||||
tap_code(KC_MPRV);
|
||||
} else {
|
||||
tap_code(KC_MNXT);
|
||||
}
|
||||
} else if (index == 1) { /* Right Encoder */
|
||||
if (clockwise) {
|
||||
tap_code(KC_VOLD);
|
||||
} else {
|
||||
tap_code(KC_VOLU);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
void post_process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
// Allow for a preview of changes when modifying RGB
|
||||
# if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_LAYERS)
|
||||
switch (keycode) {
|
||||
case RGB_TOG ... QK_VELOCIKEY_TOGGLE:
|
||||
for (uint8_t i = 0; i < RGBLIGHT_MAX_LAYERS; i++) {
|
||||
rgblight_set_layer_state(i, false);
|
||||
}
|
||||
rgb_preview_timer = timer_read32();
|
||||
break;
|
||||
}
|
||||
# endif
|
||||
return;
|
||||
}
|
||||
|
||||
//Set the appropriate layer color
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
rgblight_set_layer_state(0, false);
|
||||
rgblight_set_layer_state(1, layer_state_cmp(state, 1));
|
||||
rgblight_set_layer_state(2, layer_state_cmp(state, 2));
|
||||
rgblight_set_layer_state(3, layer_state_cmp(state, 3));
|
||||
// rgblight_set_layer_state(4, layer_state_cmp(state, 4));
|
||||
// rgblight_set_layer_state(5, layer_state_cmp(state, 5));
|
||||
return state;
|
||||
}
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
//Enable the LED layers
|
||||
rgblight_layers = my_rgb_layers;
|
||||
layer_state_set_user(layer_state);
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
# if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_LAYERS)
|
||||
// Allow preview for
|
||||
if (rgb_preview_timer && TIMER_DIFF_32(timer_read32(), rgb_preview_timer) > PREVIEW_TIMEOUT) {
|
||||
rgb_preview_timer = 0;
|
||||
default_layer_state_set_user(default_layer_state);
|
||||
layer_state_set_user(layer_state);
|
||||
led_update_user((led_t) host_keyboard_leds());
|
||||
}
|
||||
# endif
|
||||
}
|
||||
|
||||
//EEPROM Reset Function
|
||||
void eeconfig_init_user(void) {
|
||||
rgblight_enable(); // Enable RGB by default
|
||||
rgblight_sethsv(HSV_ORANGE); // Set it to orange by default
|
||||
}
|
@ -1 +0,0 @@
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
@ -1,58 +0,0 @@
|
||||
// Copyright 2022 Dane Skalski (@Daneski13)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
/* Indicator LEDs */
|
||||
// LED index for caps lock key on the extension layer
|
||||
#define CAPS_LOCK_LED_INDEX 25
|
||||
// LED index for num lock key on the symbol layer
|
||||
#define NUM_LOCK_LED_INDEX 62
|
||||
// LED index for key that sticks the adjust layer
|
||||
#define ADJST_LED_INDEX 19
|
||||
|
||||
// Number of Layers that can be used by VIA.
|
||||
// Change this if you want more layers
|
||||
#define DYNAMIC_KEYMAP_LAYER_COUNT 6
|
||||
|
||||
/* - Encoder settings - */
|
||||
#ifdef ENCODER_ENABLE
|
||||
# define ENCODER_RESOLUTION 4
|
||||
#endif
|
||||
#ifdef ENCODER_MAP_ENABLE
|
||||
// Key delay for encoders (necessary for some keycodes)
|
||||
# define ENCODER_MAP_KEY_DELAY 10
|
||||
#endif
|
||||
|
||||
/*
|
||||
- RGB Stuff -
|
||||
All effects can be found in the QMK docs:
|
||||
https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
|
||||
*/
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
|
||||
// Allows the indicator LEDs to work
|
||||
# define SPLIT_LED_STATE_ENABLE
|
||||
# define SPLIT_LAYER_STATE_ENABLE
|
||||
|
||||
// Default effect when EEPROM cleared
|
||||
# define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
|
||||
// Turns off RGB effects when there is no longer a USB connection
|
||||
# define RGB_MATRIX_SLEEP
|
||||
|
||||
// Throttling of RGB to increase keyboard responsiveness, set to 1.5x the default limits
|
||||
# define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 6 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
|
||||
# define RGB_MATRIX_LED_FLUSH_LIMIT 24 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms), the default, is equivalent to limiting to 60fps
|
||||
|
||||
// Key press reactive animations
|
||||
# define SPLIT_TRANSPORT_MIRROR // Necessary setting for key press animations
|
||||
# define RGB_MATRIX_KEYPRESSES // Enables key press effects
|
||||
# define ENABLE_RGB_MATRIX_MULTISPLASH
|
||||
|
||||
// Normal effects
|
||||
# define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||
# define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
# define ENABLE_RGB_MATRIX_PIXEL_RAIN
|
||||
|
||||
#endif
|
@ -1,329 +0,0 @@
|
||||
// Copyright 2022 Dane Skalski (@Daneski13)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
// Layers enum
|
||||
enum junco_layers { _QWERTY, _COLEMAK_DH, _SYMB, _EXT, _ADJUST };
|
||||
|
||||
// Custom keycodes
|
||||
enum custom_keycodes {
|
||||
// Keycode for toggling between macOS and Windows key mappings
|
||||
// Actually just an alias to the GUI and Alt swap Magic keycode
|
||||
KC_OS = MAGIC_TOGGLE_ALT_GUI,
|
||||
// Keycode for swapping the base layer between QWERTY and Colemak-DH
|
||||
KC_TOGGLE_BASE = SAFE_RANGE,
|
||||
// Keycode for redo action (Ctrl + Y on windows, Ctrl + Shift + Z on macOS)
|
||||
KC_REDO,
|
||||
// Keycodes for next/previous word
|
||||
KC_WNXT,
|
||||
KC_WPRV,
|
||||
// Keycode for sticking/unsticking the adjust layer
|
||||
KC_ADJST
|
||||
};
|
||||
|
||||
/* LED indicators */
|
||||
bool is_caps_lock_enabled(void) { // Caps lock
|
||||
return (host_keyboard_led_state().caps_lock);
|
||||
}
|
||||
bool is_num_lock_enabled(void) { // Num lock
|
||||
return (host_keyboard_led_state().num_lock);
|
||||
}
|
||||
bool is_adjust_layer_sticky(layer_state_t state) { // Adjust layer sticky
|
||||
// Checks if the state is equal to just the adjust layer being active.
|
||||
// Doing it this way can leverage SPLIT_LAYER_STATE_ENABLE
|
||||
return (state == (1UL << _ADJUST)) ? true : false;
|
||||
}
|
||||
// Indicator color based on the RGB Matrix mode
|
||||
RGB indicator_color(void) {
|
||||
RGB rgb;
|
||||
// Normally the indicator color is white to stand out in the RGB rainbow.
|
||||
// When using the custom RGB mode that already is white, the indicator color
|
||||
// is green to stand out.
|
||||
if (rgb_matrix_config.mode == RGB_MATRIX_CUSTOM_WHITE_UNDERGLOW_CYCLE) {
|
||||
// Green
|
||||
rgb.r = 0;
|
||||
rgb.g = 255;
|
||||
rgb.b = 0;
|
||||
} else {
|
||||
// White
|
||||
rgb.r = 255;
|
||||
rgb.g = 255;
|
||||
rgb.b = 255;
|
||||
}
|
||||
return rgb;
|
||||
}
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
// clang-format off
|
||||
/*
|
||||
Traditional QWERTY
|
||||
┌───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┐
|
||||
│ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ │ 6 │ 7 │ 8 │ 9 │ 0 │ - │
|
||||
├───┼───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┼───┤
|
||||
│Tab│ Q │ W │ E │ R │ T │ │ Y │ U │ I │ O │ P │Ent│
|
||||
├───┼───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┼───┤
|
||||
│Esc│ A │ S │ D │ F │ G │ │ H │ J │ K │ L │ ; │ ' │
|
||||
├───┼───┼───┼───┼───┼───┼───┐ ┌───┼───┼───┼───┼───┼───┼───┤
|
||||
│Sft│ Z │ X │ C │ V │ B │Mut│ │▶⏸ │ N │ M │ , │ . │ / │Sft│
|
||||
└───┴───┴───┴───┴───┴───┴───┘ └───┴───┴───┴───┴───┴───┴───┘
|
||||
┌───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┐
|
||||
│Ctr│Win│Alt│Del│Spc│ │Sft│Bsp│Alt│Win│Ctr│
|
||||
└───┴───┴───┴───┴───┘ └───┴───┴───┴───┴───┘
|
||||
For macOS - GUI (cmd) and Alt (opt) swapped
|
||||
*/
|
||||
[_QWERTY] = LAYOUT_split4x6_r1(
|
||||
KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_ENTER,
|
||||
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SEMICOLON, KC_QUOTE,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_MPLY, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, LT(_EXT, KC_DEL), KC_SPC, KC_RSFT, LT(_SYMB, KC_BSPC), KC_RALT, KC_RGUI, KC_RCTL
|
||||
),
|
||||
|
||||
/*
|
||||
Colemak-DH
|
||||
┌───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┐
|
||||
│ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ │ 6 │ 7 │ 8 │ 9 │ 0 │ - │
|
||||
├───┼───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┼───┤
|
||||
│Tab│ Q │ W │ F │ P │ B │ │ J │ L │ U │ Y │ ; │Ent│
|
||||
├───┼───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┼───┤
|
||||
│Esc│ A │ R │ S │ T │ G │ │ M │ N │ E │ I │ O │ ' │
|
||||
├───┼───┼───┼───┼───┼───┼───┐ ┌───┼───┼───┼───┼───┼───┼───┤
|
||||
│Sft│ Z │ X │ C │ D │ V │Mut│ │▶⏸ │ K │ H │ , │ . │ / │Sft│
|
||||
└───┴───┴───┴───┴───┴───┴───┘ └───┴───┴───┴───┴───┴───┴───┘
|
||||
┌───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┐
|
||||
│Ctr│Win│Alt│Del│Spc│ │Sft│Bsp│Alt│Win│Ctr│
|
||||
└───┴───┴───┴───┴───┘ └───┴───┴───┴───┴───┘
|
||||
For macOS - GUI/Win (cmd) and Alt (opt) swapped
|
||||
*/
|
||||
[_COLEMAK_DH] = LAYOUT_split4x6_r1(
|
||||
KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS,
|
||||
KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SEMICOLON, KC_ENTER,
|
||||
KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, KC_QUOTE,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_MUTE, KC_MPLY, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, LT(_EXT, KC_DEL), KC_SPC, KC_RSFT, LT(_SYMB, KC_BSPC), KC_RALT, KC_RGUI, KC_RCTL
|
||||
),
|
||||
|
||||
/*
|
||||
Symbols/Numpad Layer
|
||||
┌───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┐
|
||||
│F1 │F2 │F3 │F4 │F5 │F6 │ │F7 │F8 │F9 │F10│F11│F12│
|
||||
├───┼───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┼───┤
|
||||
│Tab│ ! │ @ │ # │ $ │ % │ │ * │ 7 │ 8 │ 9 │ + │Ent│
|
||||
├───┼───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┼───┤
|
||||
│ \ │ _ │ [ │ { │ ( │ ^ │ │ = │ 4 │ 5 │ 6 │ 0 │NUM│
|
||||
├───┼───┼───┼───┼───┼───┼───┐ ┌───┼───┼───┼───┼───┼───┼───┤
|
||||
│___│ | │ ] │ } │ ) │ & │___│ │___│ / │ 1 │ 2 │ 3 │ - │___│
|
||||
└───┴───┴───┴───┴───┴───┴───┘ └───┴───┴───┴───┴───┴───┴───┘
|
||||
┌───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┐
|
||||
│___│___│___│___│___│ │___│___│___│___│___│
|
||||
└───┴───┴───┴───┴───┘ └───┴───┴───┴───┴───┘
|
||||
*/
|
||||
[_SYMB] = LAYOUT_split4x6_r1(
|
||||
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_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_PAST, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_ENTER,
|
||||
KC_BSLS, KC_UNDS, KC_LBRC, KC_LCBR, KC_LPRN, KC_CIRC, KC_PEQL, KC_P4, KC_P5, KC_P6, KC_P0, KC_NUM,
|
||||
_______, KC_PIPE, KC_RBRC, KC_RCBR, KC_RPRN, KC_AMPR, _______, _______, KC_PSLS, KC_P1, KC_P2, KC_P3, KC_PMNS, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/*
|
||||
Extension/Function Layer
|
||||
┌────┬────┬────┬────┬────┬────┐ ┌────┬────┬────┬────┬────┬────┐
|
||||
│ F1 │ F2 │ F3 │ F4 │ F5 │ F6 │ │ F7 │ F8 │ F9 │ F10│ F11│ F12│
|
||||
├────┼────┼────┼────┼────┼────┤ ├────┼────┼────┼────┼────┼────┤
|
||||
│ ⇤ │PGUP│End │ ↑ │Home│ │ │BRIU│ F7 │ F8 │ F9 │ F10│____│
|
||||
├────┼────┼────┼────┼────┼────┤ ├────┼────┼────┼────┼────┼────┤
|
||||
│Cps │PGDN│ ← │ ↓ │ → │ │ │BRID│ F4 │ F5 │ F6 │ F11│____│
|
||||
├────┼────┼────┼────┼────┼────┼────┐ ┌────┼────┼────┼────┼────┼────┼────┤
|
||||
│____│ │ │ │ │ │____│ │____│ │ F1 │ F2 │ F3 │ F12│____│
|
||||
└────┴────┴────┴────┴────┴────┴────┘ └────┴────┴────┴────┴────┴────┴────┘
|
||||
┌───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┐
|
||||
│___│___│___│___│___│ │___│___│___│___│___│
|
||||
└───┴───┴───┴───┴───┘ └───┴───┴───┴───┴───┘
|
||||
*/
|
||||
[_EXT] = LAYOUT_split4x6_r1(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
|
||||
S(KC_TAB), KC_PGUP, KC_END, KC_UP, KC_HOME, _______, KC_BRIU, KC_F7, KC_F8, KC_F9, KC_F10, _______,
|
||||
KC_CAPS, KC_PGDN, KC_LEFT, KC_DOWN, KC_RIGHT, _______, KC_BRID, KC_F4, KC_F5, KC_F6, KC_F11, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, KC_F1, KC_F2, KC_F3, KC_F12, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/*
|
||||
Adjust Layer, Keyboard Settings
|
||||
┌────┬────┬────┬────┬────┬────┐ ┌────┬────┬────┬────┬────┬────┐
|
||||
│ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
├────┼────┼────┼────┼────┼────┤ ├────┼────┼────┼────┼────┼────┤
|
||||
│SpdU│HueU│SatU│ValU│Rnxt│Stck│ │ │EClr│Rbt │DBUG│BOOT│ │
|
||||
├────┼────┼────┼────┼────┼────┤ ├────┼────┼────┼────┼────┼────┤
|
||||
│SpdD│HueD│SatD│ValD│Rprv│RTgl│ │ │LOUT│ OS │ │ │ │
|
||||
├────┼────┼────┼────┼────┼────┼────┐ ┌────┼────┼────┼────┼────┼────┼────┤
|
||||
│ │ │ │ │ │ │RTgl│ │ │ │ │ │ │ │ │
|
||||
└────┴────┴────┴────┴────┴────┴────┘ └────┴────┴────┴────┴────┴────┴────┘
|
||||
┌───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┐
|
||||
│___│___│___│___│___│ │___│___│___│___│___│
|
||||
└───┴───┴───┴───┴───┘ └───┴───┴───┴───┴───┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_split4x6_r1(
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
RGB_SPI, RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD, KC_ADJST, KC_NO, EE_CLR, QK_RBT, DB_TOGG, QK_BOOT, KC_NO,
|
||||
RGB_SPD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_RMOD, RGB_TOG, KC_NO, KC_TOGGLE_BASE, KC_OS, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_TOG, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
/*
|
||||
--- Rotary Encoder Mappings ---
|
||||
|
||||
Encoder mappings go from leftmost encoder to rightmost encoder on the physical board.
|
||||
index 0 is the the optional leftmost encoder on the left half, index 1 is the right encoder
|
||||
on the left half (by the thumb keys), index 2 is the left encoder on the right half (by the
|
||||
thumb keys), and index 3 is the optional rightmost encoder on the right half.
|
||||
|
||||
If you are only using the 2 required encoders by the thumb keys, you only need to worry about
|
||||
index 1 and index 2.
|
||||
|
||||
Note that the key to be sent for counter-clockwise rotation (CCW) goes first and then the key for
|
||||
clockwise (CW) within ENCODER_CCW_CW.
|
||||
*/
|
||||
#ifdef ENCODER_MAP_ENABLE
|
||||
// clang-format off
|
||||
|
||||
// Base layer encoder mappings:
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
// Base layers
|
||||
// index 0: mouse wheel up (CCW)/down (CW) index 1: volume up/down index 2: media prev/next index 3: mouse wheel left/right
|
||||
[_QWERTY] = { ENCODER_CCW_CW(KC_MS_WH_UP, KC_MS_WH_DOWN), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_MPRV, KC_MNXT), ENCODER_CCW_CW(KC_WH_L, KC_WH_R) },
|
||||
[_COLEMAK_DH] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
|
||||
|
||||
// Passes through to base layer
|
||||
[_SYMB] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
|
||||
// undo/redo previous word/next word
|
||||
[_EXT] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_UNDO, KC_REDO), ENCODER_CCW_CW(KC_WPRV, KC_WNXT) },
|
||||
// RGB Speed down/up RGB previous mode/next mode RGB brightness down/up
|
||||
[_ADJUST] = { ENCODER_CCW_CW(RGB_SPD, RGB_SPI), ENCODER_CCW_CW(RGB_RMOD, RGB_MOD), ENCODER_CCW_CW(RGB_VAD, RGB_VAI), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) },
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
// Called whenever a layer is changed
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
// Make sure the adjust layer isn't sticky
|
||||
if (is_adjust_layer_sticky(state)) return state;
|
||||
|
||||
// When both the symbol and extension layer keys are held, the Adjust layer is active.
|
||||
return update_tri_layer_state(state, _SYMB, _EXT, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
// Toggle base layer
|
||||
case KC_TOGGLE_BASE:
|
||||
if (record->event.pressed) {
|
||||
// Toggle swapping base layers between Colemak-DH and QWERTY.
|
||||
// When base layer is QWERTY, swap to Colemak-DH and vice-versa
|
||||
if (get_highest_layer(default_layer_state) == _QWERTY) {
|
||||
default_layer_set(1UL << _COLEMAK_DH);
|
||||
} else {
|
||||
default_layer_set(1UL << _QWERTY);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
// Override undo in favor of the more modern undo action
|
||||
case KC_UNDO:
|
||||
if (record->event.pressed) {
|
||||
// Use the correct modifier for macOS or Windows
|
||||
uint16_t mod = keymap_config.swap_lalt_lgui ? KC_LGUI : KC_LCTL;
|
||||
// Send Ctrl+Z/Cmd+Z
|
||||
register_code(mod);
|
||||
tap_code_delay(KC_Z, 10);
|
||||
unregister_code(mod);
|
||||
}
|
||||
return false;
|
||||
|
||||
// Redo action
|
||||
case KC_REDO:
|
||||
if (record->event.pressed) {
|
||||
// Whether or not macOS mapping is enabled
|
||||
if (keymap_config.swap_lalt_lgui) {
|
||||
// macOS - Send Cmd+Shift+Z
|
||||
register_code(KC_LGUI);
|
||||
register_code(KC_LSFT);
|
||||
tap_code_delay(KC_Z, 10);
|
||||
unregister_code(KC_LSFT);
|
||||
unregister_code(KC_LGUI);
|
||||
} else {
|
||||
// Windows - Send Ctrl+Y
|
||||
register_code(KC_LCTL);
|
||||
tap_code_delay(KC_Y, 10);
|
||||
unregister_code(KC_LCTL);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
// Next word
|
||||
case KC_WNXT:
|
||||
if (record->event.pressed) {
|
||||
// Use the correct modifier for macOS or Windows
|
||||
uint16_t mod = keymap_config.swap_lalt_lgui ? KC_LALT : KC_LCTL;
|
||||
// Send Ctrl+Right/Option+Right
|
||||
register_code(mod);
|
||||
tap_code_delay(KC_RGHT, 10);
|
||||
unregister_code(mod);
|
||||
}
|
||||
return false;
|
||||
|
||||
// Previous word
|
||||
case KC_WPRV:
|
||||
if (record->event.pressed) {
|
||||
// Use the correct modifier for macOS or Windows
|
||||
uint16_t mod = keymap_config.swap_lalt_lgui ? KC_LALT : KC_LCTL;
|
||||
// Send Ctrl+Left/Option+Left
|
||||
register_code(mod);
|
||||
tap_code_delay(KC_LEFT, 10);
|
||||
unregister_code(mod);
|
||||
}
|
||||
return false;
|
||||
|
||||
// Stick / Unstick the adjust layer
|
||||
case KC_ADJST:
|
||||
if (record->event.pressed) {
|
||||
// If currently not sticky, we want only the adjust layer to be active to make it stick.
|
||||
// Otherwise we want the default layer, un-stick.
|
||||
is_adjust_layer_sticky(layer_state) ? layer_state_set(default_layer_state) : layer_move(_ADJUST);
|
||||
dprintf("Adjust layer is now %s\n", is_adjust_layer_sticky(layer_state) ? "stuck" : "un-stuck");
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/* Indicators (Caps Lock / Num Lock / Adjust Layer Sticky) */
|
||||
bool rgb_matrix_indicators_user(void) {
|
||||
layer_state_t curr_layer_state = layer_state;
|
||||
layer_state_t layer = get_highest_layer(curr_layer_state);
|
||||
RGB rgb = indicator_color();
|
||||
|
||||
/* Only show the indicator on their respective layers */
|
||||
// Caps Lock is only on the extension layer
|
||||
if (is_caps_lock_enabled() && layer == _EXT) {
|
||||
rgb_matrix_set_color(CAPS_LOCK_LED_INDEX, rgb.r, rgb.g, rgb.b);
|
||||
}
|
||||
|
||||
// Num Lock is only on the symbol layer
|
||||
if (is_num_lock_enabled() && layer == _SYMB) {
|
||||
rgb_matrix_set_color(NUM_LOCK_LED_INDEX, rgb.r, rgb.g, rgb.b);
|
||||
}
|
||||
|
||||
// If the adjust layer is stuck/sticky, light it up. Don't need to care about
|
||||
// checking the layer since it can only be active on the adjust layer anyway
|
||||
if (is_adjust_layer_sticky(curr_layer_state)) rgb_matrix_set_color(ADJST_LED_INDEX, rgb.r, rgb.g, rgb.b);
|
||||
|
||||
return false;
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Deluxe Junco Keymap
|
||||
|
||||
This is my personal keymap for Junco at time of writing. It departs from the [default layout](../default/README.md) with the encoder mappings and some extra keycodes. This keymap also adds indicators when caps lock and num lock are enabled. When enabled, that key will become a static white (green on the white backlight mode) but only when the layer that respective key is on is active.
|
||||
|
||||
I wanted that classic rainbow barf RGB effect for the underglow even if the per-key lighting is something else, so I added 2 custom RGB matrix animations: white per-key lighting with rainbow underglow and pixel rain with rainbow underglow.
|
||||
|
||||
Here are some gifs of the animations:
|
||||
|
||||
![White + Underglow Animation](https://i.imgur.com/2vCiZz0.gif)
|
||||
|
||||
![Pixel Rain + Underglow Animation](https://i.imgur.com/f6t0OfD.gif)
|
||||
|
||||
## Base Layers
|
||||
|
||||
The base layers are the same as the default layout, except the right side's left encoder (by the thumb keys) is now media controls. Since I am using all 4 encoders it doesn't make sense to have 2 mouse scroll up/down, but for someone with just 2 encoders it may make sense to have media controls on a layer.
|
||||
|
||||
QWERTY:
|
||||
|
||||
![QWERTY Layer](https://i.imgur.com/vkS9Tceh.png)
|
||||
|
||||
Colemak-DH:
|
||||
|
||||
![Colemak-DH Layer](https://i.imgur.com/5YYgaUAh.png)
|
||||
|
||||
## Symbol Layer
|
||||
|
||||
Symbol layer is identical to the default layout.
|
||||
|
||||
![Symbol Layer](https://i.imgur.com/6F35Z4Wh.png)
|
||||
|
||||
## Extension Layer
|
||||
|
||||
Encoders on the right side become undo/redo and scrolling horizontally by word.
|
||||
|
||||
![Extension Layer](https://i.imgur.com/0VCStS8h.png)
|
||||
|
||||
## Adjust Layer
|
||||
|
||||
Pressing "Stick Adj Layer" will "stick" the adjust layer so you can use the rotary encoders for RGB settings rather than holding down both backspace and delete. To go back to the default layer, press that stick key again or press and release either Del or Backspace. When the adjust layer is currently "sticky" the sticky key will become the indicator color mentioned earlier.
|
||||
|
||||
"Toggle Base" will toggle between QWERTY and Colemak-DH and toggle OS will toggle between macOS and Windows key-mappings (swapping WIN/Command with Alt/Option by the thumb keys and properly mapping redo/word scrolling).
|
||||
|
||||
![Adjust layer](https://i.imgur.com/71ftNoNh.png)
|
@ -1,48 +0,0 @@
|
||||
// Copyright 2022 Dane Skalski (@Daneski13)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
RGB_MATRIX_EFFECT(WHITE_UNDERGLOW_CYCLE)
|
||||
RGB_MATRIX_EFFECT(PIXEL_RAIN_UNDERGLOW_CYCLE)
|
||||
|
||||
#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
||||
|
||||
// This is a modified version of the effect_runner_dx_dy_dist function from rgb_matrix
|
||||
// that only applies the effect to the underglow LEDs of this keyboard
|
||||
static bool underglow_effect_runner(effect_params_t* params, dx_dy_dist_f underglow_effect_func, bool backlight_white) {
|
||||
RGB_MATRIX_USE_LIMITS(led_min, led_max);
|
||||
|
||||
HSV hsv = rgb_matrix_config.hsv;
|
||||
HSV white = {0, 0, hsv.v};
|
||||
RGB rgb = rgb_matrix_hsv_to_rgb(white);
|
||||
uint8_t time = scale16by8(g_rgb_timer, rgb_matrix_config.speed / 2);
|
||||
for (uint8_t i = led_min; i < led_max; i++) {
|
||||
// Underglow LEDs are indicies 0 - 7 and 37 - 44
|
||||
if ((i <= 7) || (37 <= i && i <= 44)) {
|
||||
// Apply the maths and colors to the underglow LEDs
|
||||
RGB_MATRIX_TEST_LED_FLAGS();
|
||||
int16_t dx = g_led_config.point[i].x - k_rgb_matrix_center.x;
|
||||
int16_t dy = g_led_config.point[i].y - k_rgb_matrix_center.y;
|
||||
uint8_t dist = sqrt16(dx * dx + dy * dy);
|
||||
RGB rgb = rgb_matrix_hsv_to_rgb(underglow_effect_func(hsv, dx, dy, dist, time));
|
||||
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
|
||||
} else {
|
||||
// Set the backlight to white if needed
|
||||
if (!backlight_white) continue;
|
||||
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
|
||||
}
|
||||
}
|
||||
return rgb_matrix_check_finished_leds(led_max);
|
||||
}
|
||||
|
||||
// Solid white but the underglow is a rainbow spiral
|
||||
static bool WHITE_UNDERGLOW_CYCLE(effect_params_t* params) {
|
||||
return underglow_effect_runner(params, &CYCLE_SPIRAL_math, true);
|
||||
}
|
||||
|
||||
// Pixel rain effect but the underglow is a rainbow spiral
|
||||
static bool PIXEL_RAIN_UNDERGLOW_CYCLE(effect_params_t* params) {
|
||||
PIXEL_RAIN(params);
|
||||
return underglow_effect_runner(params, &CYCLE_SPIRAL_math, false);
|
||||
}
|
||||
|
||||
#endif
|
@ -1,20 +0,0 @@
|
||||
# Enables Audio control and System control Keycodes
|
||||
EXTRAKEY_ENABLE = yes
|
||||
# Enables Mousekeys
|
||||
MOUSEKEY_ENABLE = yes
|
||||
# Encoder Support
|
||||
ENCODER_ENABLE = yes
|
||||
# Use Enocoder Mapping
|
||||
ENCODER_MAP_ENABLE = yes
|
||||
|
||||
# Enables RGB Lighting Effects
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
|
||||
# Allows use of `qmk console` for debugging
|
||||
CONSOLE_ENABLE = yes
|
||||
|
||||
# Enables VIA
|
||||
VIA_ENABLE = yes
|
||||
|
||||
# Custom RGB Matrix Effect
|
||||
RGB_MATRIX_CUSTOM_USER = yes
|
@ -1,193 +0,0 @@
|
||||
/* Copyright 2019 ENDO Katsuhiro <ka2hiro@kagizaraya.jp>
|
||||
*
|
||||
* 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
|
||||
|
||||
// Defines the keycodes used by our macros in process_record_user
|
||||
enum layer_names {
|
||||
_QWERTY,
|
||||
_HAPPY,
|
||||
_LOWER,
|
||||
_RAISE,
|
||||
_ADJUST,
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
HAPPY,
|
||||
LOWER,
|
||||
RAISE,
|
||||
ADJUST,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Qwerty
|
||||
*
|
||||
* ,------------------------------------------------. ,------------------------------------------------.
|
||||
* | Esc | 1 | 2 | 3 | 4 | 5 | - | | = | 6 | 7 | 8 | 9 | 0 | \ |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Tab | Q | W | E | R | T | [ | | ] | Y | U | I | O | P | BkSp |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Ctrl | A | S | D | F | G | ` | | ' | H | J | K | L | ; |Enter |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------.
|
||||
* |Shift | Z | X | C | V | B | Caps | | Del | N | M | , | . | / |Shift | Fn |
|
||||
* `--------------------+------+------+------+------| |------+------+------+------+------+------+------+------'
|
||||
* | LAlt | LGUI | LOWER|Ctr/Esc| |Spc/Sft | RAISE| LGUI | LAlt |
|
||||
* `---------------------------' `---------------------------'
|
||||
*/
|
||||
[_QWERTY] = LAYOUT(
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_EQL, 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_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_GRV, KC_QUOT, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_CAPS, KC_DEL, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, HAPPY,
|
||||
KC_LALT, KC_LGUI, LOWER, MT(MOD_LCTL, KC_ESC), MT(MOD_LSFT, KC_SPC), RAISE, KC_RGUI, KC_RALT
|
||||
),
|
||||
|
||||
/* Happy
|
||||
*
|
||||
* ,------------------------------------------------. ,------------------------------------------------.
|
||||
* | Pwr | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F0 | Del |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Caps | F11 | F12 |BLTOGG| |BL INC|BL DEC| | | | Psc | Slk | Pus | Up | Ins |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | Vol- | Vol+ | Mute |RGBHUI|RGBSAI|RGBVAI| | * | / | Home | PgUp | Left | Right| |
|
||||
* |------+------+------+------+------+------+------| +------+------+------+------+------+------+------+------.
|
||||
* | |RGBTOG|RGBMOD|RGBRMD|RGBHUD|RGBSAD|RGBVAD| | + | - | End | PgDn | Down | | | |
|
||||
* `--------------------+------+------+------+------| |------+------+------+------+------+------+------+------'
|
||||
* | | | | | | | | | |
|
||||
* `---------------------------' `---------------------------'
|
||||
*/
|
||||
[_HAPPY] = LAYOUT(
|
||||
KC_PWR, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,
|
||||
KC_CAPS, KC_F10, KC_F12, BL_TOGG, _______, BL_UP , BL_DOWN, _______, _______, KC_PSCR, KC_SCRL, KC_PAUS, KC_UP, KC_INS,
|
||||
_______, KC_VOLD, KC_VOLU, KC_MUTE, RGB_HUI, RGB_SAI, RGB_VAI, KC_PAST, KC_PSLS, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, _______,
|
||||
_______, RGB_TOG, RGB_MOD, RGB_RMOD,RGB_HUD, RGB_SAD, RGB_VAD, KC_PPLS, KC_PMNS, KC_END, KC_PGDN, KC_DOWN, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
|
||||
/* Raise
|
||||
*
|
||||
* ,------------------------------------------------. ,------------------------------------------------.
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | ! | @ | # | $ | % | | | | ^ | & | * | ( | ) | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | | _ | + | | | ~ | | | | : | " | > | { | } | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------.
|
||||
* | | | - | = | \ | ` | | | | ; | ' | < | [ | ] | | |
|
||||
* `--------------------+------+------+------+------| |------+------+------+------+------+------+------+------'
|
||||
* | | | | | | | | | |
|
||||
* `---------------------------' `---------------------------'
|
||||
*/
|
||||
[_RAISE] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
|
||||
_______, _______, KC_UNDS, KC_PLUS, KC_PIPE, KC_TILD, _______, _______, KC_COLN, KC_DQUO, KC_GT, KC_LCBR, KC_RCBR, _______,
|
||||
_______, _______, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, _______, _______, KC_SCLN, KC_QUOT, KC_LT, KC_LBRC, KC_RBRC, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
|
||||
/* Lower
|
||||
*
|
||||
* ,------------------------------------------------. ,------------------------------------------------.
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | 1 | 2 | 3 | 4 | 5 | | | | 6 | 7 | 8 | 9 | 0 | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | | | | | | Enter| | | Left | Down | Up | Right| | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------.
|
||||
* | | | | | | | Del | | BkSp | | PgUp | PgDn | | | | |
|
||||
* `--------------------+------+------+------+------| |------+------+------+------+------+------+------+------'
|
||||
* | | | | | | | | | |
|
||||
* `---------------------------' `---------------------------'
|
||||
*/
|
||||
[_LOWER] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
|
||||
_______, _______, _______, _______, _______, _______, KC_ENT, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, KC_DEL, KC_BSPC, _______, KC_PGUP, KC_PGDN, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
|
||||
/* Adjust
|
||||
*
|
||||
* ,------------------------------------------------. ,------------------------------------------------.
|
||||
* | | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F0 | Del |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | F11 | F12 |BLTOGG| |BL INC|BL DEC| | | | | | | | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | | |RGBMOD|RGBHUI|RGBSAI|RGBVAI| | | | | | | | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------.
|
||||
* | | Reset| |RGBTOG|RGBHUD|RGBSAD|RGBVAD| | | Prev | Next | Vol- | Vol+ | Play | | |
|
||||
* `--------------------+------+------+------+------| |------+------+------+------+------+------+------+------'
|
||||
* | | | | | | | | | |
|
||||
* `---------------------------' `---------------------------'
|
||||
*/
|
||||
[_ADJUST] = LAYOUT(
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,
|
||||
_______, KC_F10, KC_F12, BL_TOGG, _______, BL_UP , BL_DOWN, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, QK_BOOT, _______, RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, _______, KC_MPRV, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
// persistant_default_layer_set(1UL<<_QWERTY);
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case HAPPY:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_HAPPY);
|
||||
} else {
|
||||
layer_off(_HAPPY);
|
||||
}
|
||||
return false;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
} else {
|
||||
layer_off(_LOWER);
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
return false;
|
||||
case RAISE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_RAISE);
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
} else {
|
||||
layer_off(_RAISE);
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
return false;
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
} else {
|
||||
layer_off(_ADJUST);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
# The forty percent compatible keymap for scythe
|
||||
|
@ -1,37 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* QWERTY */
|
||||
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_GRV, 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_LBRC, KC_RBRC, KC_BSPC,
|
||||
MO(3), 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_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, MO(3),
|
||||
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_LCTL),
|
||||
|
||||
/* DVORAK */
|
||||
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_LBRC, KC_RBRC, KC_GRV, KC_BSLS,
|
||||
KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH, KC_EQL, KC_BSPC,
|
||||
MO(3), KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINS, KC_ENT,
|
||||
KC_LSFT, KC_NUBS, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_LSFT, MO(3),
|
||||
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_RCTL),
|
||||
|
||||
/* COLEMAK */
|
||||
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_GRV, KC_BSLS,
|
||||
KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_LBRC, KC_RBRC, KC_BSPC,
|
||||
MO(3), KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, MO(3),
|
||||
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_RCTL),
|
||||
|
||||
/* FUNCTION */
|
||||
LAYOUT_all(
|
||||
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_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT, KC_TRNS, KC_TRNS, KC_PGUP, KC_UP, KC_PGDN, KC_PSCR, KC_SCRL, KC_PAUS, KC_BSPC,
|
||||
KC_TRNS, KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_CAPS, KC_TRNS, KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU, KC_TRNS, KC_END, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_MOD, KC_TRNS, RGB_TOG)
|
||||
|
||||
};
|
@ -1,38 +0,0 @@
|
||||
/*
|
||||
Copyright 2021 KapCave
|
||||
|
||||
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
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* DEFAULT */
|
||||
LAYOUT_numpad_aek(
|
||||
MO(1), KC_PEQL, KC_PSLS, KC_PAST,
|
||||
KC_P7, KC_P8, KC_P9, KC_PMNS,
|
||||
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||
KC_P1, KC_P2, KC_P3,
|
||||
KC_P0, KC_PDOT, KC_PENT),
|
||||
|
||||
/* FUNCTION */
|
||||
LAYOUT_numpad_aek(
|
||||
KC_TRNS, RGB_TOG, RGB_MOD, KC_TRNS,
|
||||
RGB_HUI, RGB_SAI, RGB_VAI, KC_TRNS,
|
||||
RGB_HUD, RGB_SAD, RGB_VAD, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, QK_BOOT, KC_NUM)
|
||||
};
|
||||
|
@ -1 +0,0 @@
|
||||
The keymap for PaladinPad which resembles the AEK Numpad
|
@ -1,19 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#define FORCE_NKRO
|
||||
|
||||
#define MOUSEKEY_DELAY 50
|
||||
#define MOUSEKEY_INTERVAL 15
|
||||
#define MOUSEKEY_MAX_SPEED 4
|
||||
#define MOUSEKEY_TIME_TO_MAX 50
|
||||
#define MOUSEKEY_WHEEL_MAX_SPEED 1
|
||||
#define MOUSEKEY_WHEEL_TIME_TO_MAX 50
|
||||
|
||||
#define NO_ACTION_FUNCTION
|
||||
#define NO_ACTION_MACRO
|
||||
#define NO_ACTION_ONESHOT
|
||||
|
||||
#define PERMISSIVE_HOLD
|
||||
#define TAPPING_TERM 200
|
||||
#define TAPPING_TOGGLE 2
|
||||
#define TAP_HOLD_CAPS_DELAY 50
|
@ -1,79 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#define FN MO(L_FN)
|
||||
#define FN_CAPS LT(L_FN, KC_CAPS)
|
||||
#define FN_ESC LT(L_FN, KC_ESC)
|
||||
#define FN_FNLK TT(L_FN)
|
||||
|
||||
#define MV_UP LCTL(KC_UP)
|
||||
#define MV_DOWN LCTL(KC_DOWN)
|
||||
#define MV_LEFT LCTL(KC_LEFT)
|
||||
#define MV_RGHT LCTL(KC_RGHT)
|
||||
#define TOP LCTL(KC_HOME)
|
||||
#define BOTTOM LCTL(KC_END)
|
||||
|
||||
enum keycodes {
|
||||
CLEAR = SAFE_RANGE,
|
||||
};
|
||||
|
||||
enum layers {
|
||||
L_BASE,
|
||||
L_FN,
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case CLEAR:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(SS_LCTL("a") SS_TAP(X_DELETE));
|
||||
}
|
||||
return false;
|
||||
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ \ │ ` │PSc│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │Bspc │Del│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │FnEsc │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter │PgU│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ LShift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │RShift│ ↑ │PgD│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │LCtl│LGui│LAlt│ Space │RAlt│FnLk│ │ ← │ ↓ │ → │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
|
||||
*/
|
||||
[L_BASE] = LAYOUT(
|
||||
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_BSLS, KC_GRV, KC_PSCR,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_DEL,
|
||||
FN_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_PGUP,
|
||||
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_PGDN,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, FN_FNLK, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
/* Function layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ │F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│NLk│SLk│Pau│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
|
||||
* │ │M2 │M↑ │M1 │M3 │ │ │ │ │Stp│Ply│Prv│Nxt│Clear│Ins│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │M← │M↓ │M→ │MW↑│ │ │Mv←│ ↓ │ ↑ │Mv→│ │ │Top│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │MA0│MA2│MW←│MW→│ │ │App│Vo-│Vo+│Mut│ │PgU│Btm│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
|
||||
* │ │DtPR│DtNA│ MW↓ │ │ │ │Hom│PgD│End│
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
|
||||
*/
|
||||
[L_FN] = LAYOUT(
|
||||
_______, 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_NUM, KC_SCRL, KC_PAUS,
|
||||
_______, KC_BTN2, KC_MS_U, KC_BTN1, KC_BTN3, _______, _______, _______, _______, KC_MSTP, KC_MPLY, KC_MPRV, KC_MNXT, CLEAR, KC_INS,
|
||||
_______, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_U, _______, MV_LEFT, KC_DOWN, KC_UP, MV_RGHT, _______, _______, _______, TOP,
|
||||
_______, KC_ACL0, KC_ACL2, KC_WH_L, KC_WH_R, _______, _______, KC_APP, KC_VOLD, KC_VOLU, KC_MUTE, _______, KC_PGUP, BOTTOM,
|
||||
_______, _______, _______, KC_WH_D, _______, _______, KC_HOME, KC_PGDN, KC_END
|
||||
),
|
||||
};
|
@ -1,6 +0,0 @@
|
||||
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
||||
COMMAND_ENABLE = yes
|
||||
CONSOLE_ENABLE = yes
|
||||
EXTRAKEY_ENABLE = yes
|
||||
MOUSEKEY_ENABLE = yes
|
||||
NKRO_ENABLE = yes
|
@ -1,3 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#define TAPPING_TERM 200
|
@ -1,71 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
// Compile from qmk_firmware folder with the following command:
|
||||
// $ make kbdfans/kbd67/mkii-soldered:adamdehaven
|
||||
|
||||
// Each layer gets a name for readability. The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||
// Layer names don't all need to be of the same length, and you can also skip them entirely and just use numbers.
|
||||
#define _QWERTY 0
|
||||
#define _FN1 1
|
||||
|
||||
// Tap Dance Definitions
|
||||
enum tapdance {
|
||||
TD_HOME = 0,
|
||||
TD_END
|
||||
};
|
||||
|
||||
tap_dance_action_t tap_dance_actions[] = {
|
||||
// Tap once for Home, twice for PageUp
|
||||
[TD_HOME] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_PGUP),
|
||||
// Tap once for End, twice for PageDown
|
||||
[TD_END] = ACTION_TAP_DANCE_DOUBLE(KC_END, KC_PGDN)
|
||||
};
|
||||
|
||||
/*
|
||||
* You can use _______ in place for KC_TRNS (transparent)
|
||||
* Or you can use XXXXXXX for KC_NO (NOOP)
|
||||
*/
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* 0: _QWERTY
|
||||
* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐
|
||||
* │ QK_GESC │ KC_1 │ KC_2 │ KC_3 │ KC_4 │ KC_5 │ KC_6 │ KC_7 │ KC_8 │ KC_9 │ KC_0 │ KC_MINS │ KC_EQL │ KC_BSPC (2) │ KC_DEL │
|
||||
* ├─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤
|
||||
* │ 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 │ TD_HOME │
|
||||
* ├──────────────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴──────────────┼─────────┤
|
||||
* │ KC_CAPS │ KC_A │ KC_S │ KC_D │ KC_F │ KC_G │ KC_H │ KC_J │ KC_K │ KC_L │ KC_SCLN │ KC_QUOT │ KC_ENT │ TD_END │
|
||||
* ├────────────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────────────┬─────────┼─────────┤
|
||||
* │ KC_LSFT (2) │ KC_Z │ KC_X │ KC_C │ KC_V │ KC_B │ KC_N │ KC_M │ KC_COMM │ KC_DOT │ KC_SLSH │ KC_RSFT │ KC_UP │ MO(_FN1)│
|
||||
* ├───────────┬─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬┴────────┬─┴───────┬─────────┼─────────┼─────────┤
|
||||
* │ KC_LCTL │ KC_LGUI │ KC_LALT │ KC_SPC │ KC_RALT │ KC_RCTL │ │ KC_LEFT │ KC_DOWN │ KC_RGHT │
|
||||
* └───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘
|
||||
*/
|
||||
[_QWERTY] = LAYOUT_all(
|
||||
QK_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_DEL,
|
||||
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, TD(TD_HOME),
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, TD(TD_END),
|
||||
KC_LSFT, 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, MO(_FN1),
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
/* 1: _FN1
|
||||
* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬───────────────────┬─────────┐
|
||||
* │ QK_BOOT │ KC_F1 │ KC_F2 │ KC_F3 │ KC_F4 │ KC_F5 │ KC_F6 │ KC_F7 │ KC_F8 │ KC_F9 │ KC_F10 │ KC_F11 │ KC_F12 │ _______ (2) │ KC_MUTE │
|
||||
* ├─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤
|
||||
* │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ KC_PSCR │ _______ │ _______ │ _______ │ KC_VOLU │
|
||||
* ├──────────────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴─┬───────┴──────────────┼─────────┤
|
||||
* │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ KC_VOLD │
|
||||
* ├────────────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────────────┬─────────┼─────────┤
|
||||
* │ _______ (2) │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ KC_MPLY │ _______ │
|
||||
* ├───────────┬─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤
|
||||
* │ _______ │ _______ │ _______ │ _______ │ _______ │ _______ │ │ KC_MPRV │ KC_MPLY │ KC_MNXT │
|
||||
* └───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_all(
|
||||
QK_BOOT, 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_MUTE,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, _______, _______, _______, KC_VOLU,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_MPLY, KC_MNXT
|
||||
)
|
||||
};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user