81 Commits

Author SHA1 Message Date
85970528a4 Fixing git workflow build
Some checks failed
Build QMK Firmware with Docker / build (push) Successful in 16m18s
Build QMK Firmware with Docker / build (pull_request) Successful in 3m41s
Compile my Keebs / lint-and-compile (pull_request) Failing after 4s
2025-07-15 14:28:30 -05:00
dc9f1b4776 Fixing git workflow build
Some checks failed
Build QMK Firmware with Docker / build (push) Failing after 2m18s
2025-07-15 00:50:22 -05:00
ee38e1f27a Fixing git workflow build
Some checks failed
Build QMK Firmware with Docker / build (push) Failing after 2m10s
2025-07-15 00:44:47 -05:00
8f6024cd6d Fixing git workflow build
Some checks failed
Build QMK Firmware with Docker / build (push) Failing after 2m22s
2025-07-15 00:37:46 -05:00
690fa58478 Fixing git workflow build
Some checks failed
Build QMK Firmware with Docker / build (push) Failing after 1m32s
2025-07-15 00:32:12 -05:00
35d6b27634 Fixing git workflow build
Some checks failed
Build QMK Firmware with Docker / build (push) Failing after 3s
2025-07-15 00:30:18 -05:00
2db409ff53 Fixing git workflow build
Some checks failed
Build QMK Firmware with Docker / build (push) Has been cancelled
2025-07-15 00:29:17 -05:00
103a31736b Fixing git workflow build
Some checks are pending
Build QMK Firmware with Docker / build (draculad, draculad) (push) Waiting to run
Build QMK Firmware with Docker / build (iris, keebio/iris/rev8) (push) Waiting to run
Build QMK Firmware with Docker / build (scottogame, handwired/scottokeebs/scottogame) (push) Waiting to run
Build QMK Firmware with Docker / build (sweep, ferris/sweep) (push) Waiting to run
Build QMK Firmware with Docker / build (swoop, bluebell/swoop) (push) Waiting to run
2025-07-15 00:27:50 -05:00
4ed65f4973 Fixing git workflow build
Some checks are pending
Build QMK Firmware with Docker / build (draculad, draculad) (push) Waiting to run
Build QMK Firmware with Docker / build (iris, keebio/iris/rev8) (push) Waiting to run
Build QMK Firmware with Docker / build (scottogame, handwired/scottokeebs/scottogame) (push) Waiting to run
Build QMK Firmware with Docker / build (sweep, ferris/sweep) (push) Waiting to run
Build QMK Firmware with Docker / build (swoop, bluebell/swoop) (push) Waiting to run
Build QMK Firmware with Docker / release (push) Blocked by required conditions
2025-07-15 00:22:52 -05:00
11e12ea8d5 Fixing git workflow build
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 1s
Build QMK Firmware with Docker / build (draculad, draculad) (push) Has been cancelled
Build QMK Firmware with Docker / build (iris, keebio/iris/rev8) (push) Has been cancelled
Build QMK Firmware with Docker / build (scottogame, handwired/scottokeebs/scottogame) (push) Has been cancelled
Build QMK Firmware with Docker / build (sweep, ferris/sweep) (push) Has been cancelled
Build QMK Firmware with Docker / build (swoop, bluebell/swoop) (push) Has been cancelled
Build QMK Firmware with Docker / release (push) Has been cancelled
2025-07-15 00:19:21 -05:00
d6d33e5f3e Added dockerfilE/container
Some checks failed
Build QMK Firmware with Docker / build (draculad, draculad) (push) Waiting to run
Build QMK Firmware with Docker / build (iris, keebio/iris/rev8) (push) Waiting to run
Build QMK Firmware with Docker / build (scottogame, handwired/scottokeebs/scottogame) (push) Waiting to run
Build QMK Firmware with Docker / build (sweep, ferris/sweep) (push) Waiting to run
Build QMK Firmware with Docker / build (swoop, bluebell/swoop) (push) Waiting to run
Build QMK Firmware with Docker / release (push) Blocked by required conditions
Compile my Keebs / lint-and-compile (push) Failing after 1s
2025-07-14 23:54:16 -05:00
650cdea752 Fixing git workflow build
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 4s
2025-07-14 16:56:24 -05:00
3c57a48fa6 Fixing git workflow build
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 2s
2025-07-14 16:46:34 -05:00
d9fd523b0d Fixing git workflow build
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 2s
2025-07-14 16:45:36 -05:00
28c3ebd46d Fixing git workflow build
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 2s
2025-07-14 16:43:39 -05:00
728fb14a0b Fixing git workflow build
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 15s
2025-07-14 16:41:21 -05:00
4d9b9e63b9 switching container to qmkfm/qmk_cli
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 1m24s
2025-07-14 16:35:01 -05:00
e36aa6fe9c Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 6m30s
2025-07-14 16:19:58 -05:00
9dfc107f47 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 5m17s
2025-07-14 16:12:17 -05:00
5c761b3094 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 4m5s
2025-07-14 15:47:56 -05:00
941f00a784 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 1m48s
2025-07-14 15:41:59 -05:00
153ddc0152 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 4m10s
2025-07-14 15:24:16 -05:00
665fbd93f5 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 4m22s
2025-07-14 15:18:32 -05:00
e0a59f8761 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 5m1s
2025-07-14 14:51:33 -05:00
7700b53635 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 4m22s
2025-07-14 14:44:49 -05:00
dfbcf5a048 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 4m1s
2025-07-14 14:37:40 -05:00
66d8610862 Updating gitea runner
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 4m8s
2025-07-14 14:08:25 -05:00
71a1868e32 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 3m46s
2025-07-14 13:57:10 -05:00
992b5c2b21 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 3m52s
2025-07-14 13:51:35 -05:00
82b94e08b6 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 3m50s
2025-07-14 13:13:12 -05:00
07aed63dc8 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 1m50s
2025-07-14 13:10:10 -05:00
bb10445f71 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 53s
2025-07-14 13:07:10 -05:00
f80539e7e4 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 4s
2025-07-14 13:06:17 -05:00
5ff101d848 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 11s
2025-07-14 13:03:24 -05:00
321a564c7d Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 59s
2025-07-14 12:59:02 -05:00
e7cd5110e8 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 12s
2025-07-14 12:41:41 -05:00
53be43d096 Update .github/workflows/lint_and_compile.yml
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 2s
2025-07-14 11:56:50 -05:00
7bd2c756f0 Fixing gitea actions
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 3s
2025-07-14 11:54:50 -05:00
b04896b80d Updating gitea runner
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 2s
2025-07-14 11:50:43 -05:00
2c2a780b3d Updating gitea runner
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 2s
2025-07-14 11:47:41 -05:00
7497afa5f3 Updating gitea runner
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 21s
2025-07-14 11:45:46 -05:00
3c73c7283f [chore] Fixing Gitea actions
Some checks failed
Compile my Keebs / lint-and-compile (push) Has been cancelled
2025-01-21 15:14:34 -06:00
c6bf4cb085 [chore] Fixing Gitea actions
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 31s
2025-01-21 15:11:05 -06:00
fb8bca3e8f [chore] Fixing Gitea actions
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 29s
2025-01-21 14:58:31 -06:00
c40e413731 [chore] Fixing Gitea actions
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 7s
2025-01-21 14:56:43 -06:00
882d50aa80 [chore] Fixing Gitea actions
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 41s
2025-01-21 14:55:19 -06:00
20b3a976eb [chore} Working on gitea actions
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 49s
2025-01-21 14:36:50 -06:00
b3afd32093 [chore} Working on gitea actions
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 21s
2025-01-21 14:26:28 -06:00
dave
d7d125bada Another ADHD change
Some checks failed
Compile my Keebs / lint-and-compile (push) Failing after 9s
2024-08-15 07:54:11 -05:00
dave
dd4507cfc4 Finally added Colemak DH 2024-08-12 09:10:40 -05:00
dave
f6ccbed4ac idk Fri Aug 9 03:08:28 PM CDT 2024 2024-08-09 15:08:28 -05:00
dave
107dc50695 idk Thu Aug 1 09:45:29 AM CDT 2024 2024-08-01 09:45:29 -05:00
Dave Vigil
cd185075c2 Updating q8 2024-07-31 16:20:35 -05:00
dave
b4f49515e8 start q8 to be what I want and work in vial 2024-07-31 15:28:47 -05:00
dave
113c7a33c7 Removed submodules 2024-07-31 11:28:37 -05:00
dave
3873992c7d --wip-- [skip ci] 2024-07-31 09:00:35 -05:00
dave
abb0489a6d Update for Draculad 2024-07-31 08:02:10 -05:00
d8ded6f4b3 Update keymap.c 2024-07-28 22:54:58 -05:00
dave
cc5c19df96 Updated rgb swirl 2024-07-25 16:06:38 -05:00
dave
795664a692 Updated encoder 2024-07-25 15:36:51 -05:00
5dcab5e0b6 Update keymap_blocks.h 2024-06-24 09:27:12 -05:00
f73f2816e9 Update layers.h 2024-06-24 09:20:45 -05:00
9cb659c8f1 Update keycodes.h 2024-06-24 09:20:02 -05:00
0d086830f6 Update keymap.c 2024-06-24 09:19:15 -05:00
9627e81f67 Update keymap.c 2024-06-24 09:14:01 -05:00
edd5bb59a2 Update keymap.c 2024-06-24 09:10:58 -05:00
8edc57504e Update lint_and_compile.yml 2024-06-20 16:39:24 -05:00
1141cb56b3 Update keymap.c 2024-06-20 16:24:41 -05:00
61eaf52e8e Update keymap.c 2024-06-20 16:13:36 -05:00
efcd882784 Update keycodes.h 2024-06-17 16:17:24 -05:00
e5cb15e11c Update keymap_blocks.h 2024-06-17 16:16:58 -05:00
d95104a672 Update keycodes.h 2024-06-17 16:16:02 -05:00
e58afed32c Update keycodes.h 2024-06-17 16:15:18 -05:00
29b2cb26e9 Update keymap.c 2024-06-17 16:03:35 -05:00
e0af1fa5dd Update keymap.c 2024-06-17 16:02:33 -05:00
f22b4c579c Update keycodes.h 2024-06-10 14:00:51 -05:00
ce98807d44 Update keymap_blocks.h 2024-06-10 13:19:14 -05:00
c7e860e597 Update keymap.c 2024-06-10 12:55:53 -05:00
290b549f66 Update keymap_blocks.h 2024-06-04 13:44:00 -05:00
9be7641b41 Update keymap.c 2024-06-03 07:27:58 -05:00
51241369e3 Update keycodes.h 2024-05-20 15:13:51 -05:00
29 changed files with 1757 additions and 352 deletions

