Skip to content

Commit

Permalink
feat: Home Row Mods, cleanup, improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
minusfive committed Oct 10, 2024
1 parent 8d2030e commit 53d9442
Show file tree
Hide file tree
Showing 24 changed files with 535 additions and 1,851 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: "img/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
15 changes: 8 additions & 7 deletions .github/workflows/draw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ on:
workflow_dispatch: # can be triggered manually
push:
paths:
- "config/*.keymap"
- "config/corneish_zen.keymap"
- "config/*.dtsi"
- "knucklehead/*.dtsi"
- "keymap_drawer.config.yaml"
- "keymap-drawer/config.yaml"
- ".github/workflows/draw.yml"

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
Expand All @@ -18,14 +19,14 @@ concurrency:

jobs:
draw:
uses: minusfive/keymap-drawer/.github/workflows/draw-zmk.yml@main
uses: caksoylar/keymap-drawer/.github/workflows/draw-zmk.yml@main
permissions:
contents: write
with:
install_branch: "main" # branch to install keymap-drawer from
keymap_patterns: "config/*.keymap" # path to the keymaps to parse
config_path: "keymap_drawer.config.yaml" # config file, ignored if not exists
output_folder: "img" # path to save produced SVGs
keymap_patterns: "config/corneish_zen.keymap" # path to the keymaps to parse
config_path: "keymap-drawer/config.yaml" # config file, ignored if it doesn't exist
output_folder: "keymap-drawer" # path to save produced SVGs
# commit_message: "Draw: ${{ github.event.head_commit.message }}"
amend_commit: true # whether to amend the commit or create a new one

fail_on_error: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ modules/
tools/
.west/
.DS_Store
.venv/
247 changes: 101 additions & 146 deletions README.md

Large diffs are not rendered by default.

28 changes: 23 additions & 5 deletions config/corne.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
# Uncomment the following line to enable deep sleep
# CONFIG_ZMK_SLEEP=y
# Turn on logging, and set ZMK logging to debug output
# CONFIG_ZMK_USB_LOGGING=y

# Reset BT connections on next firmware boot
# CONFIG_ZMK_BLE_CLEAR_BONDS_ON_START=y

# Uncomment the following line to increase the keyboard's wireless range
# Boost Bluetooth TX power
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

# Require passkey on pairing
CONFIG_ZMK_BLE_PASSKEY_ENTRY=y

# Sleep timeout 30 minutes
CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000

# Enable eager debouncing
CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=1
CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=7

# Uncomment the following line to enable USB Logging (this increases power usage by a significant amount, turn it off when not in use)
# CONFIG_ZMK_USB_LOGGING=y
# Fix battery reporting on Windows
CONFIG_BT_GATT_ENFORCE_SUBSCRIPTION=n

# Experimental: BLE improvements
CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y

# Report battery peripheral battery level
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY=y
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING=y

8 changes: 0 additions & 8 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,3 @@

#include "../knucklehead/base.dtsi"

// Alpha layer: uncomment desired, comment the others
#include "../knucklehead/L1_colemak-dh.dtsi"
// #include "../knucklehead/L1_colemak.dtsi"
// #include "../knucklehead/L1_qwerty.dtsi"

// Other layers
#include "../knucklehead/L2.dtsi"
#include "../knucklehead/L3.dtsi"
34 changes: 24 additions & 10 deletions config/corneish_zen.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Turn on logging, and set ZMK logging to debug output
# CONFIG_ZMK_USB_LOGGING=y

# Reset BT connections on next firmware boot
# CONFIG_ZMK_BLE_CLEAR_BONDS_ON_START=y

# Boost Bluetooth TX power
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

Expand All @@ -11,19 +14,30 @@ CONFIG_ZMK_BLE_PASSKEY_ENTRY=y
CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000

# Reset BT connections on next firmware boot
# CONFIG_ZMK_BLE_CLEAR_BONDS_ON_START=y
# Enable eager debouncing
CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=1
CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=7

# Fix battery reporting on Windows
CONFIG_BT_GATT_ENFORCE_SUBSCRIPTION=n

# Experimental: BLE improvements
CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y

# Report battery peripheral battery level
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY=y
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING=y

# Stock status screen
# CONFIG_ZMK_DISPLAY_HIDE_MOMENTARY_LAYERS=y
# CONFIG_CUSTOM_WIDGET_LAYER_STATUS_HIDE_HEADING=y
# CONFIG_CUSTOM_WIDGET_LOGO_IMAGE_ZMK=y

#######################
# Zen display tweaks
# https://gist.github.com/caksoylar/c411313990978e1903c244f03039187a
#######################
CONFIG_ZMK_DISPLAY_FULL_REFRESH_PERIOD=300
# - See: https://gist.github.com/caksoylar/c411313990978e1903c244f03039187a
# CONFIG_ZMK_DISPLAY_FULL_REFRESH_PERIOD=300
# Invert display
# CONFIG_IL0323_INVERT=y
# Use alternative refresh method
# CONFIG_IL0323_ALTERNATIVE_REFRESH=y
# Stock status screen
#CONFIG_ZMK_DISPLAY_HIDE_MOMENTARY_LAYERS=y
CONFIG_CUSTOM_WIDGET_LAYER_STATUS_HIDE_HEADING=y
#CONFIG_CUSTOM_WIDGET_LOGO_IMAGE_ZMK=y

10 changes: 1 addition & 9 deletions config/corneish_zen.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,9 @@

#include "../knucklehead/base.dtsi"

// Alpha layer: uncomment desired, comment the others
#include "../knucklehead/L1_colemak-dh.dtsi"
// #include "../knucklehead/L1_colemak.dtsi"
// #include "../knucklehead/L1_qwerty.dtsi"

// Other layers
#include "../knucklehead/L2.dtsi"
#include "../knucklehead/L3.dtsi"

/ {
chosen {
zmk,matrix_transform = &default_transform;
};
};

37 changes: 36 additions & 1 deletion config/west.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,46 @@
# Copied from: https://github.com/urob/zmk-config/blob/main/config/west.yml
#
# This file specifies the build dependencies for Github Action workflows and
# for local build environments. The workspace has three toplevel directories
# containing the user config, user modules and ZMK. Zephyr and its dependencies
# are namespaced under /zmk to keep the toplevel clean.
#
# ZMK-Workspace
# ├── config
# ├── modules (user modules)
# └── zmk
# └── modules (Zephyr modules)
#
# To create a local build environment, clone this repository and then run the
# following commands from its toplevel directory:
#
# $ west init -l config
# $ west update
# $ west zephyr-export
#
---
manifest:
remotes:
- name: zmkfirmware
url-base: https://github.com/zmkfirmware
- name: urob
url-base: https://github.com/urob
- name: caksoylar
url-base: https://github.com/caksoylar

projects:
- name: zmk
remote: zmkfirmware
import: app/west.yml
revision: main

- name: zmk-auto-layer
remote: urob
revision: main
import: app/west.yml

- name: zmk-tri-state
remote: caksoylar
revision: split-locality

self:
path: config
1,237 changes: 0 additions & 1,237 deletions img/corne.svg

This file was deleted.

Loading

0 comments on commit 53d9442

Please sign in to comment.