summaryrefslogtreecommitdiff
path: root/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap_user.h
diff options
context:
space:
mode:
authorGrayson Carr <734415+gtg465x@users.noreply.github.com>2021-10-06 11:36:04 -0400
committerGitHub <noreply@github.com>2021-10-06 08:36:04 -0700
commitd5fae3a6f96d44a432350d5f487204a962c5f9bc (patch)
treec6bb3798b8150714cc53171ba7f091583252a85b /keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap_user.h
parentf32db0bdd1f25099605ed324f1e8eab9aa7361e4 (diff)
Updated Keychron Q1 user keymap (#14666)
* Updated Keychron Q1 user keymap - Added Caps Lock indicator - Mission Control and Launchpad custom keycodes are now defined using the VIA user keycodes range so they can be labeled properly in VIA * Only use VIA keycode range if VIA is enabled * Reformatted led_indexes enum to match layout * Feature: When the Fn layer is active, RGB lighting turns off for keys that are not assigned * Fixes * Cleanup: Updated method signature of rgb_matrix_set_color_by_keycode to more closely match rgb_matrix_set_color * Fixed int sizing for keycodes
Diffstat (limited to 'keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap_user.h')
-rw-r--r--keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap_user.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap_user.h b/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap_user.h
new file mode 100644
index 0000000000..728114d556
--- /dev/null
+++ b/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap_user.h
@@ -0,0 +1,28 @@
+/* Copyright 2021 @ Grayson Carr
+ *
+ * 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