26
.github/workflows/docker-build.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Build QMK Firmware with Docker
on: [push, pull_request]
jobs:
build:
runs-on: local
container:
image: ubuntu
steps:
- name: Install packages
run: |
apt-get update && apt-get install -y nodejs git python3 python3-pip rsync apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update
apt install -y docker-ce docker-ce-cli containerd.io
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Docker image
run: docker build --load -t qmk-builder .
- name: Tag Docker image
run: docker tag qmk-builder registry.home.dgvigil.dev/qmk-builder:v0.1
- name: Push Docker image
run: docker push registry.home.dgvigil.dev/qmk-builder:v0.1

View File

@@ -1,35 +1,33 @@
name: Compile my Keebs name: Compile my Keebs
on: [push] on: [pull_request]
jobs: jobs:
lint-and-compile: lint-and-compile:
runs-on: ubuntu-latest runs-on: local
container:
image: registry.home.dgvigil.dev/qmk-builder:v0.1
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: - name: Checkout submodules
submodules: 'true'
- name: Setup
run: | run: |
python3 -m pip install --user qmk git submodule update --init --recursive
python3 -m pip install -r /home/runner/work/dgvigil-keebs/dgvigil-keebs/qmk_firmware/requirements.txt
qmk setup -y
cd /home/runner/work/dgvigil-keebs/dgvigil-keebs/qmk_firmware/
make git-submodules
- name: Prep - name: Prep
run: | run: |
cd /home/runner/work/dgvigil-keebs/dgvigil-keebs/ pwd
rsync -avP $(pwd)/dgvigil/ qmk_firmware/users/dgvigil/ ls -la
rsync -avP $(pwd)/draculad/ qmk_firmware/keyboards/draculad/keymaps/dgvigil/ cd /workspace/dave/dgvigil-keebs/
rsync -avP $(pwd)/iris/ qmk_firmware/keyboards/keebio/iris/keymaps/dgvigil/ cp -a $(pwd)/dgvigil/ qmk_firmware/users/dgvigil/
rsync -avP $(pwd)/sweep/ qmk_firmware/keyboards/ferris/keymaps/dgvigil/ cp -a $(pwd)/draculad/ qmk_firmware/keyboards/draculad/keymaps/dgvigil/
rsync -avP $(pwd)/scottogame/ qmk_firmware/keyboards/handwired/scottokeebs/scottogame/keymaps/dgvigil/ cp -a $(pwd)/iris/ qmk_firmware/keyboards/keebio/iris/keymaps/dgvigil/
rsync -avP $(pwd)/swoop/ qmk_firmware/keyboards/bluebell/swoop/keymaps/dgvigil/ cp -a $(pwd)/sweep/ qmk_firmware/keyboards/ferris/keymaps/dgvigil/
rsync -avP $(pwd)/q8/ qmk_firmware/keyboards/keychron/q8/ansi_encoder/keymaps/dgvigil/ cp -a $(pwd)/scottogame/ qmk_firmware/keyboards/handwired/scottokeebs/scottogame/keymaps/dgvigil/
cp -a $(pwd)/swoop/ qmk_firmware/keyboards/bluebell/swoop/keymaps/dgvigil/
cp -a $(pwd)/q8/ qmk_firmware/keyboards/keychron/q8/ansi_encoder/keymaps/dgvigil/
- name: Build - name: Build
run: | run: |
cd /home/runner/work/dgvigil-keebs/dgvigil-keebs/qmk_firmware/ cd /workspace/dave/dgvigil-keebs/qmk_firmware/
echo "Building QMK for draculad" # echo "Building QMK for draculad"
qmk compile -kb draculad -km dgvigil -e CONVERT_TO=promicro_rp2040 # /root/.local/bin/qmk compile -kb draculad -km dgvigil -e CONVERT_TO=promicro_rp2040
# echo "Building QMK for handwired/scottokeebs/scottogame" # echo "Building QMK for handwired/scottokeebs/scottogame"
# qmk compile -kb handwired/scottokeebs/scottogame -km dgvigil # qmk compile -kb handwired/scottokeebs/scottogame -km dgvigil
# echo "Building QMK for Q8" # echo "Building QMK for Q8"
@@ -38,6 +36,7 @@ jobs:
# qmk compile -kb ferris/sweep -km dgvigil # qmk compile -kb ferris/sweep -km dgvigil
echo "Building QMK for keebio/iris/rev8" echo "Building QMK for keebio/iris/rev8"
qmk compile -kb keebio/iris/rev8 -km dgvigil qmk compile -kb keebio/iris/rev8 -km dgvigil
# /root/.local/bin/qmk compile -kb keebio/iris/rev8 -km via
# echo "Building QMK for bluebell/swoop" # echo "Building QMK for bluebell/swoop"
# qmk compile -kb bluebell/swoop -km dgvigil -e CONVERT_TO=promicro_rp2040 # qmk compile -kb bluebell/swoop -km dgvigil -e CONVERT_TO=promicro_rp2040
find -maxdepth 1 -name "*.hex" find -maxdepth 1 -name "*.hex"

5
.gitmodules vendored
View File

@@ -1,6 +1,3 @@
[submodule "qmk_firmware"] [submodule "qmk_firmware"]
path = qmk_firmware path = qmk_firmware
url = https://github.com/dgvigil/qmk_firmware.git url = https://git.home.dgvigil.dev/Homelab/qmk_firmware.git
[submodule "kmk_firmware"]
path = kmk_firmware
url = git@github.com:KMKfw/kmk_firmware.git

101
DOCKER_README.md Normal file
View File

@@ -0,0 +1,101 @@
# QMK Firmware Docker Build Environment
This repository includes a custom Docker setup for building QMK firmware in CI/CD environments.
## Files
- `Dockerfile` - Custom Docker image for QMK firmware builds
- `.dockerignore` - Excludes unnecessary files from Docker build context
- `build.sh` - Convenience script for building firmware locally
- `.github/workflows/docker-build.yml` - GitHub Actions workflow using the custom Docker image
## Features
- Based on Ubuntu 22.04 for stability
- Includes ARM and AVR toolchains
- Pre-installed QMK CLI and dependencies
- Automatic symlink setup for your keymaps
- Optimized for your specific keyboard configurations
## Local Usage
### Building the Docker Image
```bash
docker build --load -t qmk-builder .
```
**Note:** The `--load` flag is required to make the image available locally with newer Docker versions.
### Building Firmware
#### Using the build script:
```bash
# Build all keyboards
./build.sh
# Build specific keyboard
./build.sh iris
# Build with custom user
./build.sh iris myuser
```
#### Using Docker directly:
```bash
# Build all keyboards
docker run --rm \
-v "$(pwd):/workspace" \
-w /workspace \
-e USER=dgvigil \
qmk-builder \
bash -c "cd /qmk_firmware && qmk compile -kb keebio/iris/rev8 -km dgvigil"
```
## CI/CD Usage
The `.github/workflows/docker-build.yml` workflow demonstrates how to use this Docker setup in GitHub Actions:
1. Builds the Docker image
2. Builds each keyboard in parallel
3. Uploads firmware artifacts
4. Creates releases on main branch pushes
## Supported Keyboards
- `draculad``draculad`
- `iris``keebio/iris/rev8`
- `scottogame``handwired/scottokeebs/scottogame`
- `sweep``ferris/sweep`
- `swoop``bluebell/swoop`
## Environment Variables
- `USER` - The QMK user name (defaults to `dgvigil`)
- `QMK_HOME` - Path to QMK firmware (set to `/qmk_firmware`)
## Differences from qmkfm/qmk_cli
This custom Dockerfile provides:
1. **Faster builds** - Pre-installed toolchains and dependencies
2. **Better integration** - Automatic symlink setup for your keymaps
3. **Consistent environment** - Same setup across local and CI builds
4. **Optimized for your workflow** - Tailored to your specific keyboard configurations
## Troubleshooting
### Build fails with toolchain errors
Make sure the Docker image is built with the latest QMK firmware:
```bash
docker build --no-cache -t qmk-builder .
```
### Symlinks not working
The entrypoint script automatically sets up symlinks, but you can verify they exist:
```bash
docker run --rm -v "$(pwd):/workspace" qmk-builder ls -la /qmk_firmware/keyboards/keebio/iris/keymaps/
```
### Missing firmware files
Check that the build completed successfully and look for `.hex` and `.uf2` files in the QMK firmware directory.

