aboutsummaryrefslogtreecommitdiff
path: root/users/bcat/bcat.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/bcat/bcat.h')
-rw-r--r--users/bcat/bcat.h36
1 files changed, 35 insertions, 1 deletions
diff --git a/users/bcat/bcat.h b/users/bcat/bcat.h
index 0dae774ec..4a88acba7 100644
--- a/users/bcat/bcat.h
+++ b/users/bcat/bcat.h
@@ -16,9 +16,43 @@
16 16
17#pragma once 17#pragma once
18 18
19#include "quantum.h" 19#include <stdbool.h>
20 20
21#include "keymap.h"
22
23/* Layer numbers shared across keymaps. */
24enum user_layer {
25 /* Base layers: */
26 LAYER_DEFAULT,
27
28#if defined(BCAT_ORTHO_LAYERS)
29 /* Function layers for ortho (and ergo) boards: */
30 LAYER_LOWER,
31 LAYER_RAISE,
32 LAYER_ADJUST,
33#else
34 /* Function layers for traditional boards: */
35 LAYER_FUNCTION_1,
36 LAYER_FUNCTION_2,
37#endif
38};
39
40/* Custom keycodes shared across keymaps. */
21enum user_keycode { 41enum user_keycode {
22 MC_ALTT = SAFE_RANGE, 42 MC_ALTT = SAFE_RANGE,
23 KEYMAP_SAFE_RANGE, 43 KEYMAP_SAFE_RANGE,
24}; 44};
45
46/* Keycode aliases shared across keymaps. */
47#define KY_CSPC LCTL(KC_SPC)
48#define KY_ZMIN LCTL(KC_EQL)
49#define KY_ZMOUT LCTL(KC_MINS)
50#define KY_ZMRST LCTL(KC_0)
51
52#if defined(BCAT_ORTHO_LAYERS)
53# define LY_LWR MO(LAYER_LOWER)
54# define LY_RSE MO(LAYER_RAISE)
55#else
56# define LY_FN1 MO(LAYER_FUNCTION_1)
57# define LY_FN2 MO(LAYER_FUNCTION_2)
58#endif