Compare commits
13 Commits
0.6.218
...
clockworkp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50fa02ad58 | ||
|
|
e76bf17d36 | ||
|
|
6cb2d7ba6d | ||
|
|
526bc4c7cc | ||
|
|
484c85bd0d | ||
|
|
a7b1b146d1 | ||
|
|
7b5fa4b13e | ||
|
|
c71c078dff | ||
|
|
134a69f4ad | ||
|
|
40383089d0 | ||
|
|
7f0def77a2 | ||
|
|
b7688590b8 | ||
|
|
0c0e208a36 |
@@ -21,5 +21,4 @@ COMMON_VPATH += $(QUANTUM_PATH)/keymap_extras
|
||||
COMMON_VPATH += $(QUANTUM_PATH)/audio
|
||||
COMMON_VPATH += $(QUANTUM_PATH)/process_keycode
|
||||
COMMON_VPATH += $(QUANTUM_PATH)/api
|
||||
COMMON_VPATH += $(QUANTUM_PATH)/split_common
|
||||
COMMON_VPATH += $(DRIVER_PATH)
|
||||
|
||||
@@ -268,4 +268,5 @@ ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
|
||||
$(QUANTUM_DIR)/split_common/split_util.c
|
||||
QUANTUM_LIB_SRC += $(QUANTUM_DIR)/split_common/i2c.c
|
||||
QUANTUM_LIB_SRC += $(QUANTUM_DIR)/split_common/serial.c
|
||||
COMMON_VPATH += $(QUANTUM_PATH)/split_common
|
||||
endif
|
||||
|
||||
0
keyboards/clockworkpi_keypad/clockworkpi_keypad.c
Normal file
0
keyboards/clockworkpi_keypad/clockworkpi_keypad.c
Normal file
15
keyboards/clockworkpi_keypad/clockworkpi_keypad.h
Normal file
15
keyboards/clockworkpi_keypad/clockworkpi_keypad.h
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
#define k_ KC_NO
|
||||
|
||||
#define LAYOUT_keymap( \
|
||||
kMN, kSH, kSL, kST, \
|
||||
kUP, KY, \
|
||||
kLF, kRH, kX, kB, \
|
||||
kDN, kA, \
|
||||
kL1, kL2, kL3, kL4, kL5 \
|
||||
) { \
|
||||
{ kUP, kLF, kDN, kRH, kY, kX, kA, kB }, \
|
||||
{ kMN, kSH, kSL, kST, k_, k_, k_, k_ }, \
|
||||
{ kL1, kL2, kL3, kL4, kL5, k_, k_, k_ }, \
|
||||
}
|
||||
38
keyboards/clockworkpi_keypad/config.h
Normal file
38
keyboards/clockworkpi_keypad/config.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
Copyright 2019 Jack Humbert <jack.humb@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/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0xFEED
|
||||
#define PRODUCT_ID 0xD901
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER clockworkpi
|
||||
#define PRODUCT keypad
|
||||
#define DESCRIPTION
|
||||
|
||||
#define MATRIX_ROWS 3
|
||||
#define MATRIX_COLS 8
|
||||
|
||||
#define TAPPING_TOGGLE 3
|
||||
|
||||
#define NO_UART 1
|
||||
|
||||
/* key combination for command */
|
||||
#define IS_COMMAND() ( \
|
||||
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
|
||||
)
|
||||
20
keyboards/clockworkpi_keypad/keymaps/default/keymap.c
Normal file
20
keyboards/clockworkpi_keypad/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
[0] = LAYOUT_keypad(
|
||||
KC_ESC, MO(1), KC_SPC, KC_ENT,
|
||||
|
||||
KC_UP KC_I,
|
||||
KC_LEFT, KC_RIGHT, KC_U, KC_K,
|
||||
KC_DOWN, KC_J,
|
||||
|
||||
KC_HOME, KC_PGUP, MO(1), KC_PGDN, KC_END
|
||||
),
|
||||
|
||||
[1] = LAYOUT_keypad(
|
||||
KC_BSPC, MO(1), KC_PMNS, KC_PPLS,
|
||||
|
||||
KC_UP KC_O,
|
||||
KC_LEFT, KC_RIGHT, KC_Y, KC_L,
|
||||
KC_DOWN, KC_H
|
||||
|
||||
KC_H, KC_Y, MO(1), KC_O, KC_L
|
||||
)
|
||||
65
keyboards/clockworkpi_keypad/matrix.c
Normal file
65
keyboards/clockworkpi_keypad/matrix.c
Normal file
@@ -0,0 +1,65 @@
|
||||
// 0 DO
|
||||
// 1 D1
|
||||
// 2 D2
|
||||
// 3 D3
|
||||
// 4 D4
|
||||
// 5 D5
|
||||
// 6 D6
|
||||
// 7 D7
|
||||
// 8 B0
|
||||
// 9 B1
|
||||
// 10 B2
|
||||
// 11 B3
|
||||
// 12 B4
|
||||
// 13 B5
|
||||
// 14 C0
|
||||
// 15 C1
|
||||
// 16 C2
|
||||
// 17 C3
|
||||
// 18 C4
|
||||
// 19 C5
|
||||
|
||||
// UP D3
|
||||
// LF D6
|
||||
// DN D7
|
||||
// RH B0
|
||||
|
||||
// A B1 Y
|
||||
// B B2 X
|
||||
// C B3 A
|
||||
// D B4 B
|
||||
|
||||
// MN C0
|
||||
// SH C1
|
||||
// SL C2
|
||||
// ST B5
|
||||
|
||||
// L1 C3
|
||||
// L2 C4
|
||||
// L3 C5
|
||||
// L4 C6
|
||||
// L5 D7
|
||||
|
||||
matrix[0] = (
|
||||
(readPin(D3) << 0) |
|
||||
(readPin(D6) << 1) |
|
||||
(readPin(D7) << 2) |
|
||||
(readPin(B0) << 3) |
|
||||
(readPin(B1) << 4) |
|
||||
(readPin(B2) << 5) |
|
||||
(readPin(B3) << 6) |
|
||||
(readPin(B4) << 7)
|
||||
);
|
||||
matrix[1] = (
|
||||
(readPin(C0) << 0) |
|
||||
(readPin(C1) << 1) |
|
||||
(readPin(C2) << 2) |
|
||||
(readPin(B5) << 3)
|
||||
);
|
||||
matrix[2] = (
|
||||
(readPin(C3) << 0) |
|
||||
(readPin(C4) << 1) |
|
||||
(readPin(C5) << 2) |
|
||||
(readPin(C6) << 3) |
|
||||
(readPin(D7) << 4)
|
||||
);
|
||||
52
keyboards/clockworkpi_keypad/rules.mk
Normal file
52
keyboards/clockworkpi_keypad/rules.mk
Normal file
@@ -0,0 +1,52 @@
|
||||
# Copyright 2019 Jack Humbert <jack.humb@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/>.
|
||||
|
||||
# MCU name
|
||||
MCU = atmega328p
|
||||
PROTOCOL = VUSB
|
||||
|
||||
# unsupported features for now
|
||||
NO_UART = yes
|
||||
NO_SUSPEND_POWER_DOWN = yes
|
||||
|
||||
# processor frequency
|
||||
F_CPU = 16000000
|
||||
|
||||
# Bootloader
|
||||
# This definition is optional, and if your keyboard supports multiple bootloaders of
|
||||
# different sizes, comment this out, and the correct address will be loaded
|
||||
# automatically (+60). See bootloader.mk for all options.
|
||||
# BOOTLOADER = usbasp
|
||||
PROGRAM_CMD = avrdude -c usbasp -p m328p -U flash:w:$(BUILD_DIR)/$(TARGET).hex
|
||||
|
||||
# build options
|
||||
BOOTMAGIC_ENABLE = no
|
||||
MOUSEKEY_ENABLE = yes
|
||||
EXTRAKEY_ENABLE = yes
|
||||
CONSOLE_ENABLE = no
|
||||
COMMAND_ENABLE = yes
|
||||
KEY_LOCK_ENABLE = no
|
||||
NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
AUDIO_ENABLE = no
|
||||
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
|
||||
OPT_DEFS = -DDEBUG_LEVEL=0
|
||||
OPT_DEFS += -DBOOTLOADER_SIZE=2048
|
||||
|
||||
# custom matrix setup
|
||||
CUSTOM_MATRIX = yes
|
||||
SRC = matrix.c
|
||||
@@ -127,11 +127,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
return true;
|
||||
case NR_L3:
|
||||
if (record->event.pressed) {
|
||||
register_code(DE_ALGR);
|
||||
register_code(KC_ALGR);
|
||||
layer_on(_NUMROW_L3);
|
||||
} else {
|
||||
layer_off(_NUMROW_L3);
|
||||
unregister_code(DE_ALGR);
|
||||
unregister_code(KC_ALGR);
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
|
||||
@@ -88,16 +88,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
};
|
||||
|
||||
void matrix_init_keymap(void) {
|
||||
//SSD1306 OLED init, make sure to add #define SSD1306OLED in config.h
|
||||
#ifdef SSD1306OLED
|
||||
iota_gfx_init(!has_usb()); // turns on the display
|
||||
#endif
|
||||
//SSD1306 OLED init, make sure to add #define SSD1306OLED in config.h
|
||||
#ifdef SSD1306OLED
|
||||
iota_gfx_init(!has_usb()); // turns on the display
|
||||
#endif
|
||||
|
||||
DDRD &= ~(1<<5);
|
||||
PORTD &= ~(1<<5);
|
||||
#ifndef CONVERT_TO_PROTON_C
|
||||
setPinOutput(D5);
|
||||
writePinHigh(D5);
|
||||
|
||||
DDRB &= ~(1<<0);
|
||||
PORTB &= ~(1<<0);
|
||||
setPinOutput(B0);
|
||||
writePinHigh(B0);
|
||||
#endif
|
||||
}
|
||||
|
||||
//SSD1306 OLED update loop, make sure to add #define SSD1306OLED in config.h
|
||||
@@ -126,10 +128,10 @@ const char code_to_name[60] = {
|
||||
|
||||
void set_keylog(uint16_t keycode, keyrecord_t *record) {
|
||||
char name = ' ';
|
||||
if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)) { keycode = keycode & 0xFF; }
|
||||
if (keycode < 60) {
|
||||
name = code_to_name[keycode];
|
||||
}
|
||||
|
||||
// update keylog
|
||||
snprintf(keylog_str, sizeof(keylog_str), "%dx%d, k%2d : %c",
|
||||
record->event.key.row, record->event.key.col,
|
||||
|
||||
@@ -80,7 +80,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
TG(SYMB), KC_Y, KC_U, KC_I, KC_O, KC_P, NO_AA,
|
||||
KC_H, KC_J, KC_K, KC_L, LT(MDIA, NO_OSLH), LT(SYMB, NO_AE),
|
||||
KC_WFWD, KC_N, KC_M, KC_COMM, KC_DOT, NO_MINS, KC_RSPC,
|
||||
KC_SPC, KC_BSPC, NO_ALGR, NO_ASTR, CTL_T(NO_TILD),
|
||||
KC_SPC, KC_BSPC, KC_ALGR, NO_ASTR, CTL_T(NO_TILD),
|
||||
KC_HOME, NO_CIRC,
|
||||
KC_PGUP, KC_UP, KC_DOWN,
|
||||
KC_LGUI, ALT_T(KC_ESC), CTL_T(KC_ENT)
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#include "../../config.h"
|
||||
#pragma once
|
||||
|
||||
//Force NKRO to be enabled.
|
||||
#define FORCE_NKRO
|
||||
|
||||
//GRAVE_ESC override for CTRL+SHIFT+ESC Windows task manager shortcut.
|
||||
#define GRAVE_ESC_CTRL_OVERRIDE
|
||||
//#define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
//Delay matrix scan for tap dance, reduce to activate modifier keys faster.
|
||||
//#define TAPPING_TERM 200
|
||||
|
||||
@@ -11,13 +11,16 @@ enum layers {
|
||||
_AL, // Adjust Layer
|
||||
};
|
||||
|
||||
enum gonnerd_keycodes {
|
||||
enum custom_keycodes {
|
||||
DYNAMIC_MACRO_RANGE = SAFE_RANGE,
|
||||
QMK_REV,
|
||||
KC_WEB,
|
||||
KC_SP4
|
||||
};
|
||||
|
||||
extern backlight_config_t backlight_config;
|
||||
|
||||
#include "dynamic_macro.h"
|
||||
#define _______ KC_TRNS
|
||||
#define XXXXXXX KC_NO
|
||||
#define FN_CAPS LT(_FL, KC_CAPS)
|
||||
#define KC_DMR1 DYN_REC_START1
|
||||
#define KC_DMR2 DYN_REC_START2
|
||||
@@ -25,47 +28,44 @@ enum gonnerd_keycodes {
|
||||
#define KC_DMP2 DYN_MACRO_PLAY2
|
||||
#define KC_DMRS DYN_REC_STOP
|
||||
|
||||
static uint8_t current_layer;
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* _BL: Base Layer, mostly standard TKL QWERTY layout.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* |Esc||||| F1| F2| F3| F4||| F5| F6| F7| F8||| F9|F10|F11|F12|PSc|SLk|Pau|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | ~| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |Ins|Hom|PgU|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|Del|End|PgD|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |FnCaps| A| S| D| F| G| H| J| K| L| ;| '|Return | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift | | Up| |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Ctrl |||||Win | Space |RAlt |||||Ctrl |Lft|Dwn|Rgt|
|
||||
* *-----------------------------------------------------------------------*
|
||||
/*#### _BL: Base Layer - Standard TKL QWERTY layout.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* |Esc|||||F1 |F2 |F3 |F4 |||F5 |F6 |F7 |F8 |||F9 |F10|F11|F12|PSc|SLk|Pau|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |~ |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backsp |Ins|Hom|PgU|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Del|End|PgD|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Caps |A |S |D |F |G |H |J |K |L |; |' |Return | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |Fn | | Up| |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Ctrl |Win|Alt | Space |RAlt |Fn |Ctrl |Lft|Dwn|Rgt|
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_BL] = LAYOUT_tkl( \
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, \
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, \
|
||||
FN_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, XXXXXXX, KC_ENT, \
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, XXXXXXX, KC_ENT, \
|
||||
KC_LSFT, XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FL), KC_UP, \
|
||||
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RGUI, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
|
||||
/* _WL: Workman Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | | -| =| | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | Q| D| R| W| B| J| F| U| P| ;| [| ]| \| | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | A| S| H| T| G| Y| N| E| O| I| '| | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | Z| X| M| C| V| K| L| ,| .| /| | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | ||||| | | ||||| | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
/*#### _WL: Workman Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |- |= | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Q |D |R |W |B |J |F |U |P |; |[ |] |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |S |H |T |G |Y |N |E |O |I |' | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Z |X |M |C |V |K |L |, |. |/ | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_WL] = LAYOUT_tkl( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
@@ -75,21 +75,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
_______, _______, KC_Z , KC_X , KC_M , KC_C , KC_V , KC_K , KC_L , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/* _NL: Norman Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | | -| =| | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | Q| W| D| F| K| J| U| R| L| ;| [| ]| \| | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | A| S| E| T| G| Y| N| I| O| H| '| | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | Z| X| C| V| B| P| M| ,| .| /| | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | ||||| | | ||||| | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
/*#### _NL: Norman Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |- |= | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Q |W |D |F |K |J |U |R |L |; |[ |] |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |S |E |T |G |Y |N |I |O |H |' | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Z |X |C |V |B |P |M |, |. |/ | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_NL] = LAYOUT_tkl( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
@@ -99,21 +98,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
_______, _______, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_P , KC_M , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/* _DL: Dvorak Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | | [| ]| | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | '| ,| .| P| Y| F| G| C| R| L| /| =| \| | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | A| O| E| U| I| D| H| T| N| S| -| | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | ;| Q| J| K| X| B| M| W| V| Z| | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | ||||| | | ||||| | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
/*#### _DL: Dvorak Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |[ |] | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |' |, |. |P |Y |F |G |C |R |L |/ |= |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |O |E |U |I |D |H |T |N |S |- | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |; |Q |J |K |X |B |M |W |V |Z | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_DL] = LAYOUT_tkl( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
@@ -123,21 +121,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
_______, _______, KC_SCLN, KC_Q , KC_J , KC_K , KC_X , KC_B , KC_M , KC_W , KC_V , KC_Z , _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/* _CL: Colmak Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | | -| =| | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | Q| W| F| P| G| J| L| U| Y| ;| [| ]| \| | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | A| R| S| T| D| H| N| E| I| O| '| | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | Z| X| C| V| B| K| M| ,| .| /| | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | ||||| | | ||||| | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
/*#### _CL: Colmak Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |- |= | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Q |W |F |P |G |J |L |U |Y |; |[ |] |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |R |S |T |D |H |N |E |I |O |' | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Z |X |C |V |B |K |M |, |. |/ | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_CL] = LAYOUT_tkl( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
@@ -147,142 +144,126 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
_______, _______, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_K , KC_M , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/* _FL: Function Layer.
|
||||
* M0 opens Chrome
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| |VlM|VlD|VlU| | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | M0| | | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Fn_AL| | | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |FnCaps| | | | | | |Lft|Dwn|Up |Rgt| | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | ||||| | | ||||| |WBk| |WFw|
|
||||
* *-----------------------------------------------------------------------*
|
||||
/*#### _FL: Function Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| |VlM|VlD|VlU| | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* |Web| | | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Fn_AL| | | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | |Lft|Dwn|Up |Rgt| | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | | |Fn | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | SP4 | |Fn | |WBk| |WFw|
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_FL] = LAYOUT_tkl( \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MUTE, KC_VOLD, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
M(0), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
KC_WEB, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
MO(_AL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, KC_MENU, M(1), XXXXXXX, _______, XXXXXXX, XXXXXXX, KC_WBAK, XXXXXXX, KC_WFWD \
|
||||
XXXXXXX, XXXXXXX, KC_MENU, KC_SP4, XXXXXXX, _______, XXXXXXX, XXXXXXX, KC_WBAK, XXXXXXX, KC_WFWD \
|
||||
),
|
||||
|
||||
/* _AL: Adjust Layer.
|
||||
* Default keymap, RGB Underglow, LED backlight, and Dynamic Macro settings.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* |Rst||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* |Ver|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| | |MR1|MP1|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Fn_AL|_BL|_WL| | | | | | | | | | | | MS|MR2|MP2|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |FnCaps| | |_DL| | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | |_CL| |_BL|_NL| | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | ||||| | | ||||| | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
/*#### _AL: Adjust Layer - Keymap select, LED backlight, and Dynamic Macro settings.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* |Rst||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* |Rev|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| | |MR1|MP1|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Fn_AL|_BL|_WL| | | | | | | | | | | | MS|MR2|MP2|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | |_DL| | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | |_CL| |_BL|_NL| | | | | |Fn | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | |Fn | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_AL] = LAYOUT_tkl( \
|
||||
RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
F(0), RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, XXXXXXX, BL_TOGG, BL_DEC, BL_INC, XXXXXXX, XXXXXXX, KC_DMR1, KC_DMP1, \
|
||||
QMK_REV, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, XXXXXXX, BL_TOGG, BL_DEC, BL_INC, XXXXXXX, XXXXXXX, KC_DMR1, KC_DMP1, \
|
||||
_______, DF(_BL), DF(_WL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMRS, KC_DMR2, KC_DMP2, \
|
||||
_______, XXXXXXX, XXXXXXX, DF(_DL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, DF(_DL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, DF(_CL), XXXXXXX, DF(_BL), DF(_NL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, \
|
||||
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX \
|
||||
),
|
||||
};
|
||||
|
||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||
switch(id) {
|
||||
case 0:
|
||||
if (record->event.pressed) {
|
||||
return MACRO(I(0), D(LGUI), T(R), U(LGUI), END);
|
||||
}
|
||||
else {
|
||||
SEND_STRING("chrome.exe\n");
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (record->event.pressed) {
|
||||
return MACRO(I(0), T(SPC), T(SPC), T(SPC), T(SPC), END);
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return MACRO_NONE;
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM fn_actions[] = {
|
||||
[0] = ACTION_FUNCTION(0),
|
||||
};
|
||||
|
||||
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||
switch (id) {
|
||||
case 0:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING ("[QMK:" QMK_KEYBOARD ":" QMK_KEYMAP ":" QMK_VERSION "]");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
backlight_level(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Runs constantly in the background, in a loop.
|
||||
void matrix_scan_user(void) {
|
||||
uint8_t layer = biton32(layer_state);
|
||||
|
||||
if (current_layer == layer) {
|
||||
}
|
||||
else {
|
||||
current_layer = layer;
|
||||
switch (layer) {
|
||||
case 0:
|
||||
backlight_level(0);
|
||||
break;
|
||||
case 1:
|
||||
backlight_level(1);
|
||||
break;
|
||||
case 2:
|
||||
backlight_level(1);
|
||||
break;
|
||||
case 3:
|
||||
backlight_level(1);
|
||||
break;
|
||||
case 4:
|
||||
backlight_level(1);
|
||||
break;
|
||||
case 5:
|
||||
backlight_level(2);
|
||||
break;
|
||||
case 6:
|
||||
backlight_level(3);
|
||||
break;
|
||||
default:
|
||||
backlight_level(0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
// Enable Dynamic Macros.
|
||||
switch (keycode) {
|
||||
case QMK_REV:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP "@" QMK_VERSION ":" QMK_BUILDDATE);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_WEB:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(SS_LGUI("r"));
|
||||
wait_ms(100);
|
||||
SEND_STRING("chrome.exe\n");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_SP4:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING (" ");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
// Dynamic Macros.
|
||||
if (!process_record_dynamic_macro(keycode, record)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void custom_backlight_level(uint8_t level) {
|
||||
if (level > BACKLIGHT_LEVELS)
|
||||
level = BACKLIGHT_LEVELS;
|
||||
backlight_config.level = level;
|
||||
backlight_config.enable = !!backlight_config.level;
|
||||
backlight_set(backlight_config.level);
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
custom_backlight_level(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
||||
}
|
||||
|
||||
uint32_t layer_state_set_user(uint32_t state) {
|
||||
switch (biton32(state)) {
|
||||
case _BL:
|
||||
custom_backlight_level(0);
|
||||
break;
|
||||
case _WL:
|
||||
case _NL:
|
||||
case _DL:
|
||||
case _CL:
|
||||
custom_backlight_level(1);
|
||||
break;
|
||||
case _FL:
|
||||
custom_backlight_level(2);
|
||||
break;
|
||||
case _AL:
|
||||
custom_backlight_level(3);
|
||||
break;
|
||||
default:
|
||||
custom_backlight_level(0);
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,120 +1,114 @@
|
||||
# Keymap Maintainer: Gam3cat
|
||||
make gonnerd:gam3cat
|
||||
## Layout Config:
|
||||
2u backspace, 2.25u left shift/enter, 1.75u right shift.
|
||||
2x1.5u, 1x7.0u, 2x1.5u, 3x1u bottom row.
|
||||
|
||||
FN_CAPS = MO(_FL) when held, CAPS when tapped.
|
||||
GRAVE_ESC + GUI = `
|
||||
GRAVE_ESC + SHIFT = ~
|
||||
2u backspace, 2.25u lshift/enter, [2.75u rshift] or [1.75u rshift, 1u Fn].
|
||||
[1.5u, 1u, 1.5u 1x7.0u, 1.5u, 1u, 1.5u, 3x1u] or [2x1.5u, 1x7.0u, 2x1.5u, 3x1u] bottom row.
|
||||
|
||||
## Base Layer Selection:
|
||||
(Caps+TAB+( )): (Q)WERTY, (W)orkman, (N)orman, (D)vorak, (C)olmak
|
||||
(Fn+TAB+( )): (Q)WERTY, (W)orkman, (N)orman, (D)vorak, (C)olmak
|
||||
|
||||
### Base Layer Options:
|
||||
_BL: Base Layer, mostly standard TKL QWERTY layout.
|
||||
#### _BL: Base Layer - Standard TKL QWERTY layout.
|
||||
.-----------------------------------------------------------------------.
|
||||
|Esc||||| F1| F2| F3| F4||| F5| F6| F7| F8||| F9|F10|F11|F12|PSc|SLk|Pau|
|
||||
|Esc|||||F1 |F2 |F3 |F4 |||F5 |F6 |F7 |F8 |||F9 |F10|F11|F12|PSc|SLk|Pau|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| ~| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |Ins|Hom|PgU|
|
||||
|~ |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backsp |Ins|Hom|PgU|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|Del|End|PgD|
|
||||
|Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Del|End|PgD|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|FnCaps| A| S| D| F| G| H| J| K| L| ;| '|Return | |
|
||||
|Caps |A |S |D |F |G |H |J |K |L |; |' |Return | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Shift | Z| X| C| V| B| N| M| ,| .| /|Shift | | Up| |
|
||||
|Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |Fn | | Up| |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Ctrl |||||Win | Space |RAlt |||||Ctrl |Lft|Dwn|Rgt|
|
||||
|Ctrl |Win|Alt | Space |RAlt |Fn |Ctrl |Lft|Dwn|Rgt|
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
_WL: Workman Layer.
|
||||
|
||||
#### _WL: Workman Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | | -| =| | | | |
|
||||
| | | | | | | | | | | |- |= | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | Q| D| R| W| B| J| F| U| P| ;| [| ]| \| | | |
|
||||
| |Q |D |R |W |B |J |F |U |P |; |[ |] |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | A| S| H| T| G| Y| N| E| O| I| '| | |
|
||||
| |A |S |H |T |G |Y |N |E |O |I |' | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | Z| X| M| C| V| K| L| ,| .| /| | | | | |
|
||||
| |Z |X |M |C |V |K |L |, |. |/ | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| ||||| | | ||||| | | | |
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
_NL: Norman Layer.
|
||||
|
||||
#### _NL: Norman Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | | -| =| | | | |
|
||||
| | | | | | | | | | | |- |= | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | Q| W| D| F| K| J| U| R| L| ;| [| ]| \| | | |
|
||||
| |Q |W |D |F |K |J |U |R |L |; |[ |] |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | A| S| E| T| G| Y| N| I| O| H| '| | |
|
||||
| |A |S |E |T |G |Y |N |I |O |H |' | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | Z| X| C| V| B| P| M| ,| .| /| | | | | |
|
||||
| |Z |X |C |V |B |P |M |, |. |/ | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| ||||| | | ||||| | | | |
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
_DL: Dvorak Layer.
|
||||
|
||||
#### _DL: Dvorak Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | | [| ]| | | | |
|
||||
| | | | | | | | | | | |[ |] | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | '| ,| .| P| Y| F| G| C| R| L| /| =| \| | | |
|
||||
| |' |, |. |P |Y |F |G |C |R |L |/ |= |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | A| O| E| U| I| D| H| T| N| S| -| | |
|
||||
| |A |O |E |U |I |D |H |T |N |S |- | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | ;| Q| J| K| X| B| M| W| V| Z| | | | | |
|
||||
| |; |Q |J |K |X |B |M |W |V |Z | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| ||||| | | ||||| | | | |
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
_CL: Colmak Layer.
|
||||
|
||||
#### _CL: Colmak Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | | -| =| | | | |
|
||||
| | | | | | | | | | | |- |= | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | Q| W| F| P| G| J| L| U| Y| ;| [| ]| \| | | |
|
||||
| |Q |W |F |P |G |J |L |U |Y |; |[ |] |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | A| R| S| T| D| H| N| E| I| O| '| | |
|
||||
| |A |R |S |T |D |H |N |E |I |O |' | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | Z| X| C| V| B| K| M| ,| .| /| | | | | |
|
||||
| |Z |X |C |V |B |K |M |, |. |/ | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| ||||| | | ||||| | | | |
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
_FL: Function Layer.
|
||||
M0 opens Chrome
|
||||
|
||||
#### _FL: Function Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| |VlM|VlD|VlU| | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| M0| | | | | | | | | | | | | | | | |
|
||||
|Web| | | | | | | | | | | | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | | | | | | | |
|
||||
|Fn_AL| | | | | | | | | | | | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | |Lft|Dwn|Up |Rgt| | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | | | | | | |
|
||||
| | | | | | | | | | | | |Fn | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| ||||| | | ||||| |WBk| |WFw|
|
||||
| | | | SP4 | |Fn | |WBk| |WFw|
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
_AL: Adjust Layer.
|
||||
Default keymap, RGB Underglow, LED backlight, and Dynamic Macro settings.
|
||||
|
||||
#### _AL: Adjust Layer - Keymap select, LED backlight, and Dynamic Macro settings.
|
||||
.-----------------------------------------------------------------------.
|
||||
|Rst||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
|Ver|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| | |MR1|MP1|
|
||||
|Rev|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| | |MR1|MP1|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Fn_AL|_BL|_WL| | | | | | | | | | | | MS|MR2|MP2|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|FnCaps| | |_DL| | | | | | | | | | |
|
||||
| | | |_DL| | | | | | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | |_CL| |_BL|_NL| | | | | | | | | |
|
||||
| | | |_CL| |_BL|_NL| | | | | |Fn | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| ||||| | | ||||| | | | |
|
||||
| | | | | |Fn | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
@@ -2,20 +2,23 @@
|
||||
# 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 # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
BACKLIGHT_ENABLE = 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
|
||||
TAP_DANCE_ENABLE = no # Enable TapDance functionality
|
||||
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+1500)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
|
||||
ifndef QUANTUM_DIR
|
||||
include ../../../../Makefile
|
||||
endif
|
||||
NKRO_ENABLE = yes # Nkey Rollover - If this doesn't work, add this to config.h: #define FORCE_NKRO
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
MIDI_ENABLE = no # MIDI controls
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
UNICODEMAP_ENABLE = no # Enable extended unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
FAUXCLICKY_ENABLE = no # Uses buzzer to emulate clicky switches. By default, uses the C6 pin, same as AUDIO_ENABLE.
|
||||
#VARIABLE_TRACE = no # Use this to debug changes to variable values
|
||||
API_SYSEX_ENABLE = no # This enables using the Quantum SYSEX API to send strings(+5390)
|
||||
KEY_LOCK_ENABLE = no # This enables key lock(+260)
|
||||
SPLIT_KEYBOARD = no # This enables split keyboard support and includes all necessary files located at quantum/split_common
|
||||
|
||||
10
keyboards/h87a/keymaps/gam3cat/config.h
Normal file
10
keyboards/h87a/keymaps/gam3cat/config.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
//Force NKRO to be enabled.
|
||||
#define FORCE_NKRO
|
||||
|
||||
//GRAVE_ESC override for CTRL+SHIFT+ESC Windows task manager shortcut.
|
||||
//#define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
//Delay matrix scan for tap dance, reduce to activate modifier keys faster.
|
||||
//#define TAPPING_TERM 200
|
||||
292
keyboards/h87a/keymaps/gam3cat/keymap.c
Normal file
292
keyboards/h87a/keymaps/gam3cat/keymap.c
Normal file
@@ -0,0 +1,292 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "version.h"
|
||||
|
||||
enum layers {
|
||||
_BL = 0, // Base Layer
|
||||
_WL, // Workman Layer
|
||||
_NL, // Norman Layer
|
||||
_DL, // Dvorak Layer
|
||||
_CL, // Base Layer
|
||||
_FL, // Function Layer
|
||||
_AL, // Adjust Layer
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
DYNAMIC_MACRO_RANGE = SAFE_RANGE,
|
||||
QMK_REV,
|
||||
KC_WEB,
|
||||
KC_SP4
|
||||
};
|
||||
|
||||
extern backlight_config_t backlight_config;
|
||||
|
||||
#include "dynamic_macro.h"
|
||||
#define FN_CAPS LT(_FL, KC_CAPS)
|
||||
#define KC_DMR1 DYN_REC_START1
|
||||
#define KC_DMR2 DYN_REC_START2
|
||||
#define KC_DMP1 DYN_MACRO_PLAY1
|
||||
#define KC_DMP2 DYN_MACRO_PLAY2
|
||||
#define KC_DMRS DYN_REC_STOP
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*#### _BL: Base Layer - Standard TKL QWERTY layout.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* |Esc|||||F1 |F2 |F3 |F4 |||F5 |F6 |F7 |F8 |||F9 |F10|F11|F12|PSc|SLk|Pau|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |~ |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backsp |Ins|Hom|PgU|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Del|End|PgD|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Caps |A |S |D |F |G |H |J |K |L |; |' |Return | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |Fn | | Up| |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Ctrl |Win|Alt | Space |RAlt |Fn |Ctrl |Lft|Dwn|Rgt|
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_BL] = LAYOUT_all( \
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, \
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, \
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, XXXXXXX, KC_ENT, \
|
||||
KC_LSFT, XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FL), KC_UP, \
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RGUI, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
/*#### _WL: Workman Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |- |= | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Q |D |R |W |B |J |F |U |P |; |[ |] |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |S |H |T |G |Y |N |E |O |I |' | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Z |X |M |C |V |K |L |, |. |/ | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_WL] = LAYOUT_all( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, KC_Q , KC_D , KC_R , KC_W , KC_B , KC_J , KC_F , KC_U , KC_P , KC_SCLN, _______, _______, _______, _______, _______, _______, \
|
||||
_______, KC_A , KC_S , KC_H , KC_T , KC_G , KC_Y , KC_N , KC_E , KC_O , KC_I , _______, _______, _______, \
|
||||
_______, _______, KC_Z , KC_X , KC_M , KC_C , KC_V , KC_K , KC_L , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/*#### _NL: Norman Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |- |= | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Q |W |D |F |K |J |U |R |L |; |[ |] |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |S |E |T |G |Y |N |I |O |H |' | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Z |X |C |V |B |P |M |, |. |/ | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_NL] = LAYOUT_all( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, KC_Q , KC_W , KC_D , KC_F , KC_K , KC_J , KC_U , KC_R , KC_L , KC_SCLN, _______, _______, _______, _______, _______, _______, \
|
||||
_______, KC_A , KC_S , KC_E , KC_T , KC_G , KC_Y , KC_N , KC_I , KC_O , KC_H , _______, _______, _______, \
|
||||
_______, _______, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_P , KC_M , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/*#### _DL: Dvorak Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |[ |] | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |' |, |. |P |Y |F |G |C |R |L |/ |= |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |O |E |U |I |D |H |T |N |S |- | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |; |Q |J |K |X |B |M |W |V |Z | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_DL] = LAYOUT_all( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, _______, _______, _______, _______, _______, \
|
||||
_______, KC_QUOT, KC_COMM, KC_DOT , KC_P , KC_Y , KC_F , KC_G , KC_C , KC_R , KC_L , KC_SLSH, KC_EQL , _______, _______, _______, _______, \
|
||||
_______, KC_A , KC_O , KC_E , KC_U , KC_I , KC_D , KC_H , KC_T , KC_N , KC_S , KC_MINS, _______, _______, \
|
||||
_______, _______, KC_SCLN, KC_Q , KC_J , KC_K , KC_X , KC_B , KC_M , KC_W , KC_V , KC_Z , _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/*#### _CL: Colmak Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | |- |= | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Q |W |F |P |G |J |L |U |Y |; |[ |] |\ | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |A |R |S |T |D |H |N |E |I |O |' | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | |Z |X |C |V |B |K |M |, |. |/ | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_CL] = LAYOUT_all( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, KC_Q , KC_W , KC_F , KC_P , KC_G , KC_J , KC_L , KC_U , KC_Y , KC_SCLN, _______, _______, _______, _______, _______, _______, \
|
||||
_______, KC_A , KC_R , KC_S , KC_T , KC_D , KC_H , KC_N , KC_E , KC_I , KC_O , _______, _______, _______, \
|
||||
_______, _______, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_K , KC_M , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/*#### _FL: Function Layer.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* | ||||| | | | ||| | | | ||| |VlM|VlD|VlU| | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* |Web| | | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Fn_AL| | | | | | | | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | |Lft|Dwn|Up |Rgt| | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | | | | | | | | |Fn | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | SP4 | |Fn | |WBk| |WFw|
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_FL] = LAYOUT_all( \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MUTE, KC_VOLD, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
KC_WEB, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
MO(_AL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, KC_MENU, KC_SP4, XXXXXXX, _______, XXXXXXX, XXXXXXX, KC_WBAK, XXXXXXX, KC_WFWD \
|
||||
),
|
||||
/*#### _AL: Adjust Layer - Keymap select, LED backlight, and Dynamic Macro settings.
|
||||
* .-----------------------------------------------------------------------.
|
||||
* |Rst||||| | | | ||| | | | ||| | | | | | | |
|
||||
* .-----------------------------------------------------------|-----------|
|
||||
* |Rev|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| | |MR1|MP1|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* |Fn_AL|_BL|_WL| | | | | | | | | | | | MS|MR2|MP2|
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | |_DL| | | | | | | | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | |_CL| |_BL|_NL| | | | | |Fn | | | |
|
||||
* |-----------------------------------------------------------|-----------|
|
||||
* | | | | | |Fn | | | | |
|
||||
* *-----------------------------------------------------------------------*
|
||||
*/
|
||||
[_AL] = LAYOUT_all( \
|
||||
RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
QMK_REV, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, XXXXXXX, BL_TOGG, BL_DEC, BL_INC, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMR1, KC_DMP1, \
|
||||
_______, DF(_BL), DF(_WL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMRS, KC_DMR2, KC_DMP2, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, DF(_DL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, DF(_CL), XXXXXXX, DF(_BL), DF(_NL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX \
|
||||
),
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QMK_REV:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP "@" QMK_VERSION ":" QMK_BUILDDATE);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_WEB:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(SS_LGUI("r"));
|
||||
wait_ms(100);
|
||||
SEND_STRING("chrome.exe\n");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_SP4:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING (" ");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
// Dynamic Macros.
|
||||
if (!process_record_dynamic_macro(keycode, record)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void custom_backlight_level(uint8_t level) {
|
||||
if (level > BACKLIGHT_LEVELS)
|
||||
level = BACKLIGHT_LEVELS;
|
||||
backlight_config.level = level;
|
||||
backlight_config.enable = !!backlight_config.level;
|
||||
backlight_set(backlight_config.level);
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
custom_backlight_level(0);
|
||||
#endif
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
rgblight_mode(1);
|
||||
rgblight_sethsv_noeeprom(180,100,100);
|
||||
#endif
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
||||
}
|
||||
|
||||
uint32_t layer_state_set_user(uint32_t state) {
|
||||
switch (biton32(state)) {
|
||||
case _BL:
|
||||
custom_backlight_level(0);
|
||||
rgblight_sethsv_noeeprom(180,100,255);
|
||||
break;
|
||||
case _WL:
|
||||
case _NL:
|
||||
case _DL:
|
||||
case _CL:
|
||||
custom_backlight_level(1);
|
||||
rgblight_sethsv_noeeprom(230,255,255);
|
||||
break;
|
||||
case _FL:
|
||||
custom_backlight_level(2);
|
||||
rgblight_sethsv_noeeprom(280,255,255);
|
||||
break;
|
||||
case _AL:
|
||||
custom_backlight_level(3);
|
||||
rgblight_sethsv_noeeprom(350,255,255);
|
||||
break;
|
||||
default:
|
||||
custom_backlight_level(0);
|
||||
rgblight_sethsv_noeeprom(180,100,100);
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
void led_init_ports(void) {
|
||||
DDRD |= (1<<5); // OUT
|
||||
DDRE |= (1<<6); // OUT
|
||||
}
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
|
||||
DDRD |= (1 << 5); PORTD &= ~(1 << 5);
|
||||
} else {
|
||||
DDRD &= ~(1 << 5); PORTD &= ~(1 << 5);
|
||||
}
|
||||
if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
|
||||
DDRE |= (1 << 6); PORTE &= ~(1 << 6);
|
||||
} else {
|
||||
DDRE &= ~(1 << 6); PORTE &= ~(1 << 6);
|
||||
}
|
||||
}
|
||||
114
keyboards/h87a/keymaps/gam3cat/readme.md
Normal file
114
keyboards/h87a/keymaps/gam3cat/readme.md
Normal file
@@ -0,0 +1,114 @@
|
||||
# Keymap Maintainer: Gam3cat
|
||||
make h87a:gam3cat
|
||||
## Layout Config:
|
||||
2u backspace, 2.25u lshift/enter, [2.75u rshift] or [1.75u rshift, 1u Fn].
|
||||
[1.5u, 1u, 1.5u 1x7.0u, 1.5u, 1u, 1.5u, 3x1u] or [2x1.5u, 1x7.0u, 2x1.5u, 3x1u] bottom row.
|
||||
|
||||
## Base Layer Selection:
|
||||
(Fn+TAB+( )): (Q)WERTY, (W)orkman, (N)orman, (D)vorak, (C)olmak
|
||||
|
||||
### Base Layer Options:
|
||||
#### _BL: Base Layer - Standard TKL QWERTY layout.
|
||||
.-----------------------------------------------------------------------.
|
||||
|Esc|||||F1 |F2 |F3 |F4 |||F5 |F6 |F7 |F8 |||F9 |F10|F11|F12|PSc|SLk|Pau|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|~ |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backsp |Ins|Hom|PgU|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Del|End|PgD|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Caps |A |S |D |F |G |H |J |K |L |; |' |Return | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |Fn | | Up| |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Ctrl |Win|Alt | Space |RAlt |Fn |Ctrl |Lft|Dwn|Rgt|
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _WL: Workman Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | |- |= | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Q |D |R |W |B |J |F |U |P |; |[ |] |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |A |S |H |T |G |Y |N |E |O |I |' | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Z |X |M |C |V |K |L |, |. |/ | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _NL: Norman Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | |- |= | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Q |W |D |F |K |J |U |R |L |; |[ |] |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |A |S |E |T |G |Y |N |I |O |H |' | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Z |X |C |V |B |P |M |, |. |/ | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _DL: Dvorak Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | |[ |] | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |' |, |. |P |Y |F |G |C |R |L |/ |= |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |A |O |E |U |I |D |H |T |N |S |- | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |; |Q |J |K |X |B |M |W |V |Z | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _CL: Colmak Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | |- |= | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Q |W |F |P |G |J |L |U |Y |; |[ |] |\ | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |A |R |S |T |D |H |N |E |I |O |' | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| |Z |X |C |V |B |K |M |, |. |/ | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _FL: Function Layer.
|
||||
.-----------------------------------------------------------------------.
|
||||
| ||||| | | | ||| | | | ||| |VlM|VlD|VlU| | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
|Web| | | | | | | | | | | | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Fn_AL| | | | | | | | | | | | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | |Lft|Dwn|Up |Rgt| | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | | | | | | | | |Fn | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | SP4 | |Fn | |WBk| |WFw|
|
||||
*-----------------------------------------------------------------------*
|
||||
|
||||
#### _AL: Adjust Layer - Keymap select, LED backlight, and Dynamic Macro settings.
|
||||
.-----------------------------------------------------------------------.
|
||||
|Rst||||| | | | ||| | | | ||| | | | | | | |
|
||||
.-----------------------------------------------------------|-----------|
|
||||
|Rev|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| | |MR1|MP1|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
|Fn_AL|_BL|_WL| | | | | | | | | | | | MS|MR2|MP2|
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | |_DL| | | | | | | | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | |_CL| |_BL|_NL| | | | | |Fn | | | |
|
||||
|-----------------------------------------------------------|-----------|
|
||||
| | | | | |Fn | | | | |
|
||||
*-----------------------------------------------------------------------*
|
||||
24
keyboards/h87a/keymaps/gam3cat/rules.mk
Normal file
24
keyboards/h87a/keymaps/gam3cat/rules.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
# Build Options
|
||||
# change to "no" to disable the options, or define them in the Makefile in
|
||||
# the appropriate keymap folder that will get included automatically
|
||||
#
|
||||
TAP_DANCE_ENABLE = no # Enable TapDance functionality
|
||||
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+1500)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
NKRO_ENABLE = yes # Nkey Rollover - If this doesn't work, add this to config.h: #define FORCE_NKRO
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
MIDI_ENABLE = no # MIDI controls
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
UNICODEMAP_ENABLE = no # Enable extended unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
FAUXCLICKY_ENABLE = no # Uses buzzer to emulate clicky switches. By default, uses the C6 pin, same as AUDIO_ENABLE.
|
||||
#VARIABLE_TRACE = no # Use this to debug changes to variable values
|
||||
API_SYSEX_ENABLE = no # This enables using the Quantum SYSEX API to send strings(+5390)
|
||||
KEY_LOCK_ENABLE = no # This enables key lock(+260)
|
||||
SPLIT_KEYBOARD = no # This enables split keyboard support and includes all necessary files located at quantum/split_common
|
||||
@@ -148,13 +148,26 @@
|
||||
#define FB_BRAKEFACTOR 6 /* For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7 */
|
||||
#define FB_LOOPGAIN 1 /* For Low:0, Medium:1, High:2, Very High:3 */
|
||||
|
||||
/* default 3V ERM vibration motor voltage and library*/
|
||||
#if FB_ERM_LRA == 0
|
||||
#define RATED_VOLTAGE 3
|
||||
#define V_RMS 2.3
|
||||
#define V_PEAK 3.30
|
||||
/* Library Selection */
|
||||
#define LIB_SELECTION 4 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
|
||||
|
||||
/* default 2V LRA voltage and library */
|
||||
#elif FB_ERM_LRA == 1
|
||||
#define RATED_VOLTAGE 2
|
||||
#define V_RMS 2.0
|
||||
#define V_PEAK 2.85
|
||||
#define F_LRA 205
|
||||
#define F_LRA 200
|
||||
/* Library Selection */
|
||||
#define LIB_SELECTION 6 /* For Empty:0' TS2200 library A to D:1-5, LRA Library: 6 */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* Control 1 register settings */
|
||||
#define DRIVE_TIME 25
|
||||
#define AC_COUPLE 0
|
||||
@@ -179,14 +192,11 @@
|
||||
#define ZC_DET_TIME 0
|
||||
#define AUTO_CAL_TIME 3
|
||||
|
||||
//#define WS2812_LED_N 2
|
||||
//#define RGBLED_NUM WS2812_LED_N
|
||||
//#define WS2812_TIM_N 2
|
||||
//#define WS2812_TIM_CH 2
|
||||
//#define PORT_WS2812 GPIOA
|
||||
//#define PIN_WS2812 15
|
||||
//#define WS2812_DMA_STREAM STM32_DMA1_STREAM2 // DMA stream for TIMx_UP (look up in reference manual under DMA Channel selection)
|
||||
//#define WS2812_DMA_CHANNEL 7 // DMA channel for TIMx_UP
|
||||
//#define WS2812_EXTERNAL_PULLUP
|
||||
//#define RGBLIGHT_ANIMATIONS
|
||||
|
||||
//#define RGBLED_NUM 10
|
||||
//#define RGB_DI_PIN B5
|
||||
//#define DRIVER_LED_TOTAL RGBLED_NUM
|
||||
|
||||
//#define RGB_MATRIX_KEYPRESSES
|
||||
#endif
|
||||
|
||||
@@ -82,7 +82,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_LOWER] = LAYOUT_wrapper(
|
||||
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_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, \
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, _______, KC_F6, KC_UNDS, KC_PLUS, KC_LBRC, KC_RBRC, KC_PIPE, \
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, _______, KC_F6, KC_UNDS, KC_EQL, KC_LBRC, KC_RBRC, KC_PIPE, \
|
||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______, _______, KC_F12,S(KC_NUHS),S(KC_NUBS),_______,_______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
|
||||
),
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
#define STM32_I2C_BUSY_TIMEOUT 50
|
||||
#define STM32_I2C_I2C1_IRQ_PRIORITY 10
|
||||
#define STM32_I2C_I2C2_IRQ_PRIORITY 10
|
||||
#define STM32_I2C_USE_DMA TRUE
|
||||
#define STM32_I2C_USE_DMA FALSE
|
||||
#define STM32_I2C_I2C1_DMA_PRIORITY 1
|
||||
#define STM32_I2C_I2C2_DMA_PRIORITY 1
|
||||
#define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure")
|
||||
|
||||
@@ -8,14 +8,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_LALT, FR_AMP, FR_EACU, FR_QUOT, FR_APOS, FR_LPRN, KC_BSPACE, KC_DELETE, FR_MINS, FR_EGRV, FR_UNDS, FR_CCED, FR_AGRV, FR_RPRN, FR_EQL, KC_INSERT, KC_HOME, KC_PGUP,\
|
||||
KC_LGUI, FR_A, FR_Z, KC_E, KC_R, KC_T, KC_LSFT, KC_ENT, KC_Y, KC_U, KC_I, KC_O, KC_P, FR_CIRC, FR_DLR, KC_DELETE, KC_END, KC_PGDOWN, KC_KP_PLUS,\
|
||||
KC_LCTL, FR_Q, KC_S, KC_D, KC_F, KC_G, KC_ENT, KC_H, KC_J, KC_K, KC_L, FR_M, FR_UGRV, FR_ASTR, KC_KP_1, KC_UP, KC_KP_3,\
|
||||
FR_LESS, FR_W, KC_X, KC_C, KC_V, KC_B, KC_SPACE, KC_SPACE, KC_N, FR_COMM, FR_SCLN, FR_COLN, FR_EXLM, FR_ALGR, KC_LEFT, KC_DOWN, KC_RIGHT, KC_KP_ENTER),
|
||||
FR_LESS, FR_W, KC_X, KC_C, KC_V, KC_B, KC_SPACE, KC_SPACE, KC_N, FR_COMM, FR_SCLN, FR_COLN, FR_EXLM, KC_ALGR, KC_LEFT, KC_DOWN, KC_RIGHT, KC_KP_ENTER),
|
||||
|
||||
[1] = KEYMAP(
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TAB, KC_CAPS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_FN0, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS,\
|
||||
KC_LALT, FR_AMP, FR_EACU, FR_QUOT, FR_APOS, FR_LPRN, KC_BSPACE, KC_DELETE, FR_MINS, FR_EGRV, FR_UNDS, FR_CCED, FR_AGRV, FR_RPRN, FR_EQL, KC_7, KC_8, KC_9,\
|
||||
KC_LGUI, FR_A, FR_Z, KC_E, KC_R, KC_T, KC_LSFT, KC_ENT, KC_Y, KC_U, KC_I, KC_O, KC_P, FR_CIRC, FR_DLR, KC_4, KC_5, KC_6, KC_KP_PLUS,\
|
||||
KC_LCTL, FR_Q, KC_S, KC_D, KC_F, KC_G, KC_ENT, KC_H, KC_J, KC_K, KC_L, FR_M, FR_UGRV, FR_ASTR, KC_1, KC_2, KC_3,\
|
||||
FR_LESS, FR_W, KC_X, KC_C, KC_V, KC_B, KC_SPACE, KC_SPACE, KC_N, FR_COMM, FR_SCLN, FR_COLN, FR_EXLM, FR_ALGR, KC_LEFT, KC_DOWN, KC_RIGHT, KC_KP_ENTER),
|
||||
FR_LESS, FR_W, KC_X, KC_C, KC_V, KC_B, KC_SPACE, KC_SPACE, KC_N, FR_COMM, FR_SCLN, FR_COLN, FR_EXLM, KC_ALGR, KC_LEFT, KC_DOWN, KC_RIGHT, KC_KP_ENTER),
|
||||
};
|
||||
|
||||
|
||||
|
||||
52
keyboards/handwired/tradestation/config.h
Normal file
52
keyboards/handwired/tradestation/config.h
Normal file
@@ -0,0 +1,52 @@
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0xFEED
|
||||
#define PRODUCT_ID 0x6060
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER Flehrad
|
||||
#define PRODUCT Trade Station
|
||||
#define DESCRIPTION A Pro Micro-powered macropad layout by Didier Luximon. 1/8U gap space top two rows and 1/4U gap between 2U bottom two rows.
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 4
|
||||
#define MATRIX_COLS 4
|
||||
|
||||
/* key matrix pins */
|
||||
#define MATRIX_ROW_PINS { D1, C6, D4, D0 }
|
||||
#define MATRIX_COL_PINS { F7, B1, D7, E6 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* number of backlight levels */
|
||||
|
||||
#ifdef BACKLIGHT_PIN
|
||||
#define BACKLIGHT_LEVELS 3
|
||||
#endif
|
||||
|
||||
/* Set 0 if debouncing isn't needed */
|
||||
#define DEBOUNCING_DELAY 5
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* key combination for command */
|
||||
#define IS_COMMAND() ( \
|
||||
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
|
||||
)
|
||||
|
||||
|
||||
#ifdef RGB_DI_PIN
|
||||
#define RGBLIGHT_ANIMATIONS
|
||||
#define RGBLED_NUM 5
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#endif
|
||||
15
keyboards/handwired/tradestation/info.json
Normal file
15
keyboards/handwired/tradestation/info.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"keyboard_name": "Tradestation",
|
||||
"url": "",
|
||||
"maintainer": "Flehrad",
|
||||
"bootloader": "",
|
||||
"width": 4.3,
|
||||
"height": 4.5,
|
||||
"layouts": {
|
||||
"LAYOUT_tradestation": {
|
||||
"layout": [{"x":0, "y":0}, {"x":1.1, "y":0}, {"x":2.2, "y":0}, {"x":3.3, "y":0}, {"x":0, "y":1.1}, {"x":1.1, "y":1.1}, {"x":2.2, "y":1.1}, {"x":3.3, "y":1.1}, {"x":0, "y":2.25, "w":2}, {"x":2.25, "y":2.25, "w":2}, {"x":0, "y":3.5, "w":2}, {"x":2.25, "y":3.5, "w":2}]
|
||||
},
|
||||
"LAYOUT_ortho_4x4": {
|
||||
"layout": [{"x":0, "y":0}, {"x":1.1, "y":0}, {"x":2.2, "y":0}, {"x":3.3, "y":0}, {"x":0, "y":1.1}, {"x":1.1, "y":1.1}, {"x":2.2, "y":1.1}, {"x":3.3, "y":1.1}, {"x":0, "y":2.25}, {"x":1, "y":2.25}, {"x":2.25, "y":2.25}, {"x":3.25, "y":2.25}, {"x":0, "y":3.5}, {"x":1, "y":3.5}, {"x":2.25, "y":3.5}, {"x":3.25, "y":3.5}]
|
||||
}
|
||||
}
|
||||
61
keyboards/handwired/tradestation/keymaps/default/keymap.c
Normal file
61
keyboards/handwired/tradestation/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,61 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
LAYOUT_ortho_4x4(
|
||||
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),
|
||||
|
||||
LAYOUT_tradestation(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS),
|
||||
};
|
||||
|
||||
|
||||
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) {
|
||||
|
||||
if (usb_led & (1 << USB_LED_NUM_LOCK)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
if (usb_led & (1 << USB_LED_COMPOSE)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
if (usb_led & (1 << USB_LED_KANA)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
201
keyboards/handwired/tradestation/license
Normal file
201
keyboards/handwired/tradestation/license
Normal file
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
25
keyboards/handwired/tradestation/readme.md
Normal file
25
keyboards/handwired/tradestation/readme.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Tradestation
|
||||
QMK for Tradestation Macropad
|
||||
|
||||
This macropad was layout designed by Didier Luximon
|
||||
|
||||
This PCB supports an overall 4x4 matrix with unique spacing.
|
||||
* Top two rows are 1U keys with 1/8U spacing
|
||||
* Bottom two rows are available with 4x2 1U as clusters of 2x1U or as 2x2 2U, spaced with 1/4U
|
||||
|
||||
For QMK Configurator, the info.json is utilised.
|
||||
- For 2U keys , the first 1u row/column key assignment is the same as the 2u position.
|
||||
|
||||
Build requires a pro micro.
|
||||
|
||||
Can be built as single PCB with custom case, or as two PCB style with standoffs.
|
||||
|
||||
If you like this simple PCB and want to make a donation, you can at https://paypal.me/theboardpodcast
|
||||
|
||||
Check out our:
|
||||
|
||||
YouTube (https://www.youtube.com/channel/UCg98oJZNffR9nDLJNkorjqw)
|
||||
|
||||
Podcast (www.libsyn.com/theboardpodcast)
|
||||
|
||||
Patreon (www.patreon.com/theboardpodcast)
|
||||
65
keyboards/handwired/tradestation/rules.mk
Normal file
65
keyboards/handwired/tradestation/rules.mk
Normal file
@@ -0,0 +1,65 @@
|
||||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Processor frequency.
|
||||
# This will define a symbol, F_CPU, in all source code files equal to the
|
||||
# processor frequency in Hz. You can then use this symbol in your source code to
|
||||
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
|
||||
# automatically to create a 32-bit value in your source code.
|
||||
#
|
||||
# This will be an integer division of F_USB below, as it is sourced by
|
||||
# F_USB after it has run through any CPU prescalers. Note that this value
|
||||
# does not *change* the processor frequency - it should merely be updated to
|
||||
# reflect the processor speed set externally so that the code can use accurate
|
||||
# software delays.
|
||||
F_CPU = 16000000
|
||||
|
||||
#
|
||||
# LUFA specific
|
||||
#
|
||||
# Target architecture (see library "Board Types" documentation).
|
||||
ARCH = AVR8
|
||||
|
||||
# Input clock frequency.
|
||||
# This will define a symbol, F_USB, in all source code files equal to the
|
||||
# input clock frequency (before any prescaling is performed) in Hz. This value may
|
||||
# differ from F_CPU if prescaling is used on the latter, and is required as the
|
||||
# raw input clock is fed directly to the PLL sections of the AVR for high speed
|
||||
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
|
||||
# at the end, this will be done automatically to create a 32-bit value in your
|
||||
# source code.
|
||||
#
|
||||
# If no clock division is performed on the input clock inside the AVR (via the
|
||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||
F_USB = $(F_CPU)
|
||||
|
||||
# Interrupt driven control endpoint task(+60)
|
||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||
|
||||
# Bootloader selection
|
||||
# Teensy halfkay
|
||||
# Pro Micro caterina
|
||||
# Atmel DFU atmel-dfu
|
||||
# LUFA DFU lufa-dfu
|
||||
# QMK DFU qmk-dfu
|
||||
# atmega32a bootloadHID
|
||||
BOOTLOADER = caterina
|
||||
|
||||
# Boot Section Size in *bytes*
|
||||
# OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
||||
|
||||
|
||||
# Build Options
|
||||
# comment out to disable the options.
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
NKRO_ENABLE = yes # USB 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
|
||||
AUDIO_ENABLE = no
|
||||
RGBLIGHT_ENABLE = no
|
||||
LAYOUTS = ortho_4x4
|
||||
1
keyboards/handwired/tradestation/tradestation.c
Normal file
1
keyboards/handwired/tradestation/tradestation.c
Normal file
@@ -0,0 +1 @@
|
||||
#include "tradestation.h"
|
||||
27
keyboards/handwired/tradestation/tradestation.h
Normal file
27
keyboards/handwired/tradestation/tradestation.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_ortho_4x4( \
|
||||
K00, K01, K02, K03, \
|
||||
K10, K11, K12, K13, \
|
||||
K20, K21, K22, K23, \
|
||||
K30, K31, K32, K33 \
|
||||
) { \
|
||||
{ K00, K01, K02, K03 }, \
|
||||
{ K10, K11, K12, K13 }, \
|
||||
{ K20, K21, K22, K23 }, \
|
||||
{ K30, K31, K32, K33 } \
|
||||
}
|
||||
|
||||
#define LAYOUT_tradestation( \
|
||||
K00, K01, K02, K03, \
|
||||
K10, K11, K12, K13, \
|
||||
K20, K22, \
|
||||
K30, K32 \
|
||||
) { \
|
||||
{ K00, K01, K02, K03 }, \
|
||||
{ K10, K11, K12, K13 }, \
|
||||
{ K20, KC_NO, K22, KC_NO }, \
|
||||
{ K30, KC_NO, K32, KC_NO } \
|
||||
}
|
||||
@@ -89,9 +89,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
|
||||
void matrix_init_keymap(void) {
|
||||
DDRD &= ~(1<<5);
|
||||
PORTD &= ~(1<<5);
|
||||
#ifndef CONVERT_TO_PROTON_C
|
||||
setPinOutput(D5);
|
||||
writePinHigh(D5);
|
||||
|
||||
DDRB &= ~(1<<0);
|
||||
PORTB &= ~(1<<0);
|
||||
setPinOutput(B0);
|
||||
writePinHigh(B0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#include "../../config.h"
|
||||
#pragma once
|
||||
|
||||
//Force NKRO to be enabled.
|
||||
#define FORCE_NKRO
|
||||
|
||||
//GRAVE_ESC override for CTRL+SHIFT+ESC Windows task manager shortcut.
|
||||
#define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
|
||||
@@ -11,13 +11,16 @@ enum layers {
|
||||
_AL, // Adjust Layer
|
||||
};
|
||||
|
||||
enum jc65_keycodes {
|
||||
enum custom_keycodes {
|
||||
DYNAMIC_MACRO_RANGE = SAFE_RANGE,
|
||||
QMK_REV,
|
||||
KC_WEB,
|
||||
KC_SP4
|
||||
};
|
||||
|
||||
extern backlight_config_t backlight_config;
|
||||
|
||||
#include "dynamic_macro.h"
|
||||
#define _______ KC_TRNS
|
||||
#define XXXXXXX KC_NO
|
||||
#define FN_CAPS LT(_FL, KC_CAPS)
|
||||
#define KC_DMR1 DYN_REC_START1
|
||||
#define KC_DMR2 DYN_REC_START2
|
||||
@@ -25,18 +28,16 @@ enum jc65_keycodes {
|
||||
#define KC_DMP2 DYN_MACRO_PLAY2
|
||||
#define KC_DMRS DYN_REC_STOP
|
||||
|
||||
static uint8_t current_layer;
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* _BL: Base Layer, mostly standard 65% QWERTY layout.
|
||||
/*#### _BL: Base Layer - Mostly standard 65% QWERTY layout.
|
||||
* .---------------------------------------------------------------.
|
||||
* |GrE| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |Ins|
|
||||
* |GrE|1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backsp |Ins|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|Del|
|
||||
* |Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Del|
|
||||
* |---------------------------------------------------------------|
|
||||
* |FnCaps| A| S| D| F| G| H| J| K| L| ;| '|Return |PgU|
|
||||
* |FnCaps|A |S |D |F |G |H |J |K |L |; |' |Return |PgU|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |Up |PgD|
|
||||
* |Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |Up |PgD|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Ctrl|Gui |Alt | Space |RAlt |Ctrl |Lft|Dwn|Rgt|
|
||||
* *---------------------------------------------------------------*
|
||||
@@ -48,16 +49,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_LSFT, XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
/* _WL: Workman Layer.
|
||||
/*#### _WL: Workman Layer.
|
||||
* .---------------------------------------------------------------.
|
||||
* | | | | | | | | | | | | -| =| | |
|
||||
* | | | | | | | | | | | |- |= | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | Q| D| R| W| B| J| F| U| P| ;| [| ]| \| |
|
||||
* | |Q |D |R |W |B |J |F |U |P |; |[ |] |\ | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | A| S| H| T| G| Y| N| E| O| I| '| | |
|
||||
* | |A |S |H |T |G |Y |N |E |O |I |' | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | Z| X| M| C| V| K| L| ,| .| /| | | |
|
||||
* | |Z |X |M |C |V |K |L |, |. |/ | | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | | | | | | | | |
|
||||
* *---------------------------------------------------------------*
|
||||
@@ -69,16 +69,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
_______, _______, KC_Z , KC_X , KC_M , KC_C , KC_V , KC_K , KC_L , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* _NL: Norman Layer.
|
||||
/*#### _NL: Norman Layer.
|
||||
* .---------------------------------------------------------------.
|
||||
* | | | | | | | | | | | | -| =| | |
|
||||
* | | | | | | | | | | | |- |= | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | Q| W| D| F| K| J| U| R| L| ;| [| ]| \| |
|
||||
* | |Q |W |D |F |K |J |U |R |L |; |[ |] |\ | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | A| S| E| T| G| Y| N| I| O| H| '| | |
|
||||
* | |A |S |E |T |G |Y |N |I |O |H |' | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | Z| X| C| V| B| P| M| ,| .| /| | | |
|
||||
* | |Z |X |C |V |B |P |M |, |. |/ | | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | | | | | | | | |
|
||||
* *---------------------------------------------------------------*
|
||||
@@ -90,16 +89,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
_______, _______, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_P , KC_M , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* _DL: Dvorak Layer.
|
||||
/*#### _DL: Dvorak Layer.
|
||||
* .---------------------------------------------------------------.
|
||||
* | | | | | | | | | | | | [| ]| | |
|
||||
* | | | | | | | | | | | |[ |] | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | '| ,| .| P| Y| F| G| C| R| L| /| =| \| |
|
||||
* | |' |, |. |P |Y |F |G |C |R |L |/ |= |\ | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | A| O| E| U| I| D| H| T| N| S| -| | |
|
||||
* | |A |O |E |U |I |D |H |T |N |S |- | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | ;| Q| J| K| X| B| M| W| V| Z| | | |
|
||||
* | |; |Q |J |K |X |B |M |W |V |Z | | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | | | | | | | | |
|
||||
* *---------------------------------------------------------------*
|
||||
@@ -111,16 +109,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
_______, _______, KC_SCLN, KC_Q , KC_J , KC_K , KC_X , KC_B , KC_M , KC_W , KC_V , KC_Z , _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* _CL: Colmak Layer.
|
||||
/*#### _CL: Colmak Layer.
|
||||
* .---------------------------------------------------------------.
|
||||
* | | | | | | | | | | | | -| =| | |
|
||||
* | | | | | | | | | | | |- |= | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | Q| W| F| P| G| J| L| U| Y| ;| [| ]| \| |
|
||||
* | |Q |W |F |P |G |J |L |U |Y |; |[ |] |\ | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | A| R| S| T| D| H| N| E| I| O| '| | |
|
||||
* | |A |R |S |T |D |H |N |E |I |O |' | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | Z| X| C| V| B| K| M| ,| .| /| | | |
|
||||
* | |Z |X |C |V |B |K |M |, |. |/ | | | |
|
||||
* |---------------------------------------------------------------|
|
||||
* | | | | | | | | | |
|
||||
* *---------------------------------------------------------------*
|
||||
@@ -132,11 +129,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
_______, _______, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_K , KC_M , KC_COMM, KC_DOT , KC_SLSH, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* _FL: Function Layer.
|
||||
* M0 opens Chrome
|
||||
/*#### _FL: Function Layer.
|
||||
* .---------------------------------------------------------------.
|
||||
* |M0 | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|SLock |PSc|
|
||||
* |Web|F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12|SLock |PSc|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Fn_AL| | | | | | | | | | | | | |Pau|
|
||||
* |---------------------------------------------------------------|
|
||||
@@ -144,21 +139,19 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* |---------------------------------------------------------------|
|
||||
* | | | | | | | | | | | |VlMute|VlU|End|
|
||||
* |---------------------------------------------------------------|
|
||||
* | | |Menu| | | |WBk|VlD|WFw|
|
||||
* | | |Menu| SP4 | | |WBk|VlD|WFw|
|
||||
* *---------------------------------------------------------------*
|
||||
*/
|
||||
[_FL] = LAYOUT(
|
||||
M(0), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, XXXXXXX, KC_SLCK, KC_PSCR,
|
||||
KC_WEB, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, XXXXXXX, KC_SLCK, KC_PSCR,
|
||||
MO(_AL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PAUS,
|
||||
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, XXXXXXX, XXXXXXX, KC_HOME,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MUTE, KC_VOLU, KC_END,
|
||||
XXXXXXX, XXXXXXX, KC_MENU, M(1), M(1), M(1), XXXXXXX, XXXXXXX, XXXXXXX, KC_WBAK, KC_VOLD, KC_WFWD
|
||||
XXXXXXX, XXXXXXX, KC_MENU, KC_SP4, KC_SP4, KC_SP4, XXXXXXX, XXXXXXX, XXXXXXX, KC_WBAK, KC_VOLD, KC_WFWD
|
||||
),
|
||||
|
||||
/* _AL: Adjust Layer.
|
||||
* Default keymap, RGB Underglow, LED backlight, and Dynamic Macro settings.
|
||||
/*#### _AL: Adjust Layer - Keymap select, RGB Underglow, LED backlight, and Dynamic Macro settings.
|
||||
* .---------------------------------------------------------------.
|
||||
* |Ver|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| |MP1|
|
||||
* |Rev|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| |MP1|
|
||||
* |---------------------------------------------------------------|
|
||||
* |Fn_AL|_BL|_WL| | | | | | | | | | | |MR1|
|
||||
* |---------------------------------------------------------------|
|
||||
@@ -170,7 +163,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* *---------------------------------------------------------------*
|
||||
*/
|
||||
[_AL] = LAYOUT(
|
||||
F(0), RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, XXXXXXX, BL_TOGG, BL_DEC, BL_INC, XXXXXXX, XXXXXXX, KC_DMP1,
|
||||
QMK_REV, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, XXXXXXX, BL_TOGG, BL_DEC, BL_INC, XXXXXXX, XXXXXXX, KC_DMP1,
|
||||
_______, DF(_BL), DF(_WL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMR1,
|
||||
_______, XXXXXXX, XXXXXXX, DF(_DL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMRS,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, DF(_CL), XXXXXXX, DF(_BL), DF(_NL), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DMR2,
|
||||
@@ -178,102 +171,96 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
),
|
||||
};
|
||||
|
||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||
switch(id) {
|
||||
case 0:
|
||||
if (record->event.pressed) {
|
||||
return MACRO(I(0), D(LGUI), T(R), U(LGUI), END);
|
||||
}
|
||||
else {
|
||||
SEND_STRING("chrome.exe https://geekhack.org/index.php?topic=86756.new;topicseen#new\n");
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (record->event.pressed) {
|
||||
return MACRO(I(0), T(SPC), T(SPC), T(SPC), T(SPC), END);
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return MACRO_NONE;
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM fn_actions[] = {
|
||||
[0] = ACTION_FUNCTION(0),
|
||||
};
|
||||
|
||||
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||
switch (id) {
|
||||
case 0:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING ("[QMK:" QMK_KEYBOARD ":" QMK_KEYMAP ":" QMK_VERSION "]");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
backlight_level(0);
|
||||
#endif
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
rgblight_mode(1);
|
||||
rgblight_sethsv(180,100,100);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Runs constantly in the background, in a loop.
|
||||
void matrix_scan_user(void) {
|
||||
uint8_t layer = biton32(layer_state);
|
||||
|
||||
if (current_layer == layer) {
|
||||
}
|
||||
else {
|
||||
current_layer = layer;
|
||||
switch (layer) {
|
||||
case 0:
|
||||
backlight_level(0);
|
||||
rgblight_sethsv(180,100,255);
|
||||
break;
|
||||
case 1:
|
||||
backlight_level(1);
|
||||
rgblight_sethsv(180,95,240);
|
||||
break;
|
||||
case 2:
|
||||
backlight_level(1);
|
||||
rgblight_sethsv(180,90,225);
|
||||
break;
|
||||
case 3:
|
||||
backlight_level(1);
|
||||
rgblight_sethsv(180,85,210);
|
||||
break;
|
||||
case 4:
|
||||
backlight_level(1);
|
||||
rgblight_sethsv(180,80,195);
|
||||
break;
|
||||
case 5:
|
||||
backlight_level(2);
|
||||
rgblight_sethsv(230,255,255);
|
||||
break;
|
||||
case 6:
|
||||
backlight_level(3);
|
||||
rgblight_sethsv(350,255,255);
|
||||
break;
|
||||
default:
|
||||
backlight_level(0);
|
||||
rgblight_sethsv(180,100,100);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
// Enable Dynamic Macros.
|
||||
switch (keycode) {
|
||||
case QMK_REV:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP "@" QMK_VERSION ":" QMK_BUILDDATE);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_WEB:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(SS_LGUI("r"));
|
||||
wait_ms(100);
|
||||
SEND_STRING("chrome.exe https://geekhack.org/index.php?topic=86756.new;topicseen#new\n");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_SP4:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING (" ");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
// Dynamic Macros.
|
||||
if (!process_record_dynamic_macro(keycode, record)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void custom_backlight_level(uint8_t level) {
|
||||
if (level > BACKLIGHT_LEVELS)
|
||||
level = BACKLIGHT_LEVELS;
|
||||
backlight_config.level = level;
|
||||
backlight_config.enable = !!backlight_config.level;
|
||||
backlight_set(backlight_config.level);
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
custom_backlight_level(0);
|
||||
#endif
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
rgblight_mode(1);
|
||||
rgblight_sethsv_noeeprom(180,100,100);
|
||||
#endif
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
||||
}
|
||||
|
||||
uint32_t layer_state_set_user(uint32_t state) {
|
||||
switch (biton32(state)) {
|
||||
case _BL:
|
||||
custom_backlight_level(0);
|
||||
rgblight_sethsv_noeeprom(180,100,255);
|
||||
break;
|
||||
case _WL:
|
||||
custom_backlight_level(1);
|
||||
rgblight_sethsv_noeeprom(180,95,240);
|
||||
break;
|
||||
case _NL:
|
||||
custom_backlight_level(1);
|
||||
rgblight_sethsv_noeeprom(180,90,225);
|
||||
break;
|
||||
case _DL:
|
||||
custom_backlight_level(1);
|
||||
rgblight_sethsv_noeeprom(180,85,210);
|
||||
break;
|
||||
case _CL:
|
||||
custom_backlight_level(1);
|
||||
rgblight_sethsv_noeeprom(180,80,195);
|
||||
break;
|
||||
case _FL:
|
||||
custom_backlight_level(2);
|
||||
rgblight_sethsv_noeeprom(230,255,255);
|
||||
break;
|
||||
case _AL:
|
||||
custom_backlight_level(3);
|
||||
rgblight_sethsv_noeeprom(350,255,255);
|
||||
break;
|
||||
default:
|
||||
custom_backlight_level(0);
|
||||
rgblight_sethsv_noeeprom(180,100,100);
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
|
||||
}
|
||||
|
||||
@@ -13,76 +13,74 @@ make jc65/v32u4:gam3cat
|
||||
(Caps+TAB+( )): (Q)WERTY, (W)orkman, (N)orman, (D)vorak, (C)olmak
|
||||
|
||||
### Base Layer Options:
|
||||
#### _BL: Base Layer, mostly standard 65% QWERTY layout.
|
||||
#### _BL: Base Layer - Mostly standard 65% QWERTY layout.
|
||||
.---------------------------------------------------------------.
|
||||
|GrE| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |Ins|
|
||||
|GrE|1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backsp |Ins|
|
||||
|---------------------------------------------------------------|
|
||||
|Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|Del|
|
||||
|Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Del|
|
||||
|---------------------------------------------------------------|
|
||||
|FnCaps| A| S| D| F| G| H| J| K| L| ;| '|Return |PgU|
|
||||
|FnCaps|A |S |D |F |G |H |J |K |L |; |' |Return |PgU|
|
||||
|---------------------------------------------------------------|
|
||||
|Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |Up |PgD|
|
||||
|Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |Up |PgD|
|
||||
|---------------------------------------------------------------|
|
||||
|Ctrl|Gui |Alt | Space |RAlt |Ctrl |Lft|Dwn|Rgt|
|
||||
*---------------------------------------------------------------*
|
||||
|
||||
#### _WL: Workman Layer.
|
||||
.---------------------------------------------------------------.
|
||||
| | | | | | | | | | | | -| =| | |
|
||||
| | | | | | | | | | | |- |= | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | Q| D| R| W| B| J| F| U| P| ;| [| ]| \| |
|
||||
| |Q |D |R |W |B |J |F |U |P |; |[ |] |\ | |
|
||||
|---------------------------------------------------------------|
|
||||
| | A| S| H| T| G| Y| N| E| O| I| '| | |
|
||||
| |A |S |H |T |G |Y |N |E |O |I |' | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | Z| X| M| C| V| K| L| ,| .| /| | | |
|
||||
| |Z |X |M |C |V |K |L |, |. |/ | | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | | | | | | | | |
|
||||
*---------------------------------------------------------------*
|
||||
|
||||
#### _NL: Norman Layer.
|
||||
.---------------------------------------------------------------.
|
||||
| | | | | | | | | | | | -| =| | |
|
||||
| | | | | | | | | | | |- |= | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | Q| W| D| F| K| J| U| R| L| ;| [| ]| \| |
|
||||
| |Q |W |D |F |K |J |U |R |L |; |[ |] |\ | |
|
||||
|---------------------------------------------------------------|
|
||||
| | A| S| E| T| G| Y| N| I| O| H| '| | |
|
||||
| |A |S |E |T |G |Y |N |I |O |H |' | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | Z| X| C| V| B| P| M| ,| .| /| | | |
|
||||
| |Z |X |C |V |B |P |M |, |. |/ | | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | | | | | | | | |
|
||||
*---------------------------------------------------------------*
|
||||
|
||||
#### _DL: Dvorak Layer.
|
||||
.---------------------------------------------------------------.
|
||||
| | | | | | | | | | | | [| ]| | |
|
||||
| | | | | | | | | | | |[ |] | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | '| ,| .| P| Y| F| G| C| R| L| /| =| \| |
|
||||
| |' |, |. |P |Y |F |G |C |R |L |/ |= |\ | |
|
||||
|---------------------------------------------------------------|
|
||||
| | A| O| E| U| I| D| H| T| N| S| -| | |
|
||||
| |A |O |E |U |I |D |H |T |N |S |- | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | ;| Q| J| K| X| B| M| W| V| Z| | | |
|
||||
| |; |Q |J |K |X |B |M |W |V |Z | | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | | | | | | | | |
|
||||
*---------------------------------------------------------------*
|
||||
|
||||
#### _CL: Colmak Layer.
|
||||
.---------------------------------------------------------------.
|
||||
| | | | | | | | | | | | -| =| | |
|
||||
| | | | | | | | | | | |- |= | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | Q| W| F| P| G| J| L| U| Y| ;| [| ]| \| |
|
||||
| |Q |W |F |P |G |J |L |U |Y |; |[ |] |\ | |
|
||||
|---------------------------------------------------------------|
|
||||
| | A| R| S| T| D| H| N| E| I| O| '| | |
|
||||
| |A |R |S |T |D |H |N |E |I |O |' | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | Z| X| C| V| B| K| M| ,| .| /| | | |
|
||||
| |Z |X |C |V |B |K |M |, |. |/ | | | |
|
||||
|---------------------------------------------------------------|
|
||||
| | | | | | | | | |
|
||||
*---------------------------------------------------------------*
|
||||
|
||||
### Function Layer: (hold Caps to access)
|
||||
M0 opens Chrome
|
||||
#### _FL: Function Layer.
|
||||
.---------------------------------------------------------------.
|
||||
|M0 | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|SLock |PSc|
|
||||
|Web|F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12|SLock |PSc|
|
||||
|---------------------------------------------------------------|
|
||||
|Fn_AL| | | | | | | | | | | | | |Pau|
|
||||
|---------------------------------------------------------------|
|
||||
@@ -90,14 +88,12 @@ make jc65/v32u4:gam3cat
|
||||
|---------------------------------------------------------------|
|
||||
| | | | | | | | | | | |VlMute|VlU|End|
|
||||
|---------------------------------------------------------------|
|
||||
| | |Menu| | | |WBk|VlD|WFw|
|
||||
| | |Menu| SP4 | | |WBk|VlD|WFw|
|
||||
*---------------------------------------------------------------*
|
||||
|
||||
### Adjust Layer: (hold Caps+TAB to access)
|
||||
Default keymap, RGB Underglow, LED backlight, and Dynamic Macro settings.
|
||||
#### _AL: Adjust Layer.
|
||||
#### _AL: Adjust Layer - Keymap select, RGB Underglow, LED backlight, and Dynamic Macro settings.
|
||||
.---------------------------------------------------------------.
|
||||
|Ver|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| |MP1|
|
||||
|Rev|Tog|Mod|H- |H+ |S- |S+ |V- |V+ | |BLT|BL-|BL+| |MP1|
|
||||
|---------------------------------------------------------------|
|
||||
|Fn_AL|_BL|_WL| | | | | | | | | | | |MR1|
|
||||
|---------------------------------------------------------------|
|
||||
|
||||
@@ -1,6 +1,24 @@
|
||||
ifndef QUANTUM_DIR
|
||||
include ../../../../Makefile
|
||||
endif
|
||||
|
||||
BACKLIGHT_ENABLE=yes
|
||||
//TAP_DANCE_ENABLE=yes
|
||||
# Build Options
|
||||
# change to "no" to disable the options, or define them in the Makefile in
|
||||
# the appropriate keymap folder that will get included automatically
|
||||
#
|
||||
TAP_DANCE_ENABLE = no # Enable TapDance functionality
|
||||
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+1500)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
NKRO_ENABLE = yes # Nkey Rollover - If this doesn't work, add this to config.h: #define FORCE_NKRO
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
MIDI_ENABLE = no # MIDI controls
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
UNICODEMAP_ENABLE = no # Enable extended unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
FAUXCLICKY_ENABLE = no # Uses buzzer to emulate clicky switches. By default, uses the C6 pin, same as AUDIO_ENABLE.
|
||||
#VARIABLE_TRACE = no # Use this to debug changes to variable values
|
||||
API_SYSEX_ENABLE = no # This enables using the Quantum SYSEX API to send strings(+5390)
|
||||
KEY_LOCK_ENABLE = no # This enables key lock(+260)
|
||||
SPLIT_KEYBOARD = no # This enables split keyboard support and includes all necessary files located at quantum/split_common
|
||||
|
||||
@@ -40,7 +40,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_ESC, DE_Q, DE_W, DE_E, DE_R, DE_T, DE_Z, DE_U, DE_I, DE_O, DE_P, KC_BSPC, \
|
||||
KC_TAB, DE_A, DE_S, DE_D, DE_F, DE_G, DE_H, DE_J, DE_K, DE_L, DE_PLUS, DE_HASH, \
|
||||
KC_LSFT, DE_Y, DE_X, DE_C, DE_V, DE_B, DE_N, DE_M, DE_COMM, DE_DOT, DE_MINS, KC_ENT , \
|
||||
KC_LCTL, KC_LALT, DE_ALGR, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
KC_LCTL, KC_LALT, KC_ALGR, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
),
|
||||
|
||||
/* Lower
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#include "m10a.h"
|
||||
#include "action_layer.h"
|
||||
#include "eeconfig.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "version.h"
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
@@ -18,46 +16,48 @@ enum layers {
|
||||
_L9
|
||||
};
|
||||
|
||||
enum m10a_keycodes {
|
||||
enum custom_keycodes {
|
||||
DYNAMIC_MACRO_RANGE = SAFE_RANGE,
|
||||
QMK_REV,
|
||||
KC_WEB,
|
||||
KC_WCLS
|
||||
};
|
||||
|
||||
extern backlight_config_t backlight_config;
|
||||
|
||||
#include "dynamic_macro.h"
|
||||
#define _______ KC_TRNS
|
||||
#define XXXXXXX KC_NO
|
||||
#define FN_ZERO LT(_L9, KC_0)
|
||||
#define FN_ZERO LT(_L9, KC_KP_0)
|
||||
#define KC_DMR1 DYN_REC_START1
|
||||
#define KC_DMR2 DYN_REC_START2
|
||||
#define KC_DMP1 DYN_MACRO_PLAY1
|
||||
#define KC_DMP2 DYN_MACRO_PLAY2
|
||||
#define KC_DMRS DYN_REC_STOP
|
||||
|
||||
static uint8_t current_layer;
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* .-----------. .-----------. .-----------. .-----------. .-----------.
|
||||
* | 7| 8| 9| | +| -| *| | ^| &| !| |VLU|Ver|WFD| |VLU|NXT|FFD|
|
||||
* |-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
* | 4| 5| 6| | /| %| ,| | D| E| F| |MUT|C-W|CHR| |MUT|STP|PLY|
|
||||
* |-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
* | 1| 2| 3| | .| =|Ent| | A| B| C| |VLD|CMP|WBK| |VLD|PRV|RWD|
|
||||
* |-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
* |L0 | _L9/0| |L1 | _L9 | |L2 | _L9 | |L3 | _L9 | |L4 | _L9 |
|
||||
* *-----------* *-----------* *-----------* *-----------* *-----------*
|
||||
* .-----------. .-----------. .-----------. .-----------. .-----------.
|
||||
* | | | | | | | | |MP1| |MP2| | | |RST| |_L6|_L7|_L8|
|
||||
* |-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
* | | | | | | | | | |MRS| | | | | | |_L3|_L4|_L5|
|
||||
* |-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
* | | | | | | | | |MR1| |MR2| | | | | |_L0|_L1|_L2|
|
||||
* |-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
* |L5 | _L9 | |L6 | _L9 | |L7 | _L9 | |L8 | _L9 | |L9 | |
|
||||
* *-----------* *-----------* *-----------* *-----------* *-----------*
|
||||
/*## Layout Config:
|
||||
* .-----------. .-----------. .-----------. .-----------. .-----------.
|
||||
* |7 |8 |9 | |+ |- |* | |^ |& |! | |VLU|Ver|WFD| |VLU|NXT|FFD|
|
||||
* |-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
* |4 |5 |6 | |/ |% |, | |D |E |F | |MUT|C-W|CHR| |MUT|STP|PLY|
|
||||
* |-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
* |1 |2 |3 | |. |= |Ent| |A |B |C | |VLD|CMP|WBK| |VLD|PRV|RWD|
|
||||
* |-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
* |#L0|_L9/0 | |#L1|_L9 | |#L2|_L9 | |#L3|_L9 | |#L4|_L9 |
|
||||
* *-----------* *-----------* *-----------* *-----------* *-----------*
|
||||
* .-----------. .-----------. .-----------. .-----------. .-----------.
|
||||
* | | | | | | | | |MP1| |MP2| | | |RST| |_L6|_L7|_L8|
|
||||
* |-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
* | | | | | | | | | |MRS| | | | | | |_L3|_L4|_L5|
|
||||
* |-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
* | | | | | | | | |MR1| |MR2| | | | | |_L0|_L1|_L2|
|
||||
* |-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
* |#L5|_L9 | |#L6|_L9 | |#L7|_L9 | |#L8|_L9 | |#L9| |
|
||||
* *-----------* *-----------* *-----------* *-----------* *-----------*
|
||||
*/
|
||||
[_L0] = {{KC_7, KC_8, KC_9 }, {KC_4, KC_5, KC_6 }, {KC_1, KC_2, KC_3 }, {XXXXXXX, XXXXXXX, FN_ZERO}},
|
||||
[_L0] = {{KC_KP_7, KC_KP_8, KC_KP_9}, {KC_KP_4, KC_KP_5, KC_KP_6}, {KC_KP_1, KC_KP_2, KC_KP_3}, {XXXXXXX, XXXXXXX, FN_ZERO}},
|
||||
[_L1] = {{KC_PPLS, KC_PMNS, KC_PAST}, {KC_PSLS, KC_PERC, KC_COMM}, {KC_PDOT, KC_EQL, KC_PENT}, {XXXXXXX, XXXXXXX, MO(_L9)}},
|
||||
[_L2] = {{KC_CIRC, KC_AMPR, KC_EXLM}, {S(KC_D), S(KC_E), S(KC_F)}, {S(KC_A), S(KC_B), S(KC_C)}, {XXXXXXX, XXXXXXX, MO(_L9)}},
|
||||
[_L3] = {{KC_VOLU, F(0), KC_WFWD}, {KC_MUTE, M(1), M(0) }, {KC_VOLD, KC_MYCM, KC_WBAK}, {XXXXXXX, XXXXXXX, MO(_L9)}},
|
||||
[_L3] = {{KC_VOLU, QMK_REV, KC_WFWD}, {KC_MUTE, KC_WCLS, KC_WEB }, {KC_VOLD, KC_MYCM, KC_WBAK}, {XXXXXXX, XXXXXXX, MO(_L9)}},
|
||||
[_L4] = {{KC_VOLU, KC_MNXT, KC_MFFD}, {KC_MUTE, KC_MSTP, KC_MPLY}, {KC_VOLD, KC_MPRV, KC_MRWD}, {XXXXXXX, XXXXXXX, MO(_L9)}},
|
||||
[_L5] = {{_______, _______, _______}, {_______, _______, _______}, {_______, _______, _______}, {XXXXXXX, XXXXXXX, MO(_L9)}},
|
||||
[_L6] = {{_______, _______, _______}, {_______, _______, _______}, {_______, _______, _______}, {XXXXXXX, XXXXXXX, MO(_L9)}},
|
||||
@@ -66,96 +66,93 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_L9] = {{DF(_L6), DF(_L7), DF(_L8)}, {DF(_L3), DF(_L4), DF(_L5)}, {DF(_L0), DF(_L1), DF(_L2)}, {XXXXXXX, XXXXXXX, _______}},
|
||||
};
|
||||
|
||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||
switch(id) {
|
||||
case 0:
|
||||
if (record->event.pressed) {
|
||||
return MACRO(I(10), D(LGUI), T(R), U(LGUI), END);
|
||||
}
|
||||
else {
|
||||
SEND_STRING("chrome.exe\n");
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (record->event.pressed) {
|
||||
return MACRO(I(10), D(LCTL), T(W), U(LCTL), END);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return MACRO_NONE;
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM fn_actions[] = {
|
||||
[0] = ACTION_FUNCTION(0),
|
||||
};
|
||||
|
||||
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||
switch (id) {
|
||||
case 0:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING ("[Keyboard: " QMK_KEYBOARD "] -- [QMK Version: " QMK_VERSION "] -- [Keymap: " QMK_KEYMAP "]");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
backlight_level(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Runs constantly in the background, in a loop.
|
||||
void matrix_scan_user(void) {
|
||||
uint8_t layer = biton32(layer_state);
|
||||
|
||||
if (current_layer == layer) {
|
||||
}
|
||||
else {
|
||||
current_layer = layer;
|
||||
switch (layer) {
|
||||
case 0:
|
||||
backlight_level(0);
|
||||
break;
|
||||
case 1:
|
||||
backlight_level(1);
|
||||
break;
|
||||
case 2:
|
||||
backlight_level(2);
|
||||
break;
|
||||
case 3:
|
||||
backlight_level(3);
|
||||
break;
|
||||
case 4:
|
||||
backlight_level(4);
|
||||
break;
|
||||
case 5:
|
||||
backlight_level(5);
|
||||
break;
|
||||
case 6:
|
||||
backlight_level(6);
|
||||
break;
|
||||
case 7:
|
||||
backlight_level(6);
|
||||
break;
|
||||
case 8:
|
||||
backlight_level(6);
|
||||
break;
|
||||
case 9:
|
||||
backlight_level(0);
|
||||
break;
|
||||
default:
|
||||
backlight_level(0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
// Enable Dynamic Macros.
|
||||
switch (keycode) {
|
||||
case QMK_REV:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP "@" QMK_VERSION ":" QMK_BUILDDATE);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_WEB:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(SS_LGUI("r"));
|
||||
wait_ms(100);
|
||||
SEND_STRING("chrome.exe\n");
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_WCLS:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING (SS_LCTRL("w"));
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
// Dynamic Macros.
|
||||
if (!process_record_dynamic_macro(keycode, record)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void custom_backlight_level(uint8_t level) {
|
||||
if (level > BACKLIGHT_LEVELS)
|
||||
level = BACKLIGHT_LEVELS;
|
||||
backlight_config.level = level;
|
||||
backlight_config.enable = !!backlight_config.level;
|
||||
backlight_set(backlight_config.level);
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
custom_backlight_level(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
||||
}
|
||||
|
||||
uint32_t layer_state_set_user(uint32_t state) {
|
||||
switch (biton32(state)) {
|
||||
case _L0:
|
||||
custom_backlight_level(0);
|
||||
break;
|
||||
case _L1:
|
||||
custom_backlight_level(1);
|
||||
break;
|
||||
case _L2:
|
||||
custom_backlight_level(2);
|
||||
break;
|
||||
case _L3:
|
||||
custom_backlight_level(3);
|
||||
break;
|
||||
case _L4:
|
||||
custom_backlight_level(4);
|
||||
break;
|
||||
case _L5:
|
||||
custom_backlight_level(5);
|
||||
break;
|
||||
case _L6:
|
||||
custom_backlight_level(6);
|
||||
break;
|
||||
case _L7:
|
||||
custom_backlight_level(6);
|
||||
break;
|
||||
case _L8:
|
||||
custom_backlight_level(6);
|
||||
break;
|
||||
case _L9:
|
||||
custom_backlight_level(0);
|
||||
break;
|
||||
default:
|
||||
custom_backlight_level(0);
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
|
||||
}
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
make m10a:gam3cat
|
||||
## Layout Config:
|
||||
.-----------. .-----------. .-----------. .-----------. .-----------.
|
||||
| 7| 8| 9| | +| -| *| | ^| &| !| |VLU|Ver|WFD| |VLU|NXT|FFD|
|
||||
|7 |8 |9 | |+ |- |* | |^ |& |! | |VLU|Ver|WFD| |VLU|NXT|FFD|
|
||||
|-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
| 4| 5| 6| | /| %| ,| | D| E| F| |MUT|C-W|CHR| |MUT|STP|PLY|
|
||||
|4 |5 |6 | |/ |% |, | |D |E |F | |MUT|C-W|CHR| |MUT|STP|PLY|
|
||||
|-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
| 1| 2| 3| | .| =|Ent| | A| B| C| |VLD|CMP|WBK| |VLD|PRV|RWD|
|
||||
|1 |2 |3 | |. |= |Ent| |A |B |C | |VLD|CMP|WBK| |VLD|PRV|RWD|
|
||||
|-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
|L0 | _L9/0| |L1 | _L9 | |L2 | _L9 | |L3 | _L9 | |L4 | _L9 |
|
||||
|#L0|_L9/0 | |#L1|_L9 | |#L2|_L9 | |#L3|_L9 | |#L4|_L9 |
|
||||
*-----------* *-----------* *-----------* *-----------* *-----------*
|
||||
.-----------. .-----------. .-----------. .-----------. .-----------.
|
||||
| | | | | | | | |MP1| |MP2| | | |RST| |_L6|_L7|_L8|
|
||||
@@ -17,5 +17,5 @@ make m10a:gam3cat
|
||||
|-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
| | | | | | | | |MR1| |MR2| | | | | |_L0|_L1|_L2|
|
||||
|-----------| |-----------| |-----------| |-----------| |-----------|
|
||||
|L5 | _L9 | |L6 | _L9 | |L7 | _L9 | |L8 | _L9 | |L9 | |
|
||||
|#L5|_L9 | |#L6|_L9 | |#L7|_L9 | |#L8|_L9 | |#L9| |
|
||||
*-----------* *-----------* *-----------* *-----------* *-----------*
|
||||
|
||||
@@ -1,3 +1,24 @@
|
||||
ifndef QUANTUM_DIR
|
||||
include ../../../../Makefile
|
||||
endif
|
||||
# Build Options
|
||||
# change to "no" to disable the options, or define them in the Makefile in
|
||||
# the appropriate keymap folder that will get included automatically
|
||||
#
|
||||
TAP_DANCE_ENABLE = no # Enable TapDance functionality
|
||||
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+1500)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
NKRO_ENABLE = yes # Nkey Rollover - If this doesn't work, add this to config.h: #define FORCE_NKRO
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
MIDI_ENABLE = no # MIDI controls
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
UNICODEMAP_ENABLE = no # Enable extended unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
FAUXCLICKY_ENABLE = no # Uses buzzer to emulate clicky switches. By default, uses the C6 pin, same as AUDIO_ENABLE.
|
||||
#VARIABLE_TRACE = no # Use this to debug changes to variable values
|
||||
API_SYSEX_ENABLE = no # This enables using the Quantum SYSEX API to send strings(+5390)
|
||||
KEY_LOCK_ENABLE = no # This enables key lock(+260)
|
||||
SPLIT_KEYBOARD = no # This enables split keyboard support and includes all necessary files located at quantum/split_common
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#define _FN1 2
|
||||
#define _FN2 3
|
||||
#define _WIN 1
|
||||
#define _FN3 4
|
||||
//Tap Dance Declarations
|
||||
enum
|
||||
{
|
||||
@@ -22,10 +23,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
LT(OSL(2), KC_TAB), KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
GUI_T(KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, LT(3, KC_ENT),
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, TD(TD_DOTCOM), OSL(2), OSM(MOD_RSFT),
|
||||
KC_ESC, KC_LALT, KC_LCTL, KC_SPC, KC_RGUI, RGB_TOG),
|
||||
KC_ESC, KC_LALT, KC_LCTL, KC_SPC, KC_RGUI, MO(4)),
|
||||
[_WIN] = LAYOUT_625_space(
|
||||
LT(OSL(2), KC_TAB), KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
CTL_T(KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, LT(3, KC_ENT),
|
||||
CTL_T(KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, LT(4, KC_ENT),
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, TD(TD_DOTCOM), OSL(2), OSM(MOD_RSFT),
|
||||
KC_ESC, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, RGB_TOG),
|
||||
[_FN1] = LAYOUT_625_space(
|
||||
@@ -35,14 +36,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
|
||||
[_FN2] = LAYOUT_625_space(
|
||||
KC_PWR, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, RESET,
|
||||
MT(KC_LGUI, KC_ESC), KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, TG(1), KC_TRNS, KC_TRNS, KC_F11, KC_F12, KC_TRNS,
|
||||
KC_PWR, KC_BRID, KC_BRIU, KC_NO, KC_NO, KC_NO, KC_NO, KC_MRWD, KC_MPLY, KC_MFFD, KC_MUTE, RESET,
|
||||
MT(KC_LGUI, KC_ESC), KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, TG(1), KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_TRNS,
|
||||
KC_TRNS, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, KC_TRNS, KC_TRNS,
|
||||
KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
|
||||
[_FN3] = LAYOUT_625_space(
|
||||
KC_PWR, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, RESET,
|
||||
MT(KC_LGUI, KC_ESC), KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, TG(1), KC_TRNS, KC_TRNS, KC_F11, KC_F12, KC_TRNS,
|
||||
KC_TRNS, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, KC_TRNS, KC_TRNS,
|
||||
KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -234,7 +234,7 @@ void rgblight_step_reverse(void) {
|
||||
rgblight_mode(mode);
|
||||
}
|
||||
|
||||
uint32_t rgblight_get_mode(void) {
|
||||
uint8_t rgblight_get_mode(void) {
|
||||
if (!rgblight_config.enable) {
|
||||
return false;
|
||||
}
|
||||
|
||||
19
keyboards/namecard2x4/keymaps/brainfuck/config.h
Normal file
19
keyboards/namecard2x4/keymaps/brainfuck/config.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/* Copyright 2018 takashiski
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// place overrides here
|
||||
59
keyboards/namecard2x4/keymaps/brainfuck/keymap.c
Normal file
59
keyboards/namecard2x4/keymaps/brainfuck/keymap.c
Normal file
@@ -0,0 +1,59 @@
|
||||
/* Copyright 2018 takashiski
|
||||
*
|
||||
* 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 "keymap_jp.h"
|
||||
|
||||
enum Layer
|
||||
{
|
||||
JP,
|
||||
EN,
|
||||
CONFIG
|
||||
};
|
||||
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[JP] = LAYOUT(
|
||||
JP_LT,JP_GT,JP_PLUS,JP_MINS,\
|
||||
LT(CONFIG,JP_DOT),JP_COMM,JP_LBRC,LT(CONFIG,JP_RBRC)\
|
||||
),
|
||||
[EN] = LAYOUT(
|
||||
KC_LT,KC_GT,KC_PLUS,KC_MINS,\
|
||||
LT(CONFIG,KC_DOT),KC_COMM,KC_LBRC,LT(CONFIG,KC_RBRC)\
|
||||
),
|
||||
[CONFIG]= LAYOUT(
|
||||
KC_NO,DF(JP),DF(JP),KC_NO,\
|
||||
KC_TRNS,DF(EN),DF(JP),KC_TRNS\
|
||||
)
|
||||
|
||||
};
|
||||
|
||||
|
||||
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) {
|
||||
|
||||
}
|
||||
12
keyboards/namecard2x4/keymaps/brainfuck/readme.md
Normal file
12
keyboards/namecard2x4/keymaps/brainfuck/readme.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# keymap for brainfuck
|
||||
|
||||
This keymap is specialized for the brainfuck programming language.
|
||||
|
||||
| < | > | + | - |
|
||||
| . | , | [ | ] |
|
||||
|
||||
and when you hold . or ], change config layer.
|
||||
|
||||
default layer is for JP keyboard(logical pairing).
|
||||
you can choose EN keyboard(typewrite pairing).
|
||||
|
||||
@@ -97,9 +97,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
};
|
||||
|
||||
void matrix_init_keymap(void) {
|
||||
DDRD &= ~(1<<5);
|
||||
PORTD &= ~(1<<5);
|
||||
#ifndef CONVERT_TO_PROTON_C
|
||||
setPinOutput(D5);
|
||||
writePinHigh(D5);
|
||||
|
||||
DDRB &= ~(1<<0);
|
||||
PORTB &= ~(1<<0);
|
||||
setPinOutput(B0);
|
||||
writePinHigh(B0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , NO_AA ,
|
||||
UTILITY, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , NO_OSLH, NO_AE ,
|
||||
KC_LSPO, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , NO_MINS, KC_RSPC,
|
||||
LFT_CTR, KC_LALT, KC_LGUI, NO_AT , ESC_LOW, KC_ENT , KC_SPC , BSP_RAI, _______, NO_ALGR, NO_ASTR, RGT_CTR
|
||||
LFT_CTR, KC_LALT, KC_LGUI, NO_AT , ESC_LOW, KC_ENT , KC_SPC , BSP_RAI, _______, KC_ALGR, NO_ASTR, RGT_CTR
|
||||
),
|
||||
|
||||
/* Raise
|
||||
|
||||
@@ -46,7 +46,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, NO_AM, \
|
||||
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, NO_AE, NO_OSLH, \
|
||||
KC_LSFT, NO_LESS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_DOT, KC_COMM, NO_MINS, \
|
||||
KC_LCTL, KC_LALT, KC_LGUI, NO_ALGR, LOWER, KC_SPC, KC_ENT, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
KC_LCTL, KC_LALT, KC_LGUI, KC_ALGR, LOWER, KC_SPC, KC_ENT, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
),
|
||||
|
||||
/* Lower
|
||||
@@ -109,7 +109,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, NO_AM, \
|
||||
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, NO_AE, NO_OSLH, \
|
||||
KC_LSFT, NO_LESS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_DOT, KC_COMM, NO_MINS, \
|
||||
KC_LCTL, KC_LALT, KC_LGUI, NO_ALGR, MLOWER, KC_SPC, KC_ENT, MRAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
KC_LCTL, KC_LALT, KC_LGUI, KC_ALGR, MLOWER, KC_SPC, KC_ENT, MRAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
),
|
||||
|
||||
/* Mac Lower
|
||||
|
||||
@@ -35,7 +35,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, DE_Z, KC_U, KC_I, KC_O, KC_P, DE_UE, DE_PLUS, \
|
||||
FN_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, DE_OE, DE_AE, DE_HASH, KC_ENT, \
|
||||
KC_LSFT, DE_LESS, DE_Y, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, DE_MINS, KC_RSFT, KC_DELETE, \
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, DE_ALGR, KC_RGUI, KC_APP, KC_RCTL),
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, KC_ALGR, KC_RGUI, KC_APP, KC_RCTL),
|
||||
|
||||
|
||||
/* Keymap _FNK: Function Keys
|
||||
|
||||
56
keyboards/snagpad/config.h
Normal file
56
keyboards/snagpad/config.h
Normal file
@@ -0,0 +1,56 @@
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0xFEED
|
||||
#define PRODUCT_ID 0x6060
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER Flehrad
|
||||
#define PRODUCT Snagpad
|
||||
#define DESCRIPTION A Pro Micro-Powered 5x4 macropad/numpad
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 5
|
||||
#define MATRIX_COLS 4
|
||||
|
||||
/* key matrix pins */
|
||||
#define MATRIX_ROW_PINS { D1, D0, D4, C6, D7 }
|
||||
#define MATRIX_COL_PINS { F4, F5, F6, F7 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* number of backlight levels */
|
||||
|
||||
#ifdef BACKLIGHT_PIN
|
||||
#define BACKLIGHT_LEVELS 3
|
||||
#endif
|
||||
|
||||
/* Set 0 if debouncing isn't needed */
|
||||
#define DEBOUNCING_DELAY 5
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* key combination for command */
|
||||
#define IS_COMMAND() ( \
|
||||
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
|
||||
)
|
||||
|
||||
/* prevent stuck modifiers */
|
||||
//#define STRICT_LAYER_RELEASE
|
||||
|
||||
|
||||
#ifdef RGB_DI_PIN
|
||||
#define RGBLIGHT_ANIMATIONS
|
||||
#define RGBLED_NUM 0
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#endif
|
||||
|
||||
17
keyboards/snagpad/info.json
Normal file
17
keyboards/snagpad/info.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"keyboard_name": "Snagpad",
|
||||
"url": "",
|
||||
"maintainer": "Flehrad",
|
||||
|
||||
"width": 4,
|
||||
"height": 5,
|
||||
"layouts": {
|
||||
"LAYOUT_ortho_5x4": {
|
||||
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":0, "y":4}, {"x":1, "y":4}, {"x":2, "y":4}, {"x":3, "y":4}]
|
||||
},
|
||||
"LAYOUT_numpad_5x4": {
|
||||
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1, "h":2}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3, "h":2}, {"x":0, "y":4, "w":2}, {"x":2, "y":4}]
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
63
keyboards/snagpad/keymaps/default/keymap.c
Normal file
63
keyboards/snagpad/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,63 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
LAYOUT_ortho_5x4(
|
||||
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||
KC_P7, KC_P8, KC_P9, KC_PPLS,
|
||||
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||
KC_P1, KC_P2, KC_P3, KC_PENT,
|
||||
KC_P0, KC_P0, KC_PDOT, KC_PENT),
|
||||
|
||||
LAYOUT_numpad_5x4(
|
||||
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||
KC_P7, KC_P8, KC_P9,
|
||||
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||
KC_P1, KC_P2, KC_P3,
|
||||
KC_P0, KC_PDOT, KC_PENT),
|
||||
};
|
||||
|
||||
|
||||
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) {
|
||||
|
||||
if (usb_led & (1 << USB_LED_NUM_LOCK)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
if (usb_led & (1 << USB_LED_COMPOSE)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
if (usb_led & (1 << USB_LED_KANA)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
201
keyboards/snagpad/license
Normal file
201
keyboards/snagpad/license
Normal file
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
21
keyboards/snagpad/readme.md
Normal file
21
keyboards/snagpad/readme.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Snagpad
|
||||
QMK for Snagpad
|
||||
|
||||
This PCB can be used as a standard numpad, or a ortho 5x4 macropad.
|
||||
|
||||
For QMK Configurator, the info.json is utilised.
|
||||
- For 2U keys on numpad, the first 1u row/column key assignment is the same as the 2u position.
|
||||
|
||||
Build requires a pro micro.
|
||||
|
||||
Can be built as single PCB with custom case, or as two PCB style with standoffs.
|
||||
|
||||
If you like this simple PCB and want to make a donation, you can at https://paypal.me/theboardpodcast
|
||||
|
||||
Check out our:
|
||||
|
||||
YouTube (https://www.youtube.com/channel/UCg98oJZNffR9nDLJNkorjqw)
|
||||
|
||||
Podcast (www.libsyn.com/theboardpodcast)
|
||||
|
||||
Patreon (www.patreon.com/theboardpodcast)
|
||||
65
keyboards/snagpad/rules.mk
Normal file
65
keyboards/snagpad/rules.mk
Normal file
@@ -0,0 +1,65 @@
|
||||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Processor frequency.
|
||||
# This will define a symbol, F_CPU, in all source code files equal to the
|
||||
# processor frequency in Hz. You can then use this symbol in your source code to
|
||||
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
|
||||
# automatically to create a 32-bit value in your source code.
|
||||
#
|
||||
# This will be an integer division of F_USB below, as it is sourced by
|
||||
# F_USB after it has run through any CPU prescalers. Note that this value
|
||||
# does not *change* the processor frequency - it should merely be updated to
|
||||
# reflect the processor speed set externally so that the code can use accurate
|
||||
# software delays.
|
||||
F_CPU = 16000000
|
||||
|
||||
#
|
||||
# LUFA specific
|
||||
#
|
||||
# Target architecture (see library "Board Types" documentation).
|
||||
ARCH = AVR8
|
||||
|
||||
# Input clock frequency.
|
||||
# This will define a symbol, F_USB, in all source code files equal to the
|
||||
# input clock frequency (before any prescaling is performed) in Hz. This value may
|
||||
# differ from F_CPU if prescaling is used on the latter, and is required as the
|
||||
# raw input clock is fed directly to the PLL sections of the AVR for high speed
|
||||
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
|
||||
# at the end, this will be done automatically to create a 32-bit value in your
|
||||
# source code.
|
||||
#
|
||||
# If no clock division is performed on the input clock inside the AVR (via the
|
||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||
F_USB = $(F_CPU)
|
||||
|
||||
# Interrupt driven control endpoint task(+60)
|
||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||
|
||||
# Bootloader selection
|
||||
# Teensy halfkay
|
||||
# Pro Micro caterina
|
||||
# Atmel DFU atmel-dfu
|
||||
# LUFA DFU lufa-dfu
|
||||
# QMK DFU qmk-dfu
|
||||
# atmega32a bootloadHID
|
||||
BOOTLOADER = caterina
|
||||
|
||||
# Boot Section Size in *bytes*
|
||||
# OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
||||
|
||||
|
||||
# Build Options
|
||||
# comment out to disable the options.
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
NKRO_ENABLE = yes # USB 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
|
||||
AUDIO_ENABLE = no
|
||||
RGBLIGHT_ENABLE = no
|
||||
LAYOUTS = ortho_5x4 numpad_5x4
|
||||
1
keyboards/snagpad/snagpad.c
Normal file
1
keyboards/snagpad/snagpad.c
Normal file
@@ -0,0 +1 @@
|
||||
#include "snagpad.h"
|
||||
30
keyboards/snagpad/snagpad.h
Normal file
30
keyboards/snagpad/snagpad.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_ortho_5x4( \
|
||||
K00, K01, K02, K03, \
|
||||
K10, K11, K12, K13, \
|
||||
K20, K21, K22, K23, \
|
||||
K30, K31, K32, K33, \
|
||||
K40, K41, K42, K43 \
|
||||
) { \
|
||||
{ K00, K01, K02, K03 }, \
|
||||
{ K10, K11, K12, K13 }, \
|
||||
{ K20, K21, K22, K23 }, \
|
||||
{ K30, K31, K32, K33 }, \
|
||||
{ K40, K41, K42, K43 } \
|
||||
}
|
||||
#define LAYOUT_numpad_5x4( \
|
||||
K00, K01, K02, K03, \
|
||||
K10, K11, K12, \
|
||||
K20, K21, K22, K13, \
|
||||
K30, K31, K32, \
|
||||
K40, K42, K33 \
|
||||
) { \
|
||||
{ K00, K01, K02, K03 }, \
|
||||
{ K10, K11, K12, K13 }, \
|
||||
{ K20, K21, K22, KC_NO }, \
|
||||
{ K30, K31, K32, K33 }, \
|
||||
{ K40, KC_NO, K42, KC_NO } \
|
||||
}
|
||||
@@ -1,69 +1,35 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "kageurufu.h"
|
||||
#ifdef PROTOCOL_LUFA
|
||||
#include "lufa.h"
|
||||
#include "split_util.h"
|
||||
#endif
|
||||
#ifdef SSD1306OLED
|
||||
#include "common/ssd1306.h"
|
||||
#endif
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
//Following line allows macro to read current RGB settings
|
||||
extern rgblight_config_t rgblight_config;
|
||||
#endif
|
||||
|
||||
extern uint8_t is_master;
|
||||
|
||||
// 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.
|
||||
enum layer_number {
|
||||
_QWERTY = 0,
|
||||
_COLEMAK,
|
||||
_FN,
|
||||
_ADJ
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
FN,
|
||||
ADJ,
|
||||
BACKLIT,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
enum macro_keycodes {
|
||||
KC_SAMPLEMACRO,
|
||||
};
|
||||
|
||||
#define FN_ESC LT(_FN, KC_ESC)
|
||||
|
||||
// Define your non-alpha grouping in this define's LAYOUT, and all your BASE_LAYERS will share the same mod/macro columns
|
||||
/* Base Layout
|
||||
* ,------------------------------------------------. ,------------------------------------------------.
|
||||
* | ` | | | | | | | | | | | | | | BkSp |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | Tab | | | | | | | | | | | | | | \ |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | Esc | | | | | | | | | | | | | | ' |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Sft( | | | | | | | | | | | | | | Sft) |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Ctrl | Win | Win | Alt | FN | Space| RGB | | FN | FN | - | = | Down | PgUp | PgDn |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Space| Bksp | | Enter| Space|
|
||||
* `-------------' `--------=----'
|
||||
*/
|
||||
#define BASE_LAYOUT( \
|
||||
/* Base Layout
|
||||
* ,------------------------------------------------. ,------------------------------------------------.
|
||||
* | ` | | | | | | | | | | | | | | BkSp |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | Tab | | | | | | | | | | | | | | \ |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | Esc | | | | | | | | | | | | | | ' |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Sft( | | | | | | | | | | | | | | Sft) |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Ctrl | Win | Win | Alt | FN | Space| RGB | | FN | FN | - | = | Down | PgUp | PgDn |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Space| Bksp | | Enter| Space|
|
||||
* `-------------' `--------=----'
|
||||
*/
|
||||
#define EXPAND_LAYOUT(...) LAYOUT(__VA_ARGS__)
|
||||
#define _BASE_LAYOUT( \
|
||||
_00, _01, _02, _03, _04, _05, _06, _07, _08, _09, \
|
||||
_10, _11, _12, _13, _14, _15, _16, _17, _18, _19, \
|
||||
_20, _21, _22, _23, _24, _25, _26, _27, _28, _29 \
|
||||
) \
|
||||
LAYOUT( \
|
||||
EXPAND_LAYOUT( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, RGB_MOD, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||
KC_TAB, _00, _01, _02, _03, _04, KC_LBRC, KC_RBRC, _05, _06, _07, _08, _09, KC_BSLS, \
|
||||
FN_ESC, _10, _11, _12, _13, _14, RGB_SAI, RGB_VAI, _15, _16, _17, _18, _19, KC_QUOT, \
|
||||
@@ -71,265 +37,43 @@ LAYOUT( \
|
||||
KC_LCTL, KC_LGUI, KC_LGUI, KC_LALT, FN, KC_SPC, FN, FN, KC_SPC, KC_MINS, KC_EQL, KC_DOWN, KC_PGUP, KC_PGDN, \
|
||||
KC_VOLD, KC_VOLU, KC_SPC, KC_BSPC, KC_ENT, KC_SPC, KC_VOLD, KC_VOLU \
|
||||
)
|
||||
#define BASE_LAYOUT(...) _BASE_LAYOUT(__VA_ARGS__)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Qwerty
|
||||
* ,------------------------------------------------. ,------------------------------------------------.
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | | Q | W | E | R | T | | | | Y | U | I | O | P | |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | | A | S | D | F | G | | | | H | J | K | L | ; | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | Z | X | C | V | B | | | | N | M | , | . | / | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | | | | |
|
||||
* `-------------' `--------=----'
|
||||
*/
|
||||
|
||||
[_QWERTY] = BASE_LAYOUT( \
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, \
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, \
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH \
|
||||
_________________QWERTY_L1_________________, _________________QWERTY_R1_________________, \
|
||||
_________________QWERTY_L2_________________, _________________QWERTY_R2_________________, \
|
||||
_________________QWERTY_L3_________________, _________________QWERTY_R3_________________ \
|
||||
),
|
||||
|
||||
/* Colemak
|
||||
* ,------------------------------------------------. ,------------------------------------------------.
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | | Q | W | F | P | B | | | | J | L | U | Y | ; | |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | | A | R | S | T | G | | | | K | N | E | I | O | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | Z | X | C | D | V | [ | | ] | M | H | , | . | / | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | | | | | | | | | | | | | | |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | | | | | |
|
||||
* `-------------' `--------=----'
|
||||
*/
|
||||
[_COLEMAK] = BASE_LAYOUT( \
|
||||
KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, \
|
||||
KC_A, KC_R, KC_S, KC_T, KC_G, KC_K, KC_N, KC_E, KC_I, KC_O, \
|
||||
KC_Z, KC_X, KC_C, KC_D, KC_V, KC_M, KC_H, KC_COMM, KC_DOT, KC_SLSH
|
||||
_________________COLEMAK_L1________________, _________________COLEMAK_R1________________, \
|
||||
_________________COLEMAK_L2________________, _________________COLEMAK_R2________________, \
|
||||
_________________COLEMAK_L3________________, _________________COLEMAK_R3________________ \
|
||||
),
|
||||
|
||||
[_COLEMAK_DH] = BASE_LAYOUT( \
|
||||
______________COLEMAK_MOD_DH_L1____________, ______________COLEMAK_MOD_DH_R1____________, \
|
||||
______________COLEMAK_MOD_DH_L2____________, ______________COLEMAK_MOD_DH_R2____________, \
|
||||
______________COLEMAK_MOD_DH_L3____________, ______________COLEMAK_MOD_DH_R3____________ \
|
||||
),
|
||||
|
||||
/* FN
|
||||
* ,------------------------------------------------. ,------------------------------------------------.
|
||||
* | ~ | ! | @ | # | $ | % | | | | ^ | & | * | ( | ) | |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | ~ | ! | @ | # | $ | % | | | | ^ | & | * | ( | ) | |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | Ctrl | A | O | E | U | I | | | | D | H | T | N | S | / |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Shift| ; | Q | J | K | X | [ | | ] | B | M | W | V | Z |Enter |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | ADJ | Esc | Alt | GUI | EISU |Lower |Space | |Space |FN | KANA | Left | Down | Up |Right |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* |Lower |Space | |Space |FN |
|
||||
* `-------------' `------------'
|
||||
*/
|
||||
[_FN] = LAYOUT( \
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, KC_PSCR, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
|
||||
_______, KC_PGDN, KC_UP, KC_PGUP, _______, KC_LBRC, _______, _______, KC_RBRC, KC_7, KC_UP, KC_9, KC_0, KC_HOME, \
|
||||
ADJ, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_RBRC, KC_END, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGDN, KC_PGUP, _______, \
|
||||
_______, _______, _______, _______, ADJ, _______, ADJ, ADJ, ADJ, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, \
|
||||
KC_VOLD, KC_VOLU, _______, KC_DEL, _______, _______, KC_VOLD, KC_VOLU \
|
||||
[_FN] = EXPAND_LAYOUT( \
|
||||
________________FUNCTION_L1________________, _______, KC_PSCR, ________________FUNCTION_R1________________, \
|
||||
________________FUNCTION_L2________________, _______, _______, ________________FUNCTION_R2________________, \
|
||||
________________FUNCTION_L3________________, _______, _______, ________________FUNCTION_R3________________, \
|
||||
________________FUNCTION_L4________________, _______, _______, ________________FUNCTION_R4________________, \
|
||||
________________FUNCTION_L5________________, ADJ, ADJ, ________________FUNCTION_R5________________, \
|
||||
KC_VOLD, KC_VOLU, _______, KC_DEL, _______, _______, KC_VOLD, KC_VOLU \
|
||||
),
|
||||
|
||||
/* ADJ
|
||||
* ,------------------------------------------------. ,------------------------------------------------.
|
||||
* | ~ | ! | @ | # | $ | % | | | | ^ | & | * | ( | ) | |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | ~ | ! | @ | # | $ | % | | | | ^ | & | * | ( | ) | |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | Ctrl | A | O | E | U | I | | | | D | H | T | N | S | / |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Shift| ; | Q | J | K | X | [ | | ] | B | M | W | V | Z |Enter |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* |ADJ| Esc | Alt | GUI | EISU |Lower |Space | |Space |FN | KANA | Left | Down | Up |Right |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* |Lower |Space | |Space |FN |
|
||||
* `-------------' `------------'
|
||||
*/
|
||||
|
||||
[_ADJ] = LAYOUT( \
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
|
||||
_______, RGB_SAD, RGB_VAI, RGB_SAI, RESET, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \
|
||||
_______, RGB_HUD, RGB_VAD, RGB_HUI, RGBRST, _______, _______, _______, _______, QWERTY, COLEMAK, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_RMOD,RGB_HUD, RGB_SAD, RGB_VAD, \
|
||||
[_ADJ] = EXPAND_LAYOUT( \
|
||||
_________________ADJUST_L1_________________, _______, _______, _________________ADJUST_R1_________________, \
|
||||
_________________ADJUST_L2_________________, _______, _______, _________________ADJUST_R2_________________, \
|
||||
_________________ADJUST_L3_________________, _______, _______, _________________ADJUST_R3_________________, \
|
||||
_________________ADJUST_L4_________________, _______, _______, _________________ADJUST_R4_________________, \
|
||||
_________________ADJUST_L5_________________, _______, _______, _________________ADJUST_R5_________________, \
|
||||
KC_VOLD, KC_VOLU, _______, _______, _______, _______, KC_VOLD, KC_VOLU \
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
// define variables for reactive RGB
|
||||
bool TOG_STATUS = false;
|
||||
int RGB_current_mode;
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
//uint8_t shifted = get_mods() & (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT));
|
||||
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if(record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case FN:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_FN);
|
||||
} else {
|
||||
layer_off(_FN);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case ADJ:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJ);
|
||||
} else {
|
||||
layer_off(_ADJ);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
//led operations - RGB mode change now updates the RGB_current_mode to allow the right RGB mode to be set after reactive keys are released
|
||||
case RGBRST:
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
if (record->event.pressed) {
|
||||
eeconfig_update_rgblight_default();
|
||||
rgblight_enable();
|
||||
RGB_current_mode = rgblight_config.mode;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
RGB_current_mode = rgblight_config.mode;
|
||||
#endif
|
||||
//SSD1306 OLED init, make sure to add #define SSD1306OLED in config.h
|
||||
#ifdef SSD1306OLED
|
||||
iota_gfx_init(!has_usb()); // turns on the display
|
||||
#endif
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
#ifdef SSD1306OLED
|
||||
led_test_init();
|
||||
iota_gfx_task(); // this is what updates the display continuously
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
//SSD1306 OLED update loop, make sure to add #define SSD1306OLED in config.h
|
||||
#ifdef SSD1306OLED
|
||||
|
||||
// hook point for 'led_test' keymap
|
||||
// 'default' keymap's led_test_init() is empty function, do nothing
|
||||
// 'led_test' keymap's led_test_init() force rgblight_mode_noeeprom(35);
|
||||
__attribute__ ((weak))
|
||||
void led_test_init(void) {}
|
||||
|
||||
void matrix_update(struct CharacterMatrix *dest,
|
||||
const struct CharacterMatrix *source) {
|
||||
if (memcmp(dest->display, source->display, sizeof(dest->display))) {
|
||||
memcpy(dest->display, source->display, sizeof(dest->display));
|
||||
dest->dirty = true;
|
||||
}
|
||||
}
|
||||
|
||||
//assign the right code to your layers for OLED display
|
||||
#define L_BASE 0
|
||||
#define L_FN (1<<_FN)
|
||||
#define L_ADJ (1<<_ADJ)
|
||||
#define L_ADJ_TRI (L_ADJ|L_FN)
|
||||
|
||||
static void render_logo(struct CharacterMatrix *matrix) {
|
||||
|
||||
static char logo[]={
|
||||
0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,
|
||||
0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,
|
||||
0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,
|
||||
0};
|
||||
matrix_write(matrix, logo);
|
||||
//matrix_write_P(&matrix, PSTR(" Split keyboard kit"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
void render_status(struct CharacterMatrix *matrix) {
|
||||
|
||||
// Render to mode icon
|
||||
static char logo[][2][3]={{{0x95,0x96,0},{0xb5,0xb6,0}},{{0x97,0x98,0},{0xb7,0xb8,0}}};
|
||||
if(keymap_config.swap_lalt_lgui==false){
|
||||
matrix_write(matrix, logo[0][0]);
|
||||
matrix_write_P(matrix, PSTR("\n"));
|
||||
matrix_write(matrix, logo[0][1]);
|
||||
}else{
|
||||
matrix_write(matrix, logo[1][0]);
|
||||
matrix_write_P(matrix, PSTR("\n"));
|
||||
matrix_write(matrix, logo[1][1]);
|
||||
}
|
||||
|
||||
// Define layers here, Have not worked out how to have text displayed for each layer. Copy down the number you see and add a case for it below
|
||||
char buf[40];
|
||||
snprintf(buf,sizeof(buf), "Undef-%ld", layer_state);
|
||||
matrix_write_P(matrix, PSTR("\nLayer: "));
|
||||
switch (layer_state) {
|
||||
case L_BASE:
|
||||
matrix_write_P(matrix, PSTR("Default"));
|
||||
break;
|
||||
case L_FN:
|
||||
matrix_write_P(matrix, PSTR("FN"));
|
||||
break;
|
||||
case L_ADJ:
|
||||
case L_ADJ_TRI:
|
||||
matrix_write_P(matrix, PSTR("ADJ"));
|
||||
break;
|
||||
default:
|
||||
matrix_write(matrix, buf);
|
||||
}
|
||||
|
||||
// Host Keyboard LED Status
|
||||
char led[40];
|
||||
snprintf(led, sizeof(led), "\n%s %s %s",
|
||||
(host_keyboard_leds() & (1<<USB_LED_NUM_LOCK)) ? "NUMLOCK" : " ",
|
||||
(host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) ? "CAPS" : " ",
|
||||
(host_keyboard_leds() & (1<<USB_LED_SCROLL_LOCK)) ? "SCLK" : " ");
|
||||
matrix_write(matrix, led);
|
||||
}
|
||||
|
||||
|
||||
void iota_gfx_task_user(void) {
|
||||
struct CharacterMatrix matrix;
|
||||
|
||||
#if DEBUG_TO_SCREEN
|
||||
if (debug_enable) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
matrix_clear(&matrix);
|
||||
if(is_master){
|
||||
render_status(&matrix);
|
||||
}else{
|
||||
render_logo(&matrix);
|
||||
}
|
||||
matrix_update(&display, &matrix);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
# KageUrufu's Sol Layout
|
||||
|
||||
Read the keymap for the layout, I don't want to deal with maintained ascii art
|
||||
|
||||
## Customize
|
||||
|
||||
see `qmk_firmware/keyboards/sol/rev1/keymaps/default/rules.mk`
|
||||
|
||||
```
|
||||
# Variables you can set for SOL
|
||||
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
RGBLIGHT_ENABLE = yes # Enable global lighting effects. Do not enable with RGB Matrix
|
||||
LED_ANIMATIONS = yes # LED animations
|
||||
LED_MIRRORED = no # Mirror LEDs across halves (enable DIP 1 on slave, and DIP 2 and 3 on master)
|
||||
RGB_MATRIX_ENABLE = no # Enable per-key coordinate based RGB effects. Do not enable with RGBlight (+8500)
|
||||
RGB_MATRIX_KEYPRESSES = no # Enable reactive per-key effects. Can be very laggy (+1500)
|
||||
RGBLIGHT_FULL_POWER = no # Allow maximum RGB brightness. Otherwise, limited to a safe level for a normal USB-A port
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
SWAP_HANDS_ENABLE = no # Enable one-hand typing
|
||||
ENCODER_ENABLE_CUSTOM = yes # Enable rotary encoder (+90)
|
||||
|
||||
OLED_ENABLE = no # OLED_ENABLE (+5000)
|
||||
IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS device (iPad,iPhone)
|
||||
|
||||
```
|
||||
## Compile
|
||||
|
||||
go to qmk top directory.
|
||||
```
|
||||
$ cd qmk_firmware
|
||||
```
|
||||
|
||||
build
|
||||
```
|
||||
$ make sol:default
|
||||
```
|
||||
|
||||
After the initial flash with AVRdudess, you should be able to flash using this:
|
||||
```
|
||||
$ make sol:default:dfu
|
||||
```
|
||||
@@ -52,19 +52,14 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||
# the appropriate keymap folder that will get included automatically
|
||||
#
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = no # Audio control and System control(+450)
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
COMMAND_ENABLE = yes # 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 = 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. Do not enable this with audio at the same time.
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
|
||||
|
||||
CUSTOM_MATRIX = yes
|
||||
|
||||
|
||||
@@ -87,10 +87,13 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||
|
||||
|
||||
|
||||
void matrix_init_keymap(void) {
|
||||
DDRD &= ~(1<<5);
|
||||
PORTD &= ~(1<<5);
|
||||
|
||||
DDRB &= ~(1<<0);
|
||||
PORTB &= ~(1<<0);
|
||||
void matrix_init_keymap(void) {
|
||||
#ifndef CONVERT_TO_PROTON_C
|
||||
setPinOutput(D5);
|
||||
writePinHigh(D5);
|
||||
|
||||
setPinOutput(B0);
|
||||
writePinHigh(B0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -27,9 +27,6 @@
|
||||
//Tap Dancing
|
||||
#define TAPPING_TERM 200
|
||||
|
||||
// Alt gr
|
||||
#define DE_ALGR KC_RALT
|
||||
|
||||
// normal characters
|
||||
#define DE_Z KC_Y
|
||||
#define DE_Y KC_Z
|
||||
|
||||
62
keyboards/zen/keymaps/kageurufu/keymap.c
Normal file
62
keyboards/zen/keymaps/kageurufu/keymap.c
Normal file
@@ -0,0 +1,62 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "kageurufu.h"
|
||||
#ifdef PROTOCOL_LUFA
|
||||
#include "lufa.h"
|
||||
#include "split_util.h"
|
||||
#endif
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
extern uint8_t is_master;
|
||||
|
||||
|
||||
#define EXPAND_LAYOUT(...) LAYOUT(__VA_ARGS__)
|
||||
#define _BASE_LAYOUT( \
|
||||
_00, _01, _02, _03, _04, _05, _06, _07, _08, _09, \
|
||||
_10, _11, _12, _13, _14, _15, _16, _17, _18, _19, \
|
||||
_20, _21, _22, _23, _24, _25, _26, _27, _28, _29 \
|
||||
) \
|
||||
EXPAND_LAYOUT( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||
KC_TAB, _00, _01, _02, _03, _04, _05, _06, _07, _08, _09, KC_BSLS, \
|
||||
FN_ESC, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, KC_QUOT, \
|
||||
KC_LSPO, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, KC_RSPC, \
|
||||
KC_LCTL, KC_LGUI, KC_LGUI, KC_LALT, FN, KC_SPC, KC_BSPC, KC_ENT, KC_SPC, KC_MINS, KC_EQL, KC_DOWN, KC_PGUP, KC_PGDN \
|
||||
)
|
||||
#define BASE_LAYOUT(...) _BASE_LAYOUT(__VA_ARGS__)
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QWERTY] = BASE_LAYOUT( \
|
||||
_________________QWERTY_L1_________________, _________________QWERTY_R1_________________, \
|
||||
_________________QWERTY_L2_________________, _________________QWERTY_R2_________________, \
|
||||
_________________QWERTY_L3_________________, _________________QWERTY_R3_________________ \
|
||||
),
|
||||
|
||||
[_COLEMAK] = BASE_LAYOUT( \
|
||||
_________________COLEMAK_L1________________, _________________COLEMAK_R1________________, \
|
||||
_________________COLEMAK_L2________________, _________________COLEMAK_R2________________, \
|
||||
_________________COLEMAK_L3________________, _________________COLEMAK_R3________________ \
|
||||
),
|
||||
|
||||
[_COLEMAK_DH] = BASE_LAYOUT( \
|
||||
______________COLEMAK_MOD_DH_L1____________, ______________COLEMAK_MOD_DH_R1____________, \
|
||||
______________COLEMAK_MOD_DH_L2____________, ______________COLEMAK_MOD_DH_R2____________, \
|
||||
______________COLEMAK_MOD_DH_L3____________, ______________COLEMAK_MOD_DH_R3____________ \
|
||||
),
|
||||
|
||||
[_FN] = EXPAND_LAYOUT( \
|
||||
________________FUNCTION_L1________________, ________________FUNCTION_R1________________, \
|
||||
________________FUNCTION_L2________________, ________________FUNCTION_R2________________, \
|
||||
________________FUNCTION_L3________________, ________________FUNCTION_R3________________, \
|
||||
________________FUNCTION_L4________________, ________________FUNCTION_R4________________, \
|
||||
________________FUNCTION_L5________________, _______, KC_DEL, ________________FUNCTION_R5________________ \
|
||||
),
|
||||
|
||||
[_ADJ] = EXPAND_LAYOUT( \
|
||||
_________________ADJUST_L1_________________, _________________ADJUST_R1_________________, \
|
||||
_________________ADJUST_L2_________________, _________________ADJUST_R2_________________, \
|
||||
_________________ADJUST_L3_________________, _________________ADJUST_R3_________________, \
|
||||
_________________ADJUST_L4_________________, _________________ADJUST_R4_________________, \
|
||||
_________________ADJUST_L5_________________, _______, _______, _________________ADJUST_R5_________________ \
|
||||
)
|
||||
};
|
||||
@@ -50,7 +50,7 @@ KC_ESC, KC_INS, KC_LGUI, KC_LCTL, KC_LALT,
|
||||
KC_CAPSLOCK, BP_DCRC, BP_V, BP_D, BP_L, BP_J, BP_Z,
|
||||
BP_C, BP_T, BP_S, BP_R, BP_N, BP_M,
|
||||
KC_NUMLOCK, BP_APOS, BP_Q, BP_G, BP_H, BP_F, BP_CCED,
|
||||
BP_ALGR, KC_RCTL, KC_RGUI, KC_PSCREEN, KC_PAUSE,
|
||||
KC_ALGR, KC_RCTL, KC_RGUI, KC_PSCREEN, KC_PAUSE,
|
||||
DF(AZ_B), DF(BEPO),
|
||||
MO(NUMK),
|
||||
MO(FNAV), KC_RSHIFT, KC_ENTER),
|
||||
|
||||
@@ -105,7 +105,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_BSPC, BP_DCRC, BP_V, BP_D, BP_L, BP_J, BP_Z,
|
||||
BP_C, BP_T, BP_S, BP_R, BP_N, BP_M,
|
||||
KC_ENT, BP_APOS, BP_Q, BP_G, BP_H, BP_F, KC_RSFT,
|
||||
BP_ALGR, BP_PERC, KC_APP, BP_CCED, KC_RCTL,
|
||||
KC_ALGR, BP_PERC, KC_APP, BP_CCED, KC_RCTL,
|
||||
|
||||
KC_LEFT, KC_RGHT,
|
||||
KC_UP,
|
||||
@@ -449,14 +449,14 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||
register_code(KC_1 + (id - M_1));
|
||||
break;
|
||||
case M_DEGR:
|
||||
return MACRO(DOWN(CSA_ALTGR), D(SCLN), END);
|
||||
return MACRO(DOWN(KC_ALGR), D(SCLN), END);
|
||||
case M_SCLN:
|
||||
return MACRO(D(SCLN), END);
|
||||
case M_GRV:
|
||||
return MACRO(I(75), DOWN(CSA_ALTGR), TYPE(CSA_DCRC), UP(CSA_ALTGR), T(SPACE), END);
|
||||
return MACRO(I(75), DOWN(KC_ALGR), TYPE(CSA_DCRC), UP(KC_ALGR), T(SPACE), END);
|
||||
case M_NBSP:
|
||||
// use weak mod such that pressing another key will not be affected
|
||||
add_weak_mods(MOD_BIT(CSA_ALTGR));
|
||||
add_weak_mods(MOD_BIT(KC_ALGR));
|
||||
return MACRO(D(SPACE), END);
|
||||
}
|
||||
} else {
|
||||
@@ -466,11 +466,11 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||
unregister_code(KC_1 + (id - M_1));
|
||||
break;
|
||||
case M_DEGR:
|
||||
return MACRO(UP(CSA_ALTGR), U(SCLN), END);
|
||||
return MACRO(UP(KC_ALGR), U(SCLN), END);
|
||||
case M_SCLN:
|
||||
return MACRO(U(SCLN), END);
|
||||
case M_NBSP:
|
||||
del_weak_mods(MOD_BIT(CSA_ALTGR));
|
||||
del_weak_mods(MOD_BIT(KC_ALGR));
|
||||
return MACRO(U(SPACE), END);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
#include QMK_KEYBOARD_CONFIG_H
|
||||
|
||||
#undef PRODUCT
|
||||
#define PRODUCT BocajEZ - Frankensteined ErgoDox EZ
|
||||
#define LEADER_TIMEOUT 250
|
||||
#define LEADER_PER_KEY_TIMING
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2018 Jacob Jerrell jacob.jerrell@gmail.com @JacobJerrell
|
||||
Copyright 2018 Jacob Jerrell <jacob.jerrell@gmail.com> @JacobJerrell
|
||||
|
||||
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
|
||||
@@ -14,97 +14,99 @@ 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 "bocaj.h"
|
||||
|
||||
#define LAYOUT_ergodox_pretty_base( \
|
||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
|
||||
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \
|
||||
) \
|
||||
LAYOUT_ergodox_pretty_wrapper( \
|
||||
KC_ESC, __________________NUMBER_LEFT_______________, JJ_ARRW, KC_MINS, __________________NUMBER_RIGHT______________, KC_EQUAL, \
|
||||
KC_DEL, K01, K02, K03, K04, K05, KC_LPRN, KC_RPRN, K06, K07, K08, K09, K0A, KC_BSLASH, \
|
||||
KC_NUMS, K11, SFT_T(K12), K13, ALT_T(K14), K15, K16, ALT_T(K17), K18, SFT_T(K19), K1A, KC_QUOT, \
|
||||
OS_LSFT, CTL_T(K21), K22, K23, K24, K25, HYP_LBK, MEH_RBK, K26, K27, K28, K29, CTL_T(K2A), KC_RSFT, \
|
||||
KC_GAME,KC_NUMS, TT(_LOWER), KC_UP, KC_LEFT, KC_RIGHT, KC_DOWN, UC_DISA,KC_GAME, KC_ADJS, \
|
||||
KC_APP,KC_HOME, KC_END,KC_ESC, \
|
||||
UC_FLIP, UC_TABL, \
|
||||
KC_SPACE,KC_BSPACE,KC_LEAD, UC_SHRG,KC_TAB,KC_LWEN \
|
||||
)
|
||||
|
||||
#define LAYOUT_ergodox_pretty_base_wrapper(...) LAYOUT_ergodox_pretty_base(__VA_ARGS__)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Hardware Workman - http://www.keyboard-layout-editor.com/#/gists/7a07cb982ec3597ba3e3d947554225f1
|
||||
.---------------------------------------------. .---------------------------------------------.
|
||||
| ESC | 1 | 2 | 3 | 4 | 5 | -> | ! - | 6 | 7 | 8 | 9 | 0 | = |
|
||||
!-------+-----+-----+-----+-----+-------------! !-------+-----+-----+-----+-----+-----+-------!
|
||||
| DEL | Q | D | R | W | B | ( | ! ) | J | F | U | P | ; | \ |
|
||||
!-------+-----+-----+-----x-----x-----! ! ! !-----x-----x-----+-----+-----+-------!
|
||||
| NUMS | A | S | H | T | G |-------! !-------! Y | N | E | O | I | ' |
|
||||
!-------+-----+-----+-----x-----x-----! HYP ! ! MEH !-----x-----x-----+-----+-----+-------!
|
||||
| SHIFT | Z | X | M | C | V | [ | ! ] | K | L | , | . | / | SHIFT |
|
||||
'-------+-----+-----+-----+-----+-------------' '-------------+-----+-----+-----+-----+-------'
|
||||
| GAME | NUM | LWR | UP | LFT | .---------------. .---------------. ! RGT | DWN | | | ADJ |
|
||||
'------------------------------' | APP | HOME | ! PGUP | ESC | '------------------------------'
|
||||
.-------+-------+-------! !-------+-------+-------.
|
||||
! ! | END | ! PGDN | ! ENTER !
|
||||
! SPACE ! BSPCE !-------! !-------! TAB ! / !
|
||||
| | | COPY | ! PASTE | | LOWER |
|
||||
'-----------------------' '-----------------------'
|
||||
/* Workman - http://www.keyboard-layout-editor.com/#/gists/7a07cb982ec3597ba3e3d947554225f1
|
||||
.---------------------------------------------. .---------------------------------------------.
|
||||
| ESC | 1 | 2 | 3 | 4 | 5 | -> | ! - | 6 | 7 | 8 | 9 | 0 | = |
|
||||
!-------+-----+-----+-----+-----+-------------! !-------+-----+-----+-----+-----+-----+-------!
|
||||
| DEL | Q | D | R | W | B | ( | ! ) | J | F | U | P | ; | \ |
|
||||
!-------+-----+-----+-----x-----x-----! ! ! !-----x-----x-----+-----+-----+-------!
|
||||
| NUMS | A | S | H | T | G |-------! !-------! Y | N | E | O | I | ' |
|
||||
!-------+-----+-----+-----x-----x-----! HYP ! ! MEH !-----x-----x-----+-----+-----+-------!
|
||||
| SHIFT | Z | X | M | C | V | [ | ! ] | K | L | , | . | / | SHIFT |
|
||||
'-------+-----+-----+-----+-----+-------------' '-------------+-----+-----+-----+-----+-------'
|
||||
| | NUM | LWR | UP | LFT | .---------------. .---------------. ! RGT | DWN | |GAME | ADJ |
|
||||
'------------------------------' | APP | HOME | ! PGUP | ESC | '------------------------------'
|
||||
.-------+-------+-------! !-------+-------+-------.
|
||||
! ! | END | ! PGDN | ! ENTER !
|
||||
! SPACE ! BSPCE !-------! !-------! TAB ! / !
|
||||
| | | COPY | ! PASTE | | LOWER |
|
||||
'-----------------------' '-----------------------'
|
||||
*/
|
||||
[_HWRKMN] = LAYOUT_ergodox_pretty_wrapper(
|
||||
KC_ESC, _______________________NUMBER_LEFT_______________________, JJ_ARRW, KC_MINUS,_______________________NUMBER_RIGHT______________________, KC_EQUAL,
|
||||
KC_DEL, _______________________HWORKMAN_L1_______________________, KC_LPRN, KC_RPRN, _______________________HWORKMAN_R1_______________________, KC_BSLS,
|
||||
KC_NUMS,_______________________HWORKMAN_L2_______________________, _______________________HWORKMAN_R2_______________________, KC_QUOTE,
|
||||
KC_LSFT,_______________________HWORKMAN_L3_______________________, HYP_LBK, MEH_RBK, _______________________HWORKMAN_R3_______________________, KC_RSFT,
|
||||
___________________ERGODOX_BOTTOM_LEFT___________________, ___________________ERGODOX_BOTTOM_RIGHT__________________,
|
||||
______________________ERGODOX_THUMBS_____________________
|
||||
[_WORKMAN] = LAYOUT_ergodox_pretty_base_wrapper(
|
||||
_________________WORKMAN_L1_________________, _________________WORKMAN_R1_________________,
|
||||
_________________WORKMAN_L2_________________, _________________WORKMAN_R2_________________,
|
||||
_________________WORKMAN_L3_________________, _________________WORKMAN_R3_________________
|
||||
),
|
||||
/* Software Workman / QWERTY - http://www.keyboard-layout-editor.com/#/gists/b6c016a22a9d31381a276a603a42fe5f
|
||||
.---------------------------------------------. .---------------------------------------------.
|
||||
| ESC | 1 | 2 | 3 | 4 | 5 | -> | ! - | 6 | 7 | 8 | 9 | 0 | = |
|
||||
!-------+-----+-----+-----+-----+-------------! !-------+-----+-----+-----+-----+-----+-------!
|
||||
| DEL | Q | W | E | R | T | ( | ! ) | Y | U | I | O | P | \ |
|
||||
!-------+-----+-----+-----x-----x-----! ! ! !-----x-----x-----+-----+-----+-------!
|
||||
| NUMS | A | S | D | F | G |-------! !-------! H | J | K | L | ; | ' |
|
||||
!-------+-----+-----+-----x-----x-----! HYP ! ! MEH !-----x-----x-----+-----+-----+-------!
|
||||
| SHIFT | Z | X | C | V | B | [ | ! ] | N | M | , | . | / | SHIFT |
|
||||
'-------+-----+-----+-----+-----+-------------' '-------------+-----+-----+-----+-----+-------'
|
||||
| GAME | NUM | LWR | UP | LFT | .---------------. .---------------. ! RGT | DWN | | | ADJ |
|
||||
'------------------------------' | APP | HOME | ! PGUP | ESC | '------------------------------'
|
||||
.-------+-------+-------! !-------+-------+-------.
|
||||
! ! | END | ! PGDN | ! ENTER !
|
||||
! SPACE ! BSPCE !-------! !-------! TAB ! / !
|
||||
| | | COPY | ! PASTE | | LOWER |
|
||||
'-----------------------' '-----------------------'
|
||||
*/
|
||||
[_SWRKMN] = LAYOUT_ergodox_pretty_wrapper(
|
||||
KC_ESC, _______________________NUMBER_LEFT_______________________, JJ_ARRW, KC_MINUS,_______________________NUMBER_RIGHT______________________, KC_EQUAL,
|
||||
KC_DEL, _______________________SWORKMAN_L1_______________________, KC_LPRN, KC_RPRN, _______________________SWORKMAN_R1_______________________, KC_BSLS,
|
||||
KC_NUMS,_______________________SWORKMAN_L2_______________________, _______________________SWORKMAN_R2_______________________, KC_QUOTE,
|
||||
KC_LSFT,_______________________SWORKMAN_L3_______________________, HYP_LBK, MEH_RBK, _______________________SWORKMAN_R3_______________________, KC_RSFT,
|
||||
___________________ERGODOX_BOTTOM_LEFT___________________, ___________________ERGODOX_BOTTOM_RIGHT__________________,
|
||||
______________________ERGODOX_THUMBS_____________________
|
||||
[_WINWORKMAN] = LAYOUT_ergodox_pretty_base_wrapper(
|
||||
_________________WORKMAN_L1_________________, _________________WORKMAN_R1_________________,
|
||||
________________WWORKMAN_L2_________________, ________________WWORKMAN_R2_________________,
|
||||
_________________WORKMAN_L3_________________, _________________WORKMAN_R3_________________
|
||||
),
|
||||
/* Lower - http://www.keyboard-layout-editor.com/#/gists/f1d745a88d1c48ab55e095efd9e7a43a
|
||||
.---------------------------------------------. .---------------------------------------------.
|
||||
| ESC | | | | | | -> | ! - | | | | | | = |
|
||||
!-------+-----+-----+-----+-----+-------------! !-------+-----+-----+-----+-----+-----+-------!
|
||||
| DEL | ! | @ | # | $ | % | ( | ! ) | ^ | & | * | ( | ) | \ |
|
||||
!-------+-----+-----+-----x-----x-----! ! ! !-----x-----x-----+-----+-----+-------!
|
||||
| ` | 1 | 2 | 3 | 4 | 5 |-------! !-------! 6 | 7 | 8 | 9 | 0 | ' |
|
||||
!-------+-----+-----+-----x-----x-----! HYP ! ! MEH !-----x-----x-----+-----+-----+-------!
|
||||
| SHIFT | | | | | | [ | ! ] | | | | | | SHIFT |
|
||||
'-------+-----+-----+-----+-----+-------------' '-------------+-----+-----+-----+-----+-------'
|
||||
| GAME | NUM | LWR | UP | LFT | .---------------. .---------------. ! RGT | DWN | | | ADJ |
|
||||
'------------------------------' | APP | HOME | ! PGUP | ESC | '------------------------------'
|
||||
.-------+-------+-------! !-------+-------+-------.
|
||||
! ! | END | ! PGDN | ! ENTER !
|
||||
! SPACE ! BSPCE !-------! !-------! TAB ! / !
|
||||
| | | COPY | ! PASTE | | LOWER |
|
||||
'-----------------------' '-----------------------'
|
||||
/* QWERTY - http://www.keyboard-layout-editor.com/#/gists/b6c016a22a9d31381a276a603a42fe5f
|
||||
.---------------------------------------------. .---------------------------------------------.
|
||||
| ESC | 1 | 2 | 3 | 4 | 5 | -> | ! - | 6 | 7 | 8 | 9 | 0 | = |
|
||||
!-------+-----+-----+-----+-----+-------------! !-------+-----+-----+-----+-----+-----+-------!
|
||||
| DEL | Q | W | E | R | T | ( | ! ) | Y | U | I | O | P | \ |
|
||||
!-------+-----+-----+-----x-----x-----! ! ! !-----x-----x-----+-----+-----+-------!
|
||||
| NUMS | A | S | D | F | G |-------! !-------! H | J | K | L | ; | ' |
|
||||
!-------+-----+-----+-----x-----x-----! HYP ! ! MEH !-----x-----x-----+-----+-----+-------!
|
||||
| SHIFT | Z | X | C | V | B | [ | ! ] | N | M | , | . | / | SHIFT |
|
||||
'-------+-----+-----+-----+-----+-------------' '-------------+-----+-----+-----+-----+-------'
|
||||
| GAME | NUM | LWR | UP | LFT | .---------------. .---------------. ! RGT | DWN | | | ADJ |
|
||||
'------------------------------' | APP | HOME | ! PGUP | ESC | '------------------------------'
|
||||
.-------+-------+-------! !-------+-------+-------.
|
||||
! ! | END | ! PGDN | ! ENTER !
|
||||
! SPACE ! BSPCE !-------! !-------! TAB ! / !
|
||||
| | | COPY | ! PASTE | | LOWER |
|
||||
'-----------------------' '-----------------------'
|
||||
*/
|
||||
[_QWERTY] = LAYOUT_ergodox_pretty_base_wrapper(
|
||||
_________________QWERTY_L1__________________, _________________QWERTY_R1__________________,
|
||||
_________________QWERTY_L2__________________, _________________QWERTY_R2__________________,
|
||||
_________________QWERTY_L3__________________, _________________QWERTY_R3__________________
|
||||
),
|
||||
[_LOWER] = LAYOUT_ergodox_pretty_wrapper(
|
||||
_______,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, _______, _______, XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, _______,
|
||||
_______,_______________________SPECIAL_LEFT______________________, _______, _______, _______________________SPECIAL_RIGHT_____________________, _______,
|
||||
KC_GRV ,_______________________NUMBER_LEFT_______________________, _______________________NUMBER_RIGHT______________________, _______,
|
||||
_______,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, _______, _______, XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, _______,
|
||||
_________________________________________________________, _________________________________________________________,
|
||||
______________________ERGODOX_THUMBS_____________________
|
||||
KC_F11 ,__________________FUNCTION_LEFT_____________, _______, _______, __________________FUNCTION_RIGHT____________, KC_F12,
|
||||
_______, _______, _______, KC_UP, _______, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_PAST, _______,
|
||||
LM_GRAVE, _______, KC_LEFT, KC_DOWN,KC_RIGHT, _______, _______, KC_4, KC_5, KC_6, KC_PPLS, _______,
|
||||
OS_LSFT,____________________BLANK___________________, _______, _______, _______, KC_1, KC_2, KC_3, KC_PMNS, _______,
|
||||
____________________BLANK___________________, KC_0, KC_PDOT, KC_COMM,KC_PEQL, _______,
|
||||
_______, _______, _______, _______,
|
||||
_______, _______,
|
||||
_______, _______, _______, _______, _______, _______
|
||||
),
|
||||
/* Adjust - http://www.keyboard-layout-editor.com/#/gists/dedeae17b35a5d5f745a42aaea78f007
|
||||
/* Adjust - http://www.keyboard-layout-editor.com/#/gists/dedeae17b35a5d5f745a42aaea78f007
|
||||
.---------------------------------------------. .---------------------------------------------.
|
||||
| | | | | | | EPRM | ! EPRM | | | | | | |
|
||||
| MAKE | | | | | | RESET | ! EPRM | | | | | | |
|
||||
!-------+-----+-----+-----+-----+-------------! !-------+-----+-----+-----+-----+-----+-------!
|
||||
| | | | | | | | ! | | | | | | |
|
||||
!-------+-----+-----+-----x-----x-----! ! ! !-----x-----x-----+-----+-----+-------!
|
||||
| | 🔇 | 🔉 | 🔊 | LCK | |-------! !-------! | | | | | SWRKM |
|
||||
| | 🔇 | 🔉 | 🔊 | LCK | |-------! !-------! | | | | | QWRTY |
|
||||
!-------+-----+-----+-----x-----x-----! ! ! !-----x-----x-----+-----+-----+-------!
|
||||
| | | | | | | | ! | | | | | | HWRKM |
|
||||
| | | | | | | | ! | | | | | WIN | WRKMN |
|
||||
'-------+-----+-----+-----+-----+-------------' '-------------+-----+-----+-----+-----+-------'
|
||||
| | | | | | .---------------. .---------------. ! | | | | |
|
||||
'------------------------------' | | | ! | | '------------------------------'
|
||||
@@ -115,101 +117,66 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
'-----------------------' '-----------------------'
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_ergodox_pretty_wrapper(
|
||||
XXXXXXX,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, KC_EPRM, KC_EPRM, XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, XXXXXXX,
|
||||
XXXXXXX,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX,KC__MUTE, KC__VOLDOWN, KC__VOLUP, MC_LOCK, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_SWRK,
|
||||
XXXXXXX,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_HWRK,
|
||||
XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
|
||||
______________________ERGODOX_THUMBS_____________________
|
||||
KC_MAKE, ____________________BLANK___________________, KC_RST, KC_EPRM, ____________________BLANK___________________, XXXXXXX,
|
||||
_______, ____________________BLANK___________________, _______, _______, ____________________BLANK___________________, XXXXXXX,
|
||||
_______,KC__MUTE,KC__VOLDOWN,KC__VOLUP,MC_LOCK,_______, ____________________BLANK___________________, KC_MQWR,
|
||||
_______, ____________________BLANK___________________, _______, _______, _______, _______, _______, _______, KC_WWRK, KC_MWRK,
|
||||
____________________BLANK___________________, ____________________BLANK___________________,
|
||||
_______, _______, _______, _______,
|
||||
_______, _______,
|
||||
_______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[_NUMS] = LAYOUT_ergodox_pretty_wrapper(
|
||||
XXXXXXX,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, XXXXXXX, XXXXXXX, XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, XXXXXXX,
|
||||
XXXXXXX,XXXXXXX, XXXXXXX, KC_UP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_KP_7, KC_KP_8, KC_KP_9, KC_PAST, XXXXXXX,
|
||||
_______,XXXXXXX, KC_LEFT, KC_DOWN, KC_RIGHT, XXXXXXX, XXXXXXX, KC_KP_4, KC_KP_5, KC_KP_6, KC_PPLS, XXXXXXX,
|
||||
LM_SHFT,XXXXXXX, XXXXXXX, XXXXXXX, JJ_COPY, JJ_PSTE, XXXXXXX, XXXXXXX, XXXXXXX, KC_KP_1, KC_KP_2, KC_KP_3, KC_PMNS, XXXXXXX,
|
||||
XXXXXXX,_______,XXXXXXX,XXXXXXX,XXXXXXX, KC_KP_0, KC_PDOT, KC_COMM, KC_PEQL, XXXXXXX,
|
||||
_______, _______, _______,_______,
|
||||
_______, _______,
|
||||
KC_LALT,KC_LGUI,_______, _______,_______,_______
|
||||
),
|
||||
[_NMOD] = LAYOUT_ergodox_pretty_wrapper(
|
||||
XXXXXXX,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, XXXXXXX, XXXXXXX, XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, XXXXXXX,
|
||||
XXXXXXX,XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, _______, _______, XXXXXXX,
|
||||
XXXXXXX,XXXXXXX, _______, _______, _______, XXXXXXX, XXXXXXX, _______, _______, _______, _______, XXXXXXX,
|
||||
LM_SHFT,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, _______, _______, XXXXXXX,
|
||||
XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX, _______, _______, _______, _______, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX,XXXXXXX,
|
||||
XXXXXXX, XXXXXXX,
|
||||
KC_LALT,KC_LGUI,XXXXXXX, XXXXXXX,XXXXXXX,XXXXXXX
|
||||
),
|
||||
// Diablo - http://www.keyboard-layout-editor.com/#/gists/28476e4237e77d4835ac8a9d7e5f9b2c
|
||||
[_DIABLO] = LAYOUT_ergodox_pretty_wrapper(
|
||||
KC_ESC , XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
KC_TAB , KC_Q ,ALT_T(KC_S), KC_I , KC_F , KC_J ,KC_MINS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
KC_LOCK, KC_1 , KC_2 , KC_3 , KC_4 ,KC_DCLR , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
KC_LSFT, KC_D3_1 , KC_D3_2 , KC_D3_3 , KC_D3_4 , KC_T ,KC_MINS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
_______, XXXXXXX , XXXXXXX , XXXXXXX , KC_M , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX,XXXXXXX,
|
||||
XXXXXXX, XXXXXXX,
|
||||
KC_BTN1,KC_BTN2,KC_ENTER, XXXXXXX,XXXXXXX,XXXXXXX
|
||||
KC_ESC, KC_V, KC_D, KC_LALT, KC_NO, KC_NO, KC_NO, KC_NO, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO,
|
||||
KC_TAB, KC_S, KC_F, KC_I, KC_M, KC_T, KC_ENTER, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_Q, KC_1, KC_2, KC_3, KC_4, KC_P, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_LCTL, KC_D3_1, KC_D3_2, KC_D3_3, KC_D3_4, KC_Z, KC_LOCK, KC_NO, KC_N, KC_M, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
_______, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NO,
|
||||
KC_L, KC_J, KC_NO, KC_NO,
|
||||
KC_F, KC_NO,
|
||||
SFT_T(KC_SPACE), ALT_T(KC_Q), KC_DCLR, KC_PGDN, KC_DEL, KC_ENT
|
||||
)
|
||||
};
|
||||
|
||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||
uint8_t default_layer = 0;
|
||||
default_layer = eeconfig_read_default_layer();
|
||||
switch (keycode) {
|
||||
case KC_SWRK:
|
||||
if (!record->event.pressed) {
|
||||
set_single_persistent_default_layer(_SWRKMN);
|
||||
layer_move(default_layer);
|
||||
ergodox_blink_all_leds();
|
||||
ergodox_blink_all_leds();
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_HWRK:
|
||||
if (!record->event.pressed) {
|
||||
set_single_persistent_default_layer(_HWRKMN);
|
||||
layer_move(default_layer);
|
||||
ergodox_blink_all_leds();
|
||||
ergodox_blink_all_leds();
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_EPRM:
|
||||
if (!record->event.pressed) {
|
||||
ergodox_blink_all_leds();
|
||||
eeconfig_init();
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case MC_LOCK:
|
||||
if (!record->event.pressed) {
|
||||
layer_move(default_layer);
|
||||
SEND_STRING(SS_LCTRL(SS_LGUI("q")));
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void matrix_init_keymap(void) {};
|
||||
|
||||
void matrix_scan_keymap(void) {
|
||||
uint8_t modifiers = get_mods();
|
||||
uint8_t led_usb_state = host_keyboard_leds();
|
||||
uint8_t one_shot = get_oneshot_mods();
|
||||
uint8_t layer = biton32(layer_state);
|
||||
|
||||
ergodox_board_led_off();
|
||||
ergodox_right_led_1_off();
|
||||
ergodox_right_led_2_off();
|
||||
ergodox_right_led_3_off();
|
||||
|
||||
switch (layer) {
|
||||
/*
|
||||
Lights are treated as binary here for easy identification.
|
||||
LED1 = 4; LED2 = 2; LED1 = 1
|
||||
This allows for up to 8 identified layers (default layers being no lights on)
|
||||
Which is way more than I should ever need
|
||||
*/
|
||||
case _WORKMAN:
|
||||
case _QWERTY:
|
||||
case _WINWORKMAN:
|
||||
if (modifiers & MODS_SHIFT_MASK || led_usb_state & (1<<USB_LED_CAPS_LOCK) || one_shot & MODS_SHIFT_MASK) {
|
||||
ergodox_right_led_1_on();
|
||||
ergodox_right_led_1_set( 25 );
|
||||
}
|
||||
if (modifiers & MODS_CTRL_MASK || one_shot & MODS_CTRL_MASK || modifiers & MODS_GUI_MASK || one_shot & MODS_GUI_MASK) {
|
||||
if ((modifiers & MODS_CTRL_MASK || one_shot & MODS_CTRL_MASK) && (modifiers & MODS_GUI_MASK || one_shot & MODS_GUI_MASK)) {
|
||||
ergodox_right_led_2_on();
|
||||
ergodox_right_led_2_set( 50 );
|
||||
} else {
|
||||
ergodox_right_led_2_on();
|
||||
ergodox_right_led_2_set( 10 );
|
||||
}
|
||||
}
|
||||
if (modifiers & MODS_ALT_MASK || one_shot & MODS_ALT_MASK) {
|
||||
ergodox_right_led_3_on();
|
||||
ergodox_right_led_3_set( 10 );
|
||||
}
|
||||
break;
|
||||
case _LOWER:
|
||||
ergodox_right_led_3_on();
|
||||
ergodox_right_led_3_set(10); // Default brightness is deadly in a dark room
|
||||
@@ -218,20 +185,6 @@ void matrix_scan_keymap(void) {
|
||||
ergodox_right_led_2_on();
|
||||
ergodox_right_led_2_set(10);
|
||||
break;
|
||||
case _NUMS:
|
||||
ergodox_right_led_2_on();
|
||||
ergodox_right_led_2_set(10);
|
||||
ergodox_right_led_3_on();
|
||||
ergodox_right_led_3_set(10);
|
||||
break;
|
||||
case _NMOD:
|
||||
ergodox_right_led_1_on();
|
||||
ergodox_right_led_1_set(10);
|
||||
ergodox_right_led_2_on();
|
||||
ergodox_right_led_2_set(10);
|
||||
ergodox_right_led_3_on();
|
||||
ergodox_right_led_3_set(10);
|
||||
break;
|
||||
case _DIABLO:
|
||||
ergodox_right_led_1_on();
|
||||
ergodox_right_led_1_set(10);
|
||||
@@ -240,7 +193,4 @@ void matrix_scan_keymap(void) {
|
||||
// none
|
||||
break;
|
||||
}
|
||||
/* #ifdef TAP_DANCE_ENABLE
|
||||
run_diablo_macro_check();
|
||||
#endif */
|
||||
};
|
||||
|
||||
37
layouts/community/ergodox/bocaj/readme.md
Normal file
37
layouts/community/ergodox/bocaj/readme.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# Bocaj Layout
|
||||
|
||||
While I've put my own spin on most things, much of the credit for these ideas belongs to Drashna and/or the people he derived things from. Please see his [layout](../drashna/) and [userspace](../../../../users/drashna/) for lots of ideas and inspiration.
|
||||
|
||||
## Layers Overview
|
||||
|
||||
* Default
|
||||
* Workman
|
||||
* Qwerty
|
||||
* Windows Workman (swaps GUI and CTRL buttons)
|
||||
* Lower
|
||||
* F1-12 Top Row
|
||||
* Grave / Layer Switch macro at Caps Lock position
|
||||
* Navigation at QWERTY 'ESDF' position
|
||||
* Numpad under right hand
|
||||
* Adjust
|
||||
* Volume Control
|
||||
* Mac Lock Macro
|
||||
* Make / Reset/ EEPROM keys
|
||||
* Default Layer changing keys
|
||||
* Diablo Layer
|
||||
* Moved shortcuts within left hands reach
|
||||
* Macros to spam 1-4 every ~1 second
|
||||
* Shift in thumb cluster to prevent pinky fatique
|
||||
|
||||
## LEDs Overview
|
||||
|
||||
* Used for _LOWER, _ADJUST, and _DIABLO layer indication
|
||||
* Used for Ctrl/GUI, Shift, and Alt indication when on a default layer
|
||||
|
||||
## Wrappers Overview
|
||||
|
||||
While it isn't a novel idea, I feel the need to mention it because it really appeals to me as a person that doesn't like repetitive code.
|
||||
|
||||
We've all come to know and love the pretty wrapper for Ergodox because it makes for such a beautiful, self-documenting keymap. In this keymap, we are building ontop of the pretty wrapper to wrap our default layers with our keys that aren't unique to the layer.
|
||||
|
||||
Now you can wrap your keymap with `LAYOUT_ergodox_pretty_base_wrapper()` and only feed it the alpha keys, having the top, side, bottom, and thumb clusters automatically filled in. If you make a key to any of the top, side, bottom, or thumb cluster keys, it will propegate to all layers that have this wrapper, or have KC_TRNS keycodes in the same location
|
||||
@@ -4,3 +4,8 @@ SWAP_HANDS_ENABLE = no
|
||||
TAP_DANCE_ENABLE = yes
|
||||
EXTRAKEY_ENABLE = no
|
||||
KEY_LOCK_ENABLE = yes
|
||||
LEADER_ENABLE = yes
|
||||
|
||||
UNICODE_ENABLE = yes
|
||||
UNICODEMAP_ENABLE = no
|
||||
UCIS_ENABLE = no
|
||||
|
||||
@@ -20,7 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#ifdef UNICODEMAP_ENABLE
|
||||
#include "drashna_unicode.h"
|
||||
#endif // UNICODEMAP_ENABLE
|
||||
extern uint8_t input_mode;
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
extern bool g_suspend_state;
|
||||
@@ -425,17 +424,12 @@ void rgb_matrix_indicators_user(void) {
|
||||
}
|
||||
|
||||
void matrix_init_keymap(void) {
|
||||
#if 0
|
||||
#ifdef RGB_MATRIX_KEYPRESSES
|
||||
rgblight_mode(RGB_MATRIX_MULTISPLASH);
|
||||
#else
|
||||
rgblight_mode(RGB_MATRIX_RAINBOW_MOVING_CHEVRON);
|
||||
#endif
|
||||
|
||||
input_mode = 2;
|
||||
}
|
||||
|
||||
#else
|
||||
void matrix_init_keymap(void) {
|
||||
input_mode = 2;
|
||||
#endif
|
||||
}
|
||||
#endif //RGB_MATRIX_INIT
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
TAP_DANCE_ENABLE = yes
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
ifneq (,$(findstring ergodox_ez,$(KEYBOARD)))
|
||||
RGBLIGHT_ENABLE = yes
|
||||
RGB_MATRIX_ENABLE = no
|
||||
|
||||
@@ -7,3 +7,5 @@ ifneq (,$(findstring ergodox_ez,$(KEYBOARD)))
|
||||
RGBLIGHT_ENABLE = no
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
endif
|
||||
|
||||
COMMAND_ENABLE = no
|
||||
|
||||
@@ -171,7 +171,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_TRNS, KC_Y, KC_U, KC_I, KC_O, KC_P, NO_AA,
|
||||
KC_H, KC_J, KC_K, KC_L, NO_OSLH, NO_AE,
|
||||
KC_DELT, KC_N, KC_M, KC_COMM, KC_DOT, NO_MINS, KC_RSFT,
|
||||
NO_ALGR, KC_DOWN, KC_UP, KC_LEFT, KC_RGHT,
|
||||
KC_ALGR, KC_DOWN, KC_UP, KC_LEFT, KC_RGHT,
|
||||
KC_HOME, KC_END,
|
||||
KC_PGUP,
|
||||
KC_PGDN, KC_ENT, KC_SPACE
|
||||
|
||||
@@ -63,7 +63,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
TG(SYMB), KC_Y, KC_U, KC_I, KC_O, KC_P, NO_AA,
|
||||
KC_H, KC_J, KC_K, KC_L, NO_OSLH, NO_AE,
|
||||
KC_DELT, KC_N, KC_M, KC_COMM, KC_DOT, NO_MINS, KC_RSFT,
|
||||
NO_ALGR, KC_DOWN, KC_UP, KC_LEFT, KC_RGHT,
|
||||
KC_ALGR, KC_DOWN, KC_UP, KC_LEFT, KC_RGHT,
|
||||
KC_HOME, KC_END,
|
||||
KC_PGUP,
|
||||
KC_PGDN, KC_TAB, LT(MDIA, KC_ENT)
|
||||
|
||||
@@ -76,7 +76,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_H, KC_J, KC_K, KC_L, LT(MDIA, NO_OSLH), GUI_T(NO_AE),
|
||||
MEH_T(KC_NO), KC_N, KC_M, KC_COMM, KC_DOT, CTL_T(NO_MINS), KC_RSFT,
|
||||
KC_UP, KC_DOWN, NO_CIRC, NO_ASTR, KC_FN1,
|
||||
NO_ALGR, CTL_T(KC_ESC),
|
||||
KC_ALGR, CTL_T(KC_ESC),
|
||||
KC_PGUP,
|
||||
KC_PGDN,KC_TAB, KC_ENT
|
||||
),
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef CONFIG_USER_H
|
||||
#define CONFIG_USER_H
|
||||
#pragma once
|
||||
|
||||
|
||||
#if defined(RGBLIGHT_ENABLE) && !defined(RGBLED_NUM)
|
||||
@@ -61,5 +60,3 @@
|
||||
|
||||
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
|
||||
//#define MIDI_TONE_KEYCODE_OCTAVES 2
|
||||
|
||||
#endif
|
||||
|
||||
@@ -94,7 +94,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
KC_MAKE, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, KC_RST,
|
||||
VRSN, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, EEP_RST,
|
||||
_______, _________________ADJUST_L3_________________, _________________ADJUST_R3_________________, TG_MODS,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_NUKE
|
||||
)
|
||||
|
||||
|
||||
@@ -219,4 +219,15 @@ void rgb_matrix_indicators_user(void) {
|
||||
void matrix_init_keymap(void) {
|
||||
rgblight_mode(RGB_MATRIX_MULTISPLASH);
|
||||
}
|
||||
#else //RGB_MATRIX_INIT
|
||||
|
||||
void matrix_init_keymap(void) {
|
||||
#ifndef CONVERT_TO_PROTON_C
|
||||
setPinOutput(D5);
|
||||
writePinHigh(D5);
|
||||
|
||||
setPinOutput(B0);
|
||||
writePinHigh(B0);
|
||||
#endif
|
||||
}
|
||||
#endif //RGB_MATRIX_INIT
|
||||
|
||||
16
layouts/community/ortho_5x12/drashna/config.h
Normal file
16
layouts/community/ortho_5x12/drashna/config.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
/* ws2812 RGB LED */
|
||||
#if defined(KEYBOARD_fractal)
|
||||
#define RGB_DI_PIN D2
|
||||
#undef RGBLED_NUM
|
||||
#define RGBLIGHT_ANIMATIONS
|
||||
#define RGBLED_NUM 29 // Number of LEDs
|
||||
#undef RGBLIGHT_HUE_STEP
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#undef RGBLIGHT_SAT_STEP
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#undef RGBLIGHT_VAL_STEP
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#endif
|
||||
156
layouts/community/ortho_5x12/drashna/keymap.c
Normal file
156
layouts/community/ortho_5x12/drashna/keymap.c
Normal file
@@ -0,0 +1,156 @@
|
||||
/* Copyright 2015-2017 Jack Humbert
|
||||
* Modified by KeyPCB for the Fractal keyboard
|
||||
* Backlight isn't on the Fractal, so I've removed the keycode from the keymaps
|
||||
*
|
||||
* 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 "drashna.h"
|
||||
|
||||
#define LAYOUT_ortho_5x12_base( \
|
||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
|
||||
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, \
|
||||
K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A \
|
||||
) \
|
||||
LAYOUT_ortho_5x12_wrapper( \
|
||||
KC_GRV, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_BSPC, \
|
||||
KC_TAB, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, KC_BSPC, \
|
||||
KC_ESC, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, KC_QUOT, \
|
||||
KC_MLSF, CTL_T(K31), K32, K33, K34, K35, K36, K37, K38, K39, CTL_T(K3A), KC_ENT, \
|
||||
KC_NO, OS_LCTL, OS_LALT, OS_LGUI, SP_LWER, BK_LWER, DL_RAIS, ET_RAIS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
)
|
||||
#define LAYOUT_ortho_5x12_base_wrapper(...) LAYOUT_ortho_5x12_base(__VA_ARGS__)
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[_QWERTY] = LAYOUT_ortho_5x12_base_wrapper(
|
||||
________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________,
|
||||
_________________QWERTY_L1_________________, _________________QWERTY_R1_________________,
|
||||
_________________QWERTY_L2_________________, _________________QWERTY_R2_________________,
|
||||
_________________QWERTY_L3_________________, _________________QWERTY_R3_________________
|
||||
),
|
||||
|
||||
[_COLEMAK] = LAYOUT_ortho_5x12_base_wrapper(
|
||||
________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________,
|
||||
_________________COLEMAK_L1________________, _________________COLEMAK_R1________________,
|
||||
_________________COLEMAK_L2________________, _________________COLEMAK_R2________________,
|
||||
_________________COLEMAK_L3________________, _________________COLEMAK_R3________________
|
||||
),
|
||||
|
||||
[_DVORAK] = LAYOUT_ortho_5x12_base_wrapper(
|
||||
________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________,
|
||||
_________________DVORAK_L1_________________, _________________DVORAK_R1_________________,
|
||||
_________________DVORAK_L2_________________, _________________DVORAK_R2_________________,
|
||||
_________________DVORAK_L3_________________, _________________DVORAK_R3_________________
|
||||
),
|
||||
|
||||
[_WORKMAN] = LAYOUT_ortho_5x12_base_wrapper(
|
||||
________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________,
|
||||
_________________WORKMAN_L1________________, _________________WORKMAN_R1________________,
|
||||
_________________WORKMAN_L2________________, _________________WORKMAN_R2________________,
|
||||
_________________WORKMAN_L3________________, _________________WORKMAN_R3________________
|
||||
),
|
||||
|
||||
[_MODS] = LAYOUT_ortho_5x12_wrapper(
|
||||
_______, ___________________BLANK___________________, ___________________BLANK___________________, _______,
|
||||
_______, ___________________BLANK___________________, ___________________BLANK___________________, _______,
|
||||
_______, ___________________BLANK___________________, ___________________BLANK___________________, _______,
|
||||
KC_LSFT, ___________________BLANK___________________, ___________________BLANK___________________, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* Lower
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
* | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
|
||||
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||
* | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del |
|
||||
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||
* | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
|
||||
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||
* | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_LOWER] = LAYOUT_ortho_5x12_wrapper( \
|
||||
_______, ___________________BLANK___________________, ___________________BLANK___________________, _______,
|
||||
KC_TILD, _________________LOWER_L1__________________, _________________LOWER_R1__________________, KC_PIPE,
|
||||
KC_DEL, _________________LOWER_L2__________________, _________________LOWER_R2__________________, _______,
|
||||
_______, _________________LOWER_L3__________________, _________________LOWER_R3__________________, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
|
||||
),
|
||||
|
||||
/* Raise
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del |
|
||||
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||
* | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
|
||||
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||
* | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | | |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_RAISE] = LAYOUT_ortho_5x12_wrapper( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||
KC_GRV, _________________RAISE_L1__________________, _________________RAISE_R1__________________, _______,
|
||||
KC_DEL, _________________RAISE_L2__________________, _________________RAISE_R2__________________, KC_BSLS,
|
||||
_______, _________________RAISE_L3__________________, _________________RAISE_R3__________________, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _________________RAISE_R3__________________
|
||||
),
|
||||
|
||||
/* Adjust (Lower + Raise)
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
* | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | | Reset| | | | | | | | | | Del |
|
||||
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||
* | | | |Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | |
|
||||
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||
* | |Voice-|Voice+|Mus on|MusOff|MidiOn|MidOff| | | | | |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | | | | | | | | | | | |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_ortho_5x12_wrapper( \
|
||||
KC_MAKE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_RST,
|
||||
VRSN, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, EEP_RST,
|
||||
_______, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, _______,
|
||||
_______, _________________ADJUST_L3_________________, _________________ADJUST_R3_________________, TG_MODS,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
|
||||
|
||||
};
|
||||
|
||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
void matrix_init_keymap(void) {
|
||||
#ifdef KEYBOARD_fractal
|
||||
setPinOutput(D5);
|
||||
writePinHigh(D5);
|
||||
|
||||
setPinOutput(B0);
|
||||
writePinHigh(B0);
|
||||
#endif
|
||||
}
|
||||
23
layouts/community/ortho_5x12/drashna/rules.mk
Normal file
23
layouts/community/ortho_5x12/drashna/rules.mk
Normal file
@@ -0,0 +1,23 @@
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
TAP_DANCE_ENABLE = no
|
||||
AUDIO_ENABLE = yes
|
||||
ifneq (,$(findstring fractal,$(KEYBOARD))) # Make sure it IS the Planck Light
|
||||
RGB_MATRIX_ENABLE = no
|
||||
AUDIO_ENABLE = no
|
||||
RGBLIGHT_ENABLE = yes
|
||||
RGBLIGHT_TWINKLE = yes
|
||||
BOOTLOADER = qmk-dfu
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(PROTOCOL)), VUSB)
|
||||
NKRO_ENABLE = no
|
||||
else
|
||||
NKRO_ENABLE = yes
|
||||
endif
|
||||
|
||||
|
||||
MACROS_ENABLED = no
|
||||
@@ -18,12 +18,6 @@
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
#define BE_LGUI KC_LALT
|
||||
#define BE_LALT KC_LGUI
|
||||
|
||||
// Alt gr
|
||||
#define BE_ALGR KC_RALT
|
||||
|
||||
// Normal characters
|
||||
// Line 1
|
||||
#define BE_SUP2 KC_GRV
|
||||
|
||||
@@ -19,12 +19,6 @@
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#ifndef ALTGR
|
||||
#define ALTGR(kc) ALGR(kc)
|
||||
#endif
|
||||
#define BP_ALGR KC_RALT
|
||||
|
||||
// Normal characters
|
||||
// First row (on usual keyboards)
|
||||
#define BP_DOLLAR KC_GRAVE // $
|
||||
@@ -139,138 +133,138 @@
|
||||
|
||||
// AltGr-ed characters
|
||||
// First row
|
||||
#define BP_EN_DASH ALTGR(BP_DOLLAR) // –
|
||||
#define BP_EN_DASH ALGR(BP_DOLLAR) // –
|
||||
#define BP_NDSH BP_EN_DASH
|
||||
#define BP_EM_DASH ALTGR(KC_1) // —
|
||||
#define BP_EM_DASH ALGR(KC_1) // —
|
||||
#define BP_MDSH BP_EM_DASH
|
||||
#define BP_LESS ALTGR(KC_2) // <
|
||||
#define BP_GREATER ALTGR(KC_3) // >
|
||||
#define BP_LESS ALGR(KC_2) // <
|
||||
#define BP_GREATER ALGR(KC_3) // >
|
||||
#define BP_GRTR BP_GREATER
|
||||
#define BP_LBRACKET ALTGR(KC_4) // [
|
||||
#define BP_LBRACKET ALGR(KC_4) // [
|
||||
#define BP_LBRC BP_LBRACKET
|
||||
#define BP_RBRACKET ALTGR(KC_5) // ]
|
||||
#define BP_RBRACKET ALGR(KC_5) // ]
|
||||
#define BP_RBRC BP_RBRACKET
|
||||
#define BP_CIRCUMFLEX ALTGR(KC_6) // ^
|
||||
#define BP_CIRCUMFLEX ALGR(KC_6) // ^
|
||||
#define BP_CIRC BP_CIRCUMFLEX
|
||||
#define BP_PLUS_MINUS ALTGR(KC_7) // ±
|
||||
#define BP_PLUS_MINUS ALGR(KC_7) // ±
|
||||
#define BP_PSMS BP_PLUS_MINUS
|
||||
#define BP_MATH_MINUS ALTGR(KC_8) // −
|
||||
#define BP_MATH_MINUS ALGR(KC_8) // −
|
||||
#define BP_MMNS BP_MATH_MINUS
|
||||
#define BP_OBELUS ALTGR(KC_9) // ÷
|
||||
#define BP_OBELUS ALGR(KC_9) // ÷
|
||||
#define BP_OBEL BP_OBELUS
|
||||
// more conventional name of the symbol
|
||||
#define BP_DIVISION_SIGN BP_OBELUS
|
||||
#define BP_DVSN BP_DIVISION_SIGN
|
||||
#define BP_TIMES ALTGR(KC_0) // ×
|
||||
#define BP_TIMES ALGR(KC_0) // ×
|
||||
#define BP_TIMS BP_TIMES
|
||||
#define BP_DIFFERENT ALTGR(BP_EQUAL) // ≠
|
||||
#define BP_DIFFERENT ALGR(BP_EQUAL) // ≠
|
||||
#define BP_DIFF BP_DIFFERENT
|
||||
#define BP_PERMILLE ALTGR(BP_PERCENT) // ‰
|
||||
#define BP_PERMILLE ALGR(BP_PERCENT) // ‰
|
||||
#define BP_PMIL BP_PERMILLE
|
||||
|
||||
// Second row
|
||||
#define BP_PIPE ALTGR(BP_B) // |
|
||||
#define BP_DEAD_ACUTE ALTGR(BP_E_ACUTE) // dead ´
|
||||
#define BP_PIPE ALGR(BP_B) // |
|
||||
#define BP_DEAD_ACUTE ALGR(BP_E_ACUTE) // dead ´
|
||||
#define BP_DACT BP_DEAD_ACUTE
|
||||
#define BP_AMPERSAND ALTGR(BP_P) // &
|
||||
#define BP_AMPERSAND ALGR(BP_P) // &
|
||||
#define BP_AMPR BP_AMPERSAND
|
||||
#define BP_OE_LIGATURE ALTGR(BP_O) // œ
|
||||
#define BP_OE_LIGATURE ALGR(BP_O) // œ
|
||||
#define BP_OE BP_OE_LIGATURE
|
||||
#define BP_DEAD_GRAVE ALTGR(BP_E_GRAVE) // `
|
||||
#define BP_DEAD_GRAVE ALGR(BP_E_GRAVE) // `
|
||||
#define BP_DGRV BP_DEAD_GRAVE
|
||||
#define BP_INVERTED_EXCLAIM ALTGR(BP_DEAD_CIRCUMFLEX) // ¡
|
||||
#define BP_INVERTED_EXCLAIM ALGR(BP_DEAD_CIRCUMFLEX) // ¡
|
||||
#define BP_IXLM BP_INVERTED_EXCLAIM
|
||||
#define BP_DEAD_CARON ALTGR(BP_V) // dead ˇ
|
||||
#define BP_DEAD_CARON ALGR(BP_V) // dead ˇ
|
||||
#define BP_DCAR BP_DEAD_CARON
|
||||
#define BP_ETH ALTGR(BP_D) // ð
|
||||
#define BP_DEAD_SLASH ALTGR(BP_L) // dead /
|
||||
#define BP_ETH ALGR(BP_D) // ð
|
||||
#define BP_DEAD_SLASH ALGR(BP_L) // dead /
|
||||
#define BP_DSLH BP_DEAD_SLASH
|
||||
#define BP_IJ_LIGATURE ALTGR(BP_J) // ij
|
||||
#define BP_IJ_LIGATURE ALGR(BP_J) // ij
|
||||
#define BP_IJ BP_IJ_LIGATURE
|
||||
#define BP_SCHWA ALTGR(BP_Z) // ə
|
||||
#define BP_SCHWA ALGR(BP_Z) // ə
|
||||
#define BP_SCWA BP_SCHWA
|
||||
#define BP_DEAD_BREVE ALTGR(BP_W) // dead ˘
|
||||
#define BP_DEAD_BREVE ALGR(BP_W) // dead ˘
|
||||
#define BP_DBRV BP_DEAD_BREVE
|
||||
|
||||
// Third row
|
||||
#define BP_AE_LIGATURE ALTGR(BP_A) // æ
|
||||
#define BP_AE_LIGATURE ALGR(BP_A) // æ
|
||||
#define BP_AE BP_AE_LIGATURE
|
||||
#define BP_U_GRAVE ALTGR(BP_U) // ù
|
||||
#define BP_U_GRAVE ALGR(BP_U) // ù
|
||||
#define BP_UGRV BP_U_GRAVE
|
||||
#define BP_DEAD_TREMA ALTGR(BP_I) // dead ¨ (trema/umlaut/diaresis)
|
||||
#define BP_DEAD_TREMA ALGR(BP_I) // dead ¨ (trema/umlaut/diaresis)
|
||||
#define BP_DTRM BP_DEAD_TREMA
|
||||
#define BP_EURO ALTGR(BP_E) // €
|
||||
#define BP_TYPOGRAPHICAL_APOSTROPHE ALTGR(BP_COMMA) // ’
|
||||
#define BP_EURO ALGR(BP_E) // €
|
||||
#define BP_TYPOGRAPHICAL_APOSTROPHE ALGR(BP_COMMA) // ’
|
||||
#define BP_TAPO BP_TYPOGRAPHICAL_APOSTROPHE
|
||||
#define BP_COPYRIGHT ALTGR(BP_C) // ©
|
||||
#define BP_COPYRIGHT ALGR(BP_C) // ©
|
||||
#define BP_CPRT BP_COPYRIGHT
|
||||
#define BP_THORN ALTGR(BP_T) // þ
|
||||
#define BP_THORN ALGR(BP_T) // þ
|
||||
#define BP_THRN BP_THORN
|
||||
#define BP_SHARP_S ALTGR(BP_S) // ß
|
||||
#define BP_SHARP_S ALGR(BP_S) // ß
|
||||
#define BP_SRPS BP_SHARP_S
|
||||
#define BP_REGISTERED_TRADEMARK ALTGR(BP_R) // ®
|
||||
#define BP_REGISTERED_TRADEMARK ALGR(BP_R) // ®
|
||||
#define BP_RTM BP_REGISTERED_TRADEMARK
|
||||
#define BP_DEAD_TILDE ALTGR(BP_N) // dead ~
|
||||
#define BP_DEAD_TILDE ALGR(BP_N) // dead ~
|
||||
#define BP_DTLD BP_DEAD_TILDE
|
||||
#define BP_DEAD_MACRON ALTGR(BP_M) // dead ¯
|
||||
#define BP_DEAD_MACRON ALGR(BP_M) // dead ¯
|
||||
#define BP_DMCR BP_DEAD_MACRON
|
||||
#define BP_DEAD_CEDILLA ALTGR(BP_C_CEDILLA) // dead ¸
|
||||
#define BP_DEAD_CEDILLA ALGR(BP_C_CEDILLA) // dead ¸
|
||||
#define BP_DCED BP_DEAD_CEDILLA
|
||||
|
||||
// Fourth row
|
||||
#define BP_NONUS_SLASH ALTGR(BP_E_CIRCUMFLEX) // / on non-us backslash key (102nd key, ê in bépo)
|
||||
#define BP_NONUS_SLASH ALGR(BP_E_CIRCUMFLEX) // / on non-us backslash key (102nd key, ê in bépo)
|
||||
#define BP_NUSL BP_NONUS_SLASH
|
||||
#define BP_BACKSLASH ALTGR(BP_A_GRAVE) /* \ */
|
||||
#define BP_BACKSLASH ALGR(BP_A_GRAVE) /* \ */
|
||||
#define BP_BSLS BP_BACKSLASH
|
||||
#define BP_LEFT_CURLY_BRACE ALTGR(BP_Y) // {
|
||||
#define BP_LEFT_CURLY_BRACE ALGR(BP_Y) // {
|
||||
#define BP_LCBR BP_LEFT_CURLY_BRACE
|
||||
#define BP_RIGHT_CURLY_BRACE ALTGR(BP_X) // }
|
||||
#define BP_RIGHT_CURLY_BRACE ALGR(BP_X) // }
|
||||
#define BP_RCBR BP_RIGHT_CURLY_BRACE
|
||||
#define BP_ELLIPSIS ALTGR(BP_DOT) // …
|
||||
#define BP_ELLIPSIS ALGR(BP_DOT) // …
|
||||
#define BP_ELPS BP_ELLIPSIS
|
||||
#define BP_TILDE ALTGR(BP_K) // ~
|
||||
#define BP_TILDE ALGR(BP_K) // ~
|
||||
#define BP_TILD BP_TILDE
|
||||
#define BP_INVERTED_QUESTION ALTGR(BP_QUESTION) // ¿
|
||||
#define BP_INVERTED_QUESTION ALGR(BP_QUESTION) // ¿
|
||||
#define BP_IQST BP_INVERTED_QUESTION
|
||||
#define BP_DEAD_RING ALTGR(BP_Q) // dead °
|
||||
#define BP_DEAD_RING ALGR(BP_Q) // dead °
|
||||
#define BP_DRNG BP_DEAD_RING
|
||||
#define BP_DEAD_GREEK ALTGR(BP_G) // dead Greek key (following key will make a Greek letter)
|
||||
#define BP_DEAD_GREEK ALGR(BP_G) // dead Greek key (following key will make a Greek letter)
|
||||
#define BP_DGRK BP_DEAD_GREEK
|
||||
#define BP_DAGGER ALTGR(BP_H) // †
|
||||
#define BP_DAGGER ALGR(BP_H) // †
|
||||
#define BP_DAGR BP_DAGGER
|
||||
#define BP_DEAD_OGONEK ALTGR(BP_F) // dead ˛
|
||||
#define BP_DEAD_OGONEK ALGR(BP_F) // dead ˛
|
||||
#define BP_DOGO BP_DEAD_OGONEK
|
||||
|
||||
// Space bar
|
||||
#define BP_UNDERSCORE ALTGR(KC_SPACE) // _
|
||||
#define BP_UNDERSCORE ALGR(KC_SPACE) // _
|
||||
#define BP_UNDS BP_UNDERSCORE
|
||||
|
||||
// AltGr-Shifted characters (different from capitalised AltGr-ed characters)
|
||||
// First row
|
||||
#define BP_PARAGRAPH ALTGR(BP_HASH) // ¶
|
||||
#define BP_PARAGRAPH ALGR(BP_HASH) // ¶
|
||||
#define BP_PARG BP_PARAGRAPH
|
||||
#define BP_LOW_DOUBLE_QUOTE ALTGR(BP_1) // „
|
||||
#define BP_LOW_DOUBLE_QUOTE ALGR(BP_1) // „
|
||||
#define BP_LWQT BP_LOW_DOUBLE_QUOTE
|
||||
#define BP_LEFT_DOUBLE_QUOTE ALTGR(BP_2) // “
|
||||
#define BP_LEFT_DOUBLE_QUOTE ALGR(BP_2) // “
|
||||
#define BP_LDQT BP_LEFT_DOUBLE_QUOTE
|
||||
#define BP_RIGHT_DOUBLE_QUOTE ALTGR(BP_3) // ”
|
||||
#define BP_RIGHT_DOUBLE_QUOTE ALGR(BP_3) // ”
|
||||
#define BP_RDQT BP_RIGHT_DOUBLE_QUOTE
|
||||
#define BP_LESS_OR_EQUAL ALTGR(BP_4) // ≤
|
||||
#define BP_LESS_OR_EQUAL ALGR(BP_4) // ≤
|
||||
#define BP_LEQL BP_LESS_OR_EQUAL
|
||||
#define BP_GREATER_OR_EQUAL ALTGR(BP_5) // ≥
|
||||
#define BP_GREATER_OR_EQUAL ALGR(BP_5) // ≥
|
||||
#define BP_GEQL BP_GREATER_OR_EQUAL
|
||||
// nothing on ALTGR(BP_6)
|
||||
#define BP_NEGATION ALTGR(BP_7) // ¬
|
||||
// nothing on ALGR(BP_6)
|
||||
#define BP_NEGATION ALGR(BP_7) // ¬
|
||||
#define BP_NEGT BP_NEGATION
|
||||
#define BP_ONE_QUARTER ALTGR(BP_8) // ¼
|
||||
#define BP_ONE_QUARTER ALGR(BP_8) // ¼
|
||||
#define BP_1QRT BP_ONE_QUARTER
|
||||
#define BP_ONE_HALF ALTGR(BP_9) // ½
|
||||
#define BP_ONE_HALF ALGR(BP_9) // ½
|
||||
#define BP_1HLF BP_ONE_HALF
|
||||
#define BP_THREE_QUARTERS ALTGR(BP_0) // ¾
|
||||
#define BP_THREE_QUARTERS ALGR(BP_0) // ¾
|
||||
#define BP_3QRT BP_THREE_QUARTERS
|
||||
#define BP_MINUTES ALTGR(BP_DEGREE) // ′
|
||||
#define BP_MINUTES ALGR(BP_DEGREE) // ′
|
||||
#define BP_MNUT BP_MINUTES
|
||||
#define BP_SECONDS ALTGR(BP_GRAVE) // ″
|
||||
#define BP_SECONDS ALGR(BP_GRAVE) // ″
|
||||
#define BP_SCND BP_SECONDS
|
||||
|
||||
// Second row
|
||||
@@ -278,7 +272,7 @@
|
||||
#define BP_BPIP BP_BROKEN_PIPE
|
||||
#define BP_DEAD_DOUBLE_ACUTE LSFT(BP_DEAD_ACUTE) // ˝
|
||||
#define BP_DDCT BP_DEAD_DOUBLE_ACUTE
|
||||
#define BP_SECTION ALTGR(LSFT(BP_P)) // §
|
||||
#define BP_SECTION ALGR(LSFT(BP_P)) // §
|
||||
#define BP_SECT BP_SECTION
|
||||
// LSFT(BP_DEAD_GRAVE) is actually the same character as LSFT(BP_PERCENT)
|
||||
#define BP_GRAVE_BIS LSFT(BP_DEAD_GRAVE) // `
|
||||
@@ -289,35 +283,35 @@
|
||||
#define BP_DDTA BP_DEAD_DOT_ABOVE
|
||||
#define BP_DEAD_CURRENCY LSFT(BP_EURO) // dead ¤ (next key will generate a currency code like ¥ or £)
|
||||
#define BP_DCUR BP_DEAD_CURRENCY
|
||||
#define BP_DEAD_HORN LSFT(ALTGR(BP_COMMA)) // dead ̛
|
||||
#define BP_DEAD_HORN LSFT(ALGR(BP_COMMA)) // dead ̛
|
||||
#define BP_DHRN BP_DEAD_HORN
|
||||
#define BP_LONG_S LSFT(ALTGR(BP_C)) // ſ
|
||||
#define BP_LONG_S LSFT(ALGR(BP_C)) // ſ
|
||||
#define BP_LNGS BP_LONG_S
|
||||
#define BP_TRADEMARK LSFT(BP_REGISTERED_TRADEMARK) // ™
|
||||
#define BP_TM BP_TRADEMARK
|
||||
#define BP_ORDINAL_INDICATOR_O LSFT(ALTGR(BP_M)) // º
|
||||
#define BP_ORDINAL_INDICATOR_O LSFT(ALGR(BP_M)) // º
|
||||
#define BP_ORDO BP_ORDINAL_INDICATOR_O
|
||||
#define BP_DEAD_COMMA LSFT(BP_DEAD_CEDILLA) // dead ˛
|
||||
#define BP_DCOM BP_DEAD_COMMA
|
||||
|
||||
// Fourth row
|
||||
#define BP_LEFT_QUOTE LSFT(ALTGR(BP_Y)) // ‘
|
||||
#define BP_LEFT_QUOTE LSFT(ALGR(BP_Y)) // ‘
|
||||
#define BP_LQOT BP_LEFT_QUOTE
|
||||
#define BP_RIGHT_QUOTE LSFT(ALTGR(BP_X)) // ’
|
||||
#define BP_RIGHT_QUOTE LSFT(ALGR(BP_X)) // ’
|
||||
#define BP_RQOT BP_RIGHT_QUOTE
|
||||
#define BP_INTERPUNCT LSFT(ALTGR(BP_DOT)) // ·
|
||||
#define BP_INTERPUNCT LSFT(ALGR(BP_DOT)) // ·
|
||||
#define BP_IPCT BP_INTERPUNCT
|
||||
#define BP_DEAD_HOOK_ABOVE LSFT(ALTGR(BP_QUESTION)) // dead ̉
|
||||
#define BP_DEAD_HOOK_ABOVE LSFT(ALGR(BP_QUESTION)) // dead ̉
|
||||
#define BP_DHKA BP_DEAD_HOOK_ABOVE
|
||||
#define BP_DEAD_UNDERDOT LSFT(BP_DEAD_RING) // dead ̣
|
||||
#define BP_DUDT BP_DEAD_UNDERDOT
|
||||
#define BP_DOUBLE_DAGGER LSFT(BP_DAGGER) // ‡
|
||||
#define BP_DDGR BP_DOUBLE_DAGGER
|
||||
#define BP_ORDINAL_INDICATOR_A LSFT(ALTGR(BP_F)) // ª
|
||||
#define BP_ORDINAL_INDICATOR_A LSFT(ALGR(BP_F)) // ª
|
||||
#define BP_ORDA BP_ORDINAL_INDICATOR_A
|
||||
|
||||
// Space bar
|
||||
#define BP_NARROW_NON_BREAKING_SPACE ALTGR(BP_NON_BREAKING_SPACE)
|
||||
#define BP_NARROW_NON_BREAKING_SPACE ALGR(BP_NON_BREAKING_SPACE)
|
||||
#define BP_NNBS BP_NARROW_NON_BREAKING_SPACE
|
||||
|
||||
#endif
|
||||
|
||||
@@ -13,19 +13,11 @@
|
||||
* 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 KEYMAP_CANADIAN_MULTILINGUAG_H
|
||||
#define KEYMAP_CANADIAN_MULTILINGUAG_H
|
||||
#ifndef KEYMAP_CANADIAN_MULTILINGUAL_H
|
||||
#define KEYMAP_CANADIAN_MULTILINGUAL_H
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#ifndef ALTGR
|
||||
#define ALTGR(kc) ALGR(kc)
|
||||
#endif
|
||||
|
||||
#define CSA_ALTGR KC_RALT
|
||||
#define CSA_ALGR CSA_ALTGR
|
||||
|
||||
#ifndef GR2A
|
||||
#define GR2A(kc) RCTL(kc)
|
||||
#endif
|
||||
@@ -75,43 +67,43 @@
|
||||
|
||||
// Alt Gr-ed characters
|
||||
// First row
|
||||
#define CSA_PIPE ALTGR(CSA_SLASH) // |
|
||||
#define CSA_CURRENCY ALTGR(KC_4) // ¤
|
||||
#define CSA_PIPE ALGR(CSA_SLASH) // |
|
||||
#define CSA_CURRENCY ALGR(KC_4) // ¤
|
||||
#define CSA_CURR CSA_CURRENCY
|
||||
#define CSA_LEFT_CURLY_BRACE ALTGR(KC_7) // {
|
||||
#define CSA_LEFT_CURLY_BRACE ALGR(KC_7) // {
|
||||
#define CSA_LCBR CSA_LEFT_CURLY_BRACE
|
||||
#define CSA_RIGHT_CURLY_BRACE ALTGR(KC_8) // }
|
||||
#define CSA_RIGHT_CURLY_BRACE ALGR(KC_8) // }
|
||||
#define CSA_RCBR CSA_RIGHT_CURLY_BRACE
|
||||
#define CSA_LBRACKET ALTGR(KC_9) // [
|
||||
#define CSA_LBRACKET ALGR(KC_9) // [
|
||||
#define CSA_LBRC CSA_LBRACKET
|
||||
#define CSA_RBRACKET ALTGR(KC_0) // ]
|
||||
#define CSA_RBRACKET ALGR(KC_0) // ]
|
||||
#define CSA_RBRC CSA_RBRACKET
|
||||
#define CSA_NEGATION ALTGR(KC_EQUAL) // ¬
|
||||
#define CSA_NEGATION ALGR(KC_EQUAL) // ¬
|
||||
#define CSA_NEGT CSA_NEGATION
|
||||
|
||||
// Second row
|
||||
// euro symbol not available on Linux? (X.org)
|
||||
#define CSA_EURO ALTGR(KC_E) // €
|
||||
#define CSA_DEAD_GRAVE ALTGR(CSA_DEAD_CIRCUMFLEX)
|
||||
#define CSA_EURO ALGR(KC_E) // €
|
||||
#define CSA_DEAD_GRAVE ALGR(CSA_DEAD_CIRCUMFLEX)
|
||||
#define CSA_DGRV CSA_DEAD_GRAVE // dead `
|
||||
#define CSA_DEAD_TILDE ALTGR(CSA_C_CEDILLA) // ~
|
||||
#define CSA_DEAD_TILDE ALGR(CSA_C_CEDILLA) // ~
|
||||
#define CSA_DTLD CSA_DEAD_TILDE
|
||||
|
||||
// Third row
|
||||
#define CSA_DEGREE ALTGR(KC_SCOLON) // °
|
||||
#define CSA_DEGREE ALGR(KC_SCOLON) // °
|
||||
#define CSA_DEGR CSA_DEGREE
|
||||
|
||||
// Fourth row
|
||||
#define CSA_LEFT_GUILLEMET ALTGR(KC_Z) // «
|
||||
#define CSA_LEFT_GUILLEMET ALGR(KC_Z) // «
|
||||
#define CSA_LGIL CSA_LEFT_GUILLEMET
|
||||
#define CSA_RIGHT_GUILLEMET ALTGR(KC_X) // »
|
||||
#define CSA_RIGHT_GUILLEMET ALGR(KC_X) // »
|
||||
#define CSA_RGIL CSA_RIGHT_GUILLEMET
|
||||
#define CSA_LESS ALTGR(KC_COMMA) // <
|
||||
#define CSA_GREATER ALTGR(KC_DOT) // >
|
||||
#define CSA_LESS ALGR(KC_COMMA) // <
|
||||
#define CSA_GREATER ALGR(KC_DOT) // >
|
||||
#define CSA_GRTR CSA_GREATER
|
||||
|
||||
// Space bar
|
||||
#define CSA_NON_BREAKING_SPACE ALTGR(KC_SPACE)
|
||||
#define CSA_NON_BREAKING_SPACE ALGR(KC_SPACE)
|
||||
#define CSA_NBSP CSA_NON_BREAKING_SPACE
|
||||
|
||||
// GR2A-ed characters
|
||||
@@ -198,7 +190,7 @@
|
||||
// nothing on 2
|
||||
#define CSA_POUND GR2A(LSFT(KC_3)) // £
|
||||
#define CSA_GBP CSA_POUND_SIGN
|
||||
// already on ALTGR(KC_E)
|
||||
// already on ALGR(KC_E)
|
||||
#define CSA_EURO_BIS GR2A(LSFT(KC_4)) // €
|
||||
#define CSA_EURB CSA_EURO_BIS
|
||||
#define CSA_THREE_EIGHTHS GR2A(LSFT(KC_5)) // ⅜
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#define FR_CH_ALGR KC_RALT
|
||||
|
||||
// normal characters
|
||||
#define FR_CH_Z KC_Y
|
||||
#define FR_CH_Y KC_Z
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#define FR_ALGR KC_RALT
|
||||
|
||||
// Normal characters
|
||||
#define FR_SUP2 KC_GRV
|
||||
#define FR_AMP KC_1
|
||||
|
||||
@@ -19,9 +19,6 @@
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#define DE_ALGR KC_RALT
|
||||
|
||||
// normal characters
|
||||
#define DE_Z KC_Y
|
||||
#define DE_Y KC_Z
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#define CH_ALGR KC_RALT
|
||||
|
||||
// normal characters
|
||||
#define CH_Z KC_Y
|
||||
#define CH_Y KC_Z
|
||||
|
||||
@@ -19,9 +19,6 @@
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#define HU_ALGR KC_RALT
|
||||
|
||||
// basic letters
|
||||
#define HU_Z KC_Y
|
||||
#define HU_Y KC_Z
|
||||
|
||||
@@ -19,13 +19,7 @@
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#define IT_ALGR KC_RALT
|
||||
|
||||
// normal characters
|
||||
|
||||
|
||||
|
||||
#define IT_A KC_A
|
||||
#define IT_B KC_B
|
||||
#define IT_C KC_C
|
||||
|
||||
@@ -73,6 +73,6 @@
|
||||
#define NEO_L1_R DE_HASH
|
||||
|
||||
#define NEO_L2_L DE_LESS
|
||||
#define NEO_L2_R DE_ALGR
|
||||
#define NEO_L2_R KC_ALGR
|
||||
|
||||
#endif
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#define NO_ALGR KC_RALT
|
||||
|
||||
// Normal characters
|
||||
#define NO_HALF KC_GRV
|
||||
#define NO_PLUS KC_MINS
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#define SI_ALGR KC_RALT
|
||||
|
||||
//Swapped Z and Y
|
||||
#define SI_Z KC_Y
|
||||
#define SI_Y KC_Z
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#define ES_ALGR KC_RALT
|
||||
|
||||
// Normal characters
|
||||
#define ES_OVRR KC_GRV
|
||||
#define ES_APOS KC_MINS
|
||||
|
||||
@@ -18,9 +18,6 @@
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#define UK_ALGR KC_RALT
|
||||
|
||||
// Normal characters
|
||||
#define UK_HASH KC_NUHS
|
||||
#define UK_BSLS KC_NUBS
|
||||
|
||||
@@ -973,7 +973,7 @@ void rgb_matrix_mode_noeeprom(uint8_t mode) {
|
||||
rgb_matrix_config.mode = mode;
|
||||
}
|
||||
|
||||
uint32_t rgb_matrix_get_mode(void) {
|
||||
uint8_t rgb_matrix_get_mode(void) {
|
||||
return rgb_matrix_config.mode;
|
||||
}
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@ void rgb_matrix_increase_speed(void);
|
||||
void rgb_matrix_decrease_speed(void);
|
||||
void rgb_matrix_mode(uint8_t mode);
|
||||
void rgb_matrix_mode_noeeprom(uint8_t mode);
|
||||
uint32_t rgb_matrix_get_mode(void);
|
||||
uint8_t rgb_matrix_get_mode(void);
|
||||
|
||||
#ifndef RGBLIGHT_ENABLE
|
||||
#define rgblight_toggle() rgb_matrix_toggle()
|
||||
|
||||
@@ -234,7 +234,7 @@ void rgblight_step_reverse(void) {
|
||||
rgblight_step_reverse_helper(true);
|
||||
}
|
||||
|
||||
uint32_t rgblight_get_mode(void) {
|
||||
uint8_t rgblight_get_mode(void) {
|
||||
if (!rgblight_config.enable) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ void rgblight_enable(void);
|
||||
void rgblight_disable(void);
|
||||
void rgblight_step(void);
|
||||
void rgblight_step_reverse(void);
|
||||
uint32_t rgblight_get_mode(void);
|
||||
uint8_t rgblight_get_mode(void);
|
||||
void rgblight_mode(uint8_t mode);
|
||||
void rgblight_set(void);
|
||||
void rgblight_update_dword(uint32_t dword);
|
||||
|
||||
@@ -1,14 +1,30 @@
|
||||
/*
|
||||
Copyright 2018 Jacob Jerrell <jacob.jerrell@gmail.com> @JacobJerrell
|
||||
|
||||
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 "bocaj.h"
|
||||
#include "eeprom.h"
|
||||
#include "version.h"
|
||||
#include "tap_dances.h"
|
||||
|
||||
static uint16_t copy_paste_timer;
|
||||
userspace_config_t userspace_config;
|
||||
#if (defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE) || defined(UCIS_ENABLE))
|
||||
#define BOCAJ_UNICODE_MODE UC_OSX
|
||||
#else
|
||||
// set to 2 for UC_WIN, set to 4 for UC_WINC
|
||||
#define BOCAJ_UNICODE_MODE 2
|
||||
#endif
|
||||
|
||||
/* *** *** *** *** *
|
||||
* Helper Functions *
|
||||
* *** *** *** *** */
|
||||
void tap(uint16_t keycode){ register_code(keycode); unregister_code(keycode); };
|
||||
|
||||
// Add reconfigurable functions here, for keymap customization
|
||||
@@ -36,10 +52,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
|
||||
__attribute__ ((weak))
|
||||
bool process_record_secrets(uint16_t keycode, keyrecord_t *record) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void matrix_scan_secrets(void) {}
|
||||
|
||||
__attribute__ ((weak))
|
||||
uint32_t layer_state_set_keymap (uint32_t state) {
|
||||
@@ -57,7 +70,14 @@ void led_set_keymap(uint8_t usb_led) {}
|
||||
// Call user matrix init, set default RGB colors and then
|
||||
// call the keymap's init function
|
||||
void matrix_init_user(void) {
|
||||
userspace_config.raw = eeprom_read_byte(EECONFIG_USERSPACE);
|
||||
userspace_config.raw = eeconfig_read_user();
|
||||
|
||||
#if (defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE) || defined(UCIS_ENABLE))
|
||||
set_unicode_input_mode(BOCAJ_UNICODE_MODE);
|
||||
get_unicode_input_mode();
|
||||
#endif //UNICODE_ENABLE
|
||||
|
||||
|
||||
matrix_init_keymap();
|
||||
}
|
||||
|
||||
@@ -78,6 +98,18 @@ void suspend_wakeup_init_user(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
void eeconfig_init_user(void) {
|
||||
userspace_config.raw = 0;
|
||||
eeconfig_update_user(userspace_config.raw);
|
||||
#if (defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE) || defined(UCIS_ENABLE))
|
||||
set_unicode_input_mode(BOCAJ_UNICODE_MODE);
|
||||
get_unicode_input_mode();
|
||||
#else
|
||||
eeprom_update_byte(EECONFIG_UNICODEMODE, BOCAJ_UNICODE_MODE);
|
||||
#endif
|
||||
}
|
||||
|
||||
LEADER_EXTERNS();
|
||||
// No global matrix scan code, so just run keymap's matrix
|
||||
// scan function
|
||||
void matrix_scan_user(void) {
|
||||
@@ -86,6 +118,68 @@ void matrix_scan_user(void) {
|
||||
has_ran_yet = true;
|
||||
startup_user();
|
||||
}
|
||||
LEADER_DICTIONARY() {
|
||||
leading = false;
|
||||
leader_end();
|
||||
|
||||
// Mac Save (Leader -> s)
|
||||
SEQ_ONE_KEY(KC_S) {
|
||||
SEND_STRING(SS_LGUI("s"));
|
||||
}
|
||||
|
||||
// Mac copy line down (Leader -> d, d)
|
||||
SEQ_TWO_KEYS(KC_D, KC_D) {
|
||||
register_code(KC_LSHIFT);
|
||||
register_code(KC_HOME);
|
||||
unregister_code(KC_HOME);
|
||||
unregister_code(KC_LSHIFT);
|
||||
SEND_STRING(SS_LGUI("c"));
|
||||
tap(KC_END);
|
||||
tap(KC_ENTER);
|
||||
SEND_STRING(SS_LGUI("v"));
|
||||
}
|
||||
|
||||
// Mac copy line up (Leader -> u, u)
|
||||
SEQ_TWO_KEYS(KC_U, KC_U) {
|
||||
register_code(KC_LSHIFT);
|
||||
register_code(KC_HOME);
|
||||
unregister_code(KC_HOME);
|
||||
unregister_code(KC_LSHIFT);
|
||||
SEND_STRING(SS_LGUI("c"));
|
||||
tap(KC_UP);
|
||||
tap(KC_END);
|
||||
tap(KC_ENTER);
|
||||
SEND_STRING(SS_LGUI("v"));
|
||||
}
|
||||
|
||||
// Mac VS Debug
|
||||
SEQ_ONE_KEY(KC_D) {
|
||||
tap(KC_F5);
|
||||
}
|
||||
|
||||
// Mac VS Stop Debug
|
||||
SEQ_TWO_KEYS(KC_S, KC_D) {
|
||||
register_code(KC_LSHIFT);
|
||||
tap(KC_F5);
|
||||
unregister_code(KC_LSHIFT);
|
||||
}
|
||||
|
||||
// Start Diablo 3
|
||||
SEQ_ONE_KEY(KC_3) {
|
||||
SEND_STRING(SS_LCTRL(" "));
|
||||
SEND_STRING("Diablo");
|
||||
tap(KC_ENTER);
|
||||
}
|
||||
|
||||
SEQ_ONE_KEY(KC_B) {
|
||||
SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION " ");
|
||||
tap(KC_ENTER);
|
||||
SEND_STRING ("Built at: " QMK_BUILDDATE);
|
||||
}
|
||||
#ifndef NO_SECRETS
|
||||
matrix_scan_secrets();
|
||||
#endif // !NO_SECRETS
|
||||
}
|
||||
|
||||
#ifdef TAP_DANCE_ENABLE // Run Diablo 3 macro checking code.
|
||||
run_diablo_macro_check();
|
||||
@@ -93,85 +187,3 @@ void matrix_scan_user(void) {
|
||||
|
||||
matrix_scan_keymap();
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
/* uint8_t default_layer = 0;
|
||||
default_layer = eeconfig_read_default_layer(); */
|
||||
switch (keycode) {
|
||||
case JJ_COPY:
|
||||
if (!record->event.pressed) {
|
||||
SEND_STRING(SS_LGUI("c"));
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case JJ_PSTE:
|
||||
if (!record->event.pressed) {
|
||||
SEND_STRING(SS_LGUI("v"));
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case JJ_ARRW:
|
||||
if (!record->event.pressed) {
|
||||
SEND_STRING("->");
|
||||
}
|
||||
return false;
|
||||
break; /*
|
||||
case KC_SWRK:
|
||||
if (!record->event.pressed) {
|
||||
set_single_persistent_default_layer(_SWRKMN);
|
||||
layer_move(default_layer);
|
||||
//ergodox_blink_all_leds();
|
||||
//ergodox_blink_all_leds();
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_HWRK:
|
||||
if (!record->event.pressed) {
|
||||
set_single_persistent_default_layer(_HWRKMN);
|
||||
layer_move(default_layer);
|
||||
//ergodox_blink_all_leds();
|
||||
//ergodox_blink_all_leds();
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_EPRM:
|
||||
if (!record->event.pressed) {
|
||||
//ergodox_blink_all_leds();
|
||||
eeconfig_init();
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case MC_LOCK:
|
||||
if (!record->event.pressed) {
|
||||
layer_move(default_layer);
|
||||
SEND_STRING(SS_LCTRL(SS_LGUI("q")));
|
||||
}
|
||||
return false;
|
||||
break; */
|
||||
case KC_DCLR:
|
||||
#ifdef TAP_DANCE_ENABLE
|
||||
if (record->event.pressed) {
|
||||
uint8_t dtime;
|
||||
for (dtime = 0; dtime < 4; dtime++) {
|
||||
diablo_key_time[dtime] = diablo_times[0];
|
||||
}
|
||||
}
|
||||
#endif // !TAP_DANCE_ENABLE
|
||||
return false;
|
||||
break;
|
||||
case KC_CCCV:
|
||||
if (record->event.pressed) {
|
||||
copy_paste_timer = timer_read();
|
||||
} else {
|
||||
if (timer_elapsed(copy_paste_timer) > TAPPING_TERM) { // Hold, copy
|
||||
SEND_STRING(SS_LGUI("c"));
|
||||
} else {
|
||||
SEND_STRING(SS_LGUI("v"));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return process_record_keymap(keycode, record);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,141 +1,85 @@
|
||||
#ifndef USERSPACE
|
||||
#define USERSPACE
|
||||
/*
|
||||
Copyright 2018 Jacob Jerrell <jacob.jerrell@gmail.com> @JacobJerrell
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "quantum.h"
|
||||
#include "version.h"
|
||||
#include "eeprom.h"
|
||||
#include "wrappers.h"
|
||||
#include "process_records.h"
|
||||
#ifdef TAP_DANCE_ENABLE
|
||||
#include "tap_dances.h"
|
||||
#endif // TAP_DANCE_ENABLE
|
||||
|
||||
/* *** *** *** *** *** *
|
||||
* Define layer names *
|
||||
* *** *** *** *** *** */
|
||||
/* Layer Names */
|
||||
enum userspace_layers {
|
||||
_HWRKMN = 0,
|
||||
_SWRKMN,
|
||||
_WORKMAN = 0,
|
||||
_WINWORKMAN,
|
||||
_QWERTY,
|
||||
_LOWER,
|
||||
_ADJUST,
|
||||
_NUMS,
|
||||
_NMOD,
|
||||
_DIABLO
|
||||
_DIABLO,
|
||||
};
|
||||
|
||||
#define EECONFIG_USERSPACE (uint8_t *)19
|
||||
#if (defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE) || defined(UCIS_ENABLE))
|
||||
#define BOCAJ_UNICODE_MODE UC_OSX
|
||||
#else
|
||||
// set to 2 for UC_WIN, set to 4 for UC_WINC
|
||||
#define BOCAJ_UNICODE_MODE 2
|
||||
#endif
|
||||
|
||||
/*
|
||||
define modifiers here, since MOD_* doesn't seem to work for these
|
||||
*/
|
||||
#define MODS_SHIFT_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
|
||||
#define MODS_CTRL_MASK (MOD_BIT(KC_LCTL)|MOD_BIT(KC_RCTRL))
|
||||
#define MODS_ALT_MASK (MOD_BIT(KC_LALT)|MOD_BIT(KC_RALT))
|
||||
#define MODS_GUI_MASK (MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI))
|
||||
|
||||
bool mod_key_press_timer (uint16_t code, uint16_t mod_code, bool pressed);
|
||||
bool mod_key_press (uint16_t code, uint16_t mod_code, bool pressed, uint16_t this_timer);
|
||||
bool send_game_macro(const char *str, keyrecord_t *record, bool override);
|
||||
void matrix_init_keymap(void);
|
||||
void shutdown_keymap(void);
|
||||
void suspend_power_down_keymap(void);
|
||||
void suspend_wakeup_init_keymap(void);
|
||||
void matrix_scan_keymap(void);
|
||||
uint32_t layer_state_set_keymap (uint32_t state);
|
||||
uint32_t default_layer_state_set_keymap (uint32_t state);
|
||||
void led_set_keymap(uint8_t usb_led);
|
||||
void eeconfig_init_keymap(void);
|
||||
void tap(uint16_t keycode);
|
||||
|
||||
typedef union {
|
||||
uint8_t raw;
|
||||
} userspace_config_t;
|
||||
|
||||
/* *** *** *** *** *** *** *
|
||||
* Define Custom Keycodes *
|
||||
* *** *** *** *** *** *** */
|
||||
enum userspace_custom_keycodes {
|
||||
KC_EPRM = SAFE_RANGE, // can always be here
|
||||
KC_SWRK,
|
||||
KC_HWRK,
|
||||
KC_VRSN,
|
||||
JJ_COPY,
|
||||
JJ_PSTE,
|
||||
JJ_ARRW,
|
||||
KC_CCCV,
|
||||
MC_LOCK,
|
||||
KC_DCLR,
|
||||
NEW_SAFE_RANGE //use "NEWPLACEHOLDER for keymap specific codes
|
||||
};
|
||||
|
||||
// Space Cadet Hyper/Meh and [/]
|
||||
#define HYP_LBK ALL_T(KC_LBRACKET)
|
||||
#define MEH_RBK MEH_T(KC_RBRACKET)
|
||||
|
||||
// Layout beauti-/simpli-fication
|
||||
#define KC_LWEN LT(_LOWER, KC_ENTER)
|
||||
#define KC_ADJS TT(_ADJUST)
|
||||
#define KC_NUMS TT(_NUMS)
|
||||
#define LM_SHFT LM(_NMOD, MOD_LSFT)
|
||||
#define XXXXXXX KC_NO
|
||||
#define _______ KC_TRNS
|
||||
|
||||
void tap(uint16_t keycode);
|
||||
|
||||
/* *** *** *** *** *** *** *
|
||||
* Diablo 3 Macro Handling *
|
||||
* *** *** *** *** *** *** */
|
||||
extern userspace_config_t userspace_config;
|
||||
|
||||
// If Tap Dancing is enabled, we manage that here.
|
||||
// If it is not, then we define the KC_D3_# codes gracefully
|
||||
#ifdef TAP_DANCE_ENABLE
|
||||
enum {
|
||||
TD_D3_1 = 0,
|
||||
TD_D3_2,
|
||||
TD_D3_3,
|
||||
TD_D3_4,
|
||||
};
|
||||
|
||||
#define KC_D3_1 TD(TD_D3_1)
|
||||
#define KC_D3_2 TD(TD_D3_2)
|
||||
#define KC_D3_3 TD(TD_D3_3)
|
||||
#define KC_D3_4 TD(TD_D3_4)
|
||||
#define KC_D3_1 TD(TD_D3_1)
|
||||
#define KC_D3_2 TD(TD_D3_2)
|
||||
#define KC_D3_3 TD(TD_D3_3)
|
||||
#define KC_D3_4 TD(TD_D3_4)
|
||||
#else // !TAP_DANCE_ENABLE
|
||||
#define KC_D3_1 KC_1
|
||||
#define KC_D3_2 KC_2
|
||||
#define KC_D3_3 KC_3
|
||||
#define KC_D3_4 KC_4
|
||||
#define KC_D3_1 KC_1
|
||||
#define KC_D3_2 KC_2
|
||||
#define KC_D3_3 KC_3
|
||||
#define KC_D3_4 KC_4
|
||||
#endif // TAP_DANCE_ENABLE
|
||||
|
||||
// Wrapper for handling of keymap 'blocks'
|
||||
// not 100% sure what this first part does. Credit to Drashna
|
||||
#if (!defined(LAYOUT) && defined(KEYMAP))
|
||||
#define LAYOUT KEYMAP
|
||||
#endif
|
||||
|
||||
#define LAYOUT_ergodox_pretty_wrapper(...) LAYOUT_ergodox_pretty(__VA_ARGS__)
|
||||
/* Pretty Layout
|
||||
.---------------------------------------------. .---------------------------------------------.
|
||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | ! 8 | 9 | 10 | 11 | 12 | 13 | 14 |
|
||||
!-------+-----+-----+-----+-----+-------------! !-------+-----+-----+-----+-----+-----+-------!
|
||||
| 15 | 16 | 17 | 18 | 19 | 20 | 21 | ! 22 | 23 | 24 | 25 | 26 | 27 | 28 |
|
||||
!-------+-----+-----+-----x-----x-----! ! ! !-----x-----x-----+-----+-----+-------!
|
||||
| 29 | 30 | 31 | 32 | 33 | 34 |-------! !-------! 35 | 36 | 37 | 38 | 39 | 40 |
|
||||
!-------+-----+-----+-----x-----x-----! ! ! !-----x-----x-----+-----+-----+-------!
|
||||
| 41 | 42 | 43 | 44 | 45 | 46 | 47 | ! 48 | 49 | 50 | 51 | 52 | 53 | 54 |
|
||||
'-------+-----+-----+-----+-----+-------------' '-------------+-----+-----+-----+-----+-------'
|
||||
| 55 | 56 | 57 | 58 | 59 | .---------------. .---------------. ! 60 | 61 | 62 | 63 | 64 |
|
||||
'------------------------------' | 65 | 66 | ! 67 | 68 | '------------------------------'
|
||||
.-------+-------+-------! !-------+-------+-------.
|
||||
! ! | 69 | ! 70 | ! !
|
||||
! ! !-------! !-------! ! !
|
||||
| 71 | 72 | 73 | ! 74 | 75 | 76 |
|
||||
'-----------------------' '-----------------------'
|
||||
*/
|
||||
|
||||
#define _______________________SWORKMAN_L1_______________________ KC_Q, KC_W, KC_E, KC_R, KC_T
|
||||
#define _______________________SWORKMAN_L2_______________________ KC_A, SFT_T(KC_S), GUI_T(KC_D), ALT_T(KC_F), KC_G
|
||||
#define _______________________SWORKMAN_L3_______________________ CTL_T(KC_Z), KC_X, KC_C, KC_V, KC_B
|
||||
|
||||
#define _______________________SWORKMAN_R1_______________________ KC_Y, KC_U, KC_I, KC_O, KC_P
|
||||
#define _______________________SWORKMAN_R2_______________________ KC_H, ALT_T(KC_J), GUI_T(KC_K), SFT_T(KC_L), KC_SCLN
|
||||
#define _______________________SWORKMAN_R3_______________________ KC_N, KC_M, KC_COMM, KC_DOT, CTL_T(KC_SLASH)
|
||||
|
||||
// Hardware Driven Workman
|
||||
#define _______________________HWORKMAN_L1_______________________ KC_Q, KC_D, KC_R, KC_W, KC_B
|
||||
#define _______________________HWORKMAN_L2_______________________ KC_A, SFT_T(KC_S), GUI_T(KC_H), ALT_T(KC_T), KC_G
|
||||
#define _______________________HWORKMAN_L3_______________________ CTL_T(KC_Z), KC_X, KC_M, KC_C, KC_V
|
||||
|
||||
#define _______________________HWORKMAN_R1_______________________ KC_J, KC_F, KC_U, KC_P, KC_SCLN
|
||||
#define _______________________HWORKMAN_R2_______________________ KC_Y, ALT_T(KC_N), GUI_T(KC_E), SFT_T(KC_O), KC_I
|
||||
#define _______________________HWORKMAN_R3_______________________ KC_K, KC_L, KC_COMM, KC_DOT, CTL_T(KC_SLASH)
|
||||
|
||||
#define ___________________ERGODOX_BOTTOM_LEFT___________________ TT(_DIABLO), KC_NUMS, TT(_LOWER), KC_UP, KC_LEFT
|
||||
#define ___________________ERGODOX_BOTTOM_RIGHT__________________ KC_RIGHT, KC_DOWN, XXXXXXX, XXXXXXX, TT(_ADJUST)
|
||||
|
||||
#define _______________________NUMBER_LEFT_______________________ KC_1, KC_2, KC_3, KC_4, KC_5
|
||||
#define _______________________NUMBER_RIGHT______________________ KC_6, KC_7, KC_8, KC_9, KC_0
|
||||
|
||||
#define _______________________SPECIAL_LEFT______________________ KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC
|
||||
#define _______________________SPECIAL_RIGHT_____________________ KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN
|
||||
|
||||
#define _________________________________________________________ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
#define XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
|
||||
|
||||
// LEFT | RIGHT
|
||||
#define ______________________ERGODOX_THUMBS_____________________ KC_APP,KC_HOME, KC_PGUP,KC_ESC, \
|
||||
KC_END, KC_PGDOWN, \
|
||||
KC_SPACE,KC_BSPACE,JJ_COPY, JJ_PSTE,KC_TAB,KC_LWEN
|
||||
|
||||
|
||||
#endif // !USERSPACE
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user