109
Dockerfile Normal file
View File

@@ -0,0 +1,109 @@
# QMK Firmware Build Environment
# Based on Ubuntu 22.04 for stability and compatibility
FROM ubuntu:22.04
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive
ENV QMK_HOME=/qmk_firmware
ENV PATH="/root/.local/bin:$PATH"
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
clang-format \
dfu-programmer \
dfu-util \
git \
libnewlib-arm-none-eabi \
nodejs \
python3 \
python3-pip \
python3-setuptools \
python3-wheel \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Install ARM toolchain
RUN wget -qO- https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 | tar xj -C /opt \
&& ln -s /opt/gcc-arm-none-eabi-10.3-2021.10/bin/* /usr/local/bin/
# Install AVR toolchain
RUN wget -qO- https://downloads.arduino.cc/arduino-1.8.19-linux64.tar.xz | tar xJ -C /opt \
&& ln -s /opt/arduino-1.8.19/hardware/tools/avr/bin/* /usr/local/bin/
# Set up QMK environment
WORKDIR /workspace
RUN git clone --depth 1 https://github.com/qmk/qmk_firmware.git $QMK_HOME
# Install QMK CLI and Python dependencies
RUN pip3 install --user qmk
RUN pip3 install --user -r $QMK_HOME/requirements.txt
# Set up QMK
RUN qmk setup --yes
# Create build directory
RUN mkdir -p /workspace/build
# Set working directory
WORKDIR /workspace
# Copy entrypoint script
COPY <<EOF /usr/local/bin/entrypoint.sh
#!/bin/bash
set -e
# Initialize git submodules if they exist
if [ -f ".gitmodules" ]; then
git submodule update --init --recursive
fi
# Set up user keymaps
USER=\${USER:-dgvigil}
# Clean up old symlinks
rm -rf $QMK_HOME/keyboards/draculad/keymaps/\$USER 2>/dev/null || true
rm -rf $QMK_HOME/keyboards/keebio/iris/keymaps/\$USER 2>/dev/null || true
rm -rf $QMK_HOME/keyboards/handwired/scottokeebs/scottogame/keymaps/\$USER 2>/dev/null || true
rm -rf $QMK_HOME/keyboards/bluebell/swoop/keymaps/\$USER 2>/dev/null || true
rm -rf $QMK_HOME/keyboards/ferris/keymaps/\$USER 2>/dev/null || true
rm -rf $QMK_HOME/users/\$USER 2>/dev/null || true
# Create symlinks for keymaps
if [ -d "draculad" ]; then
ln -s /workspace/draculad/ $QMK_HOME/keyboards/draculad/keymaps/\$USER
fi
if [ -d "iris" ]; then
ln -s /workspace/iris/ $QMK_HOME/keyboards/keebio/iris/keymaps/\$USER
fi
if [ -d "sweep" ]; then
ln -s /workspace/sweep/ $QMK_HOME/keyboards/ferris/keymaps/\$USER
fi
if [ -d "scottogame" ]; then
ln -s /workspace/scottogame/ $QMK_HOME/keyboards/handwired/scottokeebs/scottogame/keymaps/\$USER
fi
if [ -d "swoop" ]; then
ln -s /workspace/swoop/ $QMK_HOME/keyboards/bluebell/swoop/keymaps/\$USER
fi
if [ -d "user" ]; then
ln -s /workspace/user/ $QMK_HOME/users/\$USER
fi
# Execute the command passed to the container
exec "\$@"
EOF
RUN chmod +x /usr/local/bin/entrypoint.sh
# Set entrypoint
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
# Default command
CMD ["bash"]

71
build.sh Executable file
View File

@@ -0,0 +1,71 @@
#!/bin/bash
set -e
# Build script for QMK firmware using Docker
# Usage: ./build.sh [keyboard] [user]
KEYBOARD=${1:-all}
USER=${2:-dgvigil}
echo "Building QMK firmware for user: $USER"
# Build the Docker image if it doesn't exist
if [[ "$(docker images -q qmk-builder 2> /dev/null)" == "" ]]; then
echo "Building Docker image..."
docker build --load -t qmk-builder .
fi
# Function to build a specific keyboard
build_keyboard() {
local kb=$1
local user=$2
echo "Building $kb for user $user..."
# Map keyboard names to QMK paths
case $kb in
"draculad")
qmk_path="draculad"
;;
"iris")
qmk_path="keebio/iris/rev8"
;;
"scottogame")
qmk_path="handwired/scottokeebs/scottogame"
;;
"sweep")
qmk_path="ferris/sweep"
;;
"swoop")
qmk_path="bluebell/swoop"
;;
*)
echo "Unknown keyboard: $kb"
exit 1
;;
esac
# Run the build in Docker
docker run --rm \
-v "$(pwd):/workspace" \
-w /workspace \
-e USER=$user \
qmk-builder \
bash -c "
cd $QMK_HOME
qmk compile -kb $qmk_path -km $user
"
}
# Build all keyboards or specific one
if [ "$KEYBOARD" = "all" ]; then
echo "Building all keyboards..."
for kb in draculad iris scottogame sweep swoop; do
build_keyboard $kb $USER
done
else
build_keyboard $KEYBOARD $USER
fi
echo "Build complete!"
echo "Firmware files should be in the qmk_firmware directory"

862
compile_commands.json Normal file

File diff suppressed because one or more lines are too long

View File

@@ -22,7 +22,8 @@ enum {
enum { enum {
CUSTOM_KEYCODE_START = SAFE_RANGE, CUSTOM_KEYCODE_START = SAFE_RANGE,
WINDOWS, QWERTY,
LINUX,
COPY, COPY,
PASTE, PASTE,
CUT, CUT,
@@ -38,7 +39,7 @@ enum {
}; };
// Layer-taps // Layers
// 3 LEFT THUMB KEYS // 3 LEFT THUMB KEYS
#define MUS_ESC LT(_MUS, KC_ESC) #define MUS_ESC LT(_MUS, KC_ESC)
@@ -49,12 +50,12 @@ enum {
#define NUM_SPC LT(_NUM, KC_SPC) #define NUM_SPC LT(_NUM, KC_SPC)
#define FUN_DEL LT(_FUN, KC_DEL) #define FUN_DEL LT(_FUN, KC_DEL)
#define QWERTY DF(_QWERTY)
#define COLEMAK DF(_COLEMAK_DH)
// 2 LEFT THUMB KEYS // 2 LEFT THUMB KEYS
#define FUN_TAB LT(_FUN, KC_TAB) #define FUN_TAB LT(_FUN, KC_TAB)
// 2 RIGHT THUMB KEYS // 2 RIGHT THUMB KEYS
#define NUM_SPC LT(_NUM, KC_SPC) #define NUM_SPC LT(_NUM, KC_SPC)
// Default layer change
#define QWERT DF(_QWERTY)
#define COLDH DF(_COLEMAKDH)
// clang-format on // clang-format on

View File

@@ -17,8 +17,8 @@
// EMPTY ROW // EMPTY ROW
#define __________________EMPTY_____________________ _______, _______, _______, _______, _______ #define __________________EMPTY_____________________ _______, _______, _______, _______, _______
// BOOTLOADER // BOOTLOADER
#define _________________BOOT_R1____________________ _______, _______, QWERTY, _______, QK_BOOTLOADER #define _________________BOOT_R1____________________ COLDH, _______, _______, _______, QK_BOOTLOADER
#define _________________BOOT_L1____________________ QK_BOOTLOADER,_______,COLEMAK,_______,_______ #define _________________BOOT_L1____________________ QK_BOOTLOADER,_______,_______,_______,QWERT
// _BASE // _BASE
@@ -69,8 +69,8 @@
// MOUSE // MOUSE
#define __________________MOU_R1____________________ _______, KC_PSTE, KC_COPY, KC_CUT, KC_UNDO #define __________________MOU_R1____________________ _______, KC_PSTE, KC_COPY, KC_CUT, KC_UNDO
#define __________________MOU_R2____________________ KC_BTN1, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R #define __________________MOU_R2____________________ KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, _______
#define __________________MOU_R3____________________ KC_BTN2, KC_WH_L, KC_WH_D, KC_WH_U, KC_WH_R #define __________________MOU_R3____________________ KC_BTN2, KC_BTN1, KC_WH_D, KC_WH_U, KC_BTN2
// COLEMAK-DH // COLEMAK-DH
#define __________________COLEML1____________________ Q_ESC, KC_W, KC_F, KC_P, KC_B #define __________________COLEML1____________________ Q_ESC, KC_W, KC_F, KC_P, KC_B

View File

@@ -1,12 +1,12 @@
#pragma once #pragma once
typedef enum { typedef enum {
_QWERTY, _QWERTY, // 0
_NAV, _COLEMAKDH,
_NUM, _NAV, // 2
_SYM, _NUM, //3
_FUN, _SYM, // 4
_MUS, _FUN, // 5
_MOUSE, _MUS, // 6
_COLEMAK_DH _MOUSE // 7
} layers_t; } layers_t;

View File

@@ -3,6 +3,8 @@
#include "features/taphold.h" #include "features/taphold.h"
#include "features/tapdance.h" #include "features/tapdance.h"
#include "features/macros.h" #include "features/macros.h"
#include "features/combo.h"
#include "features/tap_dance.h"
#include "definitions/layers.h" #include "definitions/layers.h"
#include "definitions/process_record.h" #include "definitions/process_record.h"
#include "definitions/keycodes.h" #include "definitions/keycodes.h"

View File

@@ -3,16 +3,94 @@
#include "macros.h" #include "macros.h"
process_record_result_t process_macro_keycode(uint16_t keycode, keyrecord_t *record) { uint8_t mod_state;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
static bool isLinux = false;
mod_state = get_mods();
switch (keycode) { switch (keycode) {
case LINUX:
if (record->event.pressed) {
isLinux = !isLinux;
}
return false;
case COPY:
if (record->event.pressed) {
if (isLinux) {
tap_code16(RCS(KC_C));
} else {
tap_code16(LGUI(KC_C));
}
return false;
}
case PASTE:
if (record->event.pressed) {
if (isLinux) {
tap_code16(RCS(KC_V));
} else {
tap_code16(LGUI(KC_V));
}
return false;
}
case CUT:
if (record->event.pressed) {
if (isLinux) {
tap_code16(RCS(KC_X));
} else {
tap_code16(LGUI(KC_X));
}
return false;
}
case UNDO:
if (record->event.pressed) {
if (isLinux) {
tap_code16(LCTL(KC_Z));
} else {
tap_code16(LGUI(KC_Z));
}
return false;
}
case REDO:
if (record->event.pressed) {
if (isLinux) {
tap_code16(LCTL(KC_Y));
} else {
tap_code16(LSG(KC_Z));
}
return false;
}
case SALL:
if (record->event.pressed) {
if (isLinux) {
tap_code16(LCTL(KC_A));
} else {
tap_code16(LGUI(KC_A));
}
return false;
}
case M_PASS1: case M_PASS1:
if (record->event.pressed) { if (record->event.pressed) {
SEND_STRING("T3lg3Ranch!2023"); SEND_STRING("P0plarLake!2023");
} }
return false; return false;
case M_PASS2: case M_PASS2:
if (record->event.pressed) { if (record->event.pressed) {
SEND_STRING("P0plarLake!2023"); SEND_STRING("CindieOtono!2024");
}
return false;
case M_PASS3:
if (record->event.pressed) {
SEND_STRING("1290");
}
return false;
case M_PASS4:
if (record->event.pressed) {
SEND_STRING("Thel0ve0fchrist!");
}
return false;
case SPOTLI:
if (record->event.pressed) {
tap_code16(LGUI(KC_SPACE));
} }
return false; return false;
} }

View File

@@ -44,19 +44,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
__________________BASE_L3____________________, __________________BASE_R3____________________, __________________BASE_L3____________________, __________________BASE_R3____________________,
// └────────┴────────┴────────┴────────┼────────┤ ├────────┼────────┴────────┴────────┴────────┘ // └────────┴────────┴────────┴────────┼────────┤ ├────────┼────────┴────────┴────────┴────────┘
_______, _______, _______, _______,
// ┌────────┬────────┼────────┼ ┼────────┼────────┬────────┐
___________THUMB_L3________, ___________THUMB_R3________
// └────────┴────────┴────────┘ └────────┴────────┴────────┘
),
[_COLEMAK_DH] = LAYOUT_wrapper(
// ┌────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┐
__________________COLEML1____________________, __________________COLEMR1____________________,
// ├────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┤
__________________COLEML2____________________, __________________COLEMR2____________________,
// ├────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┤
__________________COLEML3____________________, __________________COLEMR3____________________,
// └────────┴────────┴────────┴────────┼────────┤ ├────────┼────────┴────────┴────────┴────────┘
_______, _______,
// ┌────────┬────────┼────────┼ ┼────────┼────────┬────────┐ // ┌────────┬────────┼────────┼ ┼────────┼────────┬────────┐
___________THUMB_L3________, ___________THUMB_R3________ ___________THUMB_L3________, ___________THUMB_R3________
// └────────┴────────┴────────┘ └────────┴────────┴────────┘ // └────────┴────────┴────────┘ └────────┴────────┴────────┘
@@ -71,7 +58,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// └────────┴────────┴────────┴────────┼────────┤ ├────────┼────────┴────────┴────────┴────────┘ // └────────┴────────┴────────┴────────┼────────┤ ├────────┼────────┴────────┴────────┴────────┘
_______, _______, _______, _______,
// ┌────────┬────────┼────────┼ ┼────────┼────────┬────────┐ // ┌────────┬────────┼────────┼ ┼────────┼────────┬────────┐
___________THUMB_3__BLANK__, ___________THUMB_3__BLANK__ ___________THUMB_L3________, ___________THUMB_R3________
// └────────┴────────┴────────┘ └────────┴────────┴────────┘ // └────────┴────────┴────────┘ └────────┴────────┴────────┘
), ),
@@ -98,7 +85,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// └────────┴────────┴────────┴────────┼────────┤ ├────────┼────────┴────────┴────────┴────────┘ // └────────┴────────┴────────┴────────┼────────┤ ├────────┼────────┴────────┴────────┴────────┘
_______, _______, _______, _______,
// ┌────────┬────────┼────────┼ ┼────────┼────────┬────────┐ // ┌────────┬────────┼────────┼ ┼────────┼────────┬────────┐
_________SYM_TH_L3________, _______, _______, _______ _________SYM_TH_L3________, ___________THUMB_3__BLANK__
// └────────┴────────┴────────┘ └────────┴────────┴────────┘ // └────────┴────────┴────────┘ └────────┴────────┴────────┘
), ),
[_FUN] = LAYOUT_wrapper( [_FUN] = LAYOUT_wrapper(
@@ -306,17 +293,18 @@ bool oled_task_user(void) {
uint8_t mod_state; uint8_t mod_state;
bool process_record_user(uint16_t keycode, keyrecord_t *record) { bool process_record_user(uint16_t keycode, keyrecord_t *record) {
static bool isWindows = false; static bool isLinux = false;
mod_state = get_mods(); mod_state = get_mods();
switch (keycode) { switch (keycode) {
case WINDOWS:
case LINUX:
if (record->event.pressed) { if (record->event.pressed) {
isWindows = !isWindows; isLinux = !isLinux;
} }
return false; return false;
case COPY: case COPY:
if (record->event.pressed) { if (record->event.pressed) {
if (isWindows) { if (isLinux) {
tap_code16(LCTL(KC_C)); tap_code16(LCTL(KC_C));
} else { } else {
tap_code16(LGUI(KC_C)); tap_code16(LGUI(KC_C));
@@ -325,7 +313,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
} }
case PASTE: case PASTE:
if (record->event.pressed) { if (record->event.pressed) {
if (isWindows) { if (isLinux) {
tap_code16(LCTL(KC_V)); tap_code16(LCTL(KC_V));
} else { } else {
tap_code16(LGUI(KC_V)); tap_code16(LGUI(KC_V));
@@ -334,7 +322,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
} }
case CUT: case CUT:
if (record->event.pressed) { if (record->event.pressed) {
if (isWindows) { if (isLinux) {
tap_code16(LCTL(KC_X)); tap_code16(LCTL(KC_X));
} else { } else {
tap_code16(LGUI(KC_X)); tap_code16(LGUI(KC_X));
@@ -343,7 +331,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
} }
case UNDO: case UNDO:
if (record->event.pressed) { if (record->event.pressed) {
if (isWindows) { if (isLinux) {
tap_code16(LCTL(KC_Z)); tap_code16(LCTL(KC_Z));
} else { } else {
tap_code16(LGUI(KC_Z)); tap_code16(LGUI(KC_Z));
@@ -352,7 +340,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
} }
case REDO: case REDO:
if (record->event.pressed) { if (record->event.pressed) {
if (isWindows) { if (isLinux) {
tap_code16(LCTL(KC_Y)); tap_code16(LCTL(KC_Y));
} else { } else {
tap_code16(LSG(KC_Z)); tap_code16(LSG(KC_Z));
@@ -361,7 +349,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
} }
case SALL: case SALL:
if (record->event.pressed) { if (record->event.pressed) {
if (isWindows) { if (isLinux) {
tap_code16(LCTL(KC_A)); tap_code16(LCTL(KC_A));
} else { } else {
tap_code16(LGUI(KC_A)); tap_code16(LGUI(KC_A));
@@ -375,17 +363,22 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return false; return false;
case M_PASS2: case M_PASS2:
if (record->event.pressed) { if (record->event.pressed) {
SEND_STRING("ThisisThel0ve0fchrist!"); SEND_STRING("CindieVerano!2024");
} }
return false; return false;
case M_PASS3: case M_PASS3:
if (record->event.pressed) { if (record->event.pressed) {
SEND_STRING("1029"); SEND_STRING("1290");
} }
return false; return false;
case M_PASS4: case M_PASS4:
if (record->event.pressed) { if (record->event.pressed) {
SEND_STRING("10242677"); SEND_STRING("Thel0ve0fchrist!");
}
return false;
case SPOTLI:
if (record->event.pressed) {
tap_code16(LGUI(KC_SPACE));
} }
return false; return false;
} }

View File

@@ -1,9 +1,5 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#ifdef OS_DETECTION_ENABLE
#include "os_detection.h"
#endif
#include "dgvigil.h" #include "dgvigil.h"
#define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__) #define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__)
@@ -14,7 +10,13 @@ enum combos {
FD_CTL, FD_CTL,
JQUOT_GUI, JQUOT_GUI,
JL_ALT, JL_ALT,
JK_CTL JK_CTL,
TA_GUI,
TR_ALT,
TS_CTL,
NO_GUI,
NI_ALT,
NE_CTL
}; };
const uint16_t PROGMEM fa_combo[] = {KC_F, KC_A, COMBO_END}; const uint16_t PROGMEM fa_combo[] = {KC_F, KC_A, COMBO_END};
@@ -24,14 +26,28 @@ const uint16_t PROGMEM jquote_combo[] = {KC_J, KC_QUOT, COMBO_END};
const uint16_t PROGMEM jl_combo[] = {KC_J, KC_L, COMBO_END}; const uint16_t PROGMEM jl_combo[] = {KC_J, KC_L, COMBO_END};
const uint16_t PROGMEM jk_combo[] = {KC_J, KC_K, COMBO_END}; const uint16_t PROGMEM jk_combo[] = {KC_J, KC_K, COMBO_END};
const uint16_t PROGMEM ta_combo[] = {KC_T, KC_A, COMBO_END};
const uint16_t PROGMEM tr_combo[] = {KC_T, KC_R, COMBO_END};
const uint16_t PROGMEM ts_combo[] = {KC_T, KC_S, COMBO_END};
const uint16_t PROGMEM no_combo[] = {KC_N, KC_O, COMBO_END};
const uint16_t PROGMEM ni_combo[] = {KC_N, KC_I, COMBO_END};
const uint16_t PROGMEM ne_combo[] = {KC_N, KC_E, COMBO_END};
combo_t key_combos[] = { combo_t key_combos[] = {
// QWERTY
[FA_GUI] = COMBO(fa_combo, KC_LGUI), [FA_GUI] = COMBO(fa_combo, KC_LGUI),
[FS_ALT] = COMBO(fs_combo, KC_LALT), [FS_ALT] = COMBO(fs_combo, KC_LALT),
[FD_CTL] = COMBO(fd_combo, KC_LCTL), [FD_CTL] = COMBO(fd_combo, KC_LCTL),
[JQUOT_GUI] = COMBO(jquote_combo, KC_RGUI), [JQUOT_GUI] = COMBO(jquote_combo, KC_RGUI),
[JL_ALT] = COMBO(jl_combo, KC_RALT), [JL_ALT] = COMBO(jl_combo, KC_RALT),
[JK_CTL] = COMBO(jk_combo, KC_RCTL), [JK_CTL] = COMBO(jk_combo, KC_RCTL),
}; // COLEMAK-DH
[TA_GUI] = COMBO(ta_combo, KC_LGUI),
[TR_ALT] = COMBO(tr_combo, KC_LALT),
[TS_CTL] = COMBO(ts_combo, KC_LCTL),
[NO_GUI] = COMBO(no_combo, KC_RGUI),
[NI_ALT] = COMBO(ni_combo, KC_RALT),
[NE_CTL] = COMBO(ne_combo, KC_RCTL),};
@@ -42,7 +58,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
KC_TAB, __________________BASE_L1____________________, __________________BASE_R1____________________, KC_GRV, KC_TAB, __________________BASE_L1____________________, __________________BASE_R1____________________, KC_GRV,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
KC_LCTL, __________________BASE_L2____________________, __________________BASE_R2____________________, _______, KC_LCTL, __________________BASE_L2____________________, __________________BASE_R2____________________, KC_RCTL,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
KC_LSFT, __________________BASE_L3____________________,SPOTLI, _______, __________________BASE_R3____________________, KC_RSFT, KC_LSFT, __________________BASE_L3____________________,SPOTLI, _______, __________________BASE_R3____________________, KC_RSFT,
//└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘ //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
@@ -50,29 +66,29 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// └────────┴────────┴────────┘ └────────┴────────┴────────┘ // └────────┴────────┴────────┘ └────────┴────────┴────────┘
), ),
[_COLEMAK_DH] = LAYOUT_wrapper( [_COLEMAKDH] = LAYOUT_wrapper(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______, _______, _______, _______, _______, KC_LPAD, SPOTLI, _______, _______, _______, _______, _______, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MUTE,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
_______, __________________COLEML1____________________, __________________COLEMR1____________________, _______, KC_TAB, __________________COLEML1____________________, __________________COLEMR1____________________, KC_GRV,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
_______, __________________COLEML2____________________, __________________COLEMR2____________________, _______, KC_LCTL, __________________COLEML2____________________, __________________COLEMR2____________________, KC_RCTL,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
_______, __________________COLEML3____________________, SPOTLI, _______, __________________COLEMR3____________________, _______, KC_LSFT, __________________COLEML3____________________,SPOTLI, _______, __________________COLEMR3____________________, KC_RSFT,
//└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘ //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
___________THUMB_3__BLANK__, ___________THUMB_3__BLANK__ ___________THUMB_L3________, ___________THUMB_R3________
// └────────┴────────┴────────┘ └────────┴────────┴────────┘ // └────────┴────────┴────────┘ └────────┴────────┴────────┘
), ),
[_NAV] = LAYOUT_wrapper( [_NAV] = LAYOUT_wrapper(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______, _______, _______, _______, _______, KC_LPAD, SPOTLI, _______, _______, _______, _______, RGB_TOG, _______, _______, _______, _______, _______, RGB_MODE_SWIRL, SPOTLI, _______, _______, _______, _______, RGB_TOG,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
_______, __________________EMPTY_____________________, __________________NAV_R1____________________, _______, _______, __________________EMPTY_____________________, __________________NAV_R1____________________, _______,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
_______, __________________NAV_L2____________________, __________________NAV_R2____________________, _______, _______, __________________NAV_L2____________________, __________________NAV_R2____________________, _______,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
_______, __________________NAV_L3____________________, WINDOWS, _______, __________________NAV_R3____________________, _______, _______, __________________NAV_L3____________________, LINUX, _______, __________________NAV_R3____________________, _______,
//└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘ //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
___________THUMB_L3________, ___________THUMB_R3________ ___________THUMB_L3________, ___________THUMB_R3________
// └────────┴────────┴────────┘ └────────┴────────┴────────┘ // └────────┴────────┴────────┘ └────────┴────────┴────────┘
@@ -80,7 +96,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_NUM] = LAYOUT_wrapper( [_NUM] = LAYOUT_wrapper(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______, _______, _______, _______, _______, KC_LPAD, SPOTLI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MODE_SWIRL, SPOTLI, _______, _______, _______, _______, _______,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
_______, __________________NUM_L1____________________, _________________BOOT_R1____________________, _______, _______, __________________NUM_L1____________________, _________________BOOT_R1____________________, _______,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
@@ -94,7 +110,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_SYM] = LAYOUT_wrapper( [_SYM] = LAYOUT_wrapper(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______, _______, _______, _______, _______, KC_LPAD, SPOTLI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MODE_SWIRL, SPOTLI, _______, _______, _______, _______, _______,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
_______, __________________SYM_L1____________________, __________________EMPTY_____________________, _______, _______, __________________SYM_L1____________________, __________________EMPTY_____________________, _______,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
@@ -108,7 +124,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_FUN] = LAYOUT_wrapper( [_FUN] = LAYOUT_wrapper(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______, _______, _______, _______, _______, KC_LPAD, SPOTLI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MODE_SWIRL, SPOTLI, _______, _______, _______, _______, _______,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
_______, __________________FUN_L1____________________, _________________BOOT_R1____________________, _______, _______, __________________FUN_L1____________________, _________________BOOT_R1____________________, _______,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
@@ -122,7 +138,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_MUS] = LAYOUT_wrapper( [_MUS] = LAYOUT_wrapper(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______, _______, _______, _______, _______, KC_LPAD, SPOTLI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MODE_SWIRL, SPOTLI, _______, _______, _______, _______, _______,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
_______, _________________BOOT_L1____________________, __________________EMPTY_____________________, _______, _______, _________________BOOT_L1____________________, __________________EMPTY_____________________, _______,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
@@ -136,7 +152,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_MOUSE] = LAYOUT_wrapper( [_MOUSE] = LAYOUT_wrapper(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______, _______, _______, _______, _______, KC_LPAD, SPOTLI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MODE_SWIRL, SPOTLI, _______, _______, _______, _______, _______,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
_______, __________________EMPTY_____________________, __________________MOU_R1____________________, _______, _______, __________________EMPTY_____________________, __________________MOU_R1____________________, _______,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
@@ -149,157 +165,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
) )
}; };
uint8_t mod_state;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
static bool isWindows = false;
mod_state = get_mods();
switch (keycode) {
case WINDOWS:
if (record->event.pressed) {
isWindows = !isWindows;
}
return false;
case COPY:
if (record->event.pressed) {
if (isWindows) {
tap_code16(LCTL(KC_C));
} else {
tap_code16(LGUI(KC_C));
}
return false;
}
case PASTE:
if (record->event.pressed) {
if (isWindows) {
tap_code16(LCTL(KC_V));
} else {
tap_code16(LGUI(KC_V));
}
return false;
}
case CUT:
if (record->event.pressed) {
if (isWindows) {
tap_code16(LCTL(KC_X));
} else {
tap_code16(LGUI(KC_X));
}
return false;
}
case UNDO:
if (record->event.pressed) {
if (isWindows) {
tap_code16(LCTL(KC_Z));
} else {
tap_code16(LGUI(KC_Z));
}
return false;
}
case REDO:
if (record->event.pressed) {
if (isWindows) {
tap_code16(LCTL(KC_Y));
} else {
tap_code16(LSG(KC_Z));
}
return false;
}
case SALL:
if (record->event.pressed) {
if (isWindows) {
tap_code16(LCTL(KC_A));
} else {
tap_code16(LGUI(KC_A));
}
return false;
}
case M_PASS1:
if (record->event.pressed) {
SEND_STRING("P0plarLake!2023");
}
return false;
case M_PASS2:
if (record->event.pressed) {
SEND_STRING("CindieVerano!2024");
}
return false;
case M_PASS3:
if (record->event.pressed) {
SEND_STRING("1029");
}
return false;
case M_PASS4:
if (record->event.pressed) {
SEND_STRING("ThisisThel0ve0fchrist!");
}
return false;
case SPOTLI:
if (record->event.pressed) {
tap_code16(LGUI(KC_SPACE));
}
return false;
}
return true;
}
// #define ___________THUMB_L3________ MUS_ESC, NAV_BKSP,MOUSE_TAB
// #define ___________THUMB_R3________ SYM_ENTER,NUM_SPC,FUN_DEL
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[_QWERTY] = { ENCODER_CCW_CW(KC_PGUP, KC_PGDN), ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, [_QWERTY] = { ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_LEFT, KC_RIGHT), ENCODER_CCW_CW(KC_B, KC_B), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[_NAV] = { ENCODER_CCW_CW(KC_MPRV, KC_MNXT), ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_MPRV, KC_MNXT), ENCODER_CCW_CW(RGB_MOD, RGB_RMOD) }, [_COLEMAKDH] = { ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_LEFT, KC_RIGHT), ENCODER_CCW_CW(KC_B, KC_B), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[_NUM] = { ENCODER_CCW_CW(C(KC_LEFT), C(KC_RIGHT)), ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(RGB_SAD, RGB_SAI), ENCODER_CCW_CW(KC_B, KC_B) }, [_NAV] = { ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_LEFT, KC_RIGHT), ENCODER_CCW_CW(KC_B, KC_B), ENCODER_CCW_CW(C(KC_TAB), S(C(KC_TAB))) },
[_SYM] = { ENCODER_CCW_CW(C(KC_TAB), S(C(KC_TAB))), ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_LEFT, KC_RIGHT), ENCODER_CCW_CW(KC_B, KC_B) }, [_NUM] = { ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_LEFT, KC_RIGHT), ENCODER_CCW_CW(KC_B, KC_B), ENCODER_CCW_CW(RGB_HUD, RGB_HUI) },
[_MOUSE] = { ENCODER_CCW_CW(RGB_SPD, RGB_SPI), ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_LEFT, KC_RIGHT), ENCODER_CCW_CW(KC_B, KC_B) }, [_SYM] = { ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_LEFT, KC_RIGHT), ENCODER_CCW_CW(KC_B, KC_B), ENCODER_CCW_CW(RGB_SPD, RGB_SPI) },
[_FUN] = { ENCODER_CCW_CW(RGB_SPD, RGB_SPI), ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_LEFT, KC_RIGHT), ENCODER_CCW_CW(KC_B, KC_B) }, [_MOUSE] = { ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_LEFT, KC_RIGHT), ENCODER_CCW_CW(KC_B, KC_B), ENCODER_CCW_CW(A(KC_TAB), S(A(KC_TAB))) },
[_MUS] = { ENCODER_CCW_CW(RGB_SPD, RGB_SPI), ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_LEFT, KC_RIGHT), ENCODER_CCW_CW(KC_B, KC_B) }, [_FUN] = { ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_LEFT, KC_RIGHT), ENCODER_CCW_CW(KC_B, KC_B), ENCODER_CCW_CW(RGB_VAI, RGB_VAD) },
[_COLEMAK_DH] = { ENCODER_CCW_CW(KC_PGUP, KC_PGDN), ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, [_MUS] = { ENCODER_CCW_CW(KC_A, KC_A), ENCODER_CCW_CW(KC_LEFT, KC_RIGHT), ENCODER_CCW_CW(KC_B, KC_B), ENCODER_CCW_CW(RGB_MOD, RGB_RMOD) },
}; };
// Onboard LED
#ifdef RGBLIGHT_ENABLE
// Configure LED
void keyboard_post_init_user(void) {
// Initialize RGB to static black
rgblight_enable_noeeprom();
rgblight_sethsv_noeeprom(HSV_BLACK);
rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);
}
// Change LED
void housekeeping_task_user(void) {
// Caps lock status
if (host_keyboard_led_state().caps_lock) {
rgblight_setrgb_at(4, 4, 0, 0);
} else {
// Layers
switch (get_highest_layer(layer_state | default_layer_state)) {
case 0:
rgblight_setrgb_at(4, 4, 4, 0);
break;
case 1:
rgblight_setrgb_at(4, 4, 4, 0);
break;
case 2:
rgblight_setrgb_at(4, 4, 4, 0);
break;
case 3:
rgblight_setrgb_at(4, 4, 4, 0);
break;
case 4:
rgblight_setrgb_at(0, 0, 4, 0);
break;
case 5:
rgblight_setrgb_at(0, 4, 0, 0);
break;
case 6:
rgblight_setrgb_at(0, 0, 4, 0);
break;
case 7:
rgblight_setrgb_at(0, 0, 4, 0);
break;
case 8:
rgblight_setrgb_at(0, 0, 4, 0);
break;
}
}
}
#endif

View File

@@ -3,3 +3,10 @@ AUTO_SHIFT_ENABLE = yes
ENCODER_ENABLE = yes ENCODER_ENABLE = yes
ENCODER_MAP_ENABLE = yes ENCODER_MAP_ENABLE = yes
COMBO_ENABLE = yes
TAP_DANCE_ENABLE = yes
VIA_ENABLE = no
KEYMAP_INTROSPECTION_ENABLE := no
COMMUNITY_LAYOUT = no

Submodule kmk_firmware deleted from e7b0c0eab3

48
macropad/keyboard.json Normal file
View File

@@ -0,0 +1,48 @@
{
"manufacturer": "dgvigil",
"keyboard_name": "chicanopad",
"maintainer": "dgvigil",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"cols": ["GP6", "GP7", "GP8", "GP9"],
"rows": ["GP10", "GP11", "GP12", "GP13"]
},
"processor": "RP2040",
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x0000",
"vid": "0xFEED"
},
"layouts": {
"LAYOUT_ortho_4x4": {
"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": [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": [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": [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}
]
}
}
}

View File

@@ -0,0 +1,25 @@
#include QMK_KEYBOARD_H
// Layout definitions
#define _MACOS 0
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌─--──┬─--──┬─--──┬─--──┐
* │COPY │PSTE │SALL │TO(_LINUX)│
* ├─--──┼─--──┼─--──┼─--──┤
* │SPOT │UP │ ~/` │TO(_NUMPAD)│
* ├─--──┼─--──┼─--──┼─--──┤
* │LEFT │DOWN │RGHT │OSL(_OTHER)│
* ├─--──┼─--──┼─--──┼─--──┤
* │HOME │ENTR │END │ESC │
* └─--──┴─--──┴─--──┴─--──┘
*/
[_MACOS] = LAYOUT_ortho_4x4(
LGUI(KC_C), LGUI(KC_V), LGUI(KC_A), KC_GRV,
LGUI(KC_SPACE), KC_UP, KC_GRV, KC_GRV,
KC_LEFT, KC_DOWN, KC_RGHT, KC_GRV,
KC_HOME, KC_ENT, KC_END, KC_ESC
)
};

