mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-23 00:44:38 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
0db51f2037
28 changed files with 2524 additions and 0 deletions
59
keyboards/packrat/config.h
Normal file
59
keyboards/packrat/config.h
Normal file
|
@ -0,0 +1,59 @@
|
|||
/* Copyright 2021 drhigsby
|
||||
*
|
||||
* 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 "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define MANUFACTURER DrHigsby
|
||||
#define PRODUCT Packrat
|
||||
#define VENDOR_ID 0x0007
|
||||
#define PRODUCT_ID 0x0004
|
||||
#define DEVICE_VER 0x0001
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 4
|
||||
#define MATRIX_COLS 11
|
||||
|
||||
/*
|
||||
* Keyboard Matrix Assignments
|
||||
*
|
||||
* Change this to how you wired your keyboard
|
||||
* COLS: AVR pins used for columns, left to right
|
||||
* ROWS: AVR pins used for rows, top to bottom
|
||||
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||
*
|
||||
*/
|
||||
|
||||
/* key matrix pins */
|
||||
#define MATRIX_ROW_PINS { F7, B1, B6, B2 }
|
||||
#define MATRIX_COL_PINS { D3, D2, D1, D0, D4, C6, D7, E6, B4, B5, B3 }
|
||||
#define UNUSED_PINS { F6 }
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 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
|
||||
|
||||
#define ENCODERS_PAD_A { F5 }
|
||||
#define ENCODERS_PAD_B { F4 }
|
26
keyboards/packrat/info.json
Normal file
26
keyboards/packrat/info.json
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"keyboard_name": "packrat",
|
||||
"url": "http://www.keyboard-layout-editor.com/#/gists/43d838a3b2e0344d75dd67abfc508038",
|
||||
"maintainer": "drhigsby",
|
||||
"layouts": {
|
||||
"LAYOUT_3uc": {
|
||||
"layout": [{"label":"Q", "x":0, "y":0}, {"label":"W", "x":1, "y":0}, {"label":"E", "x":2, "y":0}, {"label":"R", "x":3, "y":0}, {"label":"T", "x":4, "y":0}, {"label":"KNOB!", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"A", "x":0, "y":1}, {"label":"S", "x":1, "y":1}, {"label":"D", "x":2, "y":1}, {"label":"F", "x":3, "y":1}, {"label":"G", "x":4, "y":1}, {"label":"Any", "x":5, "y":1}, {"label":"H", "x":6, "y":1}, {"label":"J", "x":7, "y":1}, {"label":"K", "x":8, "y":1}, {"label":"L", "x":9, "y":1}, {"label":":", "x":10, "y":1}, {"label":"Z", "x":0, "y":2}, {"label":"X", "x":1, "y":2}, {"label":"C", "x":2, "y":2}, {"label":"V", "x":3, "y":2}, {"label":"B", "x":4, "y":2}, {"label":"Any", "x":5, "y":2}, {"label":"N", "x":6, "y":2}, {"label":"M", "x":7, "y":2}, {"label":"<", "x":8, "y":2}, {"label":">", "x":9, "y":2}, {"label":"?", "x":10, "y":2}, {"label":"Ctrl", "x":0.5, "y":3, "w":1.25}, {"label":"Alt", "x":1.75, "y":3, "w":1.25}, {"label":"Raise", "x":3, "y":3}, {"label":"", "x":4, "y":3, "w":3}, {"label":"Lower", "x":7, "y":3}, {"label":"Win", "x":8, "y":3, "w":1.25}, {"label":"Fn", "x":9.25, "y":3, "w":1.25}]
|
||||
},
|
||||
|
||||
"LAYOUT_2x2uc": {
|
||||
"layout": [{"label":"Q", "x":0, "y":0}, {"label":"W", "x":1, "y":0}, {"label":"E", "x":2, "y":0}, {"label":"R", "x":3, "y":0}, {"label":"T", "x":4, "y":0}, {"label":"KNOB!", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"A", "x":0, "y":1}, {"label":"S", "x":1, "y":1}, {"label":"D", "x":2, "y":1}, {"label":"F", "x":3, "y":1}, {"label":"G", "x":4, "y":1}, {"label":"Any", "x":5, "y":1}, {"label":"H", "x":6, "y":1}, {"label":"J", "x":7, "y":1}, {"label":"K", "x":8, "y":1}, {"label":"L", "x":9, "y":1}, {"label":":", "x":10, "y":1}, {"label":"Z", "x":0, "y":2}, {"label":"X", "x":1, "y":2}, {"label":"C", "x":2, "y":2}, {"label":"V", "x":3, "y":2}, {"label":"B", "x":4, "y":2}, {"label":"Any", "x":5, "y":2}, {"label":"N", "x":6, "y":2}, {"label":"M", "x":7, "y":2}, {"label":"<", "x":8, "y":2}, {"label":">", "x":9, "y":2}, {"label":"?", "x":10, "y":2}, {"label":"Ctrl", "x":0.5, "y":3, "w":1.25}, {"label":"Alt", "x":1.75, "y":3, "w":1.25}, {"label":"", "x":3, "y":3, "w":2}, {"label":"Any", "x":5, "y":3}, {"label":"", "x":6, "y":3, "w":2}, {"label":"Win", "x":8, "y":3, "w":1.25}, {"label":"Fn", "x":9.25, "y":3, "w":1.25}]
|
||||
},
|
||||
|
||||
"LAYOUT_7uc": {
|
||||
"layout": [{"label":"Q", "x":0, "y":0}, {"label":"W", "x":1, "y":0}, {"label":"E", "x":2, "y":0}, {"label":"R", "x":3, "y":0}, {"label":"T", "x":4, "y":0}, {"label":"KNOB!", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"A", "x":0, "y":1}, {"label":"S", "x":1, "y":1}, {"label":"D", "x":2, "y":1}, {"label":"F", "x":3, "y":1}, {"label":"G", "x":4, "y":1}, {"label":"Any", "x":5, "y":1}, {"label":"H", "x":6, "y":1}, {"label":"J", "x":7, "y":1}, {"label":"K", "x":8, "y":1}, {"label":"L", "x":9, "y":1}, {"label":":", "x":10, "y":1}, {"label":"Z", "x":0, "y":2}, {"label":"X", "x":1, "y":2}, {"label":"C", "x":2, "y":2}, {"label":"V", "x":3, "y":2}, {"label":"B", "x":4, "y":2}, {"label":"Any", "x":5, "y":2}, {"label":"N", "x":6, "y":2}, {"label":"M", "x":7, "y":2}, {"label":"<", "x":8, "y":2}, {"label":">", "x":9, "y":2}, {"label":"?", "x":10, "y":2}, {"label":"Ctrl", "x":0.5, "y":3, "w":1.5}, {"label":"", "x":2, "y":3, "w":7}, {"label":"Alt", "x":9, "y":3, "w":1.5}]
|
||||
},
|
||||
|
||||
"LAYOUT_2x3uc": {
|
||||
"layout": [{"label":"Q", "x":0, "y":0}, {"label":"W", "x":1, "y":0}, {"label":"E", "x":2, "y":0}, {"label":"R", "x":3, "y":0}, {"label":"T", "x":4, "y":0}, {"label":"KNOB!", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"A", "x":0, "y":1}, {"label":"S", "x":1, "y":1}, {"label":"D", "x":2, "y":1}, {"label":"F", "x":3, "y":1}, {"label":"G", "x":4, "y":1}, {"label":"Any", "x":5, "y":1}, {"label":"H", "x":6, "y":1}, {"label":"J", "x":7, "y":1}, {"label":"K", "x":8, "y":1}, {"label":"L", "x":9, "y":1}, {"label":":", "x":10, "y":1}, {"label":"Z", "x":0, "y":2}, {"label":"X", "x":1, "y":2}, {"label":"C", "x":2, "y":2}, {"label":"V", "x":3, "y":2}, {"label":"B", "x":4, "y":2}, {"label":"Any", "x":5, "y":2}, {"label":"N", "x":6, "y":2}, {"label":"M", "x":7, "y":2}, {"label":"<", "x":8, "y":2}, {"label":">", "x":9, "y":2}, {"label":"?", "x":10, "y":2}, {"label":"Ctrl", "x":0.5, "y":3}, {"label":"Alt", "x":1.5, "y":3}, {"label":"", "x":2.5, "y":3, "w":3}, {"label":"", "x":5.5, "y":3, "w":3}, {"label":"Win", "x":8.5, "y":3}, {"label":"Fn", "x":9.5, "y":3}]
|
||||
},
|
||||
|
||||
"LAYOUT_6uc": {
|
||||
"layout": [{"label":"Q", "x":0, "y":0}, {"label":"W", "x":1, "y":0}, {"label":"E", "x":2, "y":0}, {"label":"R", "x":3, "y":0}, {"label":"T", "x":4, "y":0}, {"label":"KNOB!", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"A", "x":0, "y":1}, {"label":"S", "x":1, "y":1}, {"label":"D", "x":2, "y":1}, {"label":"F", "x":3, "y":1}, {"label":"G", "x":4, "y":1}, {"label":"Any", "x":5, "y":1}, {"label":"H", "x":6, "y":1}, {"label":"J", "x":7, "y":1}, {"label":"K", "x":8, "y":1}, {"label":"L", "x":9, "y":1}, {"label":":", "x":10, "y":1}, {"label":"Z", "x":0, "y":2}, {"label":"X", "x":1, "y":2}, {"label":"C", "x":2, "y":2}, {"label":"V", "x":3, "y":2}, {"label":"B", "x":4, "y":2}, {"label":"Any", "x":5, "y":2}, {"label":"N", "x":6, "y":2}, {"label":"M", "x":7, "y":2}, {"label":"<", "x":8, "y":2}, {"label":">", "x":9, "y":2}, {"label":"?", "x":10, "y":2}, {"label":"Ctrl", "x":0.5, "y":3}, {"label":"Alt", "x":1.5, "y":3}, {"label":"", "x":2.5, "y":3, "w":6}, {"label":"Win", "x":8.5, "y":3}, {"label":"Fn", "x":9.5, "y":3}]
|
||||
}
|
||||
}
|
||||
}
|
19
keyboards/packrat/keymaps/3uc/config.h
Normal file
19
keyboards/packrat/keymaps/3uc/config.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/* Copyright 2021 drhigsby
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define COMBO_COUNT 7
|
||||
#define COMBO_TERM 40
|
92
keyboards/packrat/keymaps/3uc/keymap.c
Normal file
92
keyboards/packrat/keymaps/3uc/keymap.c
Normal file
|
@ -0,0 +1,92 @@
|
|||
/* Copyright 2021 drhigsby
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layers{
|
||||
_BASE,
|
||||
_CODE,
|
||||
_MATH,
|
||||
_FUNC
|
||||
};
|
||||
|
||||
enum combo_events {
|
||||
combo_ESC,
|
||||
combo_BACK,
|
||||
combo_TAB,
|
||||
combo_DELETE,
|
||||
combo_ENTER,
|
||||
combo_LPRN,
|
||||
combo_RPRN,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM esc_combo[] = {KC_Q, KC_W, COMBO_END};
|
||||
const uint16_t PROGMEM bspc_combo[] = {KC_O, KC_P, COMBO_END};
|
||||
const uint16_t PROGMEM tab_combo[] = {KC_A, KC_S, COMBO_END};
|
||||
const uint16_t PROGMEM del_combo[] = {KC_I, KC_O, COMBO_END};
|
||||
const uint16_t PROGMEM enter_combo[] = {KC_L, KC_SCLN, COMBO_END};
|
||||
const uint16_t PROGMEM lprn_combo[] = {KC_X, KC_C, COMBO_END};
|
||||
const uint16_t PROGMEM rprn_combo[] = {KC_COMM, KC_DOT, COMBO_END};
|
||||
|
||||
|
||||
combo_t key_combos[COMBO_COUNT] = {
|
||||
[combo_ESC] = COMBO(esc_combo, KC_ESC),
|
||||
[combo_BACK] = COMBO(bspc_combo, KC_BSPC),
|
||||
[combo_TAB] = COMBO(tab_combo, KC_TAB),
|
||||
[combo_DELETE] = COMBO(del_combo, KC_DEL),
|
||||
[combo_ENTER] = COMBO(enter_combo, KC_ENT),
|
||||
[combo_LPRN] = COMBO(lprn_combo, KC_LPRN),
|
||||
[combo_RPRN] = COMBO(rprn_combo, KC_RPRN),
|
||||
};
|
||||
|
||||
#define BASE TO(_BASE)
|
||||
#define CODE MO(_CODE)
|
||||
#define MATH TG(_MATH)
|
||||
#define FUNC MO(_FUNC)
|
||||
#define xxx KC_TRNS
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT_3uc(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, MATH, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_HOME, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
LSFT_T(KC_Z), KC_X, KC_C, KC_V, KC_B, KC_END, KC_N, KC_M, KC_COMM, KC_DOT, RSFT_T(KC_SLSH),
|
||||
KC_LALT, KC_LCTL, CODE, KC_SPC, CODE, KC_RGUI, FUNC
|
||||
),
|
||||
|
||||
[_CODE] = LAYOUT_3uc(
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, xxx, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||
KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_PGUP, KC_CIRC, KC_AMPR, KC_ASTR, KC_MINS, KC_EQL,
|
||||
KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, xxx, KC_PGDN, xxx, KC_PIPE, KC_BSLS, KC_DQUO, KC_QUOT,
|
||||
xxx, xxx, xxx, xxx, xxx, KC_PGUP, KC_PGDN
|
||||
),
|
||||
|
||||
[_MATH] = LAYOUT_3uc(
|
||||
xxx, xxx, xxx, xxx, xxx, BASE, xxx, KC_P7, KC_P8, KC_P9, KC_PPLS,
|
||||
xxx, xxx, xxx, xxx, xxx, xxx, xxx, KC_P4, KC_P5, KC_P6, KC_PCMM,
|
||||
xxx, xxx, xxx, xxx, xxx, xxx, xxx, KC_P1, KC_P2, KC_P3, KC_PEQL,
|
||||
xxx, xxx, xxx, xxx, KC_P0, KC_PDOT, KC_PENT
|
||||
|
||||
),
|
||||
|
||||
[_FUNC] = LAYOUT_3uc(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, xxx, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
|
||||
xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, KC_F11, KC_F12,
|
||||
xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx,
|
||||
xxx, xxx, xxx, xxx, xxx, xxx, xxx
|
||||
)
|
||||
|
||||
};
|
||||
|
1
keyboards/packrat/keymaps/3uc/readme.md
Normal file
1
keyboards/packrat/keymaps/3uc/readme.md
Normal file
|
@ -0,0 +1 @@
|
|||
# Centered 3uC Packrat Keymap
|
1
keyboards/packrat/keymaps/3uc/rules.mk
Normal file
1
keyboards/packrat/keymaps/3uc/rules.mk
Normal file
|
@ -0,0 +1 @@
|
|||
COMBO_ENABLE = yes
|
19
keyboards/packrat/keymaps/default/config.h
Normal file
19
keyboards/packrat/keymaps/default/config.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/* Copyright 2021 drhigsby
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define COMBO_COUNT 7
|
||||
#define COMBO_TERM 40
|
81
keyboards/packrat/keymaps/default/keymap.c
Normal file
81
keyboards/packrat/keymaps/default/keymap.c
Normal file
|
@ -0,0 +1,81 @@
|
|||
/* Copyright 2021 drhigsby
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layers{
|
||||
_BASE,
|
||||
_CODE,
|
||||
_FUNC
|
||||
};
|
||||
|
||||
enum combo_events {
|
||||
combo_ESC,
|
||||
combo_BACK,
|
||||
combo_TAB,
|
||||
combo_DELETE,
|
||||
combo_ENTER,
|
||||
combo_LPRN,
|
||||
combo_RPRN,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM esc_combo[] = {KC_Q, KC_W, COMBO_END};
|
||||
const uint16_t PROGMEM bspc_combo[] = {KC_O, KC_P, COMBO_END};
|
||||
const uint16_t PROGMEM tab_combo[] = {KC_A, KC_S, COMBO_END};
|
||||
const uint16_t PROGMEM del_combo[] = {KC_I, KC_O, COMBO_END};
|
||||
const uint16_t PROGMEM enter_combo[] = {KC_L, KC_SCLN, COMBO_END};
|
||||
const uint16_t PROGMEM lprn_combo[] = {KC_X, KC_C, COMBO_END};
|
||||
const uint16_t PROGMEM rprn_combo[] = {KC_COMM, KC_DOT, COMBO_END};
|
||||
|
||||
|
||||
combo_t key_combos[COMBO_COUNT] = {
|
||||
[combo_ESC] = COMBO(esc_combo, KC_ESC),
|
||||
[combo_BACK] = COMBO(bspc_combo, KC_BSPC),
|
||||
[combo_TAB] = COMBO(tab_combo, KC_TAB),
|
||||
[combo_DELETE] = COMBO(del_combo, KC_DEL),
|
||||
[combo_ENTER] = COMBO(enter_combo, KC_ENT),
|
||||
[combo_LPRN] = COMBO(lprn_combo, KC_LPRN),
|
||||
[combo_RPRN] = COMBO(rprn_combo, KC_RPRN),
|
||||
};
|
||||
|
||||
#define CODE MO(_CODE)
|
||||
#define FUNC MO(_FUNC)
|
||||
#define xxx KC_TRNS
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT_2x3uc(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_HOME, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
LSFT_T(KC_Z), KC_X, KC_C, KC_V, KC_B, KC_END, KC_N, KC_M, KC_COMM, KC_DOT, RSFT_T(KC_SLSH),
|
||||
KC_LCTL, KC_LALT, CODE, KC_SPC, KC_RGUI, FUNC
|
||||
),
|
||||
|
||||
[_CODE] = LAYOUT_2x3uc(
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_GRV, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||
KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CAPS, KC_CIRC, KC_AMPR, KC_ASTR, KC_MINS, KC_EQL,
|
||||
KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, xxx, xxx, xxx, KC_PIPE, KC_BSLS, KC_DQUO, KC_QUOT,
|
||||
xxx, xxx, xxx, xxx, KC_PGUP, KC_PGDN
|
||||
),
|
||||
|
||||
[_FUNC] = LAYOUT_2x3uc(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, xxx, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
|
||||
xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, KC_F11, KC_F12,
|
||||
xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx, xxx,
|
||||
xxx, xxx, xxx, xxx, xxx, xxx
|
||||
)
|
||||
|
||||
};
|
||||
|
3
keyboards/packrat/keymaps/default/readme.md
Normal file
3
keyboards/packrat/keymaps/default/readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Default Packrat Keymap
|
||||
|
||||
The default Packrat Keymap uses the 2x3uC layout.
|
1
keyboards/packrat/keymaps/default/rules.mk
Normal file
1
keyboards/packrat/keymaps/default/rules.mk
Normal file
|
@ -0,0 +1 @@
|
|||
COMBO_ENABLE = yes
|
28
keyboards/packrat/packrat.c
Normal file
28
keyboards/packrat/packrat.c
Normal file
|
@ -0,0 +1,28 @@
|
|||
/* Copyright 2021 drhigsby
|
||||
*
|
||||
* 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 "packrat.h"
|
||||
|
||||
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||
if (!encoder_update_user(index, clockwise)) { return false; }
|
||||
if (index == 0) {
|
||||
if (clockwise) {
|
||||
tap_code_delay(KC_VOLU, 10);
|
||||
} else {
|
||||
tap_code_delay(KC_VOLD, 10);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
79
keyboards/packrat/packrat.h
Normal file
79
keyboards/packrat/packrat.h
Normal file
|
@ -0,0 +1,79 @@
|
|||
/* Copyright 2021 drhigsby
|
||||
*
|
||||
* 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"
|
||||
|
||||
#define LAYOUT_3uc( \
|
||||
k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, \
|
||||
k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, \
|
||||
k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, \
|
||||
k301, k302, k303, k305, k307, k308, k309 \
|
||||
) { \
|
||||
{ k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010 }, \
|
||||
{ k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110 }, \
|
||||
{ k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210 }, \
|
||||
{ KC_NO, k301, k302, k303, KC_NO, k305, KC_NO, k307, k308, k309 } \
|
||||
}
|
||||
|
||||
#define LAYOUT_2x2uc( \
|
||||
k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, \
|
||||
k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, \
|
||||
k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, \
|
||||
k301, k302, k303, k305, k307, k308, k309 \
|
||||
) { \
|
||||
{ k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010 }, \
|
||||
{ k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110 }, \
|
||||
{ k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210 }, \
|
||||
{ KC_NO, k301, k302, k303, KC_NO, k305, KC_NO, k307, k308, k309 } \
|
||||
}
|
||||
|
||||
#define LAYOUT_7uc( \
|
||||
k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, \
|
||||
k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, \
|
||||
k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, \
|
||||
k301, k305, k309 \
|
||||
) { \
|
||||
{ k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010 }, \
|
||||
{ k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110 }, \
|
||||
{ k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210 }, \
|
||||
{ KC_NO, k301, KC_NO, KC_NO, KC_NO, k305, KC_NO, KC_NO, KC_NO, k309 } \
|
||||
}
|
||||
|
||||
#define LAYOUT_2x3uc( \
|
||||
k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, \
|
||||
k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, \
|
||||
k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, \
|
||||
k301, k302, k303, k307, k308, k309 \
|
||||
) { \
|
||||
{ k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010 }, \
|
||||
{ k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110 }, \
|
||||
{ k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210 }, \
|
||||
{ KC_NO, k301, k302, k303, KC_NO, KC_NO, KC_NO, k307, k308, k309 } \
|
||||
}
|
||||
|
||||
#define LAYOUT_6uc( \
|
||||
k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, \
|
||||
k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, \
|
||||
k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, \
|
||||
k301, k302, k305, k308, k309 \
|
||||
) { \
|
||||
{ k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010 }, \
|
||||
{ k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110 }, \
|
||||
{ k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210 }, \
|
||||
{ KC_NO, k301, k302, KC_NO, KC_NO, k305, KC_NO, KC_NO, k308, k309 } \
|
||||
}
|
25
keyboards/packrat/readme.md
Normal file
25
keyboards/packrat/readme.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Packrat
|
||||
|
||||
![Packrat](https://i.imgur.com/t6vWYIbh.jpeg)
|
||||
|
||||
Full Gallery: https://imgur.com/gallery/fZklCG6
|
||||
|
||||
Packrat is an 11u wide ortholinear keyboard featuring multiple bottom row options and top-centered rotary encoder support.
|
||||
|
||||
* Keyboard Maintainer: [H. Bond](https://github.com/drhigsby)
|
||||
* Hardware Supported: Packrat (https://github.com/drhigsby/packrat)
|
||||
* Hardware Availability: cases available at TBD / make your own
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make packrat:default
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in 3 ways:
|
||||
|
||||
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
|
||||
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
|
||||
* **Keycode in layout**: Press the key mapped to `RESET` if it is available
|
23
keyboards/packrat/rules.mk
Normal file
23
keyboards/packrat/rules.mk
Normal file
|
@ -0,0 +1,23 @@
|
|||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = caterina
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
LTO_ENABLE = no # Use link time optimization
|
||||
ENCODER_ENABLE = yes
|
55
keyboards/splitography/config.h
Normal file
55
keyboards/splitography/config.h
Normal file
|
@ -0,0 +1,55 @@
|
|||
/* Copyright 2021 Alexis Jeandeau
|
||||
*
|
||||
* 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 "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define PRODUCT Splitography
|
||||
|
||||
/* Key matrix size */
|
||||
#define MATRIX_ROWS 4
|
||||
#define MATRIX_COLS 12
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 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
|
||||
|
||||
/*
|
||||
* Force NKRO
|
||||
*
|
||||
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
||||
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
||||
* makefile for this to work.)
|
||||
*
|
||||
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
||||
* until the next keyboard reset.
|
||||
*
|
||||
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
||||
* fully operational during normal computer usage.
|
||||
*
|
||||
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
||||
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
||||
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
||||
* power-up.
|
||||
*
|
||||
*/
|
||||
//#define FORCE_NKRO
|
302
keyboards/splitography/info.json
Normal file
302
keyboards/splitography/info.json
Normal file
|
@ -0,0 +1,302 @@
|
|||
{
|
||||
"manufacturer": "SOFT/HRUF",
|
||||
"keyboard_name": "Splitography",
|
||||
"url": "https://softhruf.love/collections/writers",
|
||||
"maintainer": "qmk",
|
||||
"processor": "atmega32u4",
|
||||
"diode_direction": "COL2ROW",
|
||||
"features": {
|
||||
"steno": true,
|
||||
"nkro": true,
|
||||
"bootmagic": true,
|
||||
"mousekey": false,
|
||||
"extrakey": true,
|
||||
"console": false,
|
||||
"audio": false,
|
||||
"command": false,
|
||||
"backlight": false
|
||||
},
|
||||
"matrix_pins": {
|
||||
"rows": ["D0", "D1", "D2", "D3"],
|
||||
"cols": ["F0", "F1", "F4", "F5", "F6", "F7", "C7", "C6", "B6", "B5", "B4", "D7"]
|
||||
},
|
||||
"usb": {
|
||||
"vid": "0xFEED",
|
||||
"pid": "0x6060",
|
||||
"device_ver": "0x0001"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"h": 0.6,
|
||||
"matrix": [0, 0],
|
||||
"label": "Esc"
|
||||
},
|
||||
{
|
||||
"x": 1,
|
||||
"y": 0,
|
||||
"h": 0.6,
|
||||
"matrix": [0, 1],
|
||||
"label": "Q"
|
||||
},
|
||||
{
|
||||
"x": 2,
|
||||
"y": 0,
|
||||
"h": 0.6,
|
||||
"matrix": [0, 2],
|
||||
"label": "W"
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 0,
|
||||
"h": 0.6,
|
||||
"matrix": [0, 3],
|
||||
"label": "E"
|
||||
},
|
||||
{
|
||||
"x": 4,
|
||||
"y": 0,
|
||||
"h": 0.6,
|
||||
"matrix": [0, 4],
|
||||
"label": "R"
|
||||
},
|
||||
{
|
||||
"x": 5,
|
||||
"y": 0,
|
||||
"h": 0.6,
|
||||
"matrix": [0, 5],
|
||||
"label": "T"
|
||||
},
|
||||
{
|
||||
"x": 8,
|
||||
"y": 0,
|
||||
"h": 0.6,
|
||||
"matrix": [0, 6],
|
||||
"label": "Y"
|
||||
},
|
||||
{
|
||||
"x": 9,
|
||||
"y": 0,
|
||||
"h": 0.6,
|
||||
"matrix": [0, 7],
|
||||
"label": "U"
|
||||
},
|
||||
{
|
||||
"x": 10,
|
||||
"y": 0,
|
||||
"h": 0.6,
|
||||
"matrix": [0, 8],
|
||||
"label": "I"
|
||||
},
|
||||
{
|
||||
"x": 11,
|
||||
"y": 0,
|
||||
"h": 0.6,
|
||||
"matrix": [0, 9],
|
||||
"label": "O"
|
||||
},
|
||||
{
|
||||
"x": 12,
|
||||
"y": 0,
|
||||
"h": 0.6,
|
||||
"matrix": [0, 10],
|
||||
"label": "P"
|
||||
},
|
||||
{
|
||||
"x": 13,
|
||||
"y": 0,
|
||||
"h": 0.6,
|
||||
"matrix": [0, 11],
|
||||
"label": "Backspace"
|
||||
},
|
||||
{
|
||||
"x": 0,
|
||||
"y": 0.6,
|
||||
"matrix": [1, 0],
|
||||
"label": "Alt"
|
||||
},
|
||||
{
|
||||
"x": 1,
|
||||
"y": 0.6,
|
||||
"matrix": [1, 1],
|
||||
"label": "A"
|
||||
},
|
||||
{
|
||||
"x": 2,
|
||||
"y": 0.6,
|
||||
"matrix": [1, 2],
|
||||
"label": "S"
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 0.6,
|
||||
"matrix": [1, 3],
|
||||
"label": "D"
|
||||
},
|
||||
{
|
||||
"x": 4,
|
||||
"y": 0.6,
|
||||
"matrix": [1, 4],
|
||||
"label": "F"
|
||||
},
|
||||
{
|
||||
"x": 5,
|
||||
"y": 0.6,
|
||||
"matrix": [1, 5],
|
||||
"label": "G"
|
||||
},
|
||||
{
|
||||
"x": 8,
|
||||
"y": 0.6,
|
||||
"matrix": [1, 6],
|
||||
"label": "H"
|
||||
},
|
||||
{
|
||||
"x": 9,
|
||||
"y": 0.6,
|
||||
"matrix": [1, 7],
|
||||
"label": "J"
|
||||
},
|
||||
{
|
||||
"x": 10,
|
||||
"y": 0.6,
|
||||
"matrix": [1, 8],
|
||||
"label": "K"
|
||||
},
|
||||
{
|
||||
"x": 11,
|
||||
"y": 0.6,
|
||||
"matrix": [1, 9],
|
||||
"label": "L"
|
||||
},
|
||||
{
|
||||
"x": 12,
|
||||
"y": 0.6,
|
||||
"matrix": [1, 10],
|
||||
"label": ";"
|
||||
},
|
||||
{
|
||||
"x": 13,
|
||||
"y": 0.6,
|
||||
"matrix": [1, 11],
|
||||
"label": "Enter"
|
||||
},
|
||||
{
|
||||
"x": 0,
|
||||
"y": 1.6,
|
||||
"h": 1.2,
|
||||
"matrix": [2, 0],
|
||||
"label": "Shift"
|
||||
},
|
||||
{
|
||||
"x": 1,
|
||||
"y": 1.6,
|
||||
"h": 1.2,
|
||||
"matrix": [2, 1],
|
||||
"label": "Z"
|
||||
},
|
||||
{
|
||||
"x": 2,
|
||||
"y": 1.6,
|
||||
"h": 1.2,
|
||||
"matrix": [2, 2],
|
||||
"label": "X"
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 1.6,
|
||||
"h": 1.2,
|
||||
"matrix": [2, 3],
|
||||
"label": "C"
|
||||
},
|
||||
{
|
||||
"x": 4,
|
||||
"y": 1.6,
|
||||
"h": 1.2,
|
||||
"matrix": [2, 4],
|
||||
"label": "V"
|
||||
},
|
||||
{
|
||||
"x": 5,
|
||||
"y": 1.6,
|
||||
"h": 1.2,
|
||||
"matrix": [2, 5],
|
||||
"label": "B"
|
||||
},
|
||||
{
|
||||
"x": 8,
|
||||
"y": 1.6,
|
||||
"h": 1.2,
|
||||
"matrix": [2, 6],
|
||||
"label": "N"
|
||||
},
|
||||
{
|
||||
"x": 9,
|
||||
"y": 1.6,
|
||||
"h": 1.2,
|
||||
"matrix": [2, 7],
|
||||
"label": "M"
|
||||
},
|
||||
{
|
||||
"x": 10,
|
||||
"y": 1.6,
|
||||
"h": 1.2,
|
||||
"matrix": [2, 8],
|
||||
"label": ","
|
||||
},
|
||||
{
|
||||
"x": 11,
|
||||
"y": 1.6,
|
||||
"h": 1.2,
|
||||
"matrix": [2, 9],
|
||||
"label": "c"
|
||||
},
|
||||
{
|
||||
"x": 12,
|
||||
"y": 1.6,
|
||||
"h": 1.2,
|
||||
"matrix": [2, 10],
|
||||
"label": "/"
|
||||
},
|
||||
{
|
||||
"x": 13,
|
||||
"y": 1.6,
|
||||
"h": 1.2,
|
||||
"matrix": [2, 11],
|
||||
"label": "Super"
|
||||
},
|
||||
{
|
||||
"x": 3.5,
|
||||
"y": 3,
|
||||
"h": 1.2,
|
||||
"matrix": [3, 4],
|
||||
"label": "Orange"
|
||||
},
|
||||
{
|
||||
"x": 4.5,
|
||||
"y": 3,
|
||||
"h": 1.2,
|
||||
"matrix": [3, 5],
|
||||
"label": "Blue"
|
||||
},
|
||||
{
|
||||
"x": 8.5,
|
||||
"y": 3,
|
||||
"h": 1.2,
|
||||
"matrix": [3, 6],
|
||||
"label": "Space"
|
||||
},
|
||||
{
|
||||
"x": 9.5,
|
||||
"y": 3,
|
||||
"h": 1.2,
|
||||
"matrix": [3, 7],
|
||||
"label": "Ctrl"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
291
keyboards/splitography/keymaps/default/keymap.c
Normal file
291
keyboards/splitography/keymaps/default/keymap.c
Normal file
|
@ -0,0 +1,291 @@
|
|||
/* Copyright 2021 Alexis Jeandeau
|
||||
*
|
||||
* 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_steno.h"
|
||||
|
||||
enum keyboard_layers {
|
||||
_QWERTY = 0,
|
||||
_GEMINI,
|
||||
_PLOVER,
|
||||
_BLUE,
|
||||
_ORANGE,
|
||||
_GREEN,
|
||||
_NUM,
|
||||
_END_LAYERS,
|
||||
};
|
||||
|
||||
enum keyboard_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
QWERTY1,
|
||||
QWERTY2,
|
||||
GEMINI,
|
||||
PLOVER,
|
||||
BLUE,
|
||||
ORANGE,
|
||||
};
|
||||
|
||||
#define COPY LCTL(KC_C)
|
||||
#define CUT LCTL(KC_X)
|
||||
#define PASTE LCTL(KC_V)
|
||||
#define UNDO LCTL(KC_Z)
|
||||
#define TG_NUM TG(_NUM)
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
// ...................................................................... Qwerty
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/1b04ce6be0cee6e5d2998b2a8efb8b09
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ Esc │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ Bksp │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ Blue │ Space│ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_QWERTY] = LAYOUT(
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
KC_LALT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT ,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LGUI,
|
||||
ORANGE, BLUE, KC_SPC, KC_LCTL
|
||||
),
|
||||
|
||||
// .................................................................. Blue Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/054b8bc0e31971bb962ea1c781232e0b
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Stop │ Prev │ Play │ Next │ +Vol │ │ │ │ [ │ ] │ ' │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Undo │ Cut │ Copy │ Paste│ -Vol │ Mute │ │ │ - │ = │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ f() │ Del │ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_BLUE] = LAYOUT(
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, XXXXXXX,
|
||||
KC_LALT, KC_MSTP, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, KC_LBRC, KC_RBRC, KC_QUOT,
|
||||
KC_LSFT, UNDO, CUT, COPY, PASTE, KC_VOLD, KC_MUTE, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_LGUI,
|
||||
ORANGE, _______, KC_DEL, KC_LCTL
|
||||
),
|
||||
|
||||
// ................................................................ Orange Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/83ccc7c3faa78b1f67f6fef65063a248
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │Plover│ F1 │ F2 │ F3 │ F4 │ │ App │ PrScr│ScrLck│ Pause│ │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ F5 │ F6 │ F7 │ F8 │ │ │Insert│ Home │ PgUp │ │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ F9 │ F10 │ F11 │ F12 │ │ │ Del │ End │ PgDn │ \ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ f() │ Blue │ Tab │ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_ORANGE] = LAYOUT(
|
||||
PLOVER, KC_F1, KC_F2, KC_F3, KC_F4, XXXXXXX, KC_APP, KC_PSCR, KC_SLCK, KC_PAUS, XXXXXXX, XXXXXXX,
|
||||
KC_LALT, KC_F5, KC_F6, KC_F7, KC_F8, XXXXXXX, XXXXXXX, KC_INS, KC_HOME, KC_PGUP, XXXXXXX, XXXXXXX,
|
||||
KC_LSFT, KC_F9, KC_F10, KC_F11, KC_F12, XXXXXXX, XXXXXXX, KC_DEL, KC_END, KC_PGDN, KC_BSLS, KC_LGUI,
|
||||
_______, BLUE, KC_TAB, KC_LCTL
|
||||
),
|
||||
|
||||
// ................................................................. Green Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/bc7902f1eada4d7d34d3445aa1eccdab
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │Gemini│ │ │ │ │Scroll│ / │ 7 │ 8 │ 9 │ - │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Home │ Up │ End │ PgUp │ Caps │ * │ 4 │ 5 │ 6 │ + │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Left │ Down │ Right│ PgDn │ Num │ 0 │ 1 │ 2 │ 3 │ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ f() │ f() │ -- │ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_GREEN] = LAYOUT(
|
||||
GEMINI, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_SLCK, KC_PSLS, KC_P7, KC_P8, KC_P9, KC_MINS, XXXXXXX,
|
||||
KC_LALT, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_CAPS, KC_PAST, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_ENT ,
|
||||
KC_LSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, TG_NUM, KC_P0, KC_P1, KC_P2, KC_P3, XXXXXXX, KC_LGUI,
|
||||
_______, _______, XXXXXXX, KC_LCTL
|
||||
),
|
||||
|
||||
// ................................................................... Num Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/bc7902f1eada4d7d34d3445aa1eccdab
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ │ │ │ │ │ │ / │ 7 │ 8 │ 9 │ - │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Home │ Up │ End │ PgUp │ │ * │ 4 │ 5 │ 6 │ + │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Left │ Down │ Right│ PgDn │ f() │ 0 │ 1 │ 2 │ 3 │ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ -- │ -- │ -- │ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_NUM] = LAYOUT(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PSLS, KC_P7, KC_P8, KC_P9, KC_PMNS, XXXXXXX,
|
||||
KC_LALT, KC_HOME, KC_UP, KC_END, KC_PGUP, XXXXXXX, KC_PAST, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_ENT ,
|
||||
KC_LSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, QWERTY, KC_P0, KC_P1, KC_P2, KC_P3, XXXXXXX, KC_LGUI,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_LCTL
|
||||
),
|
||||
|
||||
// ...................................................................... Plover
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/27b8f8649393a8ba4071ba946a9306f4
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │Qwerty│ S │ T │ P │ H │ * │ * │ F │ P │ L │ T │ D │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │Qwerty│ S │ K │ W │ R │ * │ * │ R │ B │ G │ S │ Z │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ A │ O │ E │ U │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_PLOVER] = LAYOUT(
|
||||
KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1 ,
|
||||
QWERTY1, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,
|
||||
QWERTY2, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
||||
KC_C, KC_V, KC_N, KC_M
|
||||
),
|
||||
|
||||
// ...................................................................... Gemini
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/27b8f8649393a8ba4071ba946a9306f4
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │Qwerty│ S │ T │ P │ H │ * │ * │ F │ P │ L │ T │ D │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │Qwerty│ S │ K │ W │ R │ * │ * │ R │ B │ G │ S │ Z │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ A │ O │ E │ U │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_GEMINI] = LAYOUT(
|
||||
STN_N1, STN_N2, STN_N3, STN_N4, STN_N5, STN_N6, STN_N7, STN_N8, STN_N9, STN_NA, STN_NB, STN_NC ,
|
||||
QWERTY1, STN_S1, STN_TL, STN_PL, STN_HL, STN_ST1, STN_ST3, STN_FR, STN_PR, STN_LR, STN_TR, STN_DR ,
|
||||
QWERTY2, STN_S2, STN_KL, STN_WL, STN_RL, STN_ST2, STN_ST4, STN_RR, STN_BR, STN_GR, STN_SR, STN_ZR ,
|
||||
STN_A, STN_O, STN_E, STN_U
|
||||
),
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
// ..................................................................... Keymaps
|
||||
|
||||
#define QWERTY_1 1
|
||||
#define QWERTY_2 2
|
||||
#define QWERTY_12 3
|
||||
static uint8_t qwerty_n = 0;
|
||||
|
||||
void qwerty(void) {
|
||||
qwerty_n = 0;
|
||||
layer_move(0);
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
|
||||
void plover(keyrecord_t *record) {
|
||||
if (record->event.pressed) {
|
||||
layer_move(0);
|
||||
layer_on(_PLOVER);
|
||||
if (!eeconfig_is_enabled()) {
|
||||
eeconfig_init();
|
||||
}
|
||||
keymap_config.raw = eeconfig_read_keymap();
|
||||
keymap_config.nkro = 1;
|
||||
eeconfig_update_keymap(keymap_config.raw);
|
||||
}
|
||||
}
|
||||
|
||||
void gemini(void) {
|
||||
layer_move(0);
|
||||
layer_on(_GEMINI);
|
||||
}
|
||||
|
||||
// ........................................................... User Keycode Trap
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
qwerty();
|
||||
}
|
||||
return false;
|
||||
case QWERTY1:
|
||||
if (record->event.pressed) {
|
||||
qwerty_n = qwerty_n | QWERTY_1;
|
||||
if (qwerty_n == QWERTY_12) {
|
||||
qwerty();
|
||||
}
|
||||
} else {
|
||||
qwerty_n = qwerty_n & ~QWERTY_1;
|
||||
}
|
||||
return false;
|
||||
case QWERTY2:
|
||||
if (record->event.pressed) {
|
||||
qwerty_n = qwerty_n | QWERTY_2;
|
||||
if (qwerty_n == QWERTY_12) {
|
||||
qwerty();
|
||||
}
|
||||
} else {
|
||||
qwerty_n = qwerty_n & ~QWERTY_2;
|
||||
}
|
||||
return false;
|
||||
case BLUE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_BLUE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
} else {
|
||||
layer_off(_BLUE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
}
|
||||
return false;
|
||||
case ORANGE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ORANGE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
} else {
|
||||
layer_off(_ORANGE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
}
|
||||
return false;
|
||||
case PLOVER:
|
||||
plover(record);
|
||||
return false;
|
||||
case GEMINI:
|
||||
if (record->event.pressed) {
|
||||
gemini();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Initialize the steno protocol
|
||||
void eeconfig_init_user(void) {
|
||||
steno_set_mode(STENO_MODE_BOLT); // or STENO_MODE_GEMINI
|
||||
}
|
14
keyboards/splitography/keymaps/default/readme.md
Normal file
14
keyboards/splitography/keymaps/default/readme.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
# [Guide](https://softhruf.love/pages/guides)
|
||||
|
||||
[Splitography quick start video](https://www.youtube.com/watch?v=ru4cRQ2s_v0)
|
||||
|
||||
A short video guide on how to set up the SOFT/HRUF Splitography, a mechanical keyboard intended for use with [Plover](https://www.openstenoproject.org/plover/).
|
||||
|
||||
Here is a reference card for the standard keyboard layout:
|
||||
|
||||
![Reference card](https://i.imgur.com/ywe8jXR.png)
|
||||
|
||||
* While holding down a colored thumb key, the matching colored functions/characters on the remaining keys can be pressed.
|
||||
* Bottom edge keys are accessed by holding down both keys.
|
||||
* Numlock locks in the Numpad layer.
|
||||
* Alt and Shift pressed simultaneously to return to the standard layout.
|
|
@ -0,0 +1,291 @@
|
|||
/* Copyright 2021 Alexis Jeandeau
|
||||
*
|
||||
* 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_steno.h"
|
||||
|
||||
enum keyboard_layers {
|
||||
_QWERTY = 0,
|
||||
_TXBOLT,
|
||||
_PLOVER,
|
||||
_BLUE,
|
||||
_ORANGE,
|
||||
_GREEN,
|
||||
_NUM,
|
||||
_END_LAYERS,
|
||||
};
|
||||
|
||||
enum keyboard_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
QWERTY1,
|
||||
QWERTY2,
|
||||
TXBOLT,
|
||||
PLOVER,
|
||||
BLUE,
|
||||
ORANGE,
|
||||
};
|
||||
|
||||
#define COPY LCTL(KC_C)
|
||||
#define CUT LCTL(KC_X)
|
||||
#define PASTE LCTL(KC_V)
|
||||
#define UNDO LCTL(KC_Z)
|
||||
#define TG_NUM TG(_NUM)
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
// ...................................................................... Qwerty
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/1b04ce6be0cee6e5d2998b2a8efb8b09
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ Esc │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ Bksp │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Ctrl │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ Blue │ Space│ Shift│
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_QWERTY] = LAYOUT(
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT ,
|
||||
KC_LALT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LGUI,
|
||||
ORANGE, BLUE, KC_SPC, KC_LSFT
|
||||
),
|
||||
|
||||
// .................................................................. Blue Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/054b8bc0e31971bb962ea1c781232e0b
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Ctrl │ Stop │ Prev │ Play │ Next │ +Vol │ │ │ │ [ │ ] │ ' │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Undo │ Cut │ Copy │ Paste│ -Vol │ Mute │ │ │ - │ = │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ f() │ Del │ Shift│
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_BLUE] = LAYOUT(
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, XXXXXXX,
|
||||
KC_LCTL, KC_MSTP, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, KC_LBRC, KC_RBRC, KC_QUOT,
|
||||
KC_LALT, UNDO, CUT, COPY, PASTE, KC_VOLD, KC_MUTE, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_LGUI,
|
||||
ORANGE, _______, KC_DEL, KC_LSFT
|
||||
),
|
||||
|
||||
// ................................................................ Orange Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/83ccc7c3faa78b1f67f6fef65063a248
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │Plover│ F1 │ F2 │ F3 │ F4 │ │ App │ PrScr│ScrLck│ Pause│ │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Ctrl │ F5 │ F6 │ F7 │ F8 │ │ │Insert│ Home │ PgUp │ │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ F9 │ F10 │ F11 │ F12 │ │ │ Del │ End │ PgDn │ \ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ f() │ Blue │ Tab │ Shift│
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_ORANGE] = LAYOUT(
|
||||
PLOVER, KC_F1, KC_F2, KC_F3, KC_F4, XXXXXXX, KC_APP, KC_PSCR, KC_SLCK, KC_PAUS, XXXXXXX, XXXXXXX,
|
||||
KC_LCTL, KC_F5, KC_F6, KC_F7, KC_F8, XXXXXXX, XXXXXXX, KC_INS, KC_HOME, KC_PGUP, XXXXXXX, XXXXXXX,
|
||||
KC_LALT, KC_F9, KC_F10, KC_F11, KC_F12, XXXXXXX, XXXXXXX, KC_DEL, KC_END, KC_PGDN, KC_BSLS, KC_LGUI,
|
||||
_______, BLUE, KC_TAB, KC_LSFT
|
||||
),
|
||||
|
||||
// ................................................................. Green Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/bc7902f1eada4d7d34d3445aa1eccdab
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │TxBolt│ │ │ │ │Scroll│ / │ 7 │ 8 │ 9 │ - │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Ctrl │ Home │ Up │ End │ PgUp │ Caps │ * │ 4 │ 5 │ 6 │ + │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Left │ Down │ Right│ PgDn │ Num │ 0 │ 1 │ 2 │ 3 │ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ f() │ f() │ -- │ Shift│
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_GREEN] = LAYOUT(
|
||||
TXBOLT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_SLCK, KC_PSLS, KC_P7, KC_P8, KC_P9, KC_MINS, XXXXXXX,
|
||||
KC_LCTL, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_CAPS, KC_PAST, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_ENT ,
|
||||
KC_LALT, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, TG_NUM, KC_P0, KC_P1, KC_P2, KC_P3, XXXXXXX, KC_LGUI,
|
||||
_______, _______, XXXXXXX, KC_LSFT
|
||||
),
|
||||
|
||||
// ................................................................... Num Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/bc7902f1eada4d7d34d3445aa1eccdab
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ │ │ │ │ │ │ / │ 7 │ 8 │ 9 │ - │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Ctrl │ Home │ Up │ End │ PgUp │ │ * │ 4 │ 5 │ 6 │ + │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Left │ Down │ Right│ PgDn │ f() │ 0 │ 1 │ 2 │ 3 │ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ -- │ -- │ -- │ Shift│
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_NUM] = LAYOUT(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PSLS, KC_P7, KC_P8, KC_P9, KC_PMNS, XXXXXXX,
|
||||
KC_LCTL, KC_HOME, KC_UP, KC_END, KC_PGUP, XXXXXXX, KC_PAST, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_ENT ,
|
||||
KC_LALT, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, QWERTY, KC_P0, KC_P1, KC_P2, KC_P3, XXXXXXX, KC_LGUI,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_LSFT
|
||||
),
|
||||
|
||||
// ...................................................................... Plover
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/27b8f8649393a8ba4071ba946a9306f4
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │Qwerty│ S │ T │ P │ H │ * │ * │ F │ P │ L │ T │ D │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │Qwerty│ S │ K │ W │ R │ * │ * │ R │ B │ G │ S │ Z │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ A │ O │ E │ U │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_PLOVER] = LAYOUT(
|
||||
KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1 ,
|
||||
QWERTY1, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,
|
||||
QWERTY2, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
||||
KC_C, KC_V, KC_N, KC_M
|
||||
),
|
||||
|
||||
// ...................................................................... TxBolt
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/27b8f8649393a8ba4071ba946a9306f4
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │Qwerty│ S │ T │ P │ H │ * │ * │ F │ P │ L │ T │ D │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │Qwerty│ S │ K │ W │ R │ * │ * │ R │ B │ G │ S │ Z │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ A │ O │ E │ U │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_TXBOLT] = LAYOUT(
|
||||
STN_N1, STN_N2, STN_N3, STN_N4, STN_N5, STN_N6, STN_N7, STN_N8, STN_N9, STN_NA, STN_NB, STN_NC ,
|
||||
QWERTY1, STN_S1, STN_TL, STN_PL, STN_HL, STN_ST1, STN_ST3, STN_FR, STN_PR, STN_LR, STN_TR, STN_DR ,
|
||||
QWERTY2, STN_S2, STN_KL, STN_WL, STN_RL, STN_ST2, STN_ST4, STN_RR, STN_BR, STN_GR, STN_SR, STN_ZR ,
|
||||
STN_A, STN_O, STN_E, STN_U
|
||||
),
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
// ..................................................................... Keymaps
|
||||
|
||||
#define QWERTY_1 1
|
||||
#define QWERTY_2 2
|
||||
#define QWERTY_12 3
|
||||
static uint8_t qwerty_n = 0;
|
||||
|
||||
void qwerty(void) {
|
||||
qwerty_n = 0;
|
||||
layer_move(0);
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
|
||||
void plover(keyrecord_t *record) {
|
||||
if (record->event.pressed) {
|
||||
layer_move(0);
|
||||
layer_on(_PLOVER);
|
||||
if (!eeconfig_is_enabled()) {
|
||||
eeconfig_init();
|
||||
}
|
||||
keymap_config.raw = eeconfig_read_keymap();
|
||||
keymap_config.nkro = 1;
|
||||
eeconfig_update_keymap(keymap_config.raw);
|
||||
}
|
||||
}
|
||||
|
||||
void txbolt(void) {
|
||||
layer_move(0);
|
||||
layer_on(_TXBOLT);
|
||||
}
|
||||
|
||||
// ........................................................... User Keycode Trap
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
qwerty();
|
||||
}
|
||||
return false;
|
||||
case QWERTY1:
|
||||
if (record->event.pressed) {
|
||||
qwerty_n = qwerty_n | QWERTY_1;
|
||||
if (qwerty_n == QWERTY_12) {
|
||||
qwerty();
|
||||
}
|
||||
} else {
|
||||
qwerty_n = qwerty_n & ~QWERTY_1;
|
||||
}
|
||||
return false;
|
||||
case QWERTY2:
|
||||
if (record->event.pressed) {
|
||||
qwerty_n = qwerty_n | QWERTY_2;
|
||||
if (qwerty_n == QWERTY_12) {
|
||||
qwerty();
|
||||
}
|
||||
} else {
|
||||
qwerty_n = qwerty_n & ~QWERTY_2;
|
||||
}
|
||||
return false;
|
||||
case BLUE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_BLUE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
} else {
|
||||
layer_off(_BLUE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
}
|
||||
return false;
|
||||
case ORANGE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ORANGE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
} else {
|
||||
layer_off(_ORANGE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
}
|
||||
return false;
|
||||
case PLOVER:
|
||||
plover(record);
|
||||
return false;
|
||||
case TXBOLT:
|
||||
if (record->event.pressed) {
|
||||
txbolt();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Initialize the steno protocol
|
||||
void eeconfig_init_user(void) {
|
||||
steno_set_mode(STENO_MODE_BOLT); // or STENO_MODE_GEMINI
|
||||
}
|
291
keyboards/splitography/keymaps/dvorak/keymap.c
Normal file
291
keyboards/splitography/keymaps/dvorak/keymap.c
Normal file
|
@ -0,0 +1,291 @@
|
|||
/* Copyright 2021 Alexis Jeandeau
|
||||
*
|
||||
* 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_steno.h"
|
||||
|
||||
enum keyboard_layers {
|
||||
_DVORAK = 0,
|
||||
_TXBOLT,
|
||||
_PLOVER,
|
||||
_BLUE,
|
||||
_ORANGE,
|
||||
_GREEN,
|
||||
_NUM,
|
||||
_END_LAYERS,
|
||||
};
|
||||
|
||||
enum keyboard_keycodes {
|
||||
DVORAK = SAFE_RANGE,
|
||||
DVORAK1,
|
||||
DVORAK2,
|
||||
TXBOLT,
|
||||
PLOVER,
|
||||
BLUE,
|
||||
ORANGE,
|
||||
};
|
||||
|
||||
#define COPY LCTL(KC_C)
|
||||
#define CUT LCTL(KC_X)
|
||||
#define PASTE LCTL(KC_V)
|
||||
#define UNDO LCTL(KC_Z)
|
||||
#define TG_NUM TG(_NUM)
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
// ...................................................................... Dvorak
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/1b04ce6be0cee6e5d2998b2a8efb8b09
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ Esc │ " │ , │ . │ P │ Y │ F │ G │ C │ R │ L │ Bksp │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ A │ O │ E │ U │ I │ D │ H │ T │ N │ S │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ ; │ Q │ J │ K │ X │ B │ M │ W │ V │ Z │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ Blue │ Space│ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_DVORAK] = LAYOUT(
|
||||
KC_ESC, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC,
|
||||
KC_LALT, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_ENT ,
|
||||
KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_LGUI,
|
||||
ORANGE, BLUE, KC_SPC, KC_LCTL
|
||||
),
|
||||
|
||||
// .................................................................. Blue Layer
|
||||
//XXXXXXX,
|
||||
// http://www.keyboard-layout-editor.com/#/gists/054b8bc0e31971bb962ea1c781232e0b
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Stop │ Prev │ Play │ Next │ +Vol │ │ │ │ [ │ ] │ / │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Undo │ Cut │ Copy │ Paste│ -Vol │ Mute │ │ │ - │ = │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ f() │ Del │ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_BLUE] = LAYOUT(
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, XXXXXXX,
|
||||
KC_LALT, KC_MSTP, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, KC_LBRC, KC_RBRC, KC_SLSH,
|
||||
KC_LSFT, UNDO, CUT, COPY, PASTE, KC_VOLD, KC_MUTE, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_LGUI,
|
||||
ORANGE, _______, KC_DEL, KC_LCTL
|
||||
),
|
||||
|
||||
// ................................................................ Orange Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/83ccc7c3faa78b1f67f6fef65063a248
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │Plover│ F1 │ F2 │ F3 │ F4 │ │ App │ PrScr│ScrLck│ Pause│ │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ F5 │ F6 │ F7 │ F8 │ │ │Insert│ Home │ PgUp │ │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ F9 │ F10 │ F11 │ F12 │ │ │ Del │ End │ PgDn │ \ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ f() │ Blue │ Tab │ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_ORANGE] = LAYOUT(
|
||||
PLOVER, KC_F1, KC_F2, KC_F3, KC_F4, XXXXXXX, KC_APP, KC_PSCR, KC_SLCK, KC_PAUS, XXXXXXX, XXXXXXX,
|
||||
KC_LALT, KC_F5, KC_F6, KC_F7, KC_F8, XXXXXXX, XXXXXXX, KC_INS, KC_HOME, KC_PGUP, XXXXXXX, XXXXXXX,
|
||||
KC_LSFT, KC_F9, KC_F10, KC_F11, KC_F12, XXXXXXX, XXXXXXX, KC_DEL, KC_END, KC_PGDN, KC_BSLS, KC_LGUI,
|
||||
_______, BLUE, KC_TAB, KC_LCTL
|
||||
),
|
||||
|
||||
// ................................................................. Green Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/bc7902f1eada4d7d34d3445aa1eccdab
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │TxBolt│ │ │ │ │Scroll│ / │ 7 │ 8 │ 9 │ - │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Home │ Up │ End │ PgUp │ Caps │ * │ 4 │ 5 │ 6 │ + │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Left │ Down │ Right│ PgDn │ Num │ 0 │ 1 │ 2 │ 3 │ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ f() │ f() │ -- │ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_GREEN] = LAYOUT(
|
||||
TXBOLT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_SLCK, KC_PSLS, KC_P7, KC_P8, KC_P9, KC_MINS, XXXXXXX,
|
||||
KC_LALT, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_CAPS, KC_PAST, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_ENT ,
|
||||
KC_LSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, TG_NUM, KC_P0, KC_P1, KC_P2, KC_P3, XXXXXXX, KC_LGUI,
|
||||
_______, _______, XXXXXXX, KC_LCTL
|
||||
),
|
||||
|
||||
// ................................................................... Num Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/bc7902f1eada4d7d34d3445aa1eccdab
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ │ │ │ │ │ │ / │ 7 │ 8 │ 9 │ - │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Home │ Up │ End │ PgUp │ │ * │ 4 │ 5 │ 6 │ + │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Left │ Down │ Right│ PgDn │ f() │ 0 │ 1 │ 2 │ 3 │ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ -- │ -- │ -- │ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_NUM] = LAYOUT(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PSLS, KC_P7, KC_P8, KC_P9, KC_PMNS, XXXXXXX,
|
||||
KC_LALT, KC_HOME, KC_UP, KC_END, KC_PGUP, XXXXXXX, KC_PAST, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_ENT ,
|
||||
KC_LSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, DVORAK, KC_P0, KC_P1, KC_P2, KC_P3, XXXXXXX, KC_LGUI,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_LCTL
|
||||
),
|
||||
|
||||
// ...................................................................... Plover
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/27b8f8649393a8ba4071ba946a9306f4
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │Dvorak│ S │ T │ P │ H │ * │ * │ F │ P │ L │ T │ D │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │Dvorak│ S │ K │ W │ R │ * │ * │ R │ B │ G │ S │ Z │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ A │ O │ E │ U │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_PLOVER] = LAYOUT(
|
||||
KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1 ,
|
||||
DVORAK1, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,
|
||||
DVORAK2, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
||||
KC_C, KC_V, KC_N, KC_M
|
||||
),
|
||||
|
||||
// ...................................................................... TxBolt
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/27b8f8649393a8ba4071ba946a9306f4
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │Dvorak│ S │ T │ P │ H │ * │ * │ F │ P │ L │ T │ D │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │Dvorak│ S │ K │ W │ R │ * │ * │ R │ B │ G │ S │ Z │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ A │ O │ E │ U │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_TXBOLT] = LAYOUT(
|
||||
STN_N1, STN_N2, STN_N3, STN_N4, STN_N5, STN_N6, STN_N7, STN_N8, STN_N9, STN_NA, STN_NB, STN_NC ,
|
||||
DVORAK1, STN_S1, STN_TL, STN_PL, STN_HL, STN_ST1, STN_ST3, STN_FR, STN_PR, STN_LR, STN_TR, STN_DR ,
|
||||
DVORAK2, STN_S2, STN_KL, STN_WL, STN_RL, STN_ST2, STN_ST4, STN_RR, STN_BR, STN_GR, STN_SR, STN_ZR ,
|
||||
STN_A, STN_O, STN_E, STN_U
|
||||
),
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
// ..................................................................... Keymaps
|
||||
|
||||
#define DVORAK_1 1
|
||||
#define DVORAK_2 2
|
||||
#define DVORAK_12 3
|
||||
static uint8_t dvorak_n = 0;
|
||||
|
||||
void dvorak(void) {
|
||||
dvorak_n = 0;
|
||||
layer_move(0);
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
|
||||
void plover(keyrecord_t *record) {
|
||||
if (record->event.pressed) {
|
||||
layer_move(0);
|
||||
layer_on(_PLOVER);
|
||||
if (!eeconfig_is_enabled()) {
|
||||
eeconfig_init();
|
||||
}
|
||||
keymap_config.raw = eeconfig_read_keymap();
|
||||
keymap_config.nkro = 1;
|
||||
eeconfig_update_keymap(keymap_config.raw);
|
||||
}
|
||||
}
|
||||
|
||||
void txbolt(void) {
|
||||
layer_move(0);
|
||||
layer_on(_TXBOLT);
|
||||
}
|
||||
|
||||
// ........................................................... User Keycode Trap
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
dvorak();
|
||||
}
|
||||
return false;
|
||||
case DVORAK1:
|
||||
if (record->event.pressed) {
|
||||
dvorak_n = dvorak_n | DVORAK_1;
|
||||
if (dvorak_n == DVORAK_12) {
|
||||
dvorak();
|
||||
}
|
||||
} else {
|
||||
dvorak_n = dvorak_n & ~DVORAK_1;
|
||||
}
|
||||
return false;
|
||||
case DVORAK2:
|
||||
if (record->event.pressed) {
|
||||
dvorak_n = dvorak_n | DVORAK_2;
|
||||
if (dvorak_n == DVORAK_12) {
|
||||
dvorak();
|
||||
}
|
||||
} else {
|
||||
dvorak_n = dvorak_n & ~DVORAK_2;
|
||||
}
|
||||
return false;
|
||||
case BLUE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_BLUE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
} else {
|
||||
layer_off(_BLUE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
}
|
||||
return false;
|
||||
case ORANGE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ORANGE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
} else {
|
||||
layer_off(_ORANGE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
}
|
||||
return false;
|
||||
case PLOVER:
|
||||
plover(record);
|
||||
return false;
|
||||
case TXBOLT:
|
||||
if (record->event.pressed) {
|
||||
txbolt();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Initialize the steno protocol
|
||||
void eeconfig_init_user(void) {
|
||||
steno_set_mode(STENO_MODE_BOLT); // or STENO_MODE_GEMINI
|
||||
}
|
293
keyboards/splitography/keymaps/jeandeaual/keymap.c
Normal file
293
keyboards/splitography/keymaps/jeandeaual/keymap.c
Normal file
|
@ -0,0 +1,293 @@
|
|||
/* Copyright 2021 Alexis Jeandeau
|
||||
*
|
||||
* 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_steno.h"
|
||||
|
||||
enum keyboard_layers {
|
||||
_GEMINI = 0,
|
||||
_QWERTY,
|
||||
_DVORAK,
|
||||
_BLUE,
|
||||
_ORANGE,
|
||||
_GREEN,
|
||||
_NUM,
|
||||
_END_LAYERS,
|
||||
};
|
||||
|
||||
enum keyboard_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
DVORAK,
|
||||
BASE,
|
||||
BASE1,
|
||||
BASE2,
|
||||
GEMINI,
|
||||
BLUE,
|
||||
ORANGE,
|
||||
};
|
||||
|
||||
#define COPY LCTL(KC_C)
|
||||
#define CUT LCTL(KC_X)
|
||||
#define PASTE LCTL(KC_V)
|
||||
#define UNDO LCTL(KC_Z)
|
||||
#define TG_NUM TG(_NUM)
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
// ...................................................................... GeminiPR
|
||||
//
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Base │ S │ T │ P │ H │ * │ * │ F │ P │ L │ T │ D │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Base │ S │ K │ W │ R │ * │ * │ R │ B │ G │ S │ Z │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ A │ O │ E │ U │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_GEMINI] = LAYOUT(
|
||||
STN_N1, STN_N2, STN_N3, STN_N4, STN_N5, STN_N6, STN_N7, STN_N8, STN_N9, STN_NA, STN_NB, STN_NC ,
|
||||
BASE1, STN_S1, STN_TL, STN_PL, STN_HL, STN_ST1, STN_ST3, STN_FR, STN_PR, STN_LR, STN_TR, STN_DR ,
|
||||
BASE2, STN_S2, STN_KL, STN_WL, STN_RL, STN_ST2, STN_ST4, STN_RR, STN_BR, STN_GR, STN_SR, STN_ZR ,
|
||||
STN_A, STN_O, STN_E, STN_U
|
||||
),
|
||||
|
||||
// ...................................................................... Qwerty
|
||||
//
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ Esc │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ Bksp │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Ctrl │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ Blue │ Space│ Alt │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_QWERTY] = LAYOUT(
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT ,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LGUI,
|
||||
ORANGE, BLUE, KC_SPC, KC_LALT
|
||||
),
|
||||
|
||||
// ...................................................................... Dvorak
|
||||
//
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ Esc │ " │ , │ . │ P │ Y │ F │ G │ C │ R │ L │ Bksp │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Ctrl │ A │ O │ E │ U │ I │ D │ H │ T │ N │ S │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ ; │ Q │ J │ K │ X │ B │ M │ W │ V │ Z │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ Blue │ Space│ Alt │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_DVORAK] = LAYOUT(
|
||||
KC_ESC, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC,
|
||||
KC_LCTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_ENT ,
|
||||
KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_LGUI,
|
||||
ORANGE, BLUE, KC_SPC, KC_LALT
|
||||
),
|
||||
|
||||
// .................................................................. Blue Layer
|
||||
//
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Ctrl │ Stop │ Prev │ Play │ Next │ +Vol │ │ │ │ [ │ ] │ ' │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Undo │ Cut │ Copy │ Paste│ -Vol │ Mute │ │ │ - │ = │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ f() │ Del │ Alt │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_BLUE] = LAYOUT(
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, XXXXXXX,
|
||||
KC_LCTL, KC_MSTP, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, KC_LBRC, KC_RBRC, KC_QUOT,
|
||||
KC_LSFT, UNDO, CUT, COPY, PASTE, KC_VOLD, KC_MUTE, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_LGUI,
|
||||
ORANGE, _______, KC_DEL, KC_LALT
|
||||
),
|
||||
|
||||
// ................................................................ Orange Layer
|
||||
//
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ │ F1 │ F2 │ F3 │ F4 │ │ App │ PrScr│ScrLck│ Pause│ │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Ctrl │ F5 │ F6 │ F7 │ F8 │ │ │Insert│ Home │ PgUp │ │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ F9 │ F10 │ F11 │ F12 │ │ │ Del │ End │ PgDn │ \ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ f() │ Blue │ Tab │ Alt │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_ORANGE] = LAYOUT(
|
||||
XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F4, XXXXXXX, KC_APP, KC_PSCR, KC_SLCK, KC_PAUS, XXXXXXX, XXXXXXX,
|
||||
KC_LCTL, KC_F5, KC_F6, KC_F7, KC_F8, XXXXXXX, XXXXXXX, KC_INS, KC_HOME, KC_PGUP, XXXXXXX, XXXXXXX,
|
||||
KC_LSFT, KC_F9, KC_F10, KC_F11, KC_F12, XXXXXXX, XXXXXXX, KC_DEL, KC_END, KC_PGDN, KC_BSLS, KC_LGUI,
|
||||
_______, BLUE, KC_TAB, KC_LALT
|
||||
),
|
||||
|
||||
// ................................................................. Green Layer
|
||||
//
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │Gemini│QWERTY│Dvorak│ │ │Scroll│ / │ 7 │ 8 │ 9 │ - │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Ctrl │ Home │ Up │ End │ PgUp │ Caps │ * │ 4 │ 5 │ 6 │ + │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Left │ Down │ Right│ PgDn │ Num │ 0 │ 1 │ 2 │ 3 │ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ f() │ f() │ -- │ Alt │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_GREEN] = LAYOUT(
|
||||
GEMINI, QWERTY, DVORAK, XXXXXXX, XXXXXXX, KC_SLCK, KC_PSLS, KC_P7, KC_P8, KC_P9, KC_MINS, XXXXXXX,
|
||||
KC_LCTL, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_CAPS, KC_PAST, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_ENT ,
|
||||
KC_LSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, TG_NUM, KC_P0, KC_P1, KC_P2, KC_P3, XXXXXXX, KC_LGUI,
|
||||
_______, _______, XXXXXXX, KC_LALT
|
||||
),
|
||||
|
||||
// ................................................................... Num Layer
|
||||
//
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ │ │ │ │ │ │ / │ 7 │ 8 │ 9 │ - │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Ctrl │ Home │ Up │ End │ PgUp │ │ * │ 4 │ 5 │ 6 │ + │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Left │ Down │ Right│ PgDn │ f() │ 0 │ 1 │ 2 │ 3 │ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ -- │ -- │ -- │ Alt │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_NUM] = LAYOUT(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PSLS, KC_P7, KC_P8, KC_P9, KC_PMNS, XXXXXXX,
|
||||
KC_LCTL, KC_HOME, KC_UP, KC_END, KC_PGUP, XXXXXXX, KC_PAST, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_ENT ,
|
||||
KC_LSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, BASE, KC_P0, KC_P1, KC_P2, KC_P3, XXXXXXX, KC_LGUI,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_LALT
|
||||
),
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
// ..................................................................... Keymaps
|
||||
|
||||
#define BASE_1 1
|
||||
#define BASE_2 2
|
||||
#define BASE_12 3
|
||||
static uint8_t base_n = 0;
|
||||
|
||||
void (*base_layer)(void) = NULL;
|
||||
|
||||
void qwerty(void) {
|
||||
base_layer = qwerty;
|
||||
base_n = 0;
|
||||
layer_move(0);
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
|
||||
void dvorak(void) {
|
||||
base_layer = dvorak;
|
||||
base_n = 0;
|
||||
layer_move(0);
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
|
||||
void gemini(void) {
|
||||
layer_move(0);
|
||||
set_single_persistent_default_layer(_GEMINI);
|
||||
}
|
||||
|
||||
// ........................................................... User Keycode Trap
|
||||
|
||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
qwerty();
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
dvorak();
|
||||
}
|
||||
return false;
|
||||
case KC_QUOT:
|
||||
if ((base_layer != dvorak) || (biton32(layer_state) != _BLUE)) {
|
||||
break;
|
||||
}
|
||||
if (record->event.pressed) {
|
||||
register_code(KC_SLSH);
|
||||
} else {
|
||||
unregister_code(KC_SLSH);
|
||||
}
|
||||
return false;
|
||||
case BASE:
|
||||
if (record->event.pressed) {
|
||||
base_layer();
|
||||
}
|
||||
return false;
|
||||
case BASE1:
|
||||
if (record->event.pressed) {
|
||||
base_n = base_n | BASE_1;
|
||||
if (base_n == BASE_12) {
|
||||
base_layer();
|
||||
}
|
||||
} else {
|
||||
base_n = base_n & ~BASE_1;
|
||||
}
|
||||
return false;
|
||||
case BASE2:
|
||||
if (record->event.pressed) {
|
||||
base_n = base_n | BASE_2;
|
||||
if (base_n == BASE_12) {
|
||||
base_layer();
|
||||
}
|
||||
} else {
|
||||
base_n = base_n & ~BASE_2;
|
||||
}
|
||||
return false;
|
||||
case BLUE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_BLUE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
} else {
|
||||
layer_off(_BLUE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
}
|
||||
return false;
|
||||
case ORANGE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ORANGE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
} else {
|
||||
layer_off(_ORANGE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
}
|
||||
return false;
|
||||
case GEMINI:
|
||||
if (record->event.pressed) {
|
||||
gemini();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Initialize the steno protocol
|
||||
void eeconfig_init_user(void) {
|
||||
steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT
|
||||
base_layer = dvorak;
|
||||
}
|
7
keyboards/splitography/keymaps/jeandeaual/readme.md
Normal file
7
keyboards/splitography/keymaps/jeandeaual/readme.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Differences with the [default layout](../default)
|
||||
|
||||
* Alt and Ctrl are shifted.
|
||||
* Use Gemini PR instead of TX Bolt.
|
||||
* The Plover layer has been removed.
|
||||
* QWERTY and Dvorak like in the [multi layout](../multi).
|
||||
* The default layer is set to the steno (Gemini PR) layout.
|
411
keyboards/splitography/keymaps/multi/keymap.c
Normal file
411
keyboards/splitography/keymaps/multi/keymap.c
Normal file
|
@ -0,0 +1,411 @@
|
|||
/* Copyright 2021 Alexis Jeandeau
|
||||
*
|
||||
* 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_steno.h"
|
||||
|
||||
enum keyboard_layers {
|
||||
_QWERTY = 0,
|
||||
_DVORAK,
|
||||
_COLEMAK,
|
||||
_WORKMAN,
|
||||
_TXBOLT,
|
||||
_PLOVER,
|
||||
_BLUE,
|
||||
_ORANGE,
|
||||
_GREEN,
|
||||
_NUM,
|
||||
_END_LAYERS,
|
||||
};
|
||||
|
||||
enum keyboard_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
DVORAK,
|
||||
COLEMAK,
|
||||
WORKMAN,
|
||||
BASE,
|
||||
BASE1,
|
||||
BASE2,
|
||||
TXBOLT,
|
||||
PLOVER,
|
||||
BLUE,
|
||||
ORANGE,
|
||||
};
|
||||
|
||||
#define COPY LCTL(KC_C)
|
||||
#define CUT LCTL(KC_X)
|
||||
#define PASTE LCTL(KC_V)
|
||||
#define UNDO LCTL(KC_Z)
|
||||
#define TG_NUM TG(_NUM)
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
// ...................................................................... Qwerty
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/1b04ce6be0cee6e5d2998b2a8efb8b09
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ Esc │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ Bksp │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ Blue │ Space│ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_QWERTY] = LAYOUT(
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
KC_LALT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT ,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LGUI,
|
||||
ORANGE, BLUE, KC_SPC, KC_LCTL
|
||||
),
|
||||
|
||||
// ...................................................................... Dvorak
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/1b04ce6be0cee6e5d2998b2a8efb8b09
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ Esc │ " │ , │ . │ P │ Y │ F │ G │ C │ R │ L │ Bksp │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ A │ O │ E │ U │ I │ D │ H │ T │ N │ S │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ ; │ Q │ J │ K │ X │ B │ M │ W │ V │ Z │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ Blue │ Space│ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_DVORAK] = LAYOUT(
|
||||
KC_ESC, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC,
|
||||
KC_LALT, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_ENT ,
|
||||
KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_LGUI,
|
||||
ORANGE, BLUE, KC_SPC, KC_LCTL
|
||||
),
|
||||
|
||||
// ..................................................................... Colemak
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ Esc │ Q │ W │ F │ P │ G │ J │ L │ U │ Y │ ; │ Bksp │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ A │ R │ S │ T │ D │ H │ N │ E │ I │ O │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Z │ X │ C │ V │ B │ K │ M │ , │ . │ / │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ Blue │ Space│ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_COLEMAK] = LAYOUT(
|
||||
KC_ESC, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
|
||||
KC_LALT, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_ENT ,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LGUI,
|
||||
ORANGE, BLUE, KC_SPC, KC_LCTL
|
||||
),
|
||||
|
||||
// ..................................................................... Workman
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ Esc │ Q │ D │ R │ W │ B │ J │ F │ U │ P │ ; │ Bksp │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ A │ S │ H │ T │ G │ Y │ N │ E │ O │ I │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Z │ X │ M │ C │ V │ K │ L │ , │ . │ / │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ Blue │ Space│ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_WORKMAN] = LAYOUT(
|
||||
KC_ESC, KC_Q, KC_D, KC_R, KC_W, KC_B, KC_J, KC_F, KC_U, KC_P, KC_SCLN, KC_BSPC,
|
||||
KC_LALT, KC_A, KC_S, KC_H, KC_T, KC_G, KC_Y, KC_N, KC_E, KC_O, KC_I, KC_ENT ,
|
||||
KC_LSFT, KC_Z, KC_X, KC_M, KC_C, KC_V, KC_K, KC_L, KC_COMM, KC_DOT, KC_SLSH, KC_LGUI,
|
||||
ORANGE, BLUE, KC_SPC, KC_LCTL
|
||||
),
|
||||
|
||||
// .................................................................. Blue Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/054b8bc0e31971bb962ea1c781232e0b
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Stop │ Prev │ Play │ Next │ +Vol │ │ │ │ [ │ ] │ ' │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Undo │ Cut │ Copy │ Paste│ -Vol │ Mute │ │ │ - │ = │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │Orange│ f() │ Del │ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_BLUE] = LAYOUT(
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, XXXXXXX,
|
||||
KC_LALT, KC_MSTP, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, KC_LBRC, KC_RBRC, KC_QUOT,
|
||||
KC_LSFT, UNDO, CUT, COPY, PASTE, KC_VOLD, KC_MUTE, XXXXXXX, XXXXXXX, KC_MINS, KC_EQL, KC_LGUI,
|
||||
ORANGE, _______, KC_DEL, KC_LCTL
|
||||
),
|
||||
|
||||
// ................................................................ Orange Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/83ccc7c3faa78b1f67f6fef65063a248
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │Plover│ F1 │ F2 │ F3 │ F4 │ │ App │ PrScr│ScrLck│ Pause│ │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ F5 │ F6 │ F7 │ F8 │ │ │Insert│ Home │ PgUp │ │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ F9 │ F10 │ F11 │ F12 │ │ │ Del │ End │ PgDn │ \ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ f() │ Blue │ Tab │ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_ORANGE] = LAYOUT(
|
||||
PLOVER, KC_F1, KC_F2, KC_F3, KC_F4, XXXXXXX, KC_APP, KC_PSCR, KC_SLCK, KC_PAUS, XXXXXXX, XXXXXXX,
|
||||
KC_LALT, KC_F5, KC_F6, KC_F7, KC_F8, XXXXXXX, XXXXXXX, KC_INS, KC_HOME, KC_PGUP, XXXXXXX, XXXXXXX,
|
||||
KC_LSFT, KC_F9, KC_F10, KC_F11, KC_F12, XXXXXXX, XXXXXXX, KC_DEL, KC_END, KC_PGDN, KC_BSLS, KC_LGUI,
|
||||
_______, BLUE, KC_TAB, KC_LCTL
|
||||
),
|
||||
|
||||
// ................................................................. Green Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/bc7902f1eada4d7d34d3445aa1eccdab
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │TxBolt│QWERTY│Dvorak│Colemk│Workmn│Scroll│ / │ 7 │ 8 │ 9 │ - │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Home │ Up │ End │ PgUp │ Caps │ * │ 4 │ 5 │ 6 │ + │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Left │ Down │ Right│ PgDn │ Num │ 0 │ 1 │ 2 │ 3 │ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ f() │ f() │ -- │ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_GREEN] = LAYOUT(
|
||||
TXBOLT, QWERTY, DVORAK, COLEMAK, WORKMAN, KC_SLCK, KC_PSLS, KC_P7, KC_P8, KC_P9, KC_MINS, XXXXXXX,
|
||||
KC_LALT, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_CAPS, KC_PAST, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_ENT ,
|
||||
KC_LSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, TG_NUM, KC_P0, KC_P1, KC_P2, KC_P3, XXXXXXX, KC_LGUI,
|
||||
_______, _______, XXXXXXX, KC_LCTL
|
||||
),
|
||||
|
||||
// ................................................................... Num Layer
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/bc7902f1eada4d7d34d3445aa1eccdab
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ │ │ │ │ │ │ / │ 7 │ 8 │ 9 │ - │ │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Alt │ Home │ Up │ End │ PgUp │ │ * │ 4 │ 5 │ 6 │ + │ Enter│
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Shift│ Left │ Down │ Right│ PgDn │ f() │ 0 │ 1 │ 2 │ 3 │ │ GUI │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ -- │ -- │ -- │ Ctrl │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_NUM] = LAYOUT(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PSLS, KC_P7, KC_P8, KC_P9, KC_PMNS, XXXXXXX,
|
||||
KC_LALT, KC_HOME, KC_UP, KC_END, KC_PGUP, XXXXXXX, KC_PAST, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_ENT ,
|
||||
KC_LSFT, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, BASE, KC_P0, KC_P1, KC_P2, KC_P3, XXXXXXX, KC_LGUI,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_LCTL
|
||||
),
|
||||
|
||||
// ...................................................................... Plover
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/27b8f8649393a8ba4071ba946a9306f4
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │ 1 │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Base │ S │ T │ P │ H │ * │ * │ F │ P │ L │ T │ D │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Base │ S │ K │ W │ R │ * │ * │ R │ B │ G │ S │ Z │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ A │ O │ E │ U │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_PLOVER] = LAYOUT(
|
||||
KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1 ,
|
||||
BASE1, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,
|
||||
BASE2, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
||||
KC_C, KC_V, KC_N, KC_M
|
||||
),
|
||||
|
||||
// ...................................................................... TxBolt
|
||||
//
|
||||
// http://www.keyboard-layout-editor.com/#/gists/27b8f8649393a8ba4071ba946a9306f4
|
||||
|
||||
// ┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
// │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │ # │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Base │ S │ T │ P │ H │ * │ * │ F │ P │ L │ T │ D │
|
||||
// ├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
// │ Base │ S │ K │ W │ R │ * │ * │ R │ B │ G │ S │ Z │
|
||||
// └──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
// │ A │ O │ E │ U │
|
||||
// └──────┴──────┴──────┴──────┘
|
||||
|
||||
[_TXBOLT] = LAYOUT(
|
||||
STN_N1, STN_N2, STN_N3, STN_N4, STN_N5, STN_N6, STN_N7, STN_N8, STN_N9, STN_NA, STN_NB, STN_NC ,
|
||||
BASE1, STN_S1, STN_TL, STN_PL, STN_HL, STN_ST1, STN_ST3, STN_FR, STN_PR, STN_LR, STN_TR, STN_DR ,
|
||||
BASE2, STN_S2, STN_KL, STN_WL, STN_RL, STN_ST2, STN_ST4, STN_RR, STN_BR, STN_GR, STN_SR, STN_ZR ,
|
||||
STN_A, STN_O, STN_E, STN_U
|
||||
),
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
// ..................................................................... Keymaps
|
||||
|
||||
#define BASE_1 1
|
||||
#define BASE_2 2
|
||||
#define BASE_12 3
|
||||
static uint8_t base_n = 0;
|
||||
|
||||
void (*base_layer)(void) = NULL;
|
||||
|
||||
void qwerty(void) {
|
||||
base_layer = qwerty;
|
||||
base_n = 0;
|
||||
layer_move(0);
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
|
||||
void dvorak(void) {
|
||||
base_layer = dvorak;
|
||||
base_n = 0;
|
||||
layer_move(0);
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
|
||||
void colemak(void) {
|
||||
base_layer = colemak;
|
||||
base_n = 0;
|
||||
layer_move(0);
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
|
||||
void workman(void) {
|
||||
base_layer = workman;
|
||||
base_n = 0;
|
||||
layer_move(0);
|
||||
set_single_persistent_default_layer(_WORKMAN);
|
||||
}
|
||||
|
||||
void plover(keyrecord_t *record) {
|
||||
if (record->event.pressed) {
|
||||
layer_move(0);
|
||||
layer_on(_PLOVER);
|
||||
if (!eeconfig_is_enabled()) {
|
||||
eeconfig_init();
|
||||
}
|
||||
keymap_config.raw = eeconfig_read_keymap();
|
||||
keymap_config.nkro = 1;
|
||||
eeconfig_update_keymap(keymap_config.raw);
|
||||
}
|
||||
}
|
||||
|
||||
void txbolt(void) {
|
||||
layer_move(0);
|
||||
layer_on(_TXBOLT);
|
||||
}
|
||||
|
||||
// ........................................................... User Keycode Trap
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
qwerty();
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
dvorak();
|
||||
}
|
||||
return false;
|
||||
case KC_QUOT:
|
||||
if ((base_layer != dvorak) || (biton32(layer_state) != _BLUE)) {
|
||||
break;
|
||||
}
|
||||
if (record->event.pressed) {
|
||||
register_code(KC_SLSH);
|
||||
} else {
|
||||
unregister_code(KC_SLSH);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
colemak();
|
||||
}
|
||||
return false;
|
||||
case WORKMAN:
|
||||
if (record->event.pressed) {
|
||||
workman();
|
||||
}
|
||||
return false;
|
||||
case BASE:
|
||||
if (record->event.pressed) {
|
||||
base_layer();
|
||||
}
|
||||
return false;
|
||||
case BASE1:
|
||||
if (record->event.pressed) {
|
||||
base_n = base_n | BASE_1;
|
||||
if (base_n == BASE_12) {
|
||||
base_layer();
|
||||
}
|
||||
} else {
|
||||
base_n = base_n & ~BASE_1;
|
||||
}
|
||||
return false;
|
||||
case BASE2:
|
||||
if (record->event.pressed) {
|
||||
base_n = base_n | BASE_2;
|
||||
if (base_n == BASE_12) {
|
||||
base_layer();
|
||||
}
|
||||
} else {
|
||||
base_n = base_n & ~BASE_2;
|
||||
}
|
||||
return false;
|
||||
case BLUE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_BLUE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
} else {
|
||||
layer_off(_BLUE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
}
|
||||
return false;
|
||||
case ORANGE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ORANGE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
} else {
|
||||
layer_off(_ORANGE);
|
||||
update_tri_layer(_BLUE, _ORANGE, _GREEN);
|
||||
}
|
||||
return false;
|
||||
case PLOVER:
|
||||
plover(record);
|
||||
return false;
|
||||
case TXBOLT:
|
||||
if (record->event.pressed) {
|
||||
txbolt();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Initialize the steno protocol
|
||||
void eeconfig_init_user(void) {
|
||||
steno_set_mode(STENO_MODE_BOLT); // or STENO_MODE_BOLT
|
||||
}
|
15
keyboards/splitography/keymaps/multi/readme.md
Normal file
15
keyboards/splitography/keymaps/multi/readme.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Differences with the [default layout](../default)
|
||||
|
||||
* QWERTY, Dvorak, Colemak and Workman are available by pressing Orange + Blue + one of the top left keys:
|
||||
|
||||
```
|
||||
┌──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
|
||||
│TxBolt│QWERTY│Dvorak│Colemk│Workmn│Scroll│ / │ 7 │ 8 │ 9 │ - │ │
|
||||
├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
│ Alt │ Home │ Up │ End │ PgUp │ Caps │ * │ 4 │ 5 │ 6 │ + │ Enter│
|
||||
├──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
|
||||
│ Shift│ Left │ Down │ Right│ PgDn │ Num │ 0 │ 1 │ 2 │ 3 │ │ GUI │
|
||||
└──────┴──────┴──────┴──────┼──────┼──────┼──────┼──────┼──────┴──────┴──────┴──────┘
|
||||
│ f() │ f() │ -- │ Ctrl │
|
||||
└──────┴──────┴──────┴──────┘
|
||||
```
|
42
keyboards/splitography/readme.md
Normal file
42
keyboards/splitography/readme.md
Normal file
|
@ -0,0 +1,42 @@
|
|||
# Splitography
|
||||
|
||||
![Splitography](https://i.imgur.com/NlmR4Gc.jpeg)
|
||||
|
||||
A *pay what you will* compact keyboard intended for use with [Plover](https://www.openstenoproject.org/), free and open source stenography software. This is a low-cost keyboard with minimal packaging and design, and arrives fully assembled, ready to use.
|
||||
|
||||
* Keyboard Maintainer: [The QMK Community](https://github.com/qmk)
|
||||
* Hardware Supported: Splitography
|
||||
* Hardware Availability: [softhruf.love](https://softhruf.love/collections/writers)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make splitography:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make splitography:default:flash
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in 3 ways:
|
||||
|
||||
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard.
|
||||
* **Physical reset button**: Briefly press the button on the back of the PCB.
|
||||
* **Keycode in layout**: Press the key mapped to `RESET` if it is available.
|
||||
|
||||
## [Guide](https://softhruf.love/pages/guides)
|
||||
|
||||
[Splitography quick start video](https://www.youtube.com/watch?v=ru4cRQ2s_v0)
|
||||
|
||||
A short video guide on how to set up the SOFT/HRUF Splitography, a mechanical keyboard intended for use with [Plover](https://www.openstenoproject.org/plover/).
|
||||
|
||||
Here is a reference card for the standard keyboard layout:
|
||||
|
||||
![Reference card](https://i.imgur.com/ywe8jXR.png)
|
||||
|
||||
* While holding down a colored thumb key, the matching colored functions/characters on the remaining keys can be pressed.
|
||||
* Bottom edge keys are accessed by holding down both keys.
|
||||
* Numlock locks in the Numpad layer.
|
||||
* Alt and Shift pressed simultaneously to return to the standard layout.
|
5
keyboards/splitography/rules.mk
Normal file
5
keyboards/splitography/rules.mk
Normal file
|
@ -0,0 +1,5 @@
|
|||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = atmel-dfu
|
17
keyboards/splitography/splitography.c
Normal file
17
keyboards/splitography/splitography.c
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* Copyright 2021 Alexis Jeandeau
|
||||
*
|
||||
* 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 "splitography.h"
|
33
keyboards/splitography/splitography.h
Normal file
33
keyboards/splitography/splitography.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
/* Copyright 2021 Alexis Jeandeau
|
||||
*
|
||||
* 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"
|
||||
|
||||
// clang-format off
|
||||
#define LAYOUT( \
|
||||
L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
|
||||
L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
|
||||
L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
|
||||
L34, L35, R30, R31 \
|
||||
) \
|
||||
{ \
|
||||
{ L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05 }, \
|
||||
{ L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15 }, \
|
||||
{ L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25 }, \
|
||||
{ KC_NO, KC_NO, KC_NO, KC_NO, L34, L35, R30, R31, KC_NO, KC_NO, KC_NO, KC_NO } \
|
||||
}
|
Loading…
Reference in a new issue