forked from kofal.net/zmk
feat(keymap): allow users to toggle layers
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <behaviors/transparent.dtsi>
|
||||
#include <behaviors/mod_tap.dtsi>
|
||||
#include <behaviors/momentary_layer.dtsi>
|
||||
#include <behaviors/toggle_layer.dtsi>
|
||||
#include <behaviors/reset.dtsi>
|
||||
#include <behaviors/sensor_rotate_key_press.dtsi>
|
||||
#include <behaviors/rgb_underglow.dtsi>
|
||||
9
app/dts/behaviors/toggle_layer.dtsi
Normal file
9
app/dts/behaviors/toggle_layer.dtsi
Normal file
@@ -0,0 +1,9 @@
|
||||
/ {
|
||||
behaviors {
|
||||
tog: behavior_toggle_layer {
|
||||
compatible = "zmk,behavior-toggle-layer";
|
||||
label = "TOGGLE_LAYER";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2020, Cody McGinnis <brainwart@gmail.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: Toggle Layer
|
||||
|
||||
compatible: "zmk,behavior-toggle-layer"
|
||||
|
||||
include: one_param.yaml
|
||||
Reference in New Issue
Block a user