View File

@@ -0,0 +1,121 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
enum {
CUSTOM_KEYCODE_START = SAFE_RANGE,
M_PASS1,
M_PASS2,
M_PASS3,
M_PASS4,
CUSTOM_KEYCODE_END
};
// Layout definitions
#define _MACOS 0
#define _LINUX 1
#define _NUMPAD 2
#define _OTHER 3
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌─--──┬─--──┬─--──┬─--──┐
* │COPY │PSTE │SALL │TO(_LINUX)│
* ├─--──┼─--──┼─--──┼─--──┤
* │SPOT │UP │ ~/` │TO(_NUMPAD)│
* ├─--──┼─--──┼─--──┼─--──┤
* │LEFT │DOWN │RGHT │OSL(_OTHER)│
* ├─--──┼─--──┼─--──┼─--──┤
* │HOME │ENTR │END │ESC │
* └─--──┴─--──┴─--──┴─--──┘
*/
[_MACOS] = LAYOUT_ortho_4x4(
LGUI(KC_C), LGUI(KC_V), LGUI(KC_A), TO(_LINUX),
LGUI(KC_SPACE), KC_UP, KC_GRV, TO(_NUMPAD),
KC_LEFT, KC_DOWN, KC_RGHT, OSL(_OTHER),
KC_HOME, KC_ENT, KC_END, KC_ESC
),
/*
* ┌─--──┬─--──┬─--──┬─--──┐
* │COPY │PSTE │SALL │TO(_LINUX)│
* ├─--──┼─--──┼─--──┼─--──┤
* │SPOT │UP │ ~/` │TO(_NUMPAD)│
* ├─--──┼─--──┼─--──┼─--──┤
* │LEFT │DOWN │RGHT │OSL(_OTHER)│
* ├─--──┼─--──┼─--──┼─--──┤
* │HOME │ENTR │END │ESC │
* └─--──┴─--──┴─--──┴─--──┘
*/
[_LINUX] = LAYOUT_ortho_4x4(
LCTL(KC_C), LCTL(KC_V), LCTL(KC_A), TO(_LINUX),
LGUI(KC_SPACE), KC_UP, KC_GRV, TO(_NUMPAD),
KC_LEFT, KC_DOWN, KC_RGHT, OSL(_OTHER),
KC_HOME, KC_ENT, KC_END, TO(_MACOS)
),
/*
* ┌─--──┬─--──┬─--──┬─--──┐
* │7 │8 │9 │=/+ │
* ├─--──┼─--──┼─--──┼─--──┤
* │4 │5 │6 │* │
* ├─--──┼─--──┼─--──┼─--──┤
* │1 │2 │3 │/ │
* ├─--──┼─--──┼─--──┼─--──┤
* │0 │. │ENTR │TO(_MACOS)│
* └─--──┴─--──┴─--──┴─--──┘
*/
[_NUMPAD] = LAYOUT_ortho_4x4(
KC_7, KC_8, KC_9, KC_EQL,
KC_4, KC_5, KC_6, KC_PAST,
KC_1, KC_2, KC_3, KC_PSLS,
KC_0, KC_DOT, KC_ENT, TO(_MACOS)
),
/*
* ┌─--──┬─--──┬─--──┬─--──┐
* │COPY │PSTE │SALL │BOOT │
* ├─--──┼─--──┼─--──┼─--──┤
* │SPOT │UP │ ~/` │TO(_NUMPAD) │
* ├─--──┼─--──┼─--──┼─--──┤
* │LEFT │DOWN │RGHT │OSL(_OTHER) │
* ├─--──┼─--──┼─--──┼─--──┤
* │HOME │ENTR │END │TO(_MACOS)│
* └─--──┴─--──┴─--──┴─--──┘
*/
[_OTHER] = LAYOUT_ortho_4x4(
_______, _______, _______, QK_BOOT,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, TO(_MACOS)
)
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case M_PASS1:
if (record->event.pressed) {
SEND_STRING("P0plarLake!2023");
}
return false;
case M_PASS2:
if (record->event.pressed) {
SEND_STRING("CindieOtono!2024");
}
return false;
case M_PASS3:
if (record->event.pressed) {
SEND_STRING("1290");
}
return false;
case M_PASS4:
if (record->event.pressed) {
SEND_STRING("Thel0ve0fchrist!");
}
return false;
}
return true;
}

View File

@@ -0,0 +1,2 @@
COMBO_ENABLE = yes
TAP_DANCE_ENABLE = yes

View File

@@ -0,0 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#define VIAL_KEYBOARD_UID {0xCB, 0xA5, 0x09, 0xFB, 0xC9, 0x6A, 0xE7, 0xF9}

View File

@@ -0,0 +1,24 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┬───┬───┬───┐
* │ 7 │ 8 │ 9 │ / │
* ├───┼───┼───┼───┤
* │ 4 │ 5 │ 6 │ * │
* ├───┼───┼───┼───┤
* │ 1 │ 2 │ 3 │ - │
* ├───┼───┼───┼───┤
* │ 0 │ . │Ent│ + │
* └───┴───┴───┴───┘
*/
[0] = LAYOUT_ortho_4x4(
KC_PSLS, KC_P8, KC_P9, KC_P7,
KC_P4, KC_P5, KC_P6, KC_PAST,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_P0, KC_PDOT, KC_PENT, KC_PPLS
)
};

View File

@@ -0,0 +1,3 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
VIAL_INSECURE = yes

View File

@@ -0,0 +1,39 @@
{
"name": "chicanopad",
"vendorId": "0x7983",
"productId": "0x5050",
"lighting": "none",
"matrix": {
"rows": 4,
"cols": 4
},
"layouts": {
"keymap":
[
[
"0,0",
"0,1",
"0,2",
"0,3"
],
[
"1,0",
"1,1",
"1,2",
"1,3"
],
[
"2,0",
"2,1",
"2,2",
"2,3"
],
[
"3,0",
"3,1",
"3,2",
"3,3"
]
]
}
}

