From 5960c39db4e8a1bab11ffcd2f0445c9bb66ccf32 Mon Sep 17 00:00:00 2001 From: magoz Date: Mon, 9 Dec 2024 20:04:18 +0100 Subject: [PATCH] add splitkb aurora sweep --- .github/workflows/build.yml | 18 ++- config/{cradio.conf => ferris_sweep.conf} | 0 config/{cradio.keymap => ferris_sweep.keymap} | 0 config/splitkb_aurora_sweep.conf | 0 config/splitkb_aurora_sweep.keymap | 138 ++++++++++++++++++ 5 files changed, 153 insertions(+), 3 deletions(-) rename config/{cradio.conf => ferris_sweep.conf} (100%) rename config/{cradio.keymap => ferris_sweep.keymap} (100%) create mode 100644 config/splitkb_aurora_sweep.conf create mode 100644 config/splitkb_aurora_sweep.keymap diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d74fb89..59301cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,17 @@ -on: [push, pull_request, workflow_dispatch] - jobs: build: - uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main + runs-on: ubuntu-latest + name: Build + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Build Ferris Sweep + uses: zmkfirmware/zmk-build-arm@stable + with: + board: nice_nano_v2 + shield: ferris_sweep_left ferris_sweep_right + - name: Build Aurora Sweep + uses: zmkfirmware/zmk-build-arm@stable + with: + board: nice_nano_v2 + shield: splitkb_aurora_sweep_left splitkb_aurora_sweep_right diff --git a/config/cradio.conf b/config/ferris_sweep.conf similarity index 100% rename from config/cradio.conf rename to config/ferris_sweep.conf diff --git a/config/cradio.keymap b/config/ferris_sweep.keymap similarity index 100% rename from config/cradio.keymap rename to config/ferris_sweep.keymap diff --git a/config/splitkb_aurora_sweep.conf b/config/splitkb_aurora_sweep.conf new file mode 100644 index 0000000..e69de29 diff --git a/config/splitkb_aurora_sweep.keymap b/config/splitkb_aurora_sweep.keymap new file mode 100644 index 0000000..861a6c7 --- /dev/null +++ b/config/splitkb_aurora_sweep.keymap @@ -0,0 +1,138 @@ +/* + * Copyright (c) 2020 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ +#include +#include +#include +#include + + +#define TAPPING_TERM 200 + +#define L_BASE 0 +#define L_SHORTCUTS 1 +#define L_APPS 2 +#define L_SYMBOLS 3 +#define L_NUMBERS 4 +#define L_CONTROLS 5 +#define L_ONEHAND 6 +#define L_ONEHAND_NUMBERS 7 +#define L_BLUETOOTH 8 + +#define HYPER(key) LS(LC(LA(LG(key)))) +#define KMAESTRO(key) LS(LC(LA(key))) +#define INTERPUNCT LS(LA(N9)) +#define BULLET LA(N8) +#define EXCLAMATION_INVERTED LA(N1) +#define QUESTION_INVERTED LS(LA(SLASH)) +#define ORDINAL_MASCULINE LA(N0) +#define ORDINAL_FEMENINE LA(N9) +#define DEGREE LS(LA(N8)) +#define EUR LS(LA(N2)) +#define GBP LA(N3) + + +&mt { + tapping-term-ms = ; + flavor = "tap-preferred"; +}; + +/ { + + combos { + compatible = "zmk,combos"; + combo_bluetooth_layer { + timeout-ms = <50>; + key-positions = <30 31 32 33>; + bindings = <&sl L_BLUETOOTH>; + }; + }; + + keymap { + compatible = "zmk,keymap"; + + default_layer { + bindings = < + &kp Q &kp W &kp F &kp P &kp B &kp J &kp L &kp U &kp Y &kp SEMICOLON + &mt LCTRL A &mt LALT R &mt LCMD S &mt LSHIFT T &kp G &kp M &mt LSHIFT N &mt LCMD E &mt LALT I &mt LCTRL O + &kp Z &kp X &kp C &kp D &kp V &kp K &kp H &kp COMMA &kp DOT &kp SLASH + < L_SHORTCUTS ESC < L_SYMBOLS RETURN < L_NUMBERS SPACE < L_CONTROLS BACKSPACE + >; + }; + + shortcuts_layer { + bindings = < + &kp TAB &none &none &caps_word &kp BACKSPACE &none &none &none &none &none + &sk LCTRL &sk LALT &sk LCMD &sk LSHIFT &sl L_APPS &none &none &none &none &none + &none &none &sl L_ONEHAND_NUMBERS &sl L_ONEHAND &kp SPACE &none &none &none &none &none + &none &none &none &none + >; + }; + + apps_layer { + bindings = < + &kp KMAESTRO(F1) &kp KMAESTRO(F2) &kp KMAESTRO(F3) &kp KMAESTRO(F4) &none &none &none &none &none &none + &kp KMAESTRO(F5) &kp KMAESTRO(F6) &kp KMAESTRO(F7) &kp KMAESTRO(F8) &none &none &none &none &none &none + &kp KMAESTRO(F9) &kp KMAESTRO(F10) &kp KMAESTRO(F11) &kp KMAESTRO(F12) &none &none &none &none &none &none + &none &none &none &none + >; + }; + + symbols_layer { + bindings = < + &kp TILDE &kp CARET &kp INTERPUNCT &kp BULLET &none &none &none &none &none &none + &mt LCTRL BACKSLASH &mt LALT GRAVE &mt LCMD DOUBLE_QUOTES &mt LSHIFT SINGLE_QUOTE &kp AT_SIGN &kp EXCLAMATION &mt LSHIFT LEFT_PARENTHESIS &mt LCMD LEFT_BRACE &mt LALT LEFT_BRACKET &mt LCTRL QUESTION + &none &none &none &kp AMPERSAND &kp PIPE &kp EXCLAMATION_INVERTED &kp RIGHT_PARENTHESIS &kp RIGHT_BRACE &kp RIGHT_BRACKET &kp QUESTION_INVERTED + &none &none &kp TAB &kp DELETE + >; + }; + + numbers_layer { + bindings = < + &none &kp ORDINAL_MASCULINE &kp ORDINAL_FEMENINE &kp DEGREE &none &kp GBP &kp N7 &kp N8 &kp N9 &kp N0 + &mt LCTRL UNDERSCORE &mt LALT PLUS &mt LCMD MINUS &mt LSHIFT EQUAL &kp HASH &kp EUR &mt LSHIFT N4 &mt LCMD N5 &mt LALT N6 &mt LCTRL PERIOD + &none &none &kp SLASH &kp ASTERISK &kp PERCENT &kp DOLLAR &kp N1 &kp N2 &kp N3 &kp COMMA + &none &none &none &none + >; + }; + + controls_layer { + bindings = < + &none &kp F1 &kp F2 &kp F3 &kp F10 &kp DOWN &kp RIGHT &kp K_MUTE &none &kp C_PLAY_PAUSE + &kp LCTRL &mt LALT F4 &mt LCMD F5 &mt LSHIFT F6 &none &kp PAGE_UP &mt LSHIFT PAGE_DOWN &mt LCMD C_VOLUME_UP &mt LALT F15 &mt LCTRL C_NEXT + &none &kp F1 &kp F2 &kp F3 &none &kp UP &kp LEFT &kp C_VOLUME_DOWN &kp F14 &kp C_PREVIOUS + &none &none &none &none + >; + }; + + onehand_layer { + bindings = < + &kp SEMICOLON &kp Y &kp U &kp L &kp J &none &none &none &none &none + &mt LCTRL O &mt LALT I &mt LCMD E &mt LSHIFT N &kp M &none &none &none &none &none + &kp SLASH &kp DOT &kp COMMA &kp H &kp K &none &none &none &none &none + &none &kp RETURN &none &none + >; + }; + + onehand_numbers_layer { + bindings = < + &none &kp N7 &kp N8 &kp N9 &kp N0 &none &none &none &none &none + &kp LCTRL &mt LALT N4 &mt LCMD N5 &mt LSHIFT N6 &kp EUR &none &none &none &none &none + &none &kp N1 &kp N2 &kp N3 &kp DOLLAR &none &none &none &none &none + &none &kp RETURN &none &none + >; + }; + + bluetooth_layer { + bindings = < + &none &none &none &none &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_CLR + &none &none &none &none &none &kp N1 &none &none &none &none + &none &none &none &none &none &none &none &none &none &none + &none &none &none &none + >; + }; + + }; +};