summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/q1/ansi/keymaps/teimor/keymap_user.h
blob: 57ac5258c2670e6983a2d01259cc4e6436d6a43f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* Copyright 2022 @ Teimor Epstein
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

// clang-format off

enum layers {
    MAC_BASE,
    MAC_FN,
    WIN_BASE,
    WIN_FN
};

// clang-format on

// Tap dance enums
enum {
    MAC_CAPS_LANGUAGE_CHANGE,
    WIN_CAPS_LANGUAGE_CHANGE,
};

#ifdef TAP_DANCE_ENABLE
#   define KC_LGMAC TD(MAC_CAPS_LANGUAGE_CHANGE)
#   define KC_LGWIN TD(WIN_CAPS_LANGUAGE_CHANGE)
#else
#   define KC_LGMAC KC_CAPS
#   define KC_LGWIN KC_CAPS
#endif
#define KC_MACFN MO(MAC_FN)
#define KC_WINFN MO(WIN_FN)
#define KC_LMAC C(G(KC_Q))
#define KC_MACPS G(S(KC_5))
#define KC_TASK G(KC_TAB)
#define KC_FLXP G(KC_E)