Manual user keymap removal (#23104)
This commit is contained in:
parent
db1df185c9
commit
e26e12402b
209 changed files with 0 additions and 14964 deletions
|
|
@ -1,11 +0,0 @@
|
|||
// List any combo dictionaries you want loaded to your device below!
|
||||
|
||||
// QMK wide includes
|
||||
//#include "combos/germ-vim-helpers.def"
|
||||
#include "combos/germ-mouse-keys.def"
|
||||
|
||||
// User includes
|
||||
#include "gergoplex.def"
|
||||
|
||||
// Word completion
|
||||
// #include "combos/eng-combos.def"
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
/*
|
||||
Copyright 2012 Jun Wako <wakojun@gmail.com>
|
||||
Copyright 2013 Oleg Kostyuk <cub.uanic@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/>.
|
||||
*/
|
||||
|
||||
// Copy and worked on with love from the EZ team
|
||||
|
||||
#pragma once
|
||||
|
||||
#define HOLD_ON_OTHER_KEY_PRESS_PER_KEY
|
||||
|
||||
#undef DEBOUNCE
|
||||
#define DEBOUNCE 25
|
||||
|
||||
#define COMBO_ALLOW_ACTION_KEYS
|
||||
#define COMBO_VARIABLE_LEN
|
||||
|
||||
#define TAPPING_TERM_PER_KEY
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
// Gergoplex specfic combos
|
||||
|
||||
COMB(hjEnt, KC_ENT, KC_H, KC_J)
|
||||
COMB(loDel, KC_DEL, KC_L, KC_O)
|
||||
COMB(pscBspace, KC_BSPC, KC_P, KC_SCLN)
|
||||
COMB(sdEsc, KC_ESC, KC_D, KC_F)
|
||||
COMB(fgEsc, KC_ESC, KC_F, KC_G)
|
||||
|
|
@ -1,212 +0,0 @@
|
|||
/* Copyright 2021 Jane Bernhardt
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
/* Good on you for modifying your layout! if you don't have
|
||||
* time to read the QMK docs, a list of keycodes can be found at
|
||||
* https://github.com/qmk/qmk_firmware/blob/master/docs/keycodes.md
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "g/keymap_combo.h"
|
||||
|
||||
enum {
|
||||
_ALPHA, // default
|
||||
_GAME, // gaming
|
||||
_SPECIAL, // special characters
|
||||
_NUMBERS // numbers/function/motion
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
TD_NONE,
|
||||
TD_UNKNOWN,
|
||||
TD_SINGLE_TAP,
|
||||
TD_DOUBLE_TAP,
|
||||
TD_TRIPLE_TAP
|
||||
} td_state_t;
|
||||
|
||||
typedef struct {
|
||||
bool is_press_action;
|
||||
td_state_t state;
|
||||
} td_tap_t;
|
||||
|
||||
enum {
|
||||
GAME
|
||||
};
|
||||
|
||||
td_state_t cur_dance(tap_dance_state_t *state);
|
||||
|
||||
void ql_finished(tap_dance_state_t *state, void *user_data);
|
||||
void ql_reset(tap_dance_state_t *state, void *user_data);
|
||||
|
||||
#define KC_CTL_A MT(MOD_LCTL, KC_A) // Tap for A, hold for Control
|
||||
#define KC_SFT_Z MT(MOD_RSFT, KC_Z) // Tap for Z, hold for Shift
|
||||
#define KC_SFT_SL MT(MOD_RSFT, KC_SLSH) // Tap for slash, hold for Shift
|
||||
#define KC_SPE_SPC LT(_SPECIAL, KC_SPC) // Tap for Space, hold for Special layer
|
||||
#define KC_NUM_SPC LT(_NUMBERS, KC_SPC) // Tap for Space, hold for Numbers layer
|
||||
|
||||
/* Combomap
|
||||
*
|
||||
* ,-------------------------------. ,-------------------------------.
|
||||
* | | | | | | | | | | | |
|
||||
* |-------+-----+-----+-----+-----| |-----+-----+-----+-DEL-+-BSPC--|
|
||||
* | | | ESC ESC | | ENT | | | |
|
||||
* |-------+-----+-----+-RMB-+-LMB-| |-----+-----+-----+-----+-------|
|
||||
* | | | | | | | | | | | |
|
||||
* `-------------------------------' `-------------------------------'
|
||||
* .-----------------. .-----------------.
|
||||
* | | | | | | | |
|
||||
* '-----------------' '-----------------'
|
||||
*/
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Alpha layer
|
||||
*
|
||||
* ,-------------------------------. ,-------------------------------.
|
||||
* | Q | W | E | R | T | | Y | U | I | O | P |
|
||||
* |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------|
|
||||
* | CTRL A| S | D | F | G | | H | J | K | L | ; |
|
||||
* |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------|
|
||||
* | SHFT Z| X | C | V | B | | N | M | , | . |SHFT / |
|
||||
* `-------------------------------' `-------------------------------'
|
||||
* .----------------------. .----------------------.
|
||||
* | META | ALT | SPC SPE | | SPC NUM | TAB | SHFT |
|
||||
* '----------------------' '----------------------'
|
||||
*/
|
||||
[_ALPHA] = LAYOUT_split_3x5_3(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_CTL_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_SFT_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, TD(GAME), KC_DOT, KC_SFT_SL,
|
||||
KC_LGUI, KC_LALT, KC_SPE_SPC, KC_NUM_SPC, KC_TAB, KC_RSFT),
|
||||
|
||||
/* Gaming layer
|
||||
*
|
||||
* ,-------------------------------. ,-------------------------------.
|
||||
* | ~ | Q | W | E | R | | Y | U | I | O | P |
|
||||
* |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------|
|
||||
* | CTRL | A | S | D | F | | H | J | K | L | ; |
|
||||
* |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------|
|
||||
* | SHFT | Z | X | C | V | | N | M | , | . |SHFT / |
|
||||
* `-------------------------------' `-------------------------------'
|
||||
* .------------------. .----------------------.
|
||||
* | META | ALT | SPC | | SPC NUM | TAB | SHFT |
|
||||
* '------------------' '----------------------'
|
||||
*/
|
||||
[_GAME] = LAYOUT_split_3x5_3(
|
||||
KC_TILD, KC_Q, KC_W, KC_E, KC_R, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_LCTL , KC_A, KC_S, KC_D, KC_F, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_N, KC_M, TD(GAME), KC_DOT, KC_SFT_SL,
|
||||
KC_LGUI, KC_LALT, KC_SPC, KC_NUM_SPC, KC_TAB, KC_RSFT),
|
||||
|
||||
/* Special characters layer
|
||||
*
|
||||
* ,-------------------------------. ,-------------------------------.
|
||||
* | ! | @ | { | } | | | | ` | - | = | / | \ |
|
||||
* |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------|
|
||||
* | # | $ | ( | ) | | | LFT | DWN | UP | RGT | ' |
|
||||
* |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------|
|
||||
* | % | ^ | [ | ] | | | & | ~ | + | * | |
|
||||
* `-------------------------------' `-------------------------------'
|
||||
* .-------------------. .-----------------.
|
||||
* | | | | | | " | _ |
|
||||
* '-------------------' '-----------------'
|
||||
*/
|
||||
[_SPECIAL] = LAYOUT_split_3x5_3(
|
||||
KC_EXLM, KC_AT, KC_LCBR, KC_RCBR, KC_PIPE, KC_GRV, KC_MINS, KC_EQL , KC_SLSH, KC_BSLS,
|
||||
KC_HASH, KC_DLR, KC_LPRN, KC_RPRN, KC_TRNS, KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, KC_QUOT,
|
||||
KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_TRNS, KC_AMPR, KC_TILD, KC_PLUS, KC_ASTR, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, LSFT(KC_QUOTE), LSFT(KC_MINS)),
|
||||
|
||||
/* Numbers/Function/Motion layer
|
||||
*
|
||||
* ,-------------------------------. ,-------------------------------.
|
||||
* | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |
|
||||
* |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------|
|
||||
* | F1 | F2 | F3 | F4 | F5 | | | | | | |
|
||||
* |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------|
|
||||
* | F6 | F7 | F8 | F9 | F10 | | MLFT| MDWN| MUP | MRGT| |
|
||||
* `-------------------------------' `-------------------------------'
|
||||
* .-----------------. .-----------------.
|
||||
* | F11 | F12 | | | | | |
|
||||
* '-----------------' '-----------------'
|
||||
*/
|
||||
[_NUMBERS] = LAYOUT_split_3x5_3(
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, KC_TRNS,
|
||||
KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
|
||||
};
|
||||
|
||||
bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KC_CTL_A:
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
td_state_t cur_dance(tap_dance_state_t *state) {
|
||||
if (state->count == 1)
|
||||
return TD_SINGLE_TAP;
|
||||
if (state->count == 2)
|
||||
return TD_DOUBLE_TAP;
|
||||
else if (state->count == 3)
|
||||
return TD_TRIPLE_TAP;
|
||||
return TD_UNKNOWN;
|
||||
}
|
||||
|
||||
static td_tap_t ql_tap_state = {
|
||||
.is_press_action = true,
|
||||
.state = TD_NONE
|
||||
};
|
||||
|
||||
void ql_finished(tap_dance_state_t *state, void *user_data) {
|
||||
ql_tap_state.state = cur_dance(state);
|
||||
switch (ql_tap_state.state) {
|
||||
case TD_SINGLE_TAP:
|
||||
tap_code(KC_COMMA);
|
||||
break;
|
||||
case TD_DOUBLE_TAP:
|
||||
tap_code(KC_COMMA);
|
||||
tap_code(KC_COMMA);
|
||||
break;
|
||||
case TD_TRIPLE_TAP:
|
||||
if (layer_state_is(_GAME))
|
||||
layer_off(_GAME);
|
||||
else
|
||||
layer_on(_GAME);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void ql_reset(tap_dance_state_t *state, void *user_data) {
|
||||
ql_tap_state.state = TD_NONE;
|
||||
}
|
||||
|
||||
tap_dance_action_t tap_dance_actions[] = {
|
||||
[GAME] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset)
|
||||
};
|
||||
|
||||
uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QK_TAP_DANCE ... QK_TAP_DANCE_MAX:
|
||||
return 275;
|
||||
default:
|
||||
return TAPPING_TERM;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
# George Petri's Gergoplex layout
|
||||
Vim and programming focused layout.
|
||||
```
|
||||
qmk compile -kb gboards/gergoplex -km georgepetri
|
||||
qmk flash -kb gboards/gergoplex -km georgepetri
|
||||
```
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
#----------------------------------------------------------------------------
|
||||
# make gboards/gergoplex:default:flash
|
||||
# Make sure you have dfu-programmer installed!
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
#Debug options
|
||||
VERBOSE = no
|
||||
DEBUG_MATRIX_SCAN_RATE = no
|
||||
DEBUG_MATRIX = no
|
||||
CONSOLE_ENABLE = no
|
||||
|
||||
#Combos!
|
||||
COMBO_ENABLE = yes
|
||||
VPATH += keyboards/gboards/
|
||||
|
||||
ifeq ($(strip $(DEBUG_MATRIX)), yes)
|
||||
OPT_DEFS += -DDEBUG_MATRIX
|
||||
endif
|
||||
|
||||
TAP_DANCE_ENABLE = yes
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
// List any combo dictionaries you want loaded to your device below!
|
||||
|
||||
// QMK wide includes
|
||||
//#include "combos/germ-vim-helpers.def"
|
||||
//#include "combos/germ-mouse-keys.def"
|
||||
|
||||
// User includes
|
||||
#include "gergoplex.def"
|
||||
|
||||
// Word completion
|
||||
// #include "combos/eng-combos.def"
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#define COMBO_ALLOW_ACTION_KEYS
|
||||
#define COMBO_VARIABLE_LEN
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
// Gergoplex specfic combos
|
||||
|
||||
COMB(qwGrav, KC_GRV, KC_W, KC_Q)
|
||||
COMB(wsEsc, KC_ESC, KC_W, KC_S)
|
||||
COMB(sdBackspace, KC_BSPC, KC_S, KC_D)
|
||||
COMB(dfTab, KC_TAB, KC_D, KC_F)
|
||||
COMB(cvEnter, KC_ENT, KC_C, KC_V)
|
||||
|
||||
COMB(ioMinus, KC_MINS, KC_I, KC_O)
|
||||
COMB(opBackslash, KC_BSLS, KC_O, KC_P)
|
||||
COMB(hjLess, KC_LT, KC_H, KC_J)
|
||||
COMB(klGreat, KC_GT, KC_K, KC_L)
|
||||
COMB(jkColon, KC_COLN, KC_J, KC_K)
|
||||
COMB(mcUnder, KC_UNDS, KC_M, KC_COMM)
|
||||
COMB(nmQuote, KC_QUOT, KC_N, KC_M)
|
||||
|
||||
SUBS(pasta, "I'd just like to interject for a moment.", KC_H, KC_J, KC_K, KC_L)
|
||||
|
|
@ -1,286 +0,0 @@
|
|||
/* Copyright 2022 Tony Grosinger
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "g/keymap_combo.h"
|
||||
|
||||
enum {
|
||||
_ALPHA, // Default
|
||||
_SYMB, // Symbols
|
||||
_NUMB, // Numbers
|
||||
_ARROWS, // Arrows and OS
|
||||
_TMUX, // TMUX Nav layer
|
||||
_POPOS, // Gnome Shell, aka PopOS
|
||||
};
|
||||
|
||||
|
||||
// Macros
|
||||
enum custom_keycodes {
|
||||
TMUX_NEW = SAFE_RANGE,
|
||||
TMUX_ZOOM,
|
||||
TMUX_SCROLL,
|
||||
TMUX_PN_LT,
|
||||
TMUX_PN_UP,
|
||||
TMUX_PN_DN,
|
||||
TMUX_PN_RT,
|
||||
TMUX_WN_LT,
|
||||
TMUX_WN_RT,
|
||||
TMUX_SP_VT,
|
||||
TMUX_SP_HZ,
|
||||
VIM_CLIP_CP,
|
||||
VIM_CLIP_PST,
|
||||
VIM_MACRO,
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case TMUX_NEW:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(C(KC_B));
|
||||
SEND_STRING("c");
|
||||
}
|
||||
break;
|
||||
case TMUX_ZOOM:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(C(KC_B));
|
||||
SEND_STRING("z");
|
||||
}
|
||||
break;
|
||||
case TMUX_SCROLL:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(C(KC_B));
|
||||
SEND_STRING("[");
|
||||
}
|
||||
break;
|
||||
case TMUX_PN_LT:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(C(KC_B));
|
||||
tap_code(KC_LEFT);
|
||||
}
|
||||
break;
|
||||
case TMUX_PN_DN:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(C(KC_B));
|
||||
tap_code(KC_DOWN);
|
||||
}
|
||||
break;
|
||||
case TMUX_PN_UP:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(C(KC_B));
|
||||
tap_code(KC_UP);
|
||||
}
|
||||
break;
|
||||
case TMUX_PN_RT:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(C(KC_B));
|
||||
tap_code(KC_RIGHT);
|
||||
}
|
||||
break;
|
||||
case TMUX_WN_LT:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(C(KC_B));
|
||||
SEND_STRING("p");
|
||||
}
|
||||
break;
|
||||
case TMUX_WN_RT:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(C(KC_B));
|
||||
SEND_STRING("n");
|
||||
}
|
||||
break;
|
||||
case TMUX_SP_VT:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(C(KC_B));
|
||||
SEND_STRING("%");
|
||||
}
|
||||
break;
|
||||
case TMUX_SP_HZ:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(C(KC_B));
|
||||
SEND_STRING("\"");
|
||||
}
|
||||
break;
|
||||
case VIM_CLIP_CP:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(S(KC_QUOTE));
|
||||
tap_code16(S(KC_EQUAL));
|
||||
tap_code(KC_Y);
|
||||
}
|
||||
break;
|
||||
case VIM_CLIP_PST:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(S(KC_QUOTE));
|
||||
tap_code16(S(KC_EQUAL));
|
||||
tap_code(KC_P);
|
||||
}
|
||||
break;
|
||||
case VIM_MACRO:
|
||||
if (record->event.pressed) {
|
||||
tap_code16(S(KC_2));
|
||||
tap_code(KC_Q);
|
||||
}
|
||||
break;
|
||||
/*
|
||||
case LAYRMOD:
|
||||
// Act as a mod key if held, or toggle a layer if tapped
|
||||
// replace KC_LCTL with desired mod, and _TARGET with desired layer name / number
|
||||
if (record->event.pressed) {
|
||||
uint8_t key_timer = timer_read();
|
||||
register_mods(MOD_BIT(KC_LCTL));
|
||||
} else {
|
||||
unregister_mods(MOD_BIT(KC_LCTL));
|
||||
if (timer_elapsed(key_timer) < 200) {
|
||||
layer_invert(_TARGET);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
*/
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Combos
|
||||
*
|
||||
* ,-----------------------------. ,-----------------------------.
|
||||
* | ` | | | | | | MINS | BSLH |
|
||||
* |-----+----ESC----+-----+-----| |-----+-----+-----+-----------|
|
||||
* | | BSPC TAB | | | LES COLN GRT | |
|
||||
* |-----+-----+-----+--RMB+-LMB-| |-----+-----+-----+-----------|
|
||||
* | | | ENT | | | QUO UNDR | | |
|
||||
* `-----+-----+-----+-----+-----' `-----------------------------'
|
||||
* .-------------------------. .-------------------.
|
||||
* | | | | | | | |
|
||||
* '-------------------------' '-------------------'
|
||||
*/
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Keymap 0: Default layer
|
||||
* ,------------------------------. ,----------------------------------.
|
||||
* | Q | W | E | R | T | | Y | U | I | O | P |
|
||||
* |------+-----+-----+-----+-----| |-----+-----+-----+-------+--------|
|
||||
* |CTRL/A| S | D | F | G | | H | J | K | L | CTRL/; |
|
||||
* |------+-----+-----+-----+-----| |-----+-----+-----+-------+--------|
|
||||
* |SHFT/Z|ALT/X| C | V | B | | N | M | < | ALT/> | SHFT/? |
|
||||
* `------+-----+-----+------+----' `----------------------------------'
|
||||
* .-----------------. .----------------------.
|
||||
* | |GUI |SPC(NUM)| |SPC(SYM)|TMUX | PopOS |
|
||||
* '-----------------' '----------------------'
|
||||
*/
|
||||
[_ALPHA] = LAYOUT_split_3x5_3(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
MT(MOD_LCTL, KC_A),KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, MT(MOD_LCTL, KC_SCLN),
|
||||
MT(MOD_LSFT, KC_Z),MT(MOD_LALT, KC_X), KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, MT(MOD_LALT, KC_DOT), MT(MOD_RSFT, KC_SLSH),
|
||||
|
||||
KC_NO, KC_LGUI, LT(_NUMB, KC_SPC), // Left
|
||||
LT(_SYMB, KC_SPC), MO(_TMUX), MO(_POPOS) // Right
|
||||
),
|
||||
|
||||
/* Keymap 1: Symbols layer
|
||||
* ,------------------------------. ,-------------------------------.
|
||||
* | ! | @ | # | $ | % | | ^ | & | * | + | = |
|
||||
* |------+-----+-----+-----+-----| |-----+-----+-----+-----+-------|
|
||||
* | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 |
|
||||
* |------+-----+-----+-----+-----| |-----+-----+-----+-----+-------|
|
||||
* | | | | | | | | | | F11 | F12 |
|
||||
* `------+-----+-----+-----+-----' `-------------------------------'
|
||||
* .-----------------. .-----------------.
|
||||
* | | DEL | MO3 | | HLD | SPC | |
|
||||
* '-----------------' '-----------------'
|
||||
*/
|
||||
[_SYMB] = LAYOUT_split_3x5_3(
|
||||
KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_PLUS, KC_EQL,
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_F11, KC_F12,
|
||||
KC_NO, KC_DEL, MO(_ARROWS), KC_TRNS, KC_SPC, KC_NO
|
||||
),
|
||||
|
||||
/* Keymap 2: Number layer
|
||||
* ,------------------------------. ,-------------------------------.
|
||||
* | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |
|
||||
* |------+-----+-----+-----+-----| |-----+-----+-----+-----+-------|
|
||||
* | CTRL | | ( | ) | | | | 4 | 7 | 6 | |
|
||||
* |------+-----+-----+-----+-----| |-----+-----+-----+-----+-------|
|
||||
* | SHFT | | [ | ] | | | | 1 | 2 | 3 | . |
|
||||
* `------+-----+-----+-----+-----' `-------------------------------'
|
||||
* .-----------------. .-----------------.
|
||||
* | | | HLD | | MO3 | 0 | |
|
||||
* '-----------------' '-----------------'
|
||||
*/
|
||||
[_NUMB] = LAYOUT_split_3x5_3(
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||
KC_LCTL, KC_NO, KC_LPRN, KC_RPRN, KC_NO, KC_NO, KC_4, KC_5, KC_6, KC_NO,
|
||||
KC_LSFT, KC_NO, KC_LBRC, KC_RBRC, KC_NO, KC_NO, KC_1, KC_2, KC_3, KC_DOT,
|
||||
KC_NO,KC_NO,KC_TRNS, MO(_ARROWS),KC_0,KC_NO
|
||||
),
|
||||
|
||||
/* Keymap 3: Arrows and OS
|
||||
* ,------------------------------. ,------------------------------------.
|
||||
* | | | | | | | | | | | |
|
||||
* |------+-----+-----+-----+-----| |-------+-------+------+-------+-----|
|
||||
* | CTRL |HOME | PUP | | | | LEFT | DOWN | UP | RIGHT | |
|
||||
* |------+-----+-----+-----+-----| |-------+-------+------+-------+-----|
|
||||
* | SHFT |END | PDN | | | | | | | | |
|
||||
* `------+-----+-----+-----+-----' `------------------------------------'
|
||||
* .-----------------. .-----------------.
|
||||
* | | | HLD | | HLD | | |
|
||||
* '-----------------' '-----------------'
|
||||
*/
|
||||
[_ARROWS] = LAYOUT_split_3x5_3(
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_LCTL, KC_HOME, KC_PGUP, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO,
|
||||
KC_LSFT, KC_END, KC_PGDN, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO,KC_NO,KC_TRNS, KC_TRNS,KC_NO,KC_NO
|
||||
),
|
||||
|
||||
/* Keymap 4: Tmux navigation layer
|
||||
* ,----------------------------------. ,---------------------------------------.
|
||||
* | Vi Mcr | | | | SP VT | | Vi Ynk| | | | Vi PT |
|
||||
* |--------+-----+-----+-----+-------| |-------+-------+-------+-------+-------|
|
||||
* | | SCRL| | | | | PN LT | PN DN | PN UP | PN RT | SP HZ |
|
||||
* |--------+-----+-----+-----+-------| |-------+-------+-------+-------+-------|
|
||||
* | ZOOM | KILL| NEW | | | | W LT | | | W RT | |
|
||||
* `--------+-----+-----+-----+-------' `---------------------------------------'
|
||||
* .-----------------. .-----------------.
|
||||
* | | | | | | HLD | |
|
||||
* '-----------------' '-----------------'
|
||||
*/
|
||||
[_TMUX] = LAYOUT_split_3x5_3(
|
||||
VIM_MACRO, KC_NO, KC_NO, KC_NO, TMUX_SP_VT, VIM_CLIP_CP, KC_NO, KC_NO, KC_NO, VIM_CLIP_PST,
|
||||
KC_NO, TMUX_SCROLL, KC_NO, KC_NO, KC_NO, TMUX_PN_LT, TMUX_PN_DN, TMUX_PN_UP, TMUX_PN_RT, TMUX_SP_HZ,
|
||||
TMUX_ZOOM, KC_NO, TMUX_NEW, KC_NO, KC_NO, TMUX_WN_LT, KC_NO, KC_NO, TMUX_WN_RT, KC_NO,
|
||||
KC_NO,KC_NO,KC_NO, KC_NO,KC_TRNS,KC_NO
|
||||
),
|
||||
|
||||
/* Keymap 5: Gnome Shell (PopOS)
|
||||
* ,------------------------------. ,--------------------------------------.
|
||||
* | | | | | | | MV-DWN| D-DWN | D-UP | MV-UP | Flip |
|
||||
* |------+-----+-----+-----+-----| |-------+-------+-------+-------+------|
|
||||
* | | | | | | | W-L | W-DWN | W-UP | W-R | |
|
||||
* |------+-----+-----+-----+-----| |-------+-------+-------+-------+------|
|
||||
* | | | | | | | Scrns | Apps | Close | | |
|
||||
* `------+-----+-----+-----+-----' `--------------------------------------'
|
||||
* .-----------------. .-----------------.
|
||||
* | | | | | | | HLD |
|
||||
* '-----------------' '-----------------'
|
||||
*/
|
||||
[_POPOS] = LAYOUT_split_3x5_3(
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, SGUI(KC_J), LCTL(LGUI(KC_J)), LCTL(LGUI(KC_K)), SGUI(KC_K), LGUI(KC_O),
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, LGUI(KC_H), LGUI(KC_J), LGUI(KC_K), LGUI(KC_L), KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, LGUI(KC_D), LGUI(KC_A), LGUI(KC_Q), KC_NO, KC_NO,
|
||||
KC_NO,KC_NO,KC_NO, KC_NO,KC_NO,KC_TRNS
|
||||
),
|
||||
};
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
# GergoPlex
|
||||
|
||||
This keymap I created for the GergoPlex with a focus on:
|
||||
|
||||
- Keeping keys close to their normal locations when possible (number/symbol rows)
|
||||
- Work well for vim, tmux, and Ubuntu default desktop shortcuts
|
||||
- Work okay for OSx shortcuts
|
||||
|
||||
## Firmware Building
|
||||
|
||||
util/docker_build.sh gboards/gergoplex:tgrosinger
|
||||
util/docker_build.sh gboards/gergoplex:tgrosinger:flash
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
#----------------------------------------------------------------------------
|
||||
# make gboards/gergoplex:default:flash
|
||||
# Make sure you have dfu-programmer installed!
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
#Debug options
|
||||
VERBOSE = no
|
||||
DEBUG_MATRIX_SCAN_RATE = no
|
||||
DEBUG_MATRIX = no
|
||||
CONSOLE_ENABLE = no
|
||||
|
||||
#Combos!
|
||||
COMBO_ENABLE = yes
|
||||
VPATH += keyboards/gboards/
|
||||
|
||||
ifeq ($(strip $(DEBUG_MATRIX)), yes)
|
||||
OPT_DEFS += -DDEBUG_MATRIX
|
||||
endif
|
||||
|
|
@ -1,119 +0,0 @@
|
|||
/* Copyright 2021 Zhi Quan
|
||||
*
|
||||
* 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 {
|
||||
KC_P00 = SAFE_RANGE
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT_all( /* Base */
|
||||
KC_F1, KC_F2, 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_DEL, TG(2), KC_PSLS, KC_PAST, KC_PMNS,
|
||||
KC_F3, KC_F4, 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_P7, KC_P8, KC_P9, KC_PPLS,
|
||||
KC_F5, KC_F6, KC_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_P4, KC_P5, KC_P6, KC_PPLS,
|
||||
KC_F7, KC_F8, 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, MO(1), KC_P1, KC_P2, KC_P3, KC_PENT,
|
||||
KC_F9, KC_F10, KC_LCTL, KC_LCMD, KC_SPC, KC_ROPT, MO(1), KC_P0, KC_P00, KC_PDOT, KC_PENT),
|
||||
|
||||
[1] = LAYOUT_all( /* FN */
|
||||
KC_TRNS, KC_TRNS, 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_MPRV, KC_MNXT, KC_VOLD,
|
||||
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_PSCR, KC_TRNS, KC_TRNS, QK_BOOT, KC_HOME, KC_UP, KC_PGUP, 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_TRNS, KC_TRNS, KC_LEFT, KC_MUTE, KC_RGHT, 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_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_DOWN, KC_PGDN, KC_MPLY,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY),
|
||||
|
||||
[2] = LAYOUT_all( /* Numpad */
|
||||
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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_UP, KC_PGUP, 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_LEFT, XXXXXXX, 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_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_DOWN, KC_PGDN, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
|
||||
[3] = LAYOUT_all( /* Empty for dynamic keymaps */
|
||||
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, 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, 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, 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 KC_P00:
|
||||
if (record->event.pressed) {
|
||||
tap_code(KC_P0);
|
||||
tap_code(KC_P0);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_ESC:
|
||||
if (record->event.pressed) {
|
||||
// Turn on capslock indicator.
|
||||
writePin(LED_CAPS_LOCK_PIN, LED_PIN_ON_STATE);
|
||||
} else {
|
||||
// Turn off capslock indicator.
|
||||
writePin(LED_CAPS_LOCK_PIN, !LED_PIN_ON_STATE);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Customized function so that numlock and capslock indicator are no longer controlled by the host.
|
||||
bool led_update_user(led_t led_state) {
|
||||
#if defined(LED_NUM_LOCK_PIN) || defined(LED_CAPS_LOCK_PIN) || defined(LED_SCROLL_LOCK_PIN) || defined(LED_COMPOSE_PIN) || defined(LED_KANA_PIN)
|
||||
# if LED_PIN_ON_STATE == 0
|
||||
// invert the whole thing to avoid having to conditionally !led_state.x later
|
||||
led_state.raw = ~led_state.raw;
|
||||
# endif
|
||||
|
||||
// # ifdef LED_NUM_LOCK_PIN
|
||||
// writePin(LED_NUM_LOCK_PIN, led_state.num_lock);
|
||||
// # endif
|
||||
// # ifdef LED_CAPS_LOCK_PIN
|
||||
// writePin(LED_CAPS_LOCK_PIN, led_state.caps_lock);
|
||||
// # endif
|
||||
# ifdef LED_SCROLL_LOCK_PIN
|
||||
writePin(LED_SCROLL_LOCK_PIN, led_state.scroll_lock);
|
||||
# endif
|
||||
# ifdef LED_COMPOSE_PIN
|
||||
writePin(LED_COMPOSE_PIN, led_state.compose);
|
||||
# endif
|
||||
# ifdef LED_KANA_PIN
|
||||
writePin(LED_KANA_PIN, led_state.kana);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// Return false to let led_update_kb fall through.
|
||||
return false;
|
||||
}
|
||||
|
||||
// Customized function to manage numlock indicator based on layer.
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
switch (get_highest_layer(state)) {
|
||||
// Base layer
|
||||
case 0:
|
||||
// Turn on numlock indicator.
|
||||
writePin(LED_NUM_LOCK_PIN, LED_PIN_ON_STATE);
|
||||
break;
|
||||
|
||||
// Numpad navigation layer
|
||||
case 2:
|
||||
// Turn off numlock indicator.
|
||||
writePin(LED_NUM_LOCK_PIN, !LED_PIN_ON_STATE);
|
||||
break;
|
||||
}
|
||||
|
||||
return state;
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
# Personal W1-AT keymap
|
||||
The main highlights are as follows:
|
||||
* VIA support enabled
|
||||
* Enter bootloader mode using Fn + \
|
||||
* Grave key (` and ~) in place of Esc key
|
||||
* Esc in place of CapsLock key
|
||||
* Use NumLock LED indicator on layers: ON in layer 0, OFF in layer 2 (workaround for macOS since there is no NumLock key)
|
||||
* Use CapsLock LED indicator on Esc key
|
||||
|
||||
|
||||
## Layer 0 (Base)
|
||||
---
|
||||

|
||||
|
||||
## Layer 1 (Function)
|
||||
---
|
||||

|
||||
|
||||
## Layer 2 (Numpad Navigation)
|
||||
---
|
||||

|
||||
|
|
@ -1 +0,0 @@
|
|||
VIA_ENABLE = yes
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
/* Copyright 2022 Eugenio Pastoral
|
||||
*
|
||||
* 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
|
||||
|
||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||
enum custom_layers {
|
||||
_BL,
|
||||
_FL,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Keymap _BL: Base Layer (Default Layer)
|
||||
*/
|
||||
[_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, 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_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),
|
||||
|
||||
/* Keymap _FL: Function Layer
|
||||
*/
|
||||
[_FL] = 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_DEL, RGB_TOG,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SCRL, KC_PAUS, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, RGB_HUI, RGB_HUD, RGB_SPD, RGB_SPI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, RGB_VAI, _______,
|
||||
EE_CLR, _______, _______, QK_BOOT, _______, _______, RGB_RMOD, RGB_VAD, RGB_MOD)
|
||||
};
|
||||
|
||||
// Turns side LEDs to white for caps lock and layer indicators.
|
||||
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
||||
if (host_keyboard_led_state().caps_lock || get_highest_layer(layer_state | default_layer_state)) {
|
||||
for (uint8_t i = led_min; i < led_max; i++) {
|
||||
if (HAS_FLAGS(g_led_config.flags[i], 0x02)) { // 0x02 == LED_FLAG_UNDERGLOW
|
||||
rgb_matrix_set_color(i, 0xff, 0xff, 0xff);
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
|
@ -1 +0,0 @@
|
|||
# ANSI GMMKV2 65% Layout
|
||||
|
|
@ -1,72 +0,0 @@
|
|||
/* Copyright 2022 Eugenio Pastoral
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
RGB_MATRIX_EFFECT(SOLID_UNDERGLOW)
|
||||
RGB_MATRIX_EFFECT(HOLOGRAPHICS_UNDERGLOW)
|
||||
|
||||
#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
||||
|
||||
// This is a side lights only configuration where the solid color is following the current HSV setting.
|
||||
static bool SOLID_UNDERGLOW(effect_params_t* params) {
|
||||
RGB_MATRIX_USE_LIMITS(led_min, led_max);
|
||||
|
||||
RGB rgb = rgb_matrix_hsv_to_rgb(rgb_matrix_config.hsv);
|
||||
for (uint8_t i = led_min; i < led_max; i++) {
|
||||
if (HAS_FLAGS(g_led_config.flags[i], 0x02)) { // 0x02 == LED_FLAG_UNDERGLOW
|
||||
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
|
||||
} else {
|
||||
rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
|
||||
}
|
||||
}
|
||||
return rgb_matrix_check_finished_leds(led_max);
|
||||
}
|
||||
|
||||
// This is a side lights only configuration where the color is set to a static gradient.
|
||||
static bool HOLOGRAPHICS_UNDERGLOW(effect_params_t* params) {
|
||||
RGB_MATRIX_USE_LIMITS(led_min, led_max);
|
||||
|
||||
for (uint8_t i = led_min; i < led_max; i++) {
|
||||
if (HAS_FLAGS(g_led_config.flags[i], 0x02)) { // 0x02 == LED_FLAG_UNDERGLOW
|
||||
// RIGHT-HAND SIDE LEDS || LEFT-HAND SIDE LEDS
|
||||
if (i == 67 || i == 77) {
|
||||
rgb_matrix_set_color(i, 0xff, 0x00, 0xee);
|
||||
} else if (i == 68 || i == 78) {
|
||||
rgb_matrix_set_color(i, 0xcc, 0x00, 0xff);
|
||||
} else if (i == 69 || i == 79) {
|
||||
rgb_matrix_set_color(i, 0x9e, 0x00, 0xff);
|
||||
} else if (i == 70 || i == 80) {
|
||||
rgb_matrix_set_color(i, 0x70, 0x00, 0xff);
|
||||
} else if (i == 71 || i == 81) {
|
||||
rgb_matrix_set_color(i, 0x52, 0x00, 0xff);
|
||||
} else if (i == 72 || i == 82) {
|
||||
rgb_matrix_set_color(i, 0x33, 0x00, 0xff);
|
||||
} else if (i == 73 || i == 83) {
|
||||
rgb_matrix_set_color(i, 0x00, 0x38, 0xff);
|
||||
} else if (i == 74 || i == 84) {
|
||||
rgb_matrix_set_color(i, 0x00, 0x57, 0xff);
|
||||
} else if (i == 75 || i == 85) {
|
||||
rgb_matrix_set_color(i, 0x00, 0x85, 0xff);
|
||||
} else if (i == 76 || i == 86) {
|
||||
rgb_matrix_set_color(i, 0x00, 0xb2, 0xff);
|
||||
} else {
|
||||
rgb_matrix_set_color(i, 0x00, 0x00, 0x00);
|
||||
}
|
||||
}
|
||||
}
|
||||
return rgb_matrix_check_finished_leds(led_max);
|
||||
}
|
||||
|
||||
#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
|
||||
|
|
@ -1 +0,0 @@
|
|||
RGB_MATRIX_CUSTOM_USER = yes
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.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
|
||||
|
||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||
enum custom_layers {
|
||||
_BL,
|
||||
_FL,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Keymap _BL: Base Layer (Default Layer)
|
||||
*/
|
||||
[_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, KC_BSPC, KC_HOME,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP,
|
||||
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_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
/* Keymap _FL: Function Layer
|
||||
*/
|
||||
[_FL] = 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_INS,
|
||||
RGB_M_P, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SCRL, KC_PAUS, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, RGB_HUI, RGB_HUD, RGB_SPD, RGB_SPI, _______, _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, _______, RGB_VAI, RGB_TOG,
|
||||
KC_MUTE, KC_VOLU, KC_VOLD, QK_BOOT, _______, _______, RGB_RMOD, RGB_VAD, RGB_MOD)
|
||||
};
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue