Skip to content

Commit

Permalink
Enable Soft Off in Horizon/Morizon
Browse files Browse the repository at this point in the history
  • Loading branch information
skarrmann committed Sep 25, 2024
1 parent 8c966f9 commit fcd340c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions config/boards/shields/horizon/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ if SHIELD_HORIZON
config ZMK_KEYBOARD_NAME
default "Horizon"

config ZMK_PM_SOFT_OFF
default y

endif
4 changes: 2 additions & 2 deletions config/boards/shields/horizon/horizon.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
// -----------------------------------------------------------------------------------------------------------------
// | | F1 | F2 | F3 | F4 | PSCRN |---------------| SLCK | HOME | PG_DN | PG_UP | END | |
// | | F5 | F6 | F7 | F8 | INS |---------------| CLCK | LEFT | DOWN | UP | RIGHT | |
// | | F9 | F10 | F11 | F12 | BT0 | BT- | BT+ | BTCLR | MUTE | VOL- | VOL+ | PS/BK | |
// | | F9 | F10 | F11 | F12 | BT0 | BT+ | POWER | BTCLR | MUTE | VOL- | VOL+ | PS/BK | |
// | | | | | | | | | | | | | | |
bindings = <
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp PSCRN &kp SLCK &kp HOME &kp PG_DN &kp PG_UP &kp END &trans
&trans &kp F5 &kp F6 &kp F7 &kp F8 &kp INS &kp CLCK &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans
&trans &kp F9 &kp F10 &kp F11 &kp F12 &bt BT_SEL 0 &bt BT_PRV &bt BT_NXT &bt BT_CLR &kp K_MUTE &kp K_VOL_DN &kp K_VOL_UP &kp PAUSE_BREAK &trans
&trans &kp F9 &kp F10 &kp F11 &kp F12 &bt BT_SEL 0 &bt BT_NXT &soft_off &bt BT_CLR &kp K_MUTE &kp K_VOL_DN &kp K_VOL_UP &kp PAUSE_BREAK &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};
Expand Down
3 changes: 3 additions & 0 deletions config/boards/shields/morizon/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ if SHIELD_MORIZON
config ZMK_KEYBOARD_NAME
default "Morizon"

config ZMK_PM_SOFT_OFF
default y

endif
4 changes: 2 additions & 2 deletions config/boards/shields/morizon/morizon.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
// | | | | | | |---------------| | | | | | |
// | | F1 | F2 | F3 | F4 | PSCRN |---------------| SLCK | HOME | PG_DN | PG_UP | END | |
// | | F5 | F6 | F7 | F8 | INS | | | CLCK | LEFT | DOWN | UP | RIGHT | |
// | | F9 | F10 | F11 | F12 | BT0 | BT- | BT+ | BTCLR | MUTE | VOL- | VOL+ | PS/BK | |
// | | F9 | F10 | F11 | F12 | BT0 | BT+ | POWER | BTCLR | MUTE | VOL- | VOL+ | PS/BK | |
// | | | | | | | | | | | | | | |
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp PSCRN &kp SLCK &kp HOME &kp PG_DN &kp PG_UP &kp END &trans
&trans &kp F5 &kp F6 &kp F7 &kp F8 &kp INS &trans &trans &kp CLCK &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans
&trans &kp F9 &kp F10 &kp F11 &kp F12 &bt BT_SEL 0 &bt BT_PRV &bt BT_NXT &bt BT_CLR &kp K_MUTE &kp K_VOL_DN &kp K_VOL_UP &kp PAUSE_BREAK &trans
&trans &kp F9 &kp F10 &kp F11 &kp F12 &bt BT_SEL 0 &bt BT_NXT &soft_off &bt BT_CLR &kp K_MUTE &kp K_VOL_DN &kp K_VOL_UP &kp PAUSE_BREAK &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};
Expand Down
2 changes: 1 addition & 1 deletion config/horizon.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
bindings = <
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp PSCRN &kp SLCK &kp HOME &kp PG_DN &kp PG_UP &kp END &trans
&trans &kp F5 &kp F6 &kp F7 &kp F8 &kp INS &kp CLCK &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans
&trans &kp F9 &kp F10 &kp F11 &kp F12 &kp K_APP &bt BT_PRV &bt BT_NXT &kp KP_NUM &kp K_MUTE &kp K_VOL_DN &kp K_VOL_UP &kp PAUSE_BREAK &trans
&trans &kp F9 &kp F10 &kp F11 &kp F12 &kp K_APP &bt BT_NXT &soft_off &kp KP_NUM &kp K_MUTE &kp K_VOL_DN &kp K_VOL_UP &kp PAUSE_BREAK &trans
&trans &trans &trans &trans &trans &kp TAB &bt BT_SEL 0 &bt BT_CLR &trans &trans &trans &trans &trans &trans
>;
};
Expand Down
2 changes: 1 addition & 1 deletion config/morizon.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp PSCRN &kp SLCK &kp HOME &kp PG_DN &kp PG_UP &kp END &trans
&trans &kp F5 &kp F6 &kp F7 &kp F8 &kp INS &trans &trans &kp CLCK &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans
&trans &kp F9 &kp F10 &kp F11 &kp F12 &kp K_APP &bt BT_PRV &bt BT_NXT &kp KP_NUM &kp K_MUTE &kp K_VOL_DN &kp K_VOL_UP &kp PAUSE_BREAK &trans
&trans &kp F9 &kp F10 &kp F11 &kp F12 &kp K_APP &bt BT_NXT &soft_off &kp KP_NUM &kp K_MUTE &kp K_VOL_DN &kp K_VOL_UP &kp PAUSE_BREAK &trans
&trans &trans &trans &trans &trans &kp TAB &bt BT_SEL 0 &bt BT_CLR &trans &trans &trans &trans &trans &trans
>;
};
Expand Down

0 comments on commit fcd340c

Please sign in to comment.