aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/gmmk/pro/keymaps/alexmarmon/keymap.c66
-rw-r--r--keyboards/gmmk/pro/keymaps/alexmarmon/readme.md7
2 files changed, 73 insertions, 0 deletions
diff --git a/keyboards/gmmk/pro/keymaps/alexmarmon/keymap.c b/keyboards/gmmk/pro/keymaps/alexmarmon/keymap.c
new file mode 100644
index 000000000..99504de95
--- /dev/null
+++ b/keyboards/gmmk/pro/keymaps/alexmarmon/keymap.c
@@ -0,0 +1,66 @@
1/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
2 Copyright 2021 alexmarmon
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include QMK_KEYBOARD_H
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21
22// ESC F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Prt Rotary(Mute)
23// ~ 1 2 3 4 5 6 7 8 9 0 - (=) BackSpc Del
24// Tab Q W E R T Y U I O P [ ] \ PgUp
25// Caps A S D F G H J K L ; " Enter PgDn
26// Sh_L Z X C V B N M , . ? Sh_R Up End
27// Ct_L Alt_L Win_L SPACE Ct_R Alt_R FN Left Down Right
28
29
30 // The FN key by default maps to a momentary toggle to layer 1 to provide access to the RESET key (to put the board into bootloader mode). Without
31 // this mapping, you have to open the case to hit the button on the bottom of the PCB (near the USB cable attachment) while plugging in the USB
32 // cable to get the board into bootloader mode - definitely not fun when you're working on your QMK builds. Remove this and put it back to KC_RGUI
33 // if that's your preference.
34 //
35 // To put the keyboard in bootloader mode, use FN+backslash. If you accidentally put it into bootloader, you can just unplug the USB cable and
36 // it'll be back to normal when you plug it back in.
37 [0] = LAYOUT(
38 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_MUTE,
39 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL,
40 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP,
41 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
42 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
43 KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RCTL, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
44 ),
45
46 [1] = LAYOUT(
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, RGB_MODE_FORWARD,
50 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MODE_REVERSE,
51 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG,
52 _______, _______, _______, _______, _______, _______, _______, KC_MEDIA_PREV_TRACK, _______, KC_MEDIA_NEXT_TRACK
53 ),
54
55
56};
57
58
59bool encoder_update_user(uint8_t index, bool clockwise) {
60 if (clockwise) {
61 tap_code(KC_VOLU);
62 } else {
63 tap_code(KC_VOLD);
64 }
65 return true;
66}
diff --git a/keyboards/gmmk/pro/keymaps/alexmarmon/readme.md b/keyboards/gmmk/pro/keymaps/alexmarmon/readme.md
new file mode 100644
index 000000000..36ad42b1a
--- /dev/null
+++ b/keyboards/gmmk/pro/keymaps/alexmarmon/readme.md
@@ -0,0 +1,7 @@
1![Layout Image](https://i.imgur.com/MizMvsI.jpg)
2
3# Simple MacOS like keymap with RGB
4
5* Working basic RGB thanks to https://github.com/qmk/qmk_firmware/pull/13430
6* Restore working rotary knob volume control
7* Add media_previous and media_next to FN+left and FN+right \ No newline at end of file