Skip to content

Commit

Permalink
Remove custom ZMK enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar committed Dec 6, 2023
1 parent 968840e commit 217d6e9
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 113 deletions.
54 changes: 19 additions & 35 deletions config/3x5.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#define SYM 3
#define NAV 4
#define FUN 5
#define MSE 6

// Desktop and tab navigation shortcuts
#define D_LT LC(LG(LEFT))
Expand Down Expand Up @@ -94,13 +93,6 @@
# define FN_EXTRA2 &kp PAUSE_BREAK
#endif

#ifdef MOUSE_KEYS
# include "mouse.dtsi"
# define MS_ACT(key) &lt MSE key
#else
# define MS_ACT(key) &kp key
#endif

&mt {
flavor = "hold-preferred";
tapping-term-ms = <150>;
Expand Down Expand Up @@ -160,12 +152,21 @@
hold-trigger-on-release;
};

// Swapper for smart alt+tab
swapper: swapper {
compatible = "zmk,behavior-tri-state";
// Easy alt-tab with alt+space thumb using mod-morphs
stab: space_tab {
compatible = "zmk,behavior-mod-morph";
#binding-cells = <0>;
bindings = <&kt LALT>, <&kp TAB>, <&kt LALT>;
ignored-key-positions = <SWP_POS>;
bindings = <&kp SPACE>, <&kp TAB>;
mods = <MOD_LALT>;
keep-mods = <MOD_LALT>;
};
lt_spc: layer_tap_space_tab {
compatible = "zmk,behavior-hold-tap";
label = "LT_BT";
#binding-cells = <2>;
tapping-term-ms = <150>;
flavor = "balanced";
bindings = <&mo>, <&stab>;
};
};

Expand Down Expand Up @@ -200,9 +201,9 @@
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
&aml LCTRL A &aml LGUI R &aml LALT S &asl LSHFT T &kp G &kp M &asr RSHFT N &amr RALT E &amr RGUI I &amr RCTRL O
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
P_L_DEF &kp X &kp C MS_ACT(D) I_L_DEF I_R_DEF &kp H &kp COMMA &kp DOT P_R_DEF
P_L_DEF &kp X &kp C &kp D I_L_DEF I_R_DEF &kp H &kp COMMA &kp DOT P_R_DEF
// ╰─────────────┴─────────────┴─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┴─────────────┴─────────────╯
T3_L_DEF &mt LCTRL ESC &lt NAV SPACE &lt SYM BSPC &mt RSHFT RET T3_R_DEF
T3_L_DEF &mt LCTRL ESC &lt_spc NAV 0 &lt SYM BSPC &mt RSHFT RET T3_R_DEF
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯
>;
};
Expand All @@ -215,9 +216,9 @@
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
&aml LCTRL R &aml LGUI S &aml LALT N &asl LSHFT T &kp P &kp K &asr RSHFT H &amr RALT E &amr RGUI I &amr RCTRL A
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
ALP_XXX &kp W &kp M MS_ACT(G) ALP_XXX ALP_XXX &kp D &kp COMMA &kp DOT ALP_XXX
ALP_XXX &kp W &kp M &kp G ALP_XXX ALP_XXX &kp D &kp COMMA &kp DOT ALP_XXX
// ╰─────────────┴─────────────┴─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┴─────────────┴─────────────╯
T3_L_DEF &mt LCTRL ESC &lt NAV SPACE &lt SYM BSPC &mt RSHFT RET T3_R_DEF
T3_L_DEF &mt LCTRL ESC &lt_spc NAV 0 &lt SYM BSPC &mt RSHFT RET T3_R_DEF
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯
>;
};
Expand Down Expand Up @@ -260,7 +261,7 @@
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
&kp LCTRL &kp LGUI &kp LALT &mt LSHFT TAB &kp C_VOL_DN &kp HOME &kp LEFT &kp DOWN &kp RIGHT &kp END
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
ALP_XXX &kp LS(TAB) &swapper &kp LS(INS) ALP_PP ALP_XXX &kp DEL &kp C_PREV &kp C_NEXT ALP_XXX
ALP_XXX &none &none &kp LS(INS) ALP_PP ALP_XXX &kp DEL &kp C_PREV &kp C_NEXT ALP_XXX
// ╰─────────────┴─────────────┴─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┴─────────────┴─────────────╯
T3_L_SYM &none &trans &trans &kp SPACE T3_R_SYM
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯
Expand All @@ -281,22 +282,5 @@
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯
>;
};

