summaryrefslogtreecommitdiff
path: root/keyboards/crkbd/keymaps/colemad/keycodes.h
diff options
context:
space:
mode:
authorÁlvaro Cortés <alvarocortesdevesa@gmail.com>2022-04-19 12:32:11 +0200
committerGitHub <noreply@github.com>2022-04-19 20:32:11 +1000
commit50ec365806adb43ab5e99cfd181b840b17c24259 (patch)
tree55d4a8eab0ee8698f60b7ae7884ca75e3c8c085c /keyboards/crkbd/keymaps/colemad/keycodes.h
parentbde724e1249a696c070f4ce12964be1ea6d43ead (diff)
[Keymap] A Colemak keymap for the crkbd keyboard (#16550)
Diffstat (limited to 'keyboards/crkbd/keymaps/colemad/keycodes.h')
-rw-r--r--keyboards/crkbd/keymaps/colemad/keycodes.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/keyboards/crkbd/keymaps/colemad/keycodes.h b/keyboards/crkbd/keymaps/colemad/keycodes.h
new file mode 100644
index 0000000000..6497f1662b
--- /dev/null
+++ b/keyboards/crkbd/keymaps/colemad/keycodes.h
@@ -0,0 +1,24 @@
+// Copyright 2022 Álvaro Cortés (@ACortesDev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#include QMK_KEYBOARD_H
+#include "layers.h"
+
+/* Tap-Hold keycodes */
+#define KC_LOWER LT(_LOWER, KC_ENT) /* Tap for Enter, Hold for LOWER layer */
+#define KC_RAISE LT(_RAISE, KC_SPC) /* Tap for Space, Hold for RAISE layer */
+
+/* Tap Dance keycodes */
+#if defined(TAP_DANCE_ENABLE)
+ #include "tap_dances.h"
+ #define KC_T_SFT T_SFT /* Single tap for Shift, Double tap for CAPS Lock */
+#else
+ #define KC_T_SFT KC_LSFT
+#endif
+
+/* Macros */
+enum custom_keycodes {
+ VSCTERM = SAFE_RANGE,
+ CHNLANG
+};