Skip to content

Commit

Permalink
add splitkb aurora sweep
Browse files Browse the repository at this point in the history
  • Loading branch information
magoz committed Dec 9, 2024
1 parent 3bc397c commit 5960c39
Show file tree
Hide file tree
Showing 5 changed files with 153 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
File renamed without changes.
Empty file.
138 changes: 138 additions & 0 deletions config/splitkb_aurora_sweep.keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>


#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 = <TAPPING_TERM>;
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
&lt L_SHORTCUTS ESC &lt L_SYMBOLS RETURN &lt L_NUMBERS SPACE &lt 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
>;
};

};
};

0 comments on commit 5960c39

Please sign in to comment.