initial config

This commit is contained in:
alko
2026-05-20 12:03:43 +05:00
parent 3b0626bbf6
commit 2f908fb3bb
21 changed files with 669 additions and 1 deletions

99
config/cornedeon54.conf Normal file
View File

@@ -0,0 +1,99 @@
### Keyboard name
CONFIG_ZMK_KEYBOARD_NAME="Cornedeon54 ZMK"
### Boost Bluetooth TX power, also make Bluetooth stronger
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y
# Tune bluetooth profiles for quick select
# CONFIG_BT_MAX_CONN=3
# Uncomment the following line if you facing issue on win 11 connection
# Enables a combination of settings that are planned to be default in future
# versions of ZMK to improve connection stability. This includes changes to
# timing on BLE pairing initiation, restores use of the updated/new LLCP
# implementation, and disables 2M PHY support.
CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y
CONFIG_ZMK_BLE_EXPERIMENTAL_SEC=y
CONFIG_ZMK_BLE_PASSKEY_ENTRY=n
# Peripheral battery monitoring
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING=y
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY=y
### POWER OPTIONS
CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_EXT_POWER=y
# 15 min (15*60*1000ms)
# CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000
# 1 min Numero de milisegundos de inactividad antes de entrar en estado inactivo
# CONFIG_ZMK_IDLE_TIMEOUT=60000
# 30 min (30*60*1000ms)
# CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000
# CONFIG_ZMK_IDLE_TIMEOUT=120000
# Disable external power when not connected to USB
# CONFIG_ZMK_EXT_POWER_USB_ONLY=y
### MOUSE
# https://github.com/zmkfirmware/zmk/blob/main/docs/docs/keymaps/behaviors/mouse-emulation.md
#CONFIG_ZMK_MOUSE=y
### ZMK STUDIO
CONFIG_ZMK_STUDIO=y
CONFIG_ZMK_STUDIO_LOCKING=n
### RGB UNDERGLOW
# uncomment to enable RGB Underglow or backlight
# CONFIG_ZMK_RGB_UNDERGLOW=y
# CONFIG_WS2812_STRIP=y
# apaga si no se usa el teclado
# CONFIG_ZMK_RGB_UNDERGLOW_AUTO_OFF_IDLE=y
# 0 Solid color 1 Breathe 2 Spectrum 3 Swirl
# CONFIG_ZMK_RGB_UNDERGLOW_EFF_START=3
# nivel de brillo en porcentaje, el valor por defecto es 10 por ciento
# CONFIG_ZMK_RGB_UNDERGLOW_BRT_STEP=1
# Turn off RGB underglow when keyboard goes into idle state
# CONFIG_ZMK_RGB_UNDERGLOW_AUTO_OFF_IDLE=y
# # Hue step in degrees (0-359) used by RGB actions default 10
# CONFIG_ZMK_RGB_UNDERGLOW_HUE_STEP=30
# # Brightness step in percent used by RGB actions default 10
# CONFIG_ZMK_RGB_UNDERGLOW_SAT_STEP=2
# CONFIG_ZMK_RGB_UNDERGLOW_HUE_START=240
# CONFIG_ZMK_RGB_UNDERGLOW_SAT_START=10
# CONFIG_ZMK_RGB_UNDERGLOW_BRT_START=15
# Uncomment the line below to disable external power toggling by the underglow.
# By default toggling the underglow on and off also toggles external power
# on and off. This also causes the display to turn off.
# CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER=n
### OLED DISPLAY
CONFIG_ZMK_DISPLAY=n
CONFIG_ZMK_DISPLAY_STATUS_SCREEN_CUSTOM=n
# esto creo que ya no es necesario
# CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
# CONFIG_ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN=y
### WIDGET SETTINGS
# No Widget configurations added since nice!view has its own custom widgets
# activar solo estos dos widgets
# CONFIG_ZMK_WIDGET_WPM_STATUS=n
# CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE=y
# CONFIG_ZMK_WIDGET_LAYER_STATUS=y
# CONFIG_ZMK_WIDGET_BATTERY_STATUS=y
# CONFIG_ZMK_WIDGET_OUTPUT_STATUS=y
### HID para nice!view ePaperDisplay
# Enable eager debouncing
# "Eager Debouncing"
# Trying to lower the input lag.
CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=1
CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=5
### Improves compatibility with iPad
# ref: https://zmk.dev/docs/config/system#hid
CONFIG_ZMK_HID_CONSUMER_REPORT_USAGES_BASIC=y
### DEBUG OPTIONS
# CONFIG_ZMK_USB_LOGGING=y
# CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=8000

119
config/cornedeon54.keymap Normal file
View File

