Remove keymaps that still reference legacy macros (#18693)
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
/* Copyright 2017 Balz Guenat
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_USER_H
|
||||
#define CONFIG_USER_H
|
||||
|
||||
#include "../../config.h"
|
||||
|
||||
// place overrides here
|
||||
#define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
#endif
|
@@ -1,92 +0,0 @@
|
||||
/* Copyright 2017 Balz Guenat
|
||||
*
|
||||
* 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
|
||||
|
||||
#define ______ KC_TRNS
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
-------------------------------------------------------------------------------------------
|
||||
|GvEsc| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Backspace |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Ctrl | A | S | D | F | G | H | J | K | L | ; | ' | Enter |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Shift | Z | X | C | V | B | N | M | , | . | / | Shift | |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Fn1 | GUI | Alt | Space | Space | Space | Alt | Fn1 | Fn1 | Ctrl |
|
||||
-------------------------------------------------------------------------------------------
|
||||
*/
|
||||
[0] = LAYOUT_base( \
|
||||
KC_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, \
|
||||
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, M(0),\
|
||||
MO(1), KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_NO, MO(1), KC_RCTL \
|
||||
),
|
||||
/*
|
||||
-------------------------------------------------------------------------------------------
|
||||
| ` | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Delete |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| TAB |Home | Up | End |PgUp | | | | | | | | | PrtSc |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Ctrl |Left |Down |Right |PgDn | | | | | | | | Enter |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Shift | | | | | | | | | | | Shift | |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Fn1 | GUI | Alt | Space | Space | Space | Alt | | | Ctrl |
|
||||
-------------------------------------------------------------------------------------------
|
||||
*/
|
||||
[1] = LAYOUT_base( \
|
||||
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_TAB, KC_HOME, KC_UP, KC_END, KC_PGUP, ______, ______, ______, ______, ______, ______, ______, ______, KC_PSCR, \
|
||||
KC_LCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, ______, ______, ______, ______, ______, ______, ______, ______, \
|
||||
KC_LSFT, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, KC_RSFT, ______, \
|
||||
______, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, ______, ______, ______, KC_RCTL \
|
||||
),
|
||||
};
|
||||
|
||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||
switch(id) {
|
||||
case 0:
|
||||
// Sends Alt+Shift on both key down and key up.
|
||||
// Fesigned to switch between two keyboard layouts on Windows using a locking switch.
|
||||
// Does nothing if right shift is pressed for easier resync.
|
||||
if (!(get_mods() & MOD_BIT(KC_RSFT)))
|
||||
return MACRO(D(LALT), T(LSFT), U(LALT), END);
|
||||
else
|
||||
return MACRO_NONE;
|
||||
}
|
||||
return MACRO_NONE;
|
||||
};
|
||||
|
||||
|
||||
void matrix_init_user(void) {
|
||||
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
|
||||
}
|
@@ -1,34 +0,0 @@
|
||||
# Kamon's keymap for the Bananasplit
|
||||
A simple layout to get you started with the BananaSplit60.
|
||||
|
||||
Default layer:
|
||||
|
||||
```
|
||||
-------------------------------------------------------------------------------------------
|
||||
|GvEsc| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Backspace |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Ctrl | A | S | D | F | G | H | J | K | L | ; | ' | Enter |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Shift | Z | X | C | V | B | N | M | , | . | / | Shift | |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Fn1 | GUI | Alt | Space | Space | Space | Alt | Fn1 | Fn1 | Ctrl |
|
||||
-------------------------------------------------------------------------------------------
|
||||
```
|
||||
|
||||
Fn1 layer:
|
||||
|
||||
```
|
||||
-------------------------------------------------------------------------------------------
|
||||
| ` | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Delete |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| TAB |Home | Up | End |PgUp | | | | | | | | | PrtSc |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Ctrl |Left |Down |Right |PgDn | | | | | | | | Enter |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Shift | | | | | | | | | | | Shift | |
|
||||
-------------------------------------------------------------------------------------------
|
||||
| Fn1 | GUI | Alt | Space | Space | Space | Alt | | | Ctrl |
|
||||
-------------------------------------------------------------------------------------------
|
||||
```
|
@@ -1,33 +0,0 @@
|
||||
# Copyright 2017 Balz Guenat
|
||||
#
|
||||
# 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/>.
|
||||
|
||||
|
||||
# QMK 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
|
||||
#
|
||||
# MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
# EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
# CONSOLE_ENABLE = no # 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 support (+2400 to 4200, depending on config)
|
||||
# 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
|
||||
|
@@ -1,419 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
|
||||
// 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.
|
||||
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||
// entirely and just use numbers.
|
||||
#define _QWERTY 0
|
||||
#define _COLEMAK 1
|
||||
#define _DVORAK 2
|
||||
#define _LOWER 3
|
||||
#define _RAISE 4
|
||||
#define _PLOVER 5
|
||||
#define _TOUCHCURSOR 6
|
||||
#define _MOUSECURSOR 7
|
||||
#define _ADJUST 16
|
||||
|
||||
// Keycodes
|
||||
enum planck_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
PLOVER,
|
||||
LOWER,
|
||||
RAISE,
|
||||
BACKLIT,
|
||||
EXT_PLV
|
||||
};
|
||||
|
||||
enum macro_keycodes {
|
||||
KC_ALT_TAB,
|
||||
KC_CMD_TAB,
|
||||
KC_CTL_TAB,
|
||||
KC_CMD_SLSH,
|
||||
KC_AG_FIND,
|
||||
KC_AG_AGAIN,
|
||||
KC_AG_UNDO,
|
||||
KC_AG_CUT,
|
||||
KC_AG_COPY,
|
||||
KC_AG_PASTE,
|
||||
KC_AG_DESK_L,
|
||||
KC_AG_DESK_R,
|
||||
KC_AG_TAB_C,
|
||||
KC_AG_TAB_N,
|
||||
KC_AG_TAB_R,
|
||||
};
|
||||
|
||||
// Custom macros
|
||||
#define CTL_ESC CTL_T(KC_ESC) // Tap for Esc, hold for Ctrl
|
||||
#define SFT_ENT SFT_T(KC_ENT) // Tap for Enter, hold for Shift
|
||||
#define HPR_TAB ALL_T(KC_TAB) // Tap for Tab, hold for Hyper
|
||||
#define GUI_SEM GUI_T(KC_SCLN) // Tap for Semicolon, hold for GUI
|
||||
#define ALT_QUO ALT_T(KC_QUOT) // Tap for Quote, hold for Alt
|
||||
// Requires KC_TRNS/_______ for the trigger key in the destination layer
|
||||
#define LT_TC LT(_TOUCHCURSOR, KC_SPC) // L-ayer T-ap T-ouch C-ursor
|
||||
#define LT_MC(kc) LT(_MOUSECURSOR, kc) // L-ayer T-ap M-ouse C-ursor
|
||||
#define ALT_TAB M(KC_ALT_TAB) // Macro for Alt-Tab
|
||||
#define CMD_TAB M(KC_CMD_TAB) // Macro for Cmd-Tab
|
||||
#define CTL_TAB M(KC_CTL_TAB) // Macro for Ctl-Tab
|
||||
#define CMD_SLSH M(KC_CMD_SLSH) // Macro for Cmd-Slash (personal shortcut to toggle iTerm2 visibility)
|
||||
#define AG_FIND M(KC_AG_FIND) // Macros for Cmd-[x] vs Ctrl-[x] based on current AG_NORM or AG_SWAP settings
|
||||
#define AG_AGAIN M(KC_AG_AGAIN)
|
||||
#define AG_UNDO M(KC_AG_UNDO)
|
||||
#define AG_CUT M(KC_AG_CUT)
|
||||
#define AG_COPY M(KC_AG_COPY)
|
||||
#define AG_PASTE M(KC_AG_PASTE)
|
||||
#define AG_D_L M(KC_AG_DESK_L) // For Virtual Desktop Switching: Left, and
|
||||
#define AG_D_R M(KC_AG_DESK_R) // Right
|
||||
#define AG_T_C M(KC_AG_TAB_C) // For Chrome, etc. Tab Close,
|
||||
#define AG_T_N M(KC_AG_TAB_N) // Tab New, and
|
||||
#define AG_T_R M(KC_AG_TAB_R) // Tab Reopen Closed
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
*
|
||||
* ,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
* |Hyper/Tab| Q | W | E | R | T | Y | U | I | O | P | Bksp |
|
||||
* |---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
* | Ctrl/Esc | A | S | MC/D | F | G | H | J | K | L |GUI/; | Alt/" |
|
||||
* |----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
* | Shift | Z | X | C | V | B | N | M | , | . | / | Sft/Ent |
|
||||
* |-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
* | Alt | GUI | Lower | TC/Space | TC/Space | Raise | Vol+ | Play |
|
||||
* `--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
*/
|
||||
[_QWERTY] = LAYOUT(
|
||||
/*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/
|
||||
HPR_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC ,
|
||||
/*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/
|
||||
CTL_ESC , KC_A, KC_S,LT_MC(KC_D), KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, GUI_SEM, ALT_QUO ,
|
||||
/*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/
|
||||
KC_LSFT , KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_ENT ,
|
||||
/*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/
|
||||
KC_LALT , KC_LGUI , LOWER , LT_TC , LT_TC , RAISE , KC_VOLU , KC_MPLY ),
|
||||
/*`-----------+---------------+---------+-------^^^------+-------^^^-------+---------+-----------------+--------------'*/
|
||||
|
||||
/* Colemak
|
||||
* ,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
* |Hyper/Tab| Q | W | F | P | G | J | L | U | Y | ; | Bksp |
|
||||
* |---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
* | Ctrl/Esc | A | R | MC/S | T | D | H | N | E | I | O | " |
|
||||
* |----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
* | Shift | Z | X | C | V | B | K | M | , | . | / | Sft/Ent |
|
||||
* |-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
* | Alt | GUI | Lower | TC/Space | TC/Space | Raise | Vol+ | Play |
|
||||
* `--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
*/
|
||||
[_COLEMAK] = LAYOUT(
|
||||
/*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/
|
||||
HPR_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC ,
|
||||
/*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/
|
||||
CTL_ESC , KC_A, KC_R,LT_MC(KC_S), KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT ,
|
||||
/*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/
|
||||
KC_LSFT , KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_ENT ,
|
||||
/*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/
|
||||
KC_LALT , KC_LGUI , LOWER , LT_TC , LT_TC , RAISE , KC_VOLU , KC_MPLY ),
|
||||
/*`-----------+---------------+---------+-------^^^------+-------^^^-------+---------+-----------------+--------------'*/
|
||||
|
||||
/* Dvorak
|
||||
* ,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
* |Hyper/Tab| " | , | . | P | Y | F | G | C | R | L | Bksp |
|
||||
* |---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
* | Ctrl/Esc | A | O | MC/E | U | I | D | H | T | N | S | / |
|
||||
* |----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
* | Shift | ; | Q | J | K | X | B | M | W | V | Z | Sft/Ent |
|
||||
* |-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
* | Alt | GUI | Lower | TC/Space | TC/Space | Raise | Vol+ | Play |
|
||||
* `--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
*/
|
||||
[_DVORAK] = LAYOUT(
|
||||
/*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/
|
||||
HPR_TAB,KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC ,
|
||||
/*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/
|
||||
CTL_ESC , KC_A, KC_O,LT_MC(KC_E), KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH ,
|
||||
/*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/
|
||||
KC_LSFT , KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, SFT_ENT ,
|
||||
/*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/
|
||||
KC_LALT , KC_LGUI , LOWER , LT_TC , LT_TC , RAISE , KC_VOLU , KC_MPLY ),
|
||||
/*`-----------+---------------+---------+-------^^^------+-------^^^-------+---------+-----------------+--------------'*/
|
||||
|
||||
/* Lower
|
||||
* ,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
* | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
|
||||
* |---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
* | [ | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | "|" |
|
||||
* |----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
* | ] | F7 | F8 | F9 | F10 | F11 | F12 | - | = | [ | ] | \ |
|
||||
* |-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
* | Brite | | | | | | Vol- | Mute |
|
||||
* `--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
*/
|
||||
[_LOWER] = LAYOUT(
|
||||
/*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/
|
||||
KC_TILD,KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC ,
|
||||
/*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/
|
||||
KC_LBRC , KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE ,
|
||||
/*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/
|
||||
KC_RBRC , KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS ,
|
||||
/*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/
|
||||
BACKLIT , _______ , _______ , _______ , _______ , _______ , KC_VOLD , KC_MUTE ),
|
||||
/*`-----------+---------------+---------+-------^^^------+-------^^^-------+---------+-----------------+--------------'*/
|
||||
|
||||
/* Raise
|
||||
* ,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
* | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||
* |---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
* | $ | 4 | 5 | 6 | . | + | . | 4 | 5 | 6 | * | "|" |
|
||||
* |----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
* | = | 7 | 8 | 9 | 0 | - | . | 1 | 2 | 3 | / | \ |
|
||||
* |-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
* | Brite | | | | | | Vol- | Mute |
|
||||
* `--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
*/
|
||||
[_RAISE] = LAYOUT(
|
||||
/*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/
|
||||
KC_0 , KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC ,
|
||||
/*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/
|
||||
KC_DLR , KC_4, KC_5, KC_6, KC_DOT, KC_PLUS, KC_DOT, KC_4, KC_5, KC_6, KC_ASTR, KC_PIPE ,
|
||||
/*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/
|
||||
KC_EQL , KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_DOT, KC_1, KC_2, KC_3, KC_SLSH, KC_BSLS ,
|
||||
/*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/
|
||||
BACKLIT , _______ , _______ , _______ , _______ , _______ , KC_VOLD , KC_MUTE ),
|
||||
/*`-----------+---------------+---------+-------^^^------+-------^^^-------+---------+-----------------+--------------'*/
|
||||
|
||||
/* TouchCursor layer (http://martin-stone.github.io/touchcursor/) plus personal customizations
|
||||
* ,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
* | AltTab |CmdTab|CtlTab| GUI |Shift | ~ |Insert| Home | Up | End | Bksp | |
|
||||
* |---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
* | | Alt |Space |Tab_C | Find |Again | PgUp | Left | Down |Right |Desk_L| Desk_R |
|
||||
* |----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
* | | Undo | Cut | Copy |Paste | ` | PgDn | Del |Tab_N |Tab_R |iTerm2| |
|
||||
* |-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
* | | | | | | | | |
|
||||
* `--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
*
|
||||
* The KC_UNDO, KC_CUT, KC_COPY, KC_PASTE, KC_FIND, and KC_AGAIN keycodes don't
|
||||
* seem to work on Mac. Presumably they'll work under Windows.
|
||||
*/
|
||||
|
||||
[_TOUCHCURSOR] = LAYOUT(
|
||||
/*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/
|
||||
ALT_TAB,CMD_TAB, CTL_TAB, KC_LGUI, KC_LSFT, KC_TILD, KC_INS, KC_HOME, KC_UP, KC_END, KC_BSPC, _______ ,
|
||||
/*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/
|
||||
_______ ,KC_LALT, KC_SPC, AG_T_C, AG_FIND,AG_AGAIN, KC_PGUP, KC_LEFT, KC_DOWN, KC_RGHT, AG_D_L, AG_D_R ,
|
||||
/*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/
|
||||
_______ ,AG_UNDO, AG_CUT, AG_COPY,AG_PASTE, KC_GRV, KC_PGDN, KC_DEL, AG_T_N, AG_T_R,CMD_SLSH, _______ ,
|
||||
/*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/
|
||||
_______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ),
|
||||
/*`-----------+---------------+---------+-------^^^------+-------^^^-------+---------+-----------------+--------------'*/
|
||||
|
||||
/* Mouse Layer
|
||||
* ,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
* | | |ACCL0 | | | | |WHL_L | Up |WHL_R | BTN2 | |
|
||||
* |---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
* | |ACCL2 | BTN2 | | BTN1 |ACCL1 |WHL_Up| Left | Down |Right | BTN4 | BTN5 |
|
||||
* |----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
* | | | | | BTN3 | |WHL_Dn| BTN1 | | | BTN3 | |
|
||||
* |-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
* | | | | | | | | |
|
||||
* `--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
*/
|
||||
|
||||
[_MOUSECURSOR] = LAYOUT(
|
||||
/*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/
|
||||
_______,_______, KC_ACL0, _______, _______, _______, _______, KC_WH_L, KC_MS_U, KC_WH_R, KC_BTN2, _______ ,
|
||||
/*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/
|
||||
_______ ,KC_ACL2, KC_BTN2, _______, KC_BTN1, KC_ACL1, KC_WH_U, KC_MS_L, KC_MS_D, KC_MS_R, KC_BTN4, KC_BTN5 ,
|
||||
/*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/
|
||||
_______ ,_______, _______, _______, KC_BTN3, _______, KC_WH_D, KC_BTN1, _______, _______, KC_BTN3, _______ ,
|
||||
/*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/
|
||||
_______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ ),
|
||||
/*`-----------+---------------+---------+-------^^^------+-------^^^-------+---------+-----------------+--------------'*/
|
||||
|
||||
/* Plover layer (http://opensteno.org)
|
||||
* ,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
* | # | # | # | # | # | # | # | # | # | # | # | # |
|
||||
* |---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
* | | S | T | P | H | * | * | F | P | L | T | D |
|
||||
* |----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
* | TogOut | S | K | W | R | * | * | R | B | G | S | Z |
|
||||
* |-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
* | Exit | A | O | | | E | U | |
|
||||
* `--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
*/
|
||||
|
||||
[_PLOVER] = LAYOUT(
|
||||
/*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/
|
||||
KC_1 , KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1 ,
|
||||
/*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/
|
||||
XXXXXXX , KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC ,
|
||||
/*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/
|
||||
XXXXXXX , KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT ,
|
||||
/*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/
|
||||
EXT_PLV , KC_C , KC_V , XXXXXXX , XXXXXXX , KC_N , KC_M , XXXXXXX ),
|
||||
/*`-----------+---------------+---------+-------^^^------+-------^^^-------+---------+-----------------+--------------'*/
|
||||
|
||||
/* Adjust (Lower + Raise)
|
||||
* ,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
* | | | | | | | | | | | | Del |
|
||||
* |---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
* | | | | | |AGnorm|AGswap|Qwerty|Colemk|Dvorak|Plover| |
|
||||
* |----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
* | | | | | | | | | | | | |
|
||||
* |-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
* | | | | | | | | Reset |
|
||||
* `--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
*/
|
||||
[_ADJUST] = LAYOUT(
|
||||
/*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/
|
||||
_______,_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL ,
|
||||
/*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/
|
||||
_______ ,_______, _______, _______, _______, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______ ,
|
||||
/*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/
|
||||
_______ ,_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ ,
|
||||
/*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/
|
||||
_______ , _______ , _______ , _______ , _______ , _______ , _______ , QK_BOOT )
|
||||
/*`-----------+---------------+---------+-------^^^------+-------^^^-------+---------+-----------------+--------------'*/
|
||||
};
|
||||
|
||||
void persistent_default_layer_set(uint16_t default_layer) {
|
||||
eeconfig_update_default_layer(default_layer);
|
||||
default_layer_set(default_layer);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
default_layer_set(1UL<<_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
default_layer_set(1UL<<_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
default_layer_set(1UL<<_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
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;
|
||||
break;
|
||||
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;
|
||||
break;
|
||||
case BACKLIT:
|
||||
if (record->event.pressed) {
|
||||
register_code(KC_RSFT);
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
backlight_step();
|
||||
#endif
|
||||
} else {
|
||||
unregister_code(KC_RSFT);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case PLOVER:
|
||||
if (record->event.pressed) {
|
||||
layer_off(_RAISE);
|
||||
layer_off(_LOWER);
|
||||
layer_off(_ADJUST);
|
||||
layer_on(_PLOVER);
|
||||
if (!eeconfig_is_enabled()) {
|
||||
eeconfig_init();
|
||||
}
|
||||
keymap_config.raw = eeconfig_read_keymap();
|
||||
keymap_config.nkro = 1;
|
||||
eeconfig_update_keymap(keymap_config.raw);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case EXT_PLV:
|
||||
if (record->event.pressed) {
|
||||
layer_off(_PLOVER);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Macro definition
|
||||
*/
|
||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||
{
|
||||
if (!eeconfig_is_enabled()) {
|
||||
eeconfig_init();
|
||||
}
|
||||
|
||||
bool use_cmd = true; // Use, for example, Cmd-Tab, Cmd-C, Cmd-V, etc.
|
||||
// Compare to MAGIC_SWAP_ALT_GUI and MAGIC_UNSWAP_ALT_GUI configs, set in:
|
||||
// quantum/quantum.c
|
||||
if(keymap_config.swap_lalt_lgui == 1 && keymap_config.swap_ralt_rgui == 1) {
|
||||
use_cmd = false; // ... or, Alt-Tab, Ctrl-C, Ctrl-V, etc.
|
||||
}
|
||||
|
||||
switch (id) {
|
||||
case KC_ALT_TAB:
|
||||
if(use_cmd) { return (record->event.pressed ? MACRO( D(LALT), D(TAB), END ) : MACRO( U(TAB), END )); }
|
||||
else { return (record->event.pressed ? MACRO( D(LGUI), D(TAB), END ) : MACRO( U(TAB), END )); }
|
||||
case KC_CMD_TAB:
|
||||
if(use_cmd) { return (record->event.pressed ? MACRO( D(LGUI), D(TAB), END ) : MACRO( U(TAB), END )); }
|
||||
else { return (record->event.pressed ? MACRO( D(LALT), D(TAB), END ) : MACRO( U(TAB), END )); }
|
||||
|
||||
case KC_CTL_TAB:
|
||||
return (record->event.pressed ? MACRO( D(LCTRL), D(TAB), END ) : MACRO( U(TAB), END ));
|
||||
case KC_CMD_SLSH:
|
||||
return (record->event.pressed ? MACRO( D(LGUI), D(SLSH),END ) : MACRO( U(SLSH),END ));
|
||||
|
||||
case KC_AG_FIND:
|
||||
return use_cmd ? MACRODOWN( D(LGUI), T(F), END ) : MACRODOWN( D(LCTRL), T(F), END );
|
||||
case KC_AG_AGAIN:
|
||||
return use_cmd ? MACRODOWN( D(LGUI), T(G), END ) : MACRODOWN( D(LCTRL), T(G), END );
|
||||
case KC_AG_UNDO:
|
||||
return use_cmd ? MACRODOWN( D(LGUI), T(Z), END ) : MACRODOWN( D(LCTRL), T(Z), END );
|
||||
case KC_AG_CUT:
|
||||
return use_cmd ? MACRODOWN( D(LGUI), T(X), END ) : MACRODOWN( D(LCTRL), T(X), END );
|
||||
case KC_AG_COPY:
|
||||
return use_cmd ? MACRODOWN( D(LGUI), T(C), END ) : MACRODOWN( D(LCTRL), T(C), END );
|
||||
case KC_AG_PASTE:
|
||||
return use_cmd ? MACRODOWN( D(LGUI), T(V), END ) : MACRODOWN( D(LCTRL), T(V), END );
|
||||
|
||||
case KC_AG_DESK_L:
|
||||
return use_cmd ? MACRODOWN( D(LGUI), D(LCTRL), T(SCLN), END ) : MACRODOWN( D(LALT), D(LCTRL), T(SCLN), END );
|
||||
case KC_AG_DESK_R:
|
||||
return use_cmd ? MACRODOWN( D(LGUI), D(LCTRL), T(QUOT), END ) : MACRODOWN( D(LALT), D(LCTRL), T(QUOT), END );
|
||||
|
||||
case KC_AG_TAB_C:
|
||||
return use_cmd ? MACRODOWN( D(LGUI), T(W), END ) : MACRODOWN( D(LCTRL), T(W), END );
|
||||
case KC_AG_TAB_N:
|
||||
return use_cmd ? MACRODOWN( D(LGUI), T(T), END ) : MACRODOWN( D(LCTRL), T(T), END );
|
||||
case KC_AG_TAB_R:
|
||||
return use_cmd ? MACRODOWN( D(LGUI), D(LSHIFT), T(T), END ) : MACRODOWN( D(LCTRL), D(LSHIFT), T(T), END );
|
||||
}
|
||||
|
||||
return MACRO_NONE;
|
||||
}
|
@@ -1,129 +0,0 @@
|
||||
jeebak's TV44 layout
|
||||
=======================
|
||||
NOTE: This is a port of jeebak's planck layout, for tv44.
|
||||
|
||||
This WIP keymap attempts to minimize fingers straying away from the home row.
|
||||
To aid in this endeavor, when additional modifyer keys to switch layers are
|
||||
needed, they will be mapped to home row keys. The `keymap.c` file will contain
|
||||
the exact changes. The diagrams in this README shows the highlights of the
|
||||
changes from the default mappings.
|
||||
|
||||
I also decided to change all calls to `persistent_default_layer_set()` to
|
||||
`default_layer_set()` since this is my personal perference.
|
||||
|
||||
## Macros
|
||||
```
|
||||
#define ALT_TAB M(KC_ALT_TAB)
|
||||
```
|
||||
|
||||
## Base Layers (Qwerty/Colemak/Dvorak)
|
||||
These base layers are mostly the same as the default mappings. The interesting
|
||||
changes are shown below.
|
||||
|
||||
- The `Ctrl/Esc`, will emit an `Escape` when tapped, and act as a `Control` key when held,
|
||||
- `GUI/;` as `;` and `GUI`,
|
||||
- `Alt/"` as `"` and `Alt`,
|
||||
- `Sft/Ent` as `Enter` and `Shift`, and
|
||||
- `Hyper/Tab` as `Tab` and `Hyper`
|
||||
|
||||
A `TODO` item is to see if it can also act as a `CapsLock` when double-tapped.
|
||||
The arrow keys, which have been moved to the
|
||||
[TouchCursor](http://martin-stone.github.io/touchcursor/) layer, have been
|
||||
replaced with the Media keys as shown. The `MC/kc` key activates the
|
||||
`MouseCursor` layer when held, and emits the corresponding `kc` for its layer,
|
||||
when tapped.
|
||||
```
|
||||
,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
|Hyper/Tab| Q | W | E | R | T | Y | U | I | O | P | Bksp |
|
||||
|---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
| Ctrl/Esc | A | S | MC/D | F | G | H | J | K | L |GUI/; | Alt/" |
|
||||
|----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
| Shift | Z | X | C | V | B | N | M | , | . | / | Sft/Ent |
|
||||
|-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
| Alt | GUI | Lower | TC/Space | TC/Space | Raise | Vol+ | Play |
|
||||
`--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
```
|
||||
|
||||
## Lower Layer (Symbols and Function Keys)
|
||||
The symbols and functions keys are essentially the same as the default mapping.
|
||||
The most notable changes are that the symbol keys from the `RAISE` layer have
|
||||
been moved here. The remaining Media keys replace those that are now on the
|
||||
base layers. The `BACKLIT` key has also been moved here.
|
||||
```
|
||||
,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
| ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
|
||||
|---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
| [ | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | "|" |
|
||||
|----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
| ] | F7 | F8 | F9 | F10 | F11 | F12 | - | = | [ | ] | \ |
|
||||
|-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
| Brite | | | | | | Vol- | Mute |
|
||||
`--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
```
|
||||
|
||||
## Raise Layer (Numbers and Arithmetic Operators)
|
||||
All of the numbers and arithmetic operators are available on this layer. Some
|
||||
keys are duplicated for the convenience of their positions. The `0` and `$`
|
||||
keys at the far left are for quick access to beginning and end of line in vim.
|
||||
```
|
||||
,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||
|---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
| $ | 4 | 5 | 6 | . | + | . | 4 | 5 | 6 | * | "|" |
|
||||
|----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
| = | 7 | 8 | 9 | 0 | - | . | 1 | 2 | 3 | / | \ |
|
||||
|-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
| Brite | | | | | | Vol- | Mute |
|
||||
`--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
```
|
||||
|
||||
## TouchCursor layer plus personal customizations
|
||||
[TouchCursor](http://martin-stone.github.io/touchcursor/) uses the `Space` key
|
||||
as the modifier, with the `IJKL` home row keys representing the inverted-T of
|
||||
the arrow keys. All of the default TouchCursor keymappings for the right hand
|
||||
are represented below. My personalizations include all of the keys shown for
|
||||
the left hand. Having the `Alt` and `Shift` keys (as well as the `Control` key
|
||||
from the base layers) readily accessible from the home row allows quick word
|
||||
jumps and highlighting when used in conjunction with the arrow keys. The
|
||||
`Alt-Tab` macro is not only useful under Windows, but also under Mac when used
|
||||
with alternative switchers like [HyperSwitch](https://bahoom.com/hyperswitch).
|
||||
The `Cmd-Tab` and `Ctrl-Tab` sequences are duplicated for easy access while in
|
||||
this layer. The `KC_UNDO, KC_CUT, KC_COPY, KC_PASTE, KC_FIND,` and `KC_AGAIN`
|
||||
keycodes do not seem to work. There are macros in place that'll "automatically"
|
||||
choose the correct version (`Cmd-Tab` vs. `Alt-Tab`, `Cmd-C` vs. `Ctrl-C`,
|
||||
etc.) depending on which layout you've currently selected (`AG_NORM` or
|
||||
`AG_SWAP`) in the `_ADJUST` layer. The `Desk_L` and `Desk_R` macros are what I
|
||||
use to switch between Virtual Desktops Left/Right. The `Tab_C`, `Tab_N` and
|
||||
`Tab_R` are for "Close Tab," "New Tab" and "Reopen Closed Tab" for apps such as
|
||||
Google Chrome.
|
||||
```
|
||||
,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
| AltTab |CmdTab|CtlTab| GUI |Shift | ~ |Insert| Home | Up | End | Bksp | |
|
||||
|---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
| | Alt |Space |Tab_C | Find |Again | PgUp | Left | Down |Right |Desk_L| Desk_R |
|
||||
|----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
| | Undo | Cut | Copy |Paste | ` | PgDn | Del |Tab_N |Tab_R |iTerm2| |
|
||||
|-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
| | | | | | | | |
|
||||
`--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
```
|
||||
|
||||
## Mouse Layer
|
||||
The Mouse layer, closely mimics the layout/behaviour of the TouchCursor layer.
|
||||
The `D` key (on QWERTY) is used to activate this layer. All 16 keycodes for the
|
||||
mouse from the `doc/keycode.txt` file are represented, and logically located,
|
||||
IMHO. The left and right click buttons are duplicated; on the right hand side,
|
||||
for a quick click here and there, and again on the left hand side for when the
|
||||
buttons need to be held for dragging things or highlighting text, thus allowing
|
||||
the right hand to be free to use the up/down/left/right actions.
|
||||
```
|
||||
,---------+------+------+------+------+------+------+------+------+------+------+-------------.
|
||||
| | |ACCL0 | | | | |WHL_L | Up |WHL_R | BTN2 | |
|
||||
|---------`------`------`------`------`------`------`------`------`------`------`-------------|
|
||||
| |ACCL2 | BTN2 | | BTN1 |ACCL1 |WHL_Up| Left | Down |Right | BTN4 | BTN5 |
|
||||
|----------`------`------`------`------`------`------`------`------`------`------`------------|
|
||||
| | | | | BTN3 | |WHL_Dn| BTN1 | | | BTN3 | |
|
||||
|-----------`------`------`------`------`-----'-------`------`------`------`------`-----------|
|
||||
| | | | | | | | |
|
||||
`--------+---------+---------+------^^^-------+-----^^^--------+---------+---------+---------'
|
||||
```
|
@@ -1,18 +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 = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # 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
|
||||
|
@@ -1,14 +0,0 @@
|
||||
#ifndef CONFIG_USER_H
|
||||
#define CONFIG_USER_H
|
||||
|
||||
#include "../../config.h"
|
||||
|
||||
// place overrides here
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
#define BACKLIGHT_PIN B2
|
||||
#define BACKLIGHT_LEVELS 7
|
||||
#endif
|
||||
|
||||
#define USB_MAX_POWER_CONSUMPTION 50
|
||||
|
||||
#endif
|
@@ -1,188 +0,0 @@
|
||||
//Author: mike terhar
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
#include "backlight.h"
|
||||
#endif
|
||||
|
||||
enum minivan_layers {
|
||||
_QWERTY,
|
||||
_NUMSYM,
|
||||
_FKEYS,
|
||||
_FKEYGRV,
|
||||
_PLOVER,
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum planck_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
DYNKEY,
|
||||
DYNAMIC_MACRO_RANGE,
|
||||
};
|
||||
|
||||
#define FKEYS LT(_FKEYS, KC_TAB)
|
||||
#define NUMSYM TT(_NUMSYM)
|
||||
#define FKEYGRV LT(_FKEYS, KC_GRV)
|
||||
#define MACSLEEP M(5)
|
||||
#define PLOVER M(6)
|
||||
#define LAYERRESET M(7)
|
||||
#define BACKLIT M(8)
|
||||
#define ADJUST M(9)
|
||||
|
||||
#include "dynamic_macro.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QWERTY] = {
|
||||
{FKEYS, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC},
|
||||
{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_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) },
|
||||
{KC_LCTL,KC_LALT,KC_LGUI, KC_SPC,XXXXXXX,XXXXXXX,XXXXXXX,NUMSYM,KC_LEFT,KC_DOWN,KC_UP ,KC_RIGHT}
|
||||
},
|
||||
[_NUMSYM] = {
|
||||
{FKEYGRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______},
|
||||
{KC_DEL,KC_EXLM, KC_AT, KC_HASH,KC_DLR, KC_PERC,KC_CIRC,KC_AMPR,KC_ASTR,KC_LPRN,KC_RPRN, ADJUST },
|
||||
{ _______, KC_UNDS,KC_PLUS, KC_LCBR,KC_RCBR,KC_PIPE , KC_MINS,KC_EQL,KC_LBRC, KC_RBRC, KC_BSLS, _______},
|
||||
{_______,_______,_______,_______,XXXXXXX,XXXXXXX,XXXXXXX,_______, KC_HOME, KC_PGDN, KC_PGUP, KC_END}
|
||||
},
|
||||
[_FKEYS] ={
|
||||
{_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______},
|
||||
{KC_DEL, KC_F11, KC_F12, KC_F13, KC_F14, KC_F15, _______, _______, _______, MACSLEEP, DYN_REC_START1, DYN_REC_START2 },
|
||||
{KC_CAPS, _______, _______, _______, _______, _______, _______, _______, DYN_MACRO_PLAY1, DYN_MACRO_PLAY2,_______,DYN_REC_STOP},
|
||||
{_______,_______,_______,LAYERRESET,XXXXXXX,XXXXXXX,XXXXXXX,LAYERQK_BOOT, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY}
|
||||
},
|
||||
[_PLOVER] = {
|
||||
{KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1 },
|
||||
{XXXXXXX, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC},
|
||||
{XXXXXXX, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT},
|
||||
{LAYERRESET, XXXXXXX, KC_C, KC_V, XXXXXXX , XXXXXXX, XXXXXXX, KC_N, KC_M, XXXXXXX, XXXXXXX, XXXXXXX}
|
||||
},
|
||||
[_ADJUST] = {
|
||||
{_______ , QK_BOOT, _______, _______, _______, _______, _______, _______, KC_SLCK, KC_PAUS, KC_PSCR, KC_DEL },
|
||||
{_______ , _______, _______, _______, _______, AG_NORM, AG_SWAP, QWERTY, _______, MACSLEEP, PLOVER, _______},
|
||||
{_______ , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______},
|
||||
{BACKLIT, _______, _______, LAYERRESET, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, _______, _______, _______}
|
||||
}
|
||||
};
|
||||
|
||||
#ifdef AUDIO_ENABLE
|
||||
|
||||
float tone_startup[][2] = SONG(STARTUP_SOUND);
|
||||
float tone_qwerty[][2] = SONG(QWERTY_SOUND);
|
||||
float tone_dyn_macro_rec[][2] = SONG(DVORAK_SOUND);
|
||||
float tone_dyn_macro_play[][2] = SONG(COLEMAK_SOUND);
|
||||
float tone_plover[][2] = SONG(PLOVER_SOUND);
|
||||
float tone_adjust[][2] = SONG(PLOVER_GOODBYE_SOUND);
|
||||
float music_scale[][2] = SONG(MUSIC_SCALE_SOUND);
|
||||
|
||||
float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
|
||||
#endif
|
||||
|
||||
void persistant_default_layer_set(uint16_t default_layer) {
|
||||
eeconfig_update_default_layer(default_layer);
|
||||
default_layer_set(default_layer);
|
||||
}
|
||||
|
||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||
{
|
||||
switch(id) {
|
||||
case 5: // MACSLEEP
|
||||
if (record->event.pressed) {
|
||||
register_code(KC_RSFT);
|
||||
register_code(KC_RCTL);
|
||||
register_code(KC_PWR);
|
||||
unregister_code(KC_PWR);
|
||||
unregister_code(KC_RCTL);
|
||||
unregister_code(KC_RSFT);
|
||||
}
|
||||
break;
|
||||
case 6: // PLOVER
|
||||
if (record->event.pressed) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
stop_all_notes();
|
||||
PLAY_SONG(tone_plover);
|
||||
#endif
|
||||
layer_off(_NUMSYM);
|
||||
layer_off(_FKEYS);
|
||||
layer_off(_ADJUST);
|
||||
layer_on(_PLOVER);
|
||||
}
|
||||
break;
|
||||
case 7: // LAYERRESET
|
||||
if (record->event.pressed) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
PLAY_SONG(tone_qwerty);
|
||||
#endif
|
||||
layer_off(_NUMSYM);
|
||||
layer_off(_FKEYS);
|
||||
layer_off(_PLOVER);
|
||||
layer_off(_ADJUST);
|
||||
}
|
||||
break;
|
||||
case 8: // BACKLIT
|
||||
if (record->event.pressed) {
|
||||
register_code(KC_RSFT);
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
backlight_step();
|
||||
#endif
|
||||
} else {
|
||||
unregister_code(KC_RSFT);
|
||||
}
|
||||
break;
|
||||
case 9: // ADJUST
|
||||
if(record->event.pressed) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
stop_all_notes();
|
||||
PLAY_SONG(tone_adjust);
|
||||
#endif
|
||||
layer_off(_NUMSYM);
|
||||
layer_off(_FKEYS);
|
||||
layer_off(_PLOVER);
|
||||
layer_on(_ADJUST);
|
||||
}
|
||||
}
|
||||
return MACRO_NONE;
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
uint16_t macro_kc = keycode;
|
||||
if (keycode == FKEYS || keycode == ADJUST || keycode == FKEYGRV ){
|
||||
macro_kc = DYN_REC_STOP;
|
||||
}
|
||||
if (!process_record_dynamic_macro(macro_kc, record)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
startup_user();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef AUDIO_ENABLE
|
||||
|
||||
void startup_user()
|
||||
{
|
||||
_delay_ms(20); // gets rid of tick
|
||||
PLAY_SONG(tone_startup);
|
||||
}
|
||||
|
||||
void shutdown_user()
|
||||
{
|
||||
PLAY_SONG(tone_goodbye);
|
||||
_delay_ms(150);
|
||||
stop_all_notes();
|
||||
}
|
||||
|
||||
void music_on_user(void)
|
||||
{
|
||||
music_scale_user();
|
||||
}
|
||||
|
||||
void music_scale_user(void)
|
||||
{
|
||||
PLAY_SONG(music_scale);
|
||||
}
|
||||
#endif
|
@@ -1,26 +0,0 @@
|
||||
# Mike's Minivan
|
||||
|
||||
- Arrow Layout (45key)
|
||||
- Dynamic Macros
|
||||
- Media Keys
|
||||
- Works with iPhone Camera Adapter
|
||||
|
||||
## Layers
|
||||
|
||||
Qwerty for letters and mods.
|
||||
|
||||
Numsym for all numbers and symbols used in typing. Follows a similar approach to
|
||||
planck but puts both on the same layer eschewing the F-keys.
|
||||
|
||||
Fkeys layer is for the seldom used stuff like F-keys and some additional features
|
||||
such as dynamic macros, media keys, and a sleep shortcut for OS X.
|
||||
|
||||
Adjust layer is tough to get to so it is only for keyboard configuration stuff.
|
||||
|
||||
## Dynamic Macros
|
||||
|
||||
Hold TAB key, then press ";" to record macro 1 and "'" to record macro 2.
|
||||
|
||||
When you are done recording, press TAB again.
|
||||
|
||||
For playback of macros, TAB+"," plays macro 1 and TAB+","plays macro 2.
|
@@ -1,18 +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 = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
BACKLIGHT_ENABLE = yes # 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
|
||||
|
@@ -1,8 +0,0 @@
|
||||
#ifndef CONFIG_USER_H
|
||||
#define CONFIG_USER_H
|
||||
|
||||
#include "../../config.h"
|
||||
|
||||
// place overrides here
|
||||
|
||||
#endif
|
@@ -1,52 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
|
||||
// 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.
|
||||
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||
// entirely and just use numbers.
|
||||
|
||||
#define _NP 0
|
||||
#define _L1 1
|
||||
|
||||
// Macro name shortcuts
|
||||
#define NUMPAD M(_NP)
|
||||
#define LAYER1 M(_L1)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_NP] = LAYOUT_ortho_4x4( /* Numpad */
|
||||
KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS, \
|
||||
KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS, \
|
||||
KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER, \
|
||||
KC_KP_0, KC_KP_DOT, TG(_L1), KC_BSPC
|
||||
),
|
||||
[_L1] = LAYOUT_ortho_4x4( /* LAYER 1 */
|
||||
KC_NUM, _______, _______, KC_VOLU, \
|
||||
_______, KC_UP, _______, KC_VOLD, \
|
||||
KC_LEFT, KC_DOWN, KC_RIGHT, _______, \
|
||||
_______, _______, _______, _______
|
||||
)
|
||||
};
|
||||
|
||||
void persistent_default_layer_set(uint16_t default_layer) {
|
||||
eeconfig_update_default_layer(default_layer);
|
||||
default_layer_set(default_layer);
|
||||
}
|
||||
|
||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||
{
|
||||
switch(id) {
|
||||
case _L1:
|
||||
if (record->event.pressed) {
|
||||
persistent_default_layer_set(1UL<<_L1);
|
||||
}
|
||||
break;
|
||||
case _NP:
|
||||
if (record->event.pressed) {
|
||||
persistent_default_layer_set(1UL<<_NP);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return MACRO_NONE;
|
||||
};
|
@@ -1,3 +0,0 @@
|
||||
# The singles keymap for roadkit
|
||||
|
||||
This keymap has a base layer with numpad functionality, and then a second layer with some additional keys. The user is encouraged to develop their own keymap using this as a starting point.
|
@@ -1,18 +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 = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # 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
|
||||
|
@@ -1,15 +0,0 @@
|
||||
#ifndef CONFIG_USER_H
|
||||
#define CONFIG_USER_H
|
||||
|
||||
#include "../../config.h"
|
||||
|
||||
// place overrides here
|
||||
#define TAPPING_TERM 175
|
||||
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
#define BACKLIGHT_PIN B5
|
||||
#define BACKLIGHT_LEVELS 3
|
||||
#define BACKLIGHT_ON_STATE 0
|
||||
#endif
|
||||
|
||||
#endif
|
@@ -1,234 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
|
||||
// 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.
|
||||
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||
// entirely and just use numbers.
|
||||
|
||||
#define _NP 0
|
||||
#define _L1 1
|
||||
#define _L2 2
|
||||
#define _L3 3
|
||||
|
||||
// Macro name shortcuts
|
||||
#define NUMPAD M(_NP)
|
||||
#define LAYER1 M(_L1)
|
||||
#define LAYER2 M(_L2)
|
||||
#define LAYER3 M(_L3)
|
||||
|
||||
void matrix_init_user(void) {
|
||||
backlight_level(4);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Tap Dance Declarations
|
||||
|
||||
enum {
|
||||
|
||||
TD_EQUAL_NP = 0,
|
||||
TD_KP_PLUS_L1,
|
||||
TD_DOT_L2,
|
||||
TD_0_L3
|
||||
|
||||
};
|
||||
|
||||
//Tap Dance Definitions
|
||||
|
||||
|
||||
//TD equal to turn on layer NP
|
||||
void _td_equal_tg_finished (qk_tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
register_code(KC_EQUAL);
|
||||
} else if (state->count == 2) {
|
||||
backlight_set(3);
|
||||
layer_on(_NP);
|
||||
layer_off(_L1);
|
||||
layer_off(_L2);
|
||||
layer_off(_L3);
|
||||
}
|
||||
}
|
||||
|
||||
void _td_equal_tg_reset (qk_tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
unregister_code(KC_EQUAL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//TD kp plus to toggle layer 1
|
||||
void _td_kp_plus_tg_finished (qk_tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
register_code(KC_KP_PLUS);
|
||||
} else if (state->count == 2) {
|
||||
// layer_invert(_L1);
|
||||
backlight_set(2);
|
||||
layer_on(_L1);
|
||||
layer_off(_L2);
|
||||
layer_off(_L3);
|
||||
}
|
||||
}
|
||||
|
||||
void _td_kp_plus_tg_reset (qk_tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
unregister_code(KC_KP_PLUS);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//TD dot to toggle layer 2
|
||||
void _td_dot_tg_finished (qk_tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
register_code(KC_DOT);
|
||||
} else if (state->count == 2) {
|
||||
backlight_set(1);
|
||||
layer_on(_L2);
|
||||
layer_off(_L1);
|
||||
layer_off(_L3);
|
||||
}
|
||||
}
|
||||
|
||||
void _td_dot_tg_reset (qk_tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
unregister_code(KC_DOT);
|
||||
}
|
||||
}
|
||||
|
||||
//TD 0 to toggle layer 3
|
||||
void _td_0_tg_finished (qk_tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
register_code(KC_0);
|
||||
} else if (state->count == 2) {
|
||||
backlight_set(0);
|
||||
layer_on(_L3);
|
||||
layer_off(_L1);
|
||||
layer_off(_L2);
|
||||
}
|
||||
}
|
||||
|
||||
void _td_0_tg_reset (qk_tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
unregister_code(KC_0);
|
||||
}
|
||||
}
|
||||
|
||||
//TD Actions
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
[TD_EQUAL_NP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, _td_equal_tg_finished, _td_equal_tg_reset),
|
||||
[TD_KP_PLUS_L1] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, _td_kp_plus_tg_finished, _td_kp_plus_tg_reset),
|
||||
[TD_DOT_L2] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, _td_dot_tg_finished, _td_dot_tg_reset),
|
||||
[TD_0_L3] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, _td_0_tg_finished, _td_0_tg_reset)
|
||||
};
|
||||
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Numberpad
|
||||
* ,-----------------------.
|
||||
* | 7 | 8 | 9 | / |
|
||||
* |-----`-----`-----`-----|
|
||||
* | 4 | 5 | 6 | * |
|
||||
* |-----`-----`-----`-----|
|
||||
* | 1 | 2 | 3 | - |
|
||||
* |-----`-----`-----`-----|
|
||||
* | 0 | . | + | = |
|
||||
* `-----`-----`-----`-----'
|
||||
* Tapdances:
|
||||
* | L3 | L2 | L1 | NP |
|
||||
* `-----`-----`-----`-----'
|
||||
*/
|
||||
[_NP] = LAYOUT_ortho_4x4( /* Numpad */
|
||||
KC_7, KC_8, KC_9, KC_SLASH, \
|
||||
KC_4, KC_5, KC_6, KC_KP_ASTERISK, \
|
||||
KC_1, KC_2, KC_3, KC_MINUS, \
|
||||
TD(TD_0_L3), TD(TD_DOT_L2), TD(TD_KP_PLUS_L1), TD(TD_EQUAL_NP)
|
||||
),
|
||||
|
||||
/* L1
|
||||
* ,-----------------------.
|
||||
* | Esc |Bksp |Home |PgUp |
|
||||
* |-----`-----`-----`-----|
|
||||
* | Tab | Up | End |PgDn |
|
||||
* |-----`-----`-----`-----|
|
||||
* |Left |Down |Right|Enter|
|
||||
* |-----`-----`-----`-----|
|
||||
* | 0 | . | + | = |
|
||||
* `-----`-----`-----`-----'
|
||||
*/
|
||||
[_L1] = LAYOUT_ortho_4x4( /* LAYER 1 */
|
||||
KC_ESCAPE, KC_BSPACE, KC_HOME, KC_PGUP, \
|
||||
KC_TAB, KC_UP, KC_END, KC_PGDOWN, \
|
||||
KC_LEFT, KC_DOWN, KC_RIGHT, KC_KP_ENTER, \
|
||||
_______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* L2
|
||||
* ,-----------------------.
|
||||
* |Sleep|LClik|RClik|VolUp|
|
||||
* |-----`-----`-----`-----|
|
||||
* |AltF4| F11 |WinTb|VolDn|
|
||||
* |-----`-----`-----`-----|
|
||||
* |PrvTk|Play |NxtTk|Mute |
|
||||
* |-----`-----`-----`-----|
|
||||
* | 0 | . | + | = |
|
||||
* `-----`-----`-----`-----'
|
||||
*/
|
||||
[_L2] = LAYOUT_ortho_4x4( /* LAYER 2 */
|
||||
KC_SYSTEM_SLEEP, KC_MS_BTN1, KC_MS_BTN2, KC_AUDIO_VOL_UP, \
|
||||
LALT(KC_F4), KC_F11, LGUI(KC_TAB), KC_AUDIO_VOL_DOWN, \
|
||||
KC_MEDIA_PREV_TRACK, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK, KC_AUDIO_MUTE, \
|
||||
_______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* L3 needs cut, copy, paste, undo, again (redo), find, calc, www back, www forward, F5
|
||||
* ,-----------------------.
|
||||
* |WBack|WHome|WFor | F5 |
|
||||
* |-----`-----`-----`-----|
|
||||
* |Calc |Undo |Redo |WSrch|
|
||||
* |-----`-----`-----`-----|
|
||||
* | Cut |Copy |Paste|Find |
|
||||
* |-----`-----`-----`-----|
|
||||
* | 0 | . | + | = |
|
||||
* `-----`-----`-----`-----'
|
||||
*/
|
||||
[_L3] = LAYOUT_ortho_4x4( /* LAYER 3 */
|
||||
KC_SYSTEM_SLEEP, KC_MS_BTN1, KC_MS_BTN2, KC_AUDIO_VOL_UP, \
|
||||
LALT(KC_F4), KC_F11, LGUI(KC_TAB), KC_AUDIO_VOL_DOWN, \
|
||||
KC_MEDIA_PREV_TRACK, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK, KC_AUDIO_MUTE, \
|
||||
_______, _______, _______, _______
|
||||
),
|
||||
};
|
||||
|
||||
void persistent_default_layer_set(uint16_t default_layer) {
|
||||
eeconfig_update_default_layer(default_layer);
|
||||
default_layer_set(default_layer);
|
||||
}
|
||||
|
||||
const macro_t * action_get_macro(keyrecord_t * record, uint8_t id, uint8_t opt) {
|
||||
switch (id) {
|
||||
case _L3:
|
||||
if (record->event.pressed) {
|
||||
persistent_default_layer_set(1UL<<_L3);
|
||||
}
|
||||
break;
|
||||
case _L2:
|
||||
if (record->event.pressed) {
|
||||
persistent_default_layer_set(1UL<<_L2);
|
||||
}
|
||||
break;
|
||||
case _L1:
|
||||
if (record->event.pressed) {
|
||||
persistent_default_layer_set(1UL<<_L1);
|
||||
}
|
||||
break;
|
||||
case _NP:
|
||||
if (record->event.pressed) {
|
||||
persistent_default_layer_set(1UL<<_NP);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return MACRO_NONE;
|
||||
};
|
@@ -1,3 +0,0 @@
|
||||
# The singles keymap for roadkit
|
||||
|
||||
This keymap has a base layer with numpad functionality, and then a second layer with some additional keys. The user is encouraged to develop their own keymap using this as a starting point.
|
@@ -1,19 +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 = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # 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 = yes # 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
|
||||
TAP_DANCE_ENABLE = yes # Enable Tap Dance functionality
|
||||
|
Reference in New Issue
Block a user