Skip to content

Commit

Permalink
Add Wee Jock to my set of keyboards.
Browse files Browse the repository at this point in the history
  • Loading branch information
amacleod committed Oct 19, 2024
1 parent 7908842 commit 19a63ac
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.PHONY: clean all
.PHONY: corne corne_left corne_right
.PHONY: ferris cradio_left cradio_right
.PHONY: weejock
.PHONY: zaphod zaphod_lite
.PHONY: deploy_corne deploy_ferris deploy_zaphod
.PHONY: deploy_corne deploy_ferris deploy_weejock deploy_zaphod

MAKEFLAGS += --jobs=2

Expand All @@ -11,6 +12,7 @@ BUILD_DIR := ${APP_DIR}/build
ZMK_CONFIG_DIR := $(realpath ../zmk-config)
ZMK_HELPERS_DIR := $(realpath ../zmk-helpers)
ZAPHOD_CONFIG_DIR := $(realpath ../zaphod-config)
WEEJOCK_CONFIG_DIR := $(realpath ../weejock-zmk)

EXTRA_MODULES := ${ZMK_HELPERS_DIR}

Expand Down Expand Up @@ -56,6 +58,9 @@ deploy_ferris: ferris
@echo
cp -v ${BUILD_DIR}/cradio_right/zephyr/zmk.uf2 ${NANO_PATH}/

weejock: EXTRA_MODULES += ${WEEJOCK_CONFIG_DIR}
cd ${APP_DIR} && west build -d build/$@ -b seeeduino_xiao_ble -- -DSHIELD=$@ -DZMK_CONFIG=${ZMK_CONFIG_DIR}/config -DZMK_EXTRA_MODULES="$(subst $(SPACE),;,$(EXTRA_MODULES))"

zaphod: zaphod_lite
zaphod_lite: EXTRA_MODULES += ${ZAPHOD_CONFIG_DIR}
zaphod_lite:
Expand Down
1 change: 1 addition & 0 deletions config/weejock.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Configuration for Wee Jock
47 changes: 47 additions & 0 deletions config/weejock.keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>

// Layer numbers
#define NUM 0
#define RAISE 1

/ {
keymap {
compatible = "zmk,keymap";

default_layer { // layer 0
// ,-----------------------.
// | Esc | / | * | Bks |
// | 7 | 8 | 9 | - |
// | 4 | 5 | 6 | + |
// | 1 | 2 | 3 | Spc |
// |RAISE| 0 | . | Ent |
// `-----------------------'
bindings = <
&kp ESCAPE &kp SLASH &kp STAR &kp BACKSPACE
&kp N7 &kp N8 &kp N9 &kp MINUS
&kp N4 &kp N5 &kp N6 &kp PLUS
&kp N1 &kp N2 &kp N3 &kp SPACE
&mo RAISE &kp N0 &kp DOT &kp ENTER
>;
display-name = "NUM";
};
raise_layer { // layer 1
// ,-----------------------.
// | | | | |
// | | | | |
// | | | | |
// | | | | |
// |#####| | : | Tab |
// `-----------------------'
bindings = <
&trans &trans &trans &trans
&trans &trans &trans &trans
&trans &trans &trans &trans
&trans &trans &trans &trans
&trans &trans &kp COLON &kp TAB
>;
display-name = "Raise";
};
};
};
3 changes: 3 additions & 0 deletions config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ manifest:
- name: zaphod-config
remote: amacleod
revision: main
- name: weejock-zmk
remote: amacleod
revision: main
self:
path: config

0 comments on commit 19a63ac

Please sign in to comment.