@@ -0,0 +1,119 @@
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <dt-bindings/zmk/matrix_transform.h>
#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>
/ {
keymap {
compatible = "zmk,keymap";
layer_0 {
display-name = "Layer 0";
// ----------------------------------------------------------------------------------------
// | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | BSPC |
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | \ |
// | SHIFT | A | S | D | F | G | | H | J | K | L | ; | ' |
// | CTRL | Z | X | C | V | B | | N | M | , | . | / | SHIFT |
// | | | | LALT | MO(1) | SPC | | SPC | MO(2) | GUI | | | |
bindings = <
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
&kp TAB &kp Q &kp W &kp E &kp R &mt GRAVE T &kp Y &kp U &kp I &kp O &mt LBKT P &kp BSLH
&kp LSHFT &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&kp LCTRL &kp Z &kp X &kp C &kp V &kp B &kp N &mt RBKT M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
&none &none &none &kp LALT &mo 1 &kp SPACE &kp SPACE &mo 2 &kp RGUI &none &none &none
>;
};
layer_1 {
display-name = "Layer 1";
// -------------------------------------------------------------------------------------
// | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |
// | TAB | ~ | ( | ) | * | / | | 7 | 8 | 9 | 0 | INS | DEL |
// | SHIFT | | [ | ] | + | - | | 4 | 5 | 6 | . | / | \ |
// | CTRL | | { | } | < | > | | 1 | 2 | 3 | = | _ | SHIFT |
// | | | END | ALT | | RET | | RET | | GUI | | | |
bindings = <
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
&kp TAB &kp TILDA &kp LPAR &kp RPAR &kp STAR &kp FSLH &kp N7 &kp N8 &kp N9 &kp N0 &kp INS &kp DEL
&kp TAB &none &kp LBKT &kp RBKT &kp PLUS &kp MINUS &kp N4 &kp N5 &kp N6 &kp DOT &kp FSLH &kp BSLH
&kp LSHFT &none &kp LBRC &kp RBRC &kp LT &kp GT &kp N1 &kp N2 &kp N3 &kp EQUAL &kp UNDER &kp RSHFT
&none &none &none &kp LALT &trans &kp RET &kp RET &trans &kp RGUI &none &none &none
>;
};
layer_2 {
display-name = "Layer 2";
// ------------------------------------------------------------------------------------------
// | | | | | | | | | | | | | |
// | | | | | UP | | | | | | | PSCRN | PAUSE |
// | | | | LEFT| |RIGHT| | | | | | NUMLK | SCRLK |
// | SHIFT | | | | DOWN| | | | | | | MENU | SHIFT |
// | | | | ALT | | RET | | RET | | CAPS | | | |
bindings = <
&none &none &none &none &none &none &none &none &none &none &none &none
&none &none &none &none &kp UP &none &none &none &none &none &kp PSCRN &kp PAUSE_BREAK
&none &none &none &kp LEFT &none &kp RIGHT &none &none &none &none &kp KP_NUM &kp SLCK
&kp LSHFT &none &none &kp DOWN &none &none &none &none &none &kp K_APP &kp RSHFT
&none &none &none &kp LALT &trans &kp KP_RET &kp RET &trans &kp CAPS &none &none &none
>;
};
layer_3 {
display-name = "Layer 3";
// -----------------------------------------------------------------------------------
// | BTCLR | BT0 | BT1 | BT2 | BT3 | BT4 | | | | | | | |
// | | | | | | | | | | | | | |
// | | | | | | | | | | | | | |
// | | | | | | | | | | | | | |
// | | | | CALC | | | | | | | | | |
bindings = <
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none &none &none
&none &none &none &kp K_CALC &none &none &none &none &none &none &none &none
>;
};
};
conditional_layers {
compatible = "zmk,conditional-layers";
layer_3 {
if-layers = <1 2>;
then-layer = <3>;
};
};
combos {
compatible = "zmk,combos";
combo_bt_clr_left {
timeout-ms = <50>;
layers = <1>;
key-positions = <0 1 2 3>;
bindings = <&bt BT_CLR>;
};
combo_bt_clr_right {
timeout-ms = <50>;
layers = <2>;
key-positions = <12 13 14 15>;
bindings = <&bt BT_CLR>;
};
};
};

75
config/info.json Normal file
View File

@@ -0,0 +1,75 @@
{
"id": "cornedeon54",
"name": "cornedeon54",
"keyboard_name": "Cornedeon54 ZMK",
"manufacturer": "alko",
"url": "https://cornedeon.ru",
"maintainer": "alko",
"layouts": {
"LAYOUT": {
"layout": [
{ "matrix": [0, 0], "x": 0, "y": 0.3 },
{ "matrix": [0, 1], "x": 1, "y": 0.3 },
{ "matrix": [0, 2], "x": 2, "y": 0.1 },
{ "matrix": [0, 3], "x": 3, "y": 0 },
{ "matrix": [0, 4], "x": 4, "y": 0.1 },
{ "matrix": [0, 5], "x": 5, "y": 0.2 },
{ "matrix": [5, 5], "x": 9, "y": 0.2 },
{ "matrix": [5, 4], "x": 10, "y": 0.1 },
{ "matrix": [5, 3], "x": 11, "y": 0 },
{ "matrix": [5, 2], "x": 12, "y": 0.1 },
{ "matrix": [5, 1], "x": 13, "y": 0.3 },
{ "matrix": [5, 0], "x": 14, "y": 0.3 },
{ "matrix": [1, 0], "x": 0, "y": 1.3 },
{ "matrix": [1, 1], "x": 1, "y": 1.3 },
{ "matrix": [1, 2], "x": 2, "y": 1.1 },
{ "matrix": [1, 3], "x": 3, "y": 1 },
{ "matrix": [1, 4], "x": 4, "y": 1.1 },
{ "matrix": [1, 5], "x": 5, "y": 1.2 },
{ "matrix": [6, 5], "x": 9, "y": 1.2 },
{ "matrix": [6, 4], "x": 10, "y": 1.1 },
{ "matrix": [6, 3], "x": 11, "y": 1 },
{ "matrix": [6, 2], "x": 12, "y": 1.1 },
{ "matrix": [6, 1], "x": 13, "y": 1.3 },
{ "matrix": [6, 0], "x": 14, "y": 1.3 },
{ "matrix": [2, 0], "x": 0, "y": 2.3 },
{ "matrix": [2, 1], "x": 1, "y": 2.3 },
{ "matrix": [2, 2], "x": 2, "y": 2.1 },
{ "matrix": [2, 3], "x": 3, "y": 2 },
{ "matrix": [2, 4], "x": 4, "y": 2.1 },
{ "matrix": [2, 5], "x": 5, "y": 2.2 },
{ "matrix": [7, 5], "x": 9, "y": 2.2 },
{ "matrix": [7, 4], "x": 10, "y": 2.1 },
{ "matrix": [7, 3], "x": 11, "y": 2 },
{ "matrix": [7, 2], "x": 12, "y": 2.1 },
{ "matrix": [7, 1], "x": 13, "y": 2.3 },
{ "matrix": [7, 0], "x": 14, "y": 2.3 },
{ "matrix": [3, 0], "x": 0, "y": 3.3 },
{ "matrix": [3, 1], "x": 1, "y": 3.3 },
{ "matrix": [3, 2], "x": 2, "y": 3.1 },
{ "matrix": [3, 3], "x": 3, "y": 3 },
{ "matrix": [3, 4], "x": 4, "y": 3.1 },
{ "matrix": [3, 5], "x": 5, "y": 3.2 },
{ "matrix": [8, 5], "x": 9, "y": 3.2 },
{ "matrix": [8, 4], "x": 10, "y": 3.1 },
{ "matrix": [8, 3], "x": 11, "y": 3 },
{ "matrix": [8, 2], "x": 12, "y": 3.1 },
{ "matrix": [8, 1], "x": 13, "y": 3.3 },
{ "matrix": [8, 0], "x": 14, "y": 3.3 },
{ "matrix": [4, 0], "x": 0, "y": 4.7 },
{ "matrix": [4, 1], "x": 1, "y": 4.7 },
{ "matrix": [4, 2], "x": 2, "y": 4.7 },
{ "matrix": [4, 3], "x": 4, "y": 4.7 },
{ "matrix": [4, 4], "x": 5, "y": 4.7 },
{ "matrix": [4, 5], "x": 6, "y": 4.2, "h": 1.5 },
{ "matrix": [9, 5], "x": 8, "y": 4.2, "h": 1.5 },
{ "matrix": [9, 4], "x": 9, "y": 4.7 },
{ "matrix": [9, 3], "x": 10, "y": 4.7 },
{ "matrix": [9, 2], "x": 12, "y": 4.7 },
{ "matrix": [9, 1], "x": 13, "y": 4.7 },
{ "matrix": [9, 0], "x": 14, "y": 4.7 }
]
}
},
"sensors": []
}

14
config/west.yml Normal file
View File

@@ -0,0 +1,14 @@
manifest:
defaults:
revision: v0.3
remotes:
- name: zmkfirmware
url-base: https://github.com/zmkfirmware
# Additional modules containing boards/shields/custom code can be listed here as well
# See https://docs.zephyrproject.org/3.2.0/develop/west/manifest.html#projects
projects:
- name: zmk
remote: zmkfirmware
import: app/west.yml
self:
path: config