diff --git a/config/keymap_german.h b/config/keymap_german.h index 1d52d4f..e6f7ec0 100644 --- a/config/keymap_german.h +++ b/config/keymap_german.h @@ -137,3 +137,70 @@ // Row 4 #define DE_PIPE RA(DE_LABK) // | #define DE_MICR RA(DE_M) // µ + +// Workaround for stupid Win Remote Desktop problem +/* Shifted symbols + * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ + * │ ° │ ! │ " │ § │ $ │ % │ & │ / │ ( │ ) │ = │ ? │ ` │ │ + * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ + * │ │ │ │ │ │ │ │ │ │ │ │ │ * │ │ + * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │ + * │ │ │ │ │ │ │ │ │ │ │ │ │ ' │ │ + * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤ + * │ │ > │ │ │ │ │ │ │ │ ; │ : │ _ │ │ + * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ + * │ │ │ │ │ │ │ │ │ + * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ + */ +// Row 1 +#define _DEG DE_CIRC // ° +#define _EXLM DE_1 // ! +#define _DQUO DE_2 // " +#define _SECT DE_3 // § +#define _DLR DE_4 // $ +#define _PERC DE_5 // % +#define _AMPR DE_6 // & +#define _SLSH DE_7 // / +#define _LPRN DE_8 // ( +#define _RPRN DE_9 // +#define _EQL DE_0 // = +#define _QUES DE_SS // ? +#define _GRV DE_ACUT // ` (dead) +// Row 2 +#define _ASTR DE_PLUS // * +// Row 3 +#define _QUOT DE_HASH // ' +// Row 4 +#define _RABK DE_LABK // > +#define _SCLN DE_COMM // ; +#define _COLN DE_DOT // : +#define _UNDS DE_MINS // _ + +/* AltGr symbols RA(XXX) + * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ + * │ │ │ ² │ ³ │ │ │ │ { │ [ │ ] │ } │ \ │ │ │ + * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ + * │ │ @ │ │ € │ │ │ │ │ │ │ │ │ ~ │ │ + * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │ + * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ + * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤ + * │ │ | │ │ │ │ │ │ │ µ │ │ │ │ │ + * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ + * │ │ │ │ │ │ │ │ │ + * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ + */ +// Row 1 +#define _SUP2 DE_2 // ² +#define _SUP3 DE_3 // ³ +#define _LCBR DE_7 // { +#define _LBRC DE_8 // [ +#define _RBRC DE_9 // ] +#define _RCBR DE_0 // } +#define _BSLS DE_SS // (backslash) +// Row 2 +#define _AT DE_Q // @ +#define _EURO DE_E // € +#define _TILD DE_PLUS // ~ +// Row 4 +#define _PIPE DE_LABK // | +#define _MICR DE_M // µ diff --git a/config/splitkb_aurora_corne.keymap b/config/splitkb_aurora_corne.keymap index f1e7c7b..a811c6b 100644 --- a/config/splitkb_aurora_corne.keymap +++ b/config/splitkb_aurora_corne.keymap @@ -39,15 +39,17 @@ // Global #define MDA 18 +#define RDP_SYM 19 // Special shortcuts #define ________ &trans #define TODO &trans #define DEL_W &kp LC(BSPC) -#define SPACE_SYM < SYM SPACE +#define SPACE_SYM < RDP_SYM SPACE #define SPACE_M_SYM < M_SYM SPACE #define SPACE_G_SYM < G_SYM SPACE +#define SS_MDA < MDA DE_SS #define C_NAV < NAV C #define C_M_NAV < M_NAV C #define C_G_NAV < G_NAV C @@ -70,11 +72,9 @@ #define ALT_R &hm LALT R #define CTL_I &hm LCTRL I #define SFT_E &hm LSHIFT E -#define SFT_RPRN &hm RSHIFT DE_RPRN // home row mod right #define SFT_N &hm RSHIFT N -#define SFT_LBRC &hm RSHIFT DE_LBRC #define CTL_T &hm RCTRL T #define RALT_S &hm RALT S #define ALT_H &hm LALT H @@ -94,6 +94,35 @@ //#define M_SRCH &kp LG(SPACE) #define M_MC &kp C_AC_DESKTOP_SHOW_ALL_WINDOWS +// stupid workaround for win remote desktop keyboard hook +#define SHIFTED(sym, macro_label) rdp_s##sym: rdp_s##sym {\ + label = macro_label;\ + compatible = "zmk,behavior-macro";\ + wait-ms = <35>;\ + #binding-cells = <0>;\ + bindings\ + = <¯o_press &kp LSHFT>\ + , <¯o_press &kp sym>\ + , <¯o_release &kp LSHFT>\ + , <¯o_pause_for_release>\ + , <¯o_release &kp sym>\ + ;\ +} + +#define RALTED(sym, macro_label) rdp_a##sym: rdp_a##sym {\ + label = macro_label;\ + compatible = "zmk,behavior-macro";\ + wait-ms = <35>;\ + #binding-cells = <0>;\ + bindings\ + = <¯o_press &kp RALT>\ + , <¯o_press &kp sym>\ + , <¯o_release &kp RALT>\ + , <¯o_pause_for_release>\ + , <¯o_release &kp sym>\ + ;\ +} + &sk { release-after-ms = <3000>; }; @@ -101,6 +130,40 @@ / { macros { + + SHIFTED(_DEG, "shifted_dex"); + SHIFTED(_EXLM, "shifted_exlm"); + SHIFTED(_DQUO, "shifted_dquo"); + SHIFTED(_SECT, "shifted_sect"); + SHIFTED(_DLR, "shifted_dlr"); + SHIFTED(_AMPR, "shifted_ampr"); + SHIFTED(_SLSH, "shifted_slsh"); + SHIFTED(_LPRN, "shifted_lprn"); + SHIFTED(_RPRN, "shifted_rprn"); + SHIFTED(_EQL, "shifted_eql"); + SHIFTED(_QUES, "shifted_ques"); + SHIFTED(_PERC, "shifted_perc"); + SHIFTED(_GRV, "shifted_grv"); + SHIFTED(_RABK, "shifted_rabk"); + SHIFTED(_SCLN, "shifted_scln"); + SHIFTED(_COLN, "shifted_coln"); + SHIFTED(_UNDS, "shifted_unds"); + SHIFTED(_ASTR, "shifted_astr"); + SHIFTED(_QUOT, "shifted_quot"); + + RALTED(_SUP2, "ralted_sup2"); + RALTED(_SUP3, "ralted_sup3"); + RALTED(_LCBR, "ralted_lcbr"); + RALTED(_LBRC, "ralted_lbrc"); + RALTED(_RBRC, "ralted_rbrc"); + RALTED(_RCBR, "ralted_rcbr"); + RALTED(_BSLS, "ralted_bsls"); + RALTED(_AT, "ralted_at"); + RALTED(_EURO, "ralted_euro"); + RALTED(_TILD, "ralted_tild"); + RALTED(_PIPE, "ralted_pipe"); + RALTED(_MICR, "ralted_micr"); + ZMK_MACRO(go_src, wait-ms = <30>; tap-ms = <40>; @@ -168,12 +231,25 @@ ; ) - ZMK_MACRO(to_six, + ZMK_MACRO(to_scd, wait-ms = <30>; tap-ms = <40>; bindings - = <¯o_tap BT_2> + = <¯o_tap BT_3> + , <¯o_tap &to M_DEF> + , <¯o_press &kp LALT> + , <¯o_press &kp LGUI> + , <¯o_press &kp LSHFT> + , <¯o_tap &kp RIGHT> + , <¯o_release &kp LSHFT> + , <¯o_release &kp LGUI> + , <¯o_release &kp LALT> , <¯o_tap &to DEF> + , <¯o_press &kp LCTL> + , <¯o_press &kp LALT> + , <¯o_tap &kp PAUSE_BREAK> + , <¯o_release &kp LALT> + , <¯o_release &kp LCTL> ; ) @@ -183,6 +259,36 @@ bindings = <¯o_tap BT_3> , <¯o_tap &to M_DEF> + , <¯o_press &kp LALT> + , <¯o_press &kp LGUI> + , <¯o_press &kp LSHFT> + , <¯o_tap &kp LEFT> + , <¯o_release &kp LSHFT> + , <¯o_release &kp LGUI> + , <¯o_release &kp LALT> + ; + ) + + ZMK_MACRO(to_devvm, + wait-ms = <30>; + tap-ms = <40>; + bindings + = <¯o_tap BT_3> +// , <¯o_tap &to M_DEF> +// , <¯o_press &kp LALT> +// , <¯o_press &kp LGUI> +// , <¯o_press &kp LSHFT> +// , <¯o_tap &kp RIGHT> +// , <¯o_release &kp LSHFT> +// , <¯o_release &kp LGUI> +// , <¯o_release &kp LALT> + , <¯o_tap &to DEF> + , <¯o_press &kp LWIN> + , <¯o_tap &kp N7> + , <¯o_release &kp LWIN> + , <¯o_press &kp LWIN> + , <¯o_tap &kp UP> + , <¯o_release &kp LWIN> ; ) @@ -190,7 +296,7 @@ wait-ms = <30>; tap-ms = <40>; bindings - = <¯o_tap BT_4> + = <¯o_tap BT_5> , <¯o_tap &to M_DEF> ; ) @@ -199,7 +305,7 @@ wait-ms = <30>; tap-ms = <40>; bindings - = <¯o_tap BT_5> + = <¯o_tap BT_4> , <¯o_tap &to DEF> ; ) @@ -257,7 +363,7 @@ ________ &kp J &kp L &kp U &kp A &kp Q &kp W &kp B &kp D &kp G &kp DE_Z ________ ________ C_NAV ALT_R CTL_I SFT_E &kp O &kp M SFT_N CTL_T RALT_S ALT_H ________ ________ &kp V &kp X &kp DE_UDIA &kp DE_ADIA &kp DE_ODIA &kp P &kp F &kp COMMA &kp DOT &kp K ________ - &kp LGUI Y_NUM &kp LSHFT SPACE_SYM &kp BSPC &mo MDA + &kp LGUI Y_NUM &kp LSHFT SPACE_SYM &kp BSPC SS_MDA >; }; @@ -280,7 +386,7 @@ // | --- | --- | | --- | --- | bindings = < ________ &kp DE_CIRC &kp DE_UNDS &kp DE_LCBR &kp DE_RCBR &kp DE_SECT &kp DE_EXLM &kp DE_LABK &kp DE_RABK &kp DE_EQL &kp DE_AMPR ________ - ________ &kp DE_BSLS &kp DE_SLSH &kp DE_LPRN SFT_RPRN &kp DE_ASTR &kp DE_QUES SFT_LBRC &kp DE_RBRC &kp DE_MINS &kp DE_COLN ________ + ________ &kp DE_BSLS &kp DE_SLSH &kp DE_LPRN &kp RPRN &kp DE_ASTR &kp DE_QUES &kp DE_LBRC &kp DE_RBRC &kp DE_MINS &kp DE_COLN ________ ________ &kp DE_ACUT &kp DE_DLR &kp DE_PIPE &kp DE_TILD &kp DE_HASH &kp DE_PLUS &kp DE_PERC &kp DE_DQUO &kp DE_QUOT &kp DE_SCLN ________ ________ &kp DE_AT ________ ________ ________ ________ >; @@ -309,9 +415,9 @@ settings_layer { bindings = < - ________ EXT_OFF EXT_ON ________ ________ BT_CLEAR ________ ________ ________ ________ &to DEF ________ - ________ &out OUT_USB &out OUT_BLE ________ ________ ________ ________ &to_ipad &to_sd BT_6 &to M_DEF ________ - ________ ________ ________ ________ ________ ________ ________ &to_mtbk &to_six &to_nca &to G_DEF ________ + ________ EXT_OFF EXT_ON ________ ________ BT_CLEAR ________ &to DEF &to M_DEF &to G_DEF ________ ________ + ________ &out OUT_USB &out OUT_BLE ________ ________ ________ ________ &to_sd &to_ipad BT_6 ________ ________ + ________ ________ ________ ________ ________ ________ ________ &to_mtbk &to_nca &to_scd &to_devvm ________ ________ ________ ________ ________ ________ ________ >; }; @@ -332,10 +438,10 @@ mac_nav_layer { bindings = < - ________ &kp ESC &lck_mac &run &go_src ________ M_PUP M_HME &kp UP M_END &kp DE_Y ________ - ________ ________ ________ ________ ________ ________ M_PDWN &kp LEFT &kp DOWN &kp RIGHT &kp RET ________ - ________ &kp LSHFT ________ ________ ________ ________ ________ ________ ________ ________ &kp DE_SS ________ - ________ ________ ________ ________ &kp DEL ________ + ________ &kp ESC &lck_mac &run &go_src ________ M_PUP M_HME &kp UP M_END &kp DE_Y ________ + ________ ________ &mkp MCLK ________ ________ ________ M_PDWN &kp LEFT &kp DOWN &kp RIGHT &kp RET ________ + ________ &kp LSHFT ________ &mkp RCLK &mkp LCLK ________ ________ ________ ________ ________ &kp DE_SS ________ + ________ ________ ________ ________ &kp DEL ________ >; }; @@ -348,7 +454,7 @@ // | --- | --- | | --- | --- | bindings = < ________ &kp DE_LABK &kp DE_UNDS &kp DE_LCBR &kp DE_RCBR &kp LS(N3) &kp DE_EXLM &kp DE_CIRC &kp LS(DE_CIRC) &kp DE_EQL &kp DE_AMPR ________ - ________ &kp DE_BSLS &kp DE_SLSH &kp DE_LPRN SFT_RPRN &kp DE_ASTR &kp DE_QUES SFT_LBRC &kp DE_RBRC &kp DE_MINS &kp DE_COLN ________ + ________ &kp DE_BSLS &kp DE_SLSH &kp DE_LPRN &kp DE_RPRN &kp DE_ASTR &kp DE_QUES &kp DE_LBRC &kp DE_RBRC &kp DE_MINS &kp DE_COLN ________ ________ &kp DE_ACUT &kp DE_DLR &kp LA(DE_CIRC) &kp DE_TILD &kp DE_HASH &kp DE_PLUS &kp DE_PERC &kp DE_DQUO &kp DE_QUOT &kp DE_SCLN ________ ________ &kp DE_AT ________ ________ ________ ________ >; @@ -377,10 +483,10 @@ mac_settings_layer { bindings = < - ________ EXT_OFF EXT_ON ________ ________ BT_CLEAR ________ ________ ________ ________ &to DEF ________ - ________ &out OUT_USB &out OUT_BLE ________ ________ ________ ________ &to_ipad &to_sd BT_6 &to M_DEF ________ - ________ ________ ________ ________ ________ ________ ________ &to_mtbk &to_six &to_nca &to G_DEF ________ - ________ ________ ________ ________ ________ ________ + ________ EXT_OFF EXT_ON ________ ________ BT_CLEAR ________ &to DEF &to M_DEF &to G_DEF ________ ________ + ________ &out OUT_USB &out OUT_BLE ________ ________ ________ ________ &to_sd &to_ipad BT_6 ________ ________ + ________ ________ ________ ________ ________ ________ ________ &to_mtbk &to_nca &to_scd &to_devvm ________ + ________ ________ ________ ________ ________ ________ >; }; @@ -399,10 +505,10 @@ game_nav_layer { bindings = < - ________ &kp ESC &lck &run &go_src ________ &kp PG_UP &kp HOME &kp UP &kp END &kp DE_Y ________ - ________ ________ ________ ________ ________ ________ &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &kp RET ________ - ________ &kp LSHFT ________ ________ ________ ________ ________ ________ ________ ________ &kp DE_SS ________ - ________ ________ ________ ________ &kp DEL ________ + ________ &kp ESC &lck &run &go_src ________ &kp PG_UP &kp HOME &kp UP &kp END &kp DE_Y ________ + ________ ________ &mkp MCLK ________ ________ ________ &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &kp RET ________ + ________ &kp LSHFT ________ &mkp RCLK &mkp LCLK ________ ________ ________ ________ ________ &kp DE_SS ________ + ________ ________ ________ ________ &kp DEL ________ >; }; @@ -415,7 +521,7 @@ // | --- | --- | | --- | --- | bindings = < ________ &kp DE_CIRC &kp DE_UNDS &kp DE_LCBR &kp DE_RCBR &kp DE_SECT &kp DE_EXLM &kp DE_LABK &kp DE_RABK &kp DE_EQL &kp DE_AMPR ________ - ________ &kp DE_BSLS &kp DE_SLSH &kp DE_LPRN SFT_RPRN &kp DE_ASTR &kp DE_QUES SFT_LBRC &kp DE_RBRC &kp DE_MINS &kp DE_COLN ________ + ________ &kp DE_BSLS &kp DE_SLSH &kp DE_LPRN &kp DE_RPRN &kp DE_ASTR &kp DE_QUES &kp DE_LBRC &kp DE_RBRC &kp DE_MINS &kp DE_COLN ________ ________ &kp DE_ACUT &kp DE_DLR &kp DE_PIPE &kp DE_TILD &kp DE_HASH &kp DE_PLUS &kp DE_PERC &kp DE_DQUO &kp DE_QUOT &kp DE_SCLN ________ ________ &kp DE_AT ________ ________ ________ ________ >; @@ -444,10 +550,10 @@ game_settings_layer { bindings = < - ________ EXT_OFF EXT_ON ________ ________ BT_CLEAR ________ ________ ________ ________ &to DEF ________ - ________ &out OUT_USB &out OUT_BLE ________ ________ ________ ________ &to_ipad &to_sd BT_6 &to M_DEF ________ - ________ ________ ________ ________ ________ ________ ________ &to_mtbk &to_six &to_nca &to G_DEF ________ - ________ ________ ________ ________ ________ ________ + ________ EXT_OFF EXT_ON ________ ________ BT_CLEAR ________ &to DEF &to M_DEF &to G_DEF ________ ________ + ________ &out OUT_USB &out OUT_BLE ________ ________ ________ ________ &to_sd &to_ipad BT_6 ________ ________ + ________ ________ ________ ________ ________ ________ ________ &to_mtbk &to_nca &to_scd &to_devvm ________ + ________ ________ ________ ________ ________ ________ >; }; @@ -463,5 +569,19 @@ >; }; + sym_rdp_layer { + // --------------------------------------------------------------------- + // | ^ | _ | { | } | § | | ! | < | > | = | & | + // | \ | / | ( | ) | * | | ? | [ | ] | - | : | + // | ` | $ | | | ~ | # | | + | % | " | ' | ; | + // | --- | --- | | --- | --- | + bindings = < + ________ &kp DE_CIRC &rdp_s_UNDS &rdp_a_LCBR &rdp_a_RCBR &rdp_s_SECT &rdp_s_EXLM &kp DE_LABK &rdp_s_RABK &rdp_s_EQL &rdp_s_AMPR ________ + ________ &rdp_a_BSLS &rdp_s_SLSH &rdp_s_LPRN &rdp_s_RPRN &rdp_s_ASTR &rdp_s_QUES &rdp_a_LBRC &rdp_a_RBRC &kp DE_MINS &rdp_s_COLN ________ + ________ &kp DE_ACUT &rdp_s_DLR &rdp_a_PIPE &rdp_a_TILD &kp DE_HASH &kp DE_PLUS &rdp_s_PERC &rdp_s_DQUO &rdp_s_QUOT &rdp_s_SCLN ________ + ________ &rdp_a_AT ________ ________ ________ ________ + >; + }; + }; }; \ No newline at end of file diff --git a/config/splitkb_aurora_corne_left.conf b/config/splitkb_aurora_corne_left.conf index 6b0dd81..ec16be8 100644 --- a/config/splitkb_aurora_corne_left.conf +++ b/config/splitkb_aurora_corne_left.conf @@ -1,2 +1,2 @@ CONFIG_ZMK_SPLIT_ROLE_CENTRAL=n -CONFIG_ZMK_KEYBOARD_NAME="Aurora Corne LP-Left" +CONFIG_ZMK_KEYBOARD_NAME="Aurora Corne-Left" diff --git a/config/splitkb_aurora_corne_right.conf b/config/splitkb_aurora_corne_right.conf index 2fe5979..a429e2f 100644 --- a/config/splitkb_aurora_corne_right.conf +++ b/config/splitkb_aurora_corne_right.conf @@ -1,5 +1,5 @@ CONFIG_ZMK_SPLIT_ROLE_CENTRAL=y -CONFIG_ZMK_KEYBOARD_NAME="Aurora Corne LP" +CONFIG_ZMK_KEYBOARD_NAME="Aurora Corne" CONFIG_BT_CTLR_TX_PWR_PLUS_8=y CONFIG_BT_MAX_CONN=7 CONFIG_BT_MAX_PAIRED=7 @@ -13,4 +13,4 @@ CONFIG_I2C=y #CONFIG_ZMK_USB_LOGGING=y #CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=4000 -#CONFIG_LOG_MAX_LEVEL=2 +#CONFIG_LOG_MAX_LEVEL=2 \ No newline at end of file