27
macropad/readme.md Normal file
View File

@@ -0,0 +1,27 @@
# chicanopad
![chicanopad](imgur.com image replace me!)
*A short description of the keyboard/project*
* Keyboard Maintainer: [dgvigil](https://github.com/dgvigil)
* 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):
make chicanopad:default
Flashing example for this keyboard:
make chicanopad: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 - some may have pads you must short instead
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available

1
q8-vial-layout.vil Normal file

File diff suppressed because one or more lines are too long

View File

View File

@@ -15,35 +15,10 @@
*/ */
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#include "keychron_common.h"
#include "dgvigil.h"
enum layer_number { // clang-format off
_BASE,
_COLDH,
_NAV,
_NUM,
_SYM,
_FUN,
_MUS,
_MOUSE
};
enum custom_keycodes {
M_PASS1 = SAFE_RANGE,
M_PASS2
};
// Tap Dance declarations
enum {
TD_Q_ESC,
TD_W_GRV,
};
// Tap Dance definitions
tap_dance_action_t tap_dance_actions[] = {
// Tap once for Q, twice for Escape
[TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC),
[TD_W_GRV] = ACTION_TAP_DANCE_DOUBLE(KC_W, KC_GRAVE),
};
enum combos { enum combos {
FA_GUI, FA_GUI,
@@ -51,7 +26,13 @@ enum combos {
FD_CTL, FD_CTL,
JQUOT_GUI, JQUOT_GUI,
JL_ALT, JL_ALT,
JK_CTL JK_CTL,
TA_GUI,
TR_ALT,
TS_CTL,
NO_GUI,
NI_ALT,
NE_CTL
}; };
const uint16_t PROGMEM fa_combo[] = {KC_F, KC_A, COMBO_END}; const uint16_t PROGMEM fa_combo[] = {KC_F, KC_A, COMBO_END};
@@ -61,102 +42,108 @@ const uint16_t PROGMEM jquote_combo[] = {KC_J, KC_QUOT, COMBO_END};
const uint16_t PROGMEM jl_combo[] = {KC_J, KC_L, COMBO_END}; const uint16_t PROGMEM jl_combo[] = {KC_J, KC_L, COMBO_END};
const uint16_t PROGMEM jk_combo[] = {KC_J, KC_K, COMBO_END}; const uint16_t PROGMEM jk_combo[] = {KC_J, KC_K, COMBO_END};
const uint16_t PROGMEM ta_combo[] = {KC_T, KC_A, COMBO_END};
const uint16_t PROGMEM tr_combo[] = {KC_T, KC_R, COMBO_END};
const uint16_t PROGMEM ts_combo[] = {KC_T, KC_S, COMBO_END};
const uint16_t PROGMEM no_combo[] = {KC_N, KC_O, COMBO_END};
const uint16_t PROGMEM ni_combo[] = {KC_N, KC_I, COMBO_END};
const uint16_t PROGMEM ne_combo[] = {KC_N, KC_E, COMBO_END};
combo_t key_combos[] = { combo_t key_combos[] = {
// QWERTY
[FA_GUI] = COMBO(fa_combo, KC_LGUI), [FA_GUI] = COMBO(fa_combo, KC_LGUI),
[FS_ALT] = COMBO(fs_combo, KC_LALT), [FS_ALT] = COMBO(fs_combo, KC_LALT),
[FD_CTL] = COMBO(fd_combo, KC_LCTL), [FD_CTL] = COMBO(fd_combo, KC_LCTL),
[JQUOT_GUI] = COMBO(jquote_combo, KC_RGUI), [JQUOT_GUI] = COMBO(jquote_combo, KC_RGUI),
[JL_ALT] = COMBO(jl_combo, KC_RALT), [JL_ALT] = COMBO(jl_combo, KC_RALT),
[JK_CTL] = COMBO(jk_combo, KC_RCTL), [JK_CTL] = COMBO(jk_combo, KC_RCTL),
}; // COLEMAK-DH
[TA_GUI] = COMBO(ta_combo, KC_LGUI),
// LEFT THUMB KEYS [TR_ALT] = COMBO(tr_combo, KC_LALT),
#define MUS_ESC LT(_MUS, KC_ESC) [TS_CTL] = COMBO(ts_combo, KC_LCTL),
#define NAV_BKSP LT(_NAV, KC_BSPC) [NO_GUI] = COMBO(no_combo, KC_RGUI),
#define MOUSE_TAB LT(_MOUSE, KC_TAB) [NI_ALT] = COMBO(ni_combo, KC_RALT),
// RIGHT THUMB KEYS [NE_CTL] = COMBO(ne_combo, KC_RCTL),};
#define SYM_ENTER LT(_SYM, KC_ENTER)
#define NUM_SPC LT(_NUM, KC_SPC)
#define FUN_DEL LT(_FUN, KC_DEL)
// TAP DANCE
#define Q_ESC TD(TD_Q_ESC)
#define W_GRV TD(TD_W_GRV)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT_ansi_69( [_QWERTY] = LAYOUT_ansi_69(
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_MUTE, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_MUTE,
KC_LPAD, Q_ESC, W_GRV, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_TAB, __________________BASE_L1____________________, __________________BASE_R1____________________, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_HOME, KC_CAPS, __________________BASE_L2____________________, __________________BASE_R2____________________, KC_QUOT, KC_ENT, KC_HOME,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_LSFT, __________________BASE_L3____________________, KC_B, __________________BASE_R3____________________, KC_RSFT, KC_UP,
KC_LCTL, KC_LOPT, MUS_ESC, NAV_BKSP, MOUSE_TAB,SYM_ENTER, NUM_SPC, FUN_DEL, KC_LEFT, KC_DOWN, KC_RGHT), KC_LCTL, KC_LOPTN, ___________THUMB_L3________, ___________THUMB_R3________, KC_LEFT, KC_DOWN, KC_RGHT),
[_COLDH] = LAYOUT_ansi_69( [_COLEMAKDH] = LAYOUT_ansi_69(
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, RGB_TOG, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_MUTE,
KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_TAB, __________________COLEML1____________________, __________________COLEMR1____________________, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
KC_CAPS, KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, KC_QUOT, KC_ENT, KC_HOME, KC_CAPS, __________________COLEML2____________________, __________________COLEMR2____________________, KC_QUOT, KC_ENT, KC_HOME,
KC_LSFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_GRV, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_LSFT, __________________COLEML3____________________, KC_B, __________________COLEMR3____________________, KC_RSFT, KC_UP,
KC_LCTL, KC_LOPT, MUS_ESC, NAV_BKSP, MOUSE_TAB,SYM_ENTER, NUM_SPC, FUN_DEL, KC_LEFT, KC_DOWN, KC_RGHT), KC_LCTL, KC_LWIN, ___________THUMB_L3________, ___________THUMB_R3________, KC_LEFT, KC_DOWN, KC_RGHT),
[_NAV] = LAYOUT_ansi_69( [_NAV] = LAYOUT_ansi_69(
QK_BOOT, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_MUTE,
KC_TAB, _______, _______, _______, _______, _______, _______, _______, KC_PSTE, KC_COPY, KC_CUT, KC_UNDO, KC_RBRC, KC_BSLS, KC_DEL, KC_TAB, __________________EMPTY_____________________, __________________NAV_R1____________________, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
KC_CAPS, _______, _______, _______, _______, _______, KC_CAPS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_QUOT, KC_ENT, KC_HOME, KC_CAPS, __________________NAV_L2____________________, __________________NAV_R2____________________, KC_QUOT, KC_ENT, KC_HOME,
KC_LSFT, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, KC_PGDN, KC_END, KC_SLSH, KC_RSFT, KC_UP, KC_LSFT, __________________NAV_L3____________________, KC_B, __________________NAV_R3____________________, KC_RSFT, KC_UP,
KC_LCTL, KC_LOPT, MUS_ESC, NAV_BKSP, MOUSE_TAB,SYM_ENTER, NUM_SPC, FUN_DEL, KC_LEFT, KC_DOWN, KC_RGHT), KC_LCTL, KC_LWIN, ___________THUMB_L3________, ___________THUMB_R3________, KC_LEFT, KC_DOWN, KC_RGHT),
[_NUM] = LAYOUT_ansi_69(
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_MUTE,
KC_TAB, __________________COLEML1____________________, __________________COLEMR1____________________, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
KC_CAPS, __________________COLEML2____________________, __________________COLEMR2____________________, KC_QUOT, KC_ENT, KC_HOME,
KC_LSFT, __________________COLEML3____________________, KC_B, __________________COLEMR3____________________, KC_RSFT, KC_UP,
KC_LCTL, KC_LWIN, _________NUM_TH_L3________, ___________THUMB_3__BLANK__, KC_LEFT, KC_DOWN, KC_RGHT),
[_SYM] = LAYOUT_ansi_69( [_SYM] = LAYOUT_ansi_69(
KC_GRV, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, RGB_TOG, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_MUTE,
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_TAB, __________________SYM_L1____________________, __________________COLEMR1____________________, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, KC_CAPS, __________________SYM_L2____________________, __________________COLEMR2____________________, KC_QUOT, KC_ENT, KC_HOME,
_______, _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______, KC_LSFT, __________________SYM_L3____________________, KC_B, __________________COLEMR3____________________, KC_RSFT, KC_UP,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______), KC_LCTL, KC_LWIN, _________SYM_TH_L3________, ___________THUMB_3__BLANK__, KC_LEFT, KC_DOWN, KC_RGHT),
[_FUN] = LAYOUT_ansi_69( [_FUN] = LAYOUT_ansi_69(
KC_GRV, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, RGB_TOG, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_MUTE,
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_TAB, __________________FUN_L1____________________, _________________BOOT_R1____________________, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, KC_CAPS, __________________FUN_L2____________________, __________________EMPTY_____________________, KC_QUOT, KC_ENT, KC_HOME,
_______, _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______, KC_LSFT, __________________FUN_L3____________________, KC_B, __________________EMPTY_____________________, KC_RSFT, KC_UP,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______), KC_LCTL, KC_LWIN, ___________THUMB_3__BLANK__, ___________THUMB_3__BLANK__, KC_LEFT, KC_DOWN, KC_RGHT),
[_MUS] = LAYOUT_ansi_69( [_MUS] = LAYOUT_ansi_69(
KC_GRV, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, RGB_TOG, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_MUTE,
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_TAB, _________________BOOT_L1____________________, __________________EMPTY_____________________, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, KC_CAPS, __________________EMPTY_____________________, __________________MUS_R2____________________, KC_QUOT, KC_ENT, KC_HOME,
_______, _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______, KC_LSFT, __________________EMPTY_____________________, KC_B, __________________MUS_R3____________________, KC_RSFT, KC_UP,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______), KC_LCTL, KC_LWIN, ___________THUMB_3__BLANK__, ___________THUMB_3__BLANK__, KC_LEFT, KC_DOWN, KC_RGHT),
[_MOUSE] = LAYOUT_ansi_69( [_MOUSE] = LAYOUT_ansi_69(
KC_TILD, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_MUTE,
RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_TAB, __________________EMPTY_____________________, __________________MOU_R1____________________, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
_______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, KC_CAPS, __________________EMPTY_____________________, __________________MOU_R2____________________, KC_QUOT, KC_ENT, KC_HOME,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LSFT, __________________EMPTY_____________________, KC_B, __________________MOU_R3____________________, KC_RSFT, KC_UP,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______) KC_LCTL, KC_LWIN, ___________THUMB_3__BLANK__, ___________THUMB_3__BLANK__, KC_LEFT, KC_DOWN, KC_RGHT)
}; };
#if defined(ENCODER_MAP_ENABLE) #if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)}, [_QWERTY] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
[_COLEMAKDH] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
[_NAV] = {ENCODER_CCW_CW(RGB_MOD, RGB_RMOD)}, [_NAV] = {ENCODER_CCW_CW(RGB_MOD, RGB_RMOD)},
[_SYM] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI)}, [_NUM] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI)},
[_FUN] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI)}, [_FUN] = {ENCODER_CCW_CW(RGB_HUI, RGB_HUD)},
[_MUS] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI)}, [_MUS] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI)},
[_MOUSE] = {ENCODER_CCW_CW(_______, _______)} [_MOUSE] = {ENCODER_CCW_CW(_______, _______)}
}; };
#endif // ENCODER_MAP_ENABLE #endif // ENCODER_MAP_ENABLE
// clang-format on
void housekeeping_task_user(void) {
housekeeping_task_keychron();
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) { bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) { if (!process_record_keychron(keycode, record)) {
case M_PASS1:
if (record->event.pressed) {
SEND_STRING("P0plarLake!2023");
}
return false;
case M_PASS2:
if (record->event.pressed) {
SEND_STRING("C0pperfield!2023");
}
return false; return false;
} }
return true; return true;