#ifdef MOUSE_KEYS
mouse_layer {
display-name = "MSE";
bindings = <
// ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮
&none &none &none &none &none &msc SCRL_LEFT &msc SCRL_DOWN &mmv MOVE_UP &msc SCRL_UP &msc SCRL_RIGHT
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
&kp LCTRL &kp LGUI &kp LALT &kp LSHFT &none &none &mmv MOVE_LEFT &mmv MOVE_DOWN &mmv MOVE_RIGHT &none
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
ALP_XXX &none &none &none ALP_XXX ALP_XXX &mkp MB4 &mkp MCLK &mkp MB5 ALP_XXX
// ╰─────────────┴─────────────┴─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┴─────────────┴─────────────╯
T3_XXX &none &none &mkp LCLK &mkp RCLK T3_XXX
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯
>;
};
#endif
};
};
16 changes: 0 additions & 16 deletions config/combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,6 @@ COMBO(slsh, &kp SLASH, 27 28, DEF BRD, 80, 50)

COMBO(f12, &kp F12, 21 22, FUN, 100, 200)
COMBO(btclr, &bt BT_CLR, 27 28, FUN, 100, 200)
#endif

#ifdef MOUSE_KEYS
# ifdef THREE_THUMBS
# ifdef ALPHA_23332
COMBO(mse_l, &mo MSE, 27 28, DEF BRD, 150, 0, slow-release;)
# else
COMBO(mse_l, &mo MSE, 31 32, DEF BRD, 150, 0, slow-release;)
# endif
# else
# ifdef ALPHA_23332
COMBO(mse_l, &mo MSE, 26 27, DEF BRD, 150, 0, slow-release;)
# else
COMBO(mse_l, &mo MSE, 30 31, DEF BRD, 150, 0, slow-release;)
# endif
# endif
#endif
};
};
14 changes: 0 additions & 14 deletions config/corneish_zen.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@ CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
# Require passkey on pairing
CONFIG_ZMK_BLE_PASSKEY_ENTRY=y

# Zen display tweaks
CONFIG_ZMK_DISPLAY_FULL_REFRESH_PERIOD=300
# Stock status screen
#CONFIG_ZMK_DISPLAY_HIDE_MOMENTARY_LAYERS=y
#CONFIG_CUSTOM_WIDGET_LAYER_STATUS_HIDE_HEADING=y
#CONFIG_CUSTOM_WIDGET_LOGO_IMAGE_ZMK=y
# 8-bit status screen
CONFIG_ZEN_STATUS_SCREEN_8BIT=y
CONFIG_ZEN_STATUS_SCREEN_8BIT_HALF=y

# Sleep timeout to 30 min
CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000

# Mouse keys, higher tick duration prevents freezes
CONFIG_ZMK_MOUSE=y
CONFIG_ZMK_MOUSE_TICK_DURATION=16
1 change: 0 additions & 1 deletion config/corneish_zen.keymap
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#define THREE_THUMBS
#define MOUSE_KEYS

#include "3x5.dtsi"

Expand Down
16 changes: 0 additions & 16 deletions config/mouse.dtsi

This file was deleted.

4 changes: 0 additions & 4 deletions config/rommana.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@ CONFIG_ZMK_BLE_PASSKEY_ENTRY=y
# Sleep timeout to 30 min
CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000

# Mouse keys, higher tick duration prevents freezes
CONFIG_ZMK_MOUSE=y
CONFIG_ZMK_MOUSE_TICK_DURATION=16
6 changes: 2 additions & 4 deletions config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ manifest:
remotes:
- name: zmkfirmware
url-base: https://github.com/zmkfirmware
- name: caksoylar
url-base: https://github.com/caksoylar
projects:
- name: zmk
remote: caksoylar
revision: caksoylar/zen-8bit
remote: zmkfirmware
revision: main
import: app/west.yml
self:
path: config
23 changes: 0 additions & 23 deletions config/zen-status-screen.md

This file was deleted.

0 comments on commit 217d6e9

Please sign in to comment.