forked from mirror/qmk_firmware
Compare commits
9 Commits
0.32.2
...
new-status
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05e0426609 | ||
|
|
25c65cbb7b | ||
|
|
71546949c3 | ||
|
|
8f9386395e | ||
|
|
ba8348a81d | ||
|
|
fde5fef067 | ||
|
|
dad5e774a7 | ||
|
|
8b77e4ea9f | ||
|
|
a656de0e17 |
49
keyboards/crkbd/keymaps/allemangd/config.h
Normal file
49
keyboards/crkbd/keymaps/allemangd/config.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
This is the c configuration file for the keymap
|
||||
|
||||
Copyright 2012 Jun Wako <wakojun@gmail.com>
|
||||
Copyright 2015 Jack Humbert
|
||||
|
||||
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 EE_HANDS
|
||||
#define USE_SERIAL_PD2
|
||||
|
||||
#define LAYER_STATE_8BIT
|
||||
|
||||
#undef MANUFACTURER
|
||||
#define MANUFACTURER "allemangd"
|
||||
#undef PRODUCT
|
||||
#define PRODUCT "Corne"
|
||||
|
||||
#define OLED_DISABLE_TIMEOUT
|
||||
#define OLED_BRIGHTNESS 128
|
||||
|
||||
#define ENABLE_COMPILE_KEYCODE
|
||||
|
||||
#define FORCE_NKRO
|
||||
#define USB_POLLING_INTERVAL_MS 1
|
||||
#define QMK_KEYS_PER_SCAN 4
|
||||
|
||||
#define PERMISSIVE_HOLD
|
||||
#define TAPPING_TERM 160
|
||||
|
||||
#define NO_ACTION_ONESHOT
|
||||
#define NO_MUSIC_NODE
|
||||
|
||||
#undef LOCKING_SUPPORT_ENABLE
|
||||
#undef LOCKING_RESYNC_ENABLE
|
||||
89
keyboards/crkbd/keymaps/allemangd/keymap.c
Normal file
89
keyboards/crkbd/keymaps/allemangd/keymap.c
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
Copyright 2019 @foostan
|
||||
Copyright 2020 Drashna Jaelre <@drashna>
|
||||
|
||||
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 "allemangd.h"
|
||||
|
||||
#define UNWRAP_LAYOUT(...) LAYOUT_split_3x6_3(__VA_ARGS__)
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[_DVORAK] = UNWRAP_LAYOUT(
|
||||
KC_TAB, __DVORAK_L1________________________________, __DVORAK_R1________________________________, KC_BSPC,
|
||||
KC_ESC, __DVORAK_L2________________________________, __DVORAK_R2________________________________, KC_MINS,
|
||||
KC_LSFT, __DVORAK_L3________________________________, __DVORAK_R3________________________________, KC_RSFT,
|
||||
KC_DEL, TL_LOWR, KC_ENT, KC_SPC, TL_UPPR, KC_APP
|
||||
),
|
||||
|
||||
[_LOWER] = UNWRAP_LAYOUT(
|
||||
_______, __LOWER_L1_________________________________, __LOWER_R1_________________________________, _______,
|
||||
_______, __LOWER_L2_________________________________, __LOWER_R2_________________________________, _______,
|
||||
_______, __LOWER_L3_________________________________, __LOWER_R3_________________________________, _______,
|
||||
_______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
[_RAISE] = UNWRAP_LAYOUT(
|
||||
KC_GRV, __RAISE_L1_________________________________, __RAISE_R1_________________________________, _______,
|
||||
_______, __RAISE_L2_________________________________, __RAISE_R2_________________________________, _______,
|
||||
_______, __RAISE_L3_________________________________, __RAISE_R3_________________________________, _______,
|
||||
_______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
[_ADJUST] = UNWRAP_LAYOUT(
|
||||
QK_MAKE, __ADJUST_L1________________________________, __ADJUST_R1________________________________, QK_BOOT,
|
||||
KC_VRSN, __ADJUST_L2________________________________, __ADJUST_R2________________________________, KC_PSCR,
|
||||
_______, __ADJUST_L3________________________________, __ADJUST_R3________________________________, _______,
|
||||
_______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
static void oled_render_layer_state(void) {
|
||||
oled_write_P(PSTR("layer: "), false);
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case 0:
|
||||
oled_write_ln_P(PSTR("dvorak"), false);
|
||||
break;
|
||||
case 1:
|
||||
oled_write_ln_P(PSTR("lower"), false);
|
||||
break;
|
||||
case 2:
|
||||
oled_write_ln_P(PSTR("raise"), false);
|
||||
break;
|
||||
case 3:
|
||||
oled_write_ln_P(PSTR("adjust"), false);
|
||||
break;
|
||||
default:
|
||||
oled_write_ln_P(PSTR("undef"), false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void oled_render_logo(void);
|
||||
|
||||
bool oled_task_user(void) {
|
||||
if (is_keyboard_master()) {
|
||||
oled_render_layer_state();
|
||||
} else {
|
||||
oled_render_logo();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
5
keyboards/crkbd/keymaps/allemangd/rules.mk
Normal file
5
keyboards/crkbd/keymaps/allemangd/rules.mk
Normal file
@@ -0,0 +1,5 @@
|
||||
BOOTLOADER = caterina
|
||||
|
||||
BLUETOOTH_ENABLE = no
|
||||
OLED_ENABLE = yes
|
||||
OLED_DRIVER = ssd1306
|
||||
20
keyboards/versor/config.h
Normal file
20
keyboards/versor/config.h
Normal file
@@ -0,0 +1,20 @@
|
||||
// Copyright 2024 allemangD (@allemangD)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* Feature disable options
|
||||
* These options are also useful to firmware size reduction.
|
||||
*/
|
||||
|
||||
/* disable debug print */
|
||||
//#define NO_DEBUG
|
||||
|
||||
/* disable print */
|
||||
//#define NO_PRINT
|
||||
|
||||
/* disable action features */
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
89
keyboards/versor/info.json
Normal file
89
keyboards/versor/info.json
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"manufacturer": "allemangd",
|
||||
"keyboard_name": "versor",
|
||||
"maintainer": "allemangd",
|
||||
"bootloader": "stm32-dfu",
|
||||
"diode_direction": "COL2ROW",
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"command": false,
|
||||
"console": false,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"nkro": true
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B7", "B6", "B5", "B4", "B3", "B2", "B1", "B0", "A4", "A5", "A6", "A7", "A8", "A15"],
|
||||
"rows": ["B10", "B11", "B12", "A14"]
|
||||
},
|
||||
"processor": "STM32F303",
|
||||
"url": "",
|
||||
"usb": {
|
||||
"device_version": "1.0.0",
|
||||
"pid": "0x8912",
|
||||
"vid": "0xFEED"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT_ortho_4x14_2u": {
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [0, 1], "x": 1, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"matrix": [0, 6], "x": 6, "y": 0},
|
||||
{"matrix": [0, 7], "x": 7, "y": 0},
|
||||
{"matrix": [0, 8], "x": 8, "y": 0},
|
||||
{"matrix": [0, 9], "x": 9, "y": 0},
|
||||
{"matrix": [0, 10], "x": 10, "y": 0},
|
||||
{"matrix": [0, 11], "x": 11, "y": 0},
|
||||
{"matrix": [0, 12], "x": 12, "y": 0},
|
||||
{"matrix": [0, 13], "x": 13, "y": 0},
|
||||
|
||||
{"matrix": [1, 0], "x": 0, "y": 1},
|
||||
{"matrix": [1, 1], "x": 1, "y": 1},
|
||||
{"matrix": [1, 2], "x": 2, "y": 1},
|
||||
{"matrix": [1, 3], "x": 3, "y": 1},
|
||||
{"matrix": [1, 4], "x": 4, "y": 1},
|
||||
{"matrix": [1, 5], "x": 5, "y": 1},
|
||||
{"matrix": [1, 6], "x": 6, "y": 1},
|
||||
{"matrix": [1, 7], "x": 7, "y": 1},
|
||||
{"matrix": [1, 8], "x": 8, "y": 1},
|
||||
{"matrix": [1, 9], "x": 9, "y": 1},
|
||||
{"matrix": [1, 10], "x": 10, "y": 1},
|
||||
{"matrix": [1, 11], "x": 11, "y": 1},
|
||||
{"matrix": [1, 12], "x": 12, "y": 1},
|
||||
{"matrix": [1, 13], "x": 13, "y": 1},
|
||||
|
||||
{"matrix": [2, 0], "x": 0, "y": 2},
|
||||
{"matrix": [2, 1], "x": 1, "y": 2},
|
||||
{"matrix": [2, 2], "x": 2, "y": 2},
|
||||
{"matrix": [2, 3], "x": 3, "y": 2},
|
||||
{"matrix": [2, 4], "x": 4, "y": 2},
|
||||
{"matrix": [2, 5], "x": 5, "y": 2},
|
||||
{"matrix": [2, 6], "x": 6, "y": 2},
|
||||
{"matrix": [2, 7], "x": 7, "y": 2},
|
||||
{"matrix": [2, 8], "x": 8, "y": 2},
|
||||
{"matrix": [2, 9], "x": 9, "y": 2},
|
||||
{"matrix": [2, 10], "x": 10, "y": 2},
|
||||
{"matrix": [2, 11], "x": 11, "y": 2},
|
||||
{"matrix": [2, 12], "x": 12, "y": 2},
|
||||
{"matrix": [2, 13], "x": 13, "y": 2},
|
||||
|
||||
{"matrix": [3, 0], "x": 0, "y": 3},
|
||||
{"matrix": [3, 1], "x": 1, "y": 3},
|
||||
{"matrix": [3, 2], "x": 2, "y": 3},
|
||||
{"matrix": [3, 3], "x": 3, "y": 3},
|
||||
{"matrix": [3, 4], "x": 4, "y": 3, "w": 2},
|
||||
{"matrix": [3, 6], "x": 6, "y": 3},
|
||||
{"matrix": [3, 7], "x": 7, "y": 3},
|
||||
{"matrix": [3, 9], "x": 8, "y": 3, "w": 2},
|
||||
{"matrix": [3, 10], "x": 10, "y": 3},
|
||||
{"matrix": [3, 11], "x": 11, "y": 3},
|
||||
{"matrix": [3, 12], "x": 12, "y": 3},
|
||||
{"matrix": [3, 13], "x": 13, "y": 3}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
18
keyboards/versor/keymaps/allemangd/config.h
Normal file
18
keyboards/versor/keymaps/allemangd/config.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#define LAYER_STATE_8BIT
|
||||
|
||||
#define ENABLE_COMPILE_KEYCODE
|
||||
|
||||
#define FORCE_NKRO
|
||||
#define USB_POLLING_INTERVAL_MS 1
|
||||
#define QMK_KEYS_PER_SCAN 4
|
||||
|
||||
#define PERMISSIVE_HOLD
|
||||
#define TAPPING_TERM 160
|
||||
|
||||
#define NO_ACTION_ONESHOT
|
||||
#define NO_MUSIC_MODE
|
||||
|
||||
#undef LOCKING_SUPPORT_ENABLE
|
||||
#undef LOCKING_RESYNC_ENABLE
|
||||
57
keyboards/versor/keymaps/allemangd/keymap.c
Normal file
57
keyboards/versor/keymaps/allemangd/keymap.c
Normal file
@@ -0,0 +1,57 @@
|
||||
// Copyright 2023 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#include "allemangd.h"
|
||||
|
||||
#define UNWRAP_LAYOUT(...) LAYOUT_ortho_4x14_2u(__VA_ARGS__)
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_DVORAK] = UNWRAP_LAYOUT(
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────╥────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
KC_TAB, __DVORAK_L1________________________________, _______, _______, __DVORAK_R1________________________________, KC_BSPC,
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────╫────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
KC_ESC, __DVORAK_L2________________________________, _______, KC_APP, __DVORAK_R2________________________________, KC_MINS,
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────╫────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
KC_LSFT, __DVORAK_L3________________________________, _______, _______, __DVORAK_R3________________________________, KC_RSFT,
|
||||
// ├────────┼────────┼────────┼────────┼────────┴────────┼────────╫────────┼────────┴────────┼────────┼────────┼────────┼────────┤
|
||||
KC_LCTL, _______, _______, KC_LALT, ET_LWER, DL_LALT, IN_RALT, SP_RAIS, AP_RCTL, _______, _______, KC_RCTL
|
||||
// └────────┴────────┴────────┴────────┴─────────────────┴────────╨────────┴─────────────────┴────────┴────────┴────────┴────────┘
|
||||
),
|
||||
[_LOWER] = UNWRAP_LAYOUT(
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────╥────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
_______, __LOWER_L1_________________________________, _______, _______, __LOWER_R1_________________________________, _______,
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────╫────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, __LOWER_L2_________________________________, _______, _______, __LOWER_R2_________________________________, _______,
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────╫────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, __LOWER_L3_________________________________, _______, _______, __LOWER_R3_________________________________, _______,
|
||||
// ├────────┼────────┼────────┼────────┼────────┴────────┼────────╫────────┼────────┴────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
// └────────┴────────┴────────┴────────┴─────────────────┴────────╨────────┴─────────────────┴────────┴────────┴────────┴────────┘
|
||||
),
|
||||
[_RAISE] = UNWRAP_LAYOUT(
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────╥────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
KC_GRV, __RAISE_L1_________________________________, _______, _______, __RAISE_R1_________________________________, _______,
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────╫────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, __RAISE_L2_________________________________, _______, _______, __RAISE_R2_________________________________, _______,
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────╫────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, __RAISE_L3_________________________________, _______, _______, __RAISE_R3_________________________________, _______,
|
||||
// ├────────┼────────┼────────┼────────┼────────┴────────┼────────╫────────┼────────┴────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
// └────────┴────────┴────────┴────────┴─────────────────┴────────╨────────┴─────────────────┴────────┴────────┴────────┴────────┘
|
||||
),
|
||||
[_ADJUST] = UNWRAP_LAYOUT(
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────╥────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
QK_MAKE, __ADJUST_L1________________________________, _______, _______, __ADJUST_R1________________________________, QK_BOOT,
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────╫────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
KC_VRSN, __ADJUST_L2________________________________, _______, _______, __ADJUST_R2________________________________, KC_PSCR,
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────╫────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______, __ADJUST_L3________________________________, _______, _______, __ADJUST_R3________________________________, _______,
|
||||
// ├────────┼────────┼────────┼────────┼────────┴────────┼────────╫────────┼────────┴────────┼────────┼────────┼────────┼────────┤
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
// └────────┴────────┴────────┴────────┴─────────────────┴────────╨────────┴─────────────────┴────────┴────────┴────────┴────────┘
|
||||
),
|
||||
};
|
||||
// clang-format on
|
||||
2
keyboards/versor/keymaps/allemangd/rules.mk
Normal file
2
keyboards/versor/keymaps/allemangd/rules.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
BLUETOOTH_ENABLE = no
|
||||
OLED_ENABLE = no
|
||||
18
keyboards/versor/keymaps/default/keymap.c
Normal file
18
keyboards/versor/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright 2023 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT_ortho_4x14_2u(
|
||||
// ┌────────┬────────┬────────┬────────┬────────┬────────┬────────╥────────┬────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
KC_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, KC_H, KC_I, KC_J, KC_K, KC_L, KC_M, KC_N,
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────╫────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
KC_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, KC_H, KC_I, KC_J, KC_K, KC_L, KC_M, KC_N,
|
||||
// ├────────┼────────┼────────┼────────┼────────┼────────┼────────╫────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
KC_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, KC_H, KC_I, KC_J, KC_K, KC_L, KC_M, KC_N,
|
||||
// ├────────┼────────┼────────┼────────┼────────┴────────┼────────╫────────┼────────┴────────┼────────┼────────┼────────┼────────┤
|
||||
KC_A, KC_B, KC_C, KC_D, KC_E, KC_G, KC_H, KC_I, KC_K, KC_L, KC_M, KC_N
|
||||
// └────────┴────────┴────────┴────────┴─────────────────┴────────╨────────┴─────────────────┴────────┴────────┴────────┴────────┘
|
||||
)
|
||||
};
|
||||
19
keyboards/versor/readme.md
Normal file
19
keyboards/versor/readme.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# versor
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
[Buildlog](https://imgur.com/a/HH1wMnI)
|
||||
|
||||
[Backplate image generator](https://github.com/allemangD/hopf-fibration)
|
||||
|
||||
* Keyboard Maintainer: [allemangd](https://github.com/allemangd)
|
||||
* Hardware Supported: The PCBs, controllers supported
|
||||
* Hardware Availability: Links to where you can find this hardware
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
qmk compile -kb versor -km 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).
|
||||
1
keyboards/versor/rules.mk
Normal file
1
keyboards/versor/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
# This file intentionally left blank
|
||||
36
users/allemangd/allemangd.c
Normal file
36
users/allemangd/allemangd.c
Normal file
@@ -0,0 +1,36 @@
|
||||
#include "allemangd.h"
|
||||
|
||||
#define PRESS (record->event.pressed)
|
||||
#define RELEASE (!record->event.pressed)
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KC_VRSN:
|
||||
return PRESS && vrsn();
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
bool vrsn() {
|
||||
SEND_STRING(
|
||||
QMK_KEYBOARD
|
||||
":"
|
||||
QMK_KEYMAP
|
||||
" ("
|
||||
QMK_VERSION
|
||||
" @ "
|
||||
QMK_BUILDDATE
|
||||
")"
|
||||
);
|
||||
return true;
|
||||
}
|
||||
|
||||
__attribute__((weak)) layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
return state;
|
||||
}
|
||||
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
state = update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST);
|
||||
return layer_state_set_keymap(state);
|
||||
}
|
||||
85
users/allemangd/allemangd.h
Normal file
85
users/allemangd/allemangd.h
Normal file
@@ -0,0 +1,85 @@
|
||||
#ifndef USERSPACE
|
||||
#define USERSPACE
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "version.h"
|
||||
|
||||
enum userspace_layers {
|
||||
_DVORAK = 0,
|
||||
_LOWER = 1,
|
||||
_RAISE = 2,
|
||||
_ADJUST = 3,
|
||||
_MOUSE,
|
||||
};
|
||||
|
||||
#define ET_LWER LT(_LOWER, KC_ENTER)
|
||||
#define SP_RAIS LT(_RAISE, KC_SPC)
|
||||
#define DL_LALT MT(MOD_LALT, KC_DEL)
|
||||
#define IN_RALT MT(MOD_RALT, KC_INS)
|
||||
#define AP_RCTL MT(MOD_RCTL, KC_APP)
|
||||
|
||||
#if defined(KEYMAP_SAFE_RANGE)
|
||||
# define PLACEHOLDER_SAFE_RANGE KEYMAP_SAFE_RANGE
|
||||
#else
|
||||
# define PLACEHOLDER_SAFE_RANGE SAFE_RANGE
|
||||
#endif
|
||||
|
||||
enum userspace_custom_keycodes {
|
||||
KC_VRSN = PLACEHOLDER_SAFE_RANGE, // Prints QMK Firmware and board info
|
||||
NEW_SAFE_RANGE // use "NEWPLACEHOLDER for keymap specific codes
|
||||
};
|
||||
|
||||
bool vrsn(void);
|
||||
|
||||
// clang-format off
|
||||
|
||||
#define __BLANK____________________________________ _______, _______, _______, _______, _______
|
||||
|
||||
#define LC_SCLN LCTL_T(KC_SCLN)
|
||||
#define LG_Q LGUI_T(KC_Q)
|
||||
#define LA_X LALT_T(KC_X)
|
||||
|
||||
#define RA_B RALT_T(KC_B)
|
||||
#define RG_V RGUI_T(KC_V)
|
||||
#define RC_Z RCTL_T(KC_Z)
|
||||
|
||||
#define __DVORAK_L1________________________________ KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y
|
||||
#define __DVORAK_L2________________________________ KC_A, KC_O, KC_E, KC_U, KC_I
|
||||
#define __DVORAK_L3________________________________ LC_SCLN, LG_Q, KC_J, KC_K, LA_X
|
||||
|
||||
#define __DVORAK_R1________________________________ KC_F, KC_G, KC_C, KC_R, KC_L
|
||||
#define __DVORAK_R2________________________________ KC_D, KC_H, KC_T, KC_N, KC_S
|
||||
#define __DVORAK_R3________________________________ RA_B, KC_M, KC_W, RG_V, RC_Z
|
||||
|
||||
|
||||
#define __LOWER_L1_________________________________ KC_1, KC_2, KC_3, KC_4, KC_5
|
||||
#define __LOWER_L2_________________________________ KC_6, KC_7, KC_8, KC_9, KC_0
|
||||
#define __LOWER_L3_________________________________ __BLANK____________________________________
|
||||
|
||||
#define __LOWER_R1_________________________________ KC_PIPE, KC_SLSH, KC_EQL, KC_BSLS, KC_QUES
|
||||
#define __LOWER_R2_________________________________ KC_AMPR, KC_LBRC, KC_LPRN, KC_RPRN, KC_RBRC
|
||||
#define __LOWER_R3_________________________________ __BLANK____________________________________
|
||||
|
||||
|
||||
#define __RAISE_L1_________________________________ KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC
|
||||
#define __RAISE_L2_________________________________ KC_PLUS, KC_MINS, KC_SLSH, KC_ASTR, KC_CIRC
|
||||
#define __RAISE_L3_________________________________ __BLANK____________________________________
|
||||
|
||||
#define __RAISE_R1_________________________________ KC_APP, _______, KC_UP, _______, _______
|
||||
#define __RAISE_R2_________________________________ KC_INS, KC_LEFT, KC_DOWN, KC_RGHT, _______
|
||||
#define __RAISE_R3_________________________________ __BLANK____________________________________
|
||||
|
||||
|
||||
#define __ADJUST_L1________________________________ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5
|
||||
#define __ADJUST_L2________________________________ KC_F6, KC_F7, KC_F8, KC_F9, KC_F10
|
||||
#define __ADJUST_L3________________________________ KC_F11, KC_F12, _______, _______, _______
|
||||
|
||||
#define __ADJUST_R1________________________________ KC_MUTE, _______, KC_PGUP, _______, _______
|
||||
#define __ADJUST_R2________________________________ KC_VOLU, KC_HOME, KC_PGDN, KC_END, _______
|
||||
#define __ADJUST_R3________________________________ KC_VOLD, KC_MPRV, KC_MPLY, KC_MNXT, _______
|
||||
|
||||
// clang-format on
|
||||
|
||||
#endif
|
||||
14
users/allemangd/readme.md
Normal file
14
users/allemangd/readme.md
Normal file
@@ -0,0 +1,14 @@
|
||||
Copyright <year> <name> <email> @<github_username>
|
||||
|
||||
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/>.
|
||||
24
users/allemangd/rules.mk
Normal file
24
users/allemangd/rules.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
SRC += allemangd.c
|
||||
|
||||
LTO_ENABLE = yes
|
||||
|
||||
CONSOLE_ENABLE = no
|
||||
DEBUG_ENABLE = no
|
||||
|
||||
EXTRAKEY_ENABLE = yes
|
||||
NKRO_ENABLE = yes
|
||||
BOOTMAGIC_ENABLE = yes
|
||||
UNICODE_ENABLE = no
|
||||
|
||||
MUSIC_ENABLE = no
|
||||
MOUSEKEY_ENABLE = no
|
||||
BACKLIGHT_ENABLE = no
|
||||
MIDI_ENABLE = no
|
||||
AUDIO_ENABLE = no
|
||||
RGBLIGHT_ENABLE = no
|
||||
SWAP_HANDS_ENABLE = no
|
||||
RGB_MATRIX_ENABLE = no
|
||||
HAPTIC_ENABLE = no
|
||||
SLEEP_LED_ENABLE = no
|
||||
|
||||
TRI_LAYER_ENABLE = yes
|
||||
Reference in New Issue
Block a user