diff options
author | Teimor Epstein <teimor.epstein@gmail.com> | 2022-07-17 03:31:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-16 17:31:21 -0700 |
commit | 28f9def2195450687ffbb1ec1769798a752f21d7 (patch) | |
tree | 8fb5c83e4772430be8484eb3ff0f1e129fbe7fc0 /keyboards/keychron/q1/rev_0100/keymaps/teimor/keymap_user.h | |
parent | 05f6838f3769328a1d8308ffc8d00a9327d71375 (diff) |
[Keymap] teimor keymap for Keychron Q1 (#16396)
* teimor keymap
* quickfix and cleanup
* update readme
* quickfix and cleanup before pr
* clang
* clean layout
* add reset
* pr fix
* fix pr
* Rename README.md to readme.md
Diffstat (limited to 'keyboards/keychron/q1/rev_0100/keymaps/teimor/keymap_user.h')
-rw-r--r-- | keyboards/keychron/q1/rev_0100/keymaps/teimor/keymap_user.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/keyboards/keychron/q1/rev_0100/keymaps/teimor/keymap_user.h b/keyboards/keychron/q1/rev_0100/keymaps/teimor/keymap_user.h new file mode 100644 index 0000000000..57ac5258c2 --- /dev/null +++ b/keyboards/keychron/q1/rev_0100/keymaps/teimor/keymap_user.h @@ -0,0 +1,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) |