Skip to content

Commit

Permalink
Sleep Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
frnmjn committed Nov 15, 2024
1 parent 366f849 commit 11fff57
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
12 changes: 3 additions & 9 deletions config/splitkb_aurora_sweep.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Uncomment these two line to add support for encoders to your firmware
# CONFIG_EC11=y
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y

# Uncomment the following line to enable the Kyria OLED Display
# CONFIG_ZMK_DISPLAY=y

# Uncomment the following lines to enable RGB underglow
# CONFIG_ZMK_RGB_UNDERGLOW=y
# Set sleep timeout to 30min (30*60*1000ms)
CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000
23 changes: 22 additions & 1 deletion config/splitkb_aurora_sweep.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,32 @@
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include "zmk-helpers/helper.h"

#include "34_labels.h"
#include "italian_keys.h"

#include "combos.dtsi"

#define DEF 0
#define NAV 1
#define NUM 2

#define XXX &none
#define ___ &trans

#define QUICK_TAP_MS 200

// Wakeup Sources
/ {
kscan: kscan {
compatible = "zmk,kscan-gpio-matrix";
diode-direction = "col2row";
wakeup-source;

...
};
};

ZMK_LAYER(base,
// ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
Expand All @@ -21,6 +42,6 @@ ZMK_LAYER(base,
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp IT_SLASH
// ╰─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────╯
&none &kp SPACE &kp BSPC &none
XXX &kp SPACE &kp BSPC XXX
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯
)

0 comments on commit 11fff57

Please sign in to comment.