summaryrefslogtreecommitdiffstats
path: root/keyboards/m10a/keymaps
diff options
context:
space:
mode:
authorGam3cat <31171909+Gam3cat@users.noreply.github.com>2019-01-03 08:12:58 -0800
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-01-03 08:12:58 -0800
commit6cb2d7ba6dc19fe579fac856fbce36be0f8384f6 (patch)
treeeed366aec6798aa8ddb7b2ce6d53c11ccab92169 /keyboards/m10a/keymaps
parent526bc4c7cc6b4a7701d317bb66b8bb5fa6c9c87f (diff)
Keymap updates (#4706)
* adding my keymap * update keymap * adding gamecat keymap for jc65 keyboard * updating jc65-gamecat keymap * updating jc65-gamecat keymap * updating jc65-gamecat keymap * updating jc65-gamecat keymap * M10a keymap and M65a updates * keymap updates * keymap updates * M10a/M65a keymap updates * M10a/M65a keymap updates * Delete test.txt * M65 keymap update * M65 keymap update * M65 keymap update * M65/M10 keymap updates * M65 keymap update * M65 keymap update * M65 keymap update * M65 keymap update * M65 keymap update * M65/M10 keymap update * M65 keymap update * M65 keymap update * M65 keymap update * M65 keymap update * M65 keymap update * Set theme jekyll-theme-cayman * Set theme jekyll-theme-slate * M65 keymap update * M10a/M65a keymap updates * M10a keymap update * M65a keymap update * M65a keymap update * M65a keymap update * M65a readme update * M65a/M10a updates * M65a readme updates * M65a/M10a updates * M65A update * M65A update * M65A update * M65A update * M65A/M10A keymap update * M10A keymap update * Set theme jekyll-theme-tactile * M10A keymap update * M65A keymap.c update * M65 keymap added LED backlight toggle, inc/dec to adjust layer. * M65 keymap/readme updates. * M65 keymap fix * M65 keymap update * remove theme * fix comments/readme * update keymap * LED backlight update, guess based on reading atmega32u4 documentation for DDRB/PORTB regs, believe DDRB should only be written to once not every time CAPS is hit, but really not too sure. * LED backlight update, guess based on reading atmega32u4 documentation for DDRB/PORTB regs, believe DDRB should only be written to once not every time CAPS is hit, but really not too sure. * M65 keymap update * Updated M65, M10, and gonNerd keymaps. * update * del * keymap updates M65, M10, gonnerd * update keymaps * adding back readme that somehow got removed. * updated keymap * update keymap * add back readme * Added h87a keymap, updated m10a/jc65/gonnerd * Update h87a keymap * Updates after feedback * Updates after feedback * Updates after feedback * Updates after feedback
Diffstat (limited to 'keyboards/m10a/keymaps')
-rw-r--r--keyboards/m10a/keymaps/gam3cat/keymap.c199
-rw-r--r--keyboards/m10a/keymaps/gam3cat/readme.md10
-rw-r--r--keyboards/m10a/keymaps/gam3cat/rules.mk27
3 files changed, 127 insertions, 109 deletions
diff --git a/keyboards/m10a/keymaps/gam3cat/keymap.c b/keyboards/m10a/keymaps/gam3cat/keymap.c
index 8f4c878da5..8ee35d50ab 100644
--- a/keyboards/m10a/keymaps/gam3cat/keymap.c
+++ b/keyboards/m10a/keymaps/gam3cat/keymap.c
@@ -1,6 +1,4 @@
-#include "m10a.h"
-#include "action_layer.h"
-#include "eeconfig.h"
+#include QMK_KEYBOARD_H
#include "version.h"
extern keymap_config_t keymap_config;
@@ -18,46 +16,48 @@ enum layers {
_L9
};
-enum m10a_keycodes {
+enum custom_keycodes {
DYNAMIC_MACRO_RANGE = SAFE_RANGE,
+ QMK_REV,
+ KC_WEB,
+ KC_WCLS
};
+extern backlight_config_t backlight_config;
+
#include "dynamic_macro.h"
-#define _______ KC_TRNS
-#define XXXXXXX KC_NO
-#define FN_ZERO LT(_L9, KC_0)
+#define FN_ZERO LT(_L9, KC_KP_0)
#define KC_DMR1 DYN_REC_START1
#define KC_DMR2 DYN_REC_START2
#define KC_DMP1 DYN_MACRO_PLAY1
#define KC_DMP2 DYN_MACRO_PLAY2
#define KC_DMRS DYN_REC_STOP
-static uint8_t current_layer;
-
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- /* .-----------. .-----------. .-----------. .-----------. .-----------.
- * | 7| 8| 9| | +| -| *| | ^| &| !| |VLU|Ver|WFD| |VLU|NXT|FFD|
- * |-----------| |-----------| |-----------| |-----------| |-----------|
- * | 4| 5| 6| | /| %| ,| | D| E| F| |MUT|C-W|CHR| |MUT|STP|PLY|
- * |-----------| |-----------| |-----------| |-----------| |-----------|
- * | 1| 2| 3| | .| =|Ent| | A| B| C| |VLD|CMP|WBK| |VLD|PRV|RWD|
- * |-----------| |-----------| |-----------| |-----------| |-----------|
- * |L0 | _L9/0| |L1 | _L9 | |L2 | _L9 | |L3 | _L9 | |L4 | _L9 |
- * *-----------* *-----------* *-----------* *-----------* *-----------*
- * .-----------. .-----------. .-----------. .-----------. .-----------.
- * | | | | | | | | |MP1| |MP2| | | |RST| |_L6|_L7|_L8|
- * |-----------| |-----------| |-----------| |-----------| |-----------|
- * | | | | | | | | | |MRS| | | | | | |_L3|_L4|_L5|
- * |-----------| |-----------| |-----------| |-----------| |-----------|
- * | | | | | | | | |MR1| |MR2| | | | | |_L0|_L1|_L2|
- * |-----------| |-----------| |-----------| |-----------| |-----------|
- * |L5 | _L9 | |L6 | _L9 | |L7 | _L9 | |L8 | _L9 | |L9 | |
- * *-----------* *-----------* *-----------* *-----------* *-----------*
+ /*## Layout Config:
+ * .-----------. .-----------. .-----------. .-----------. .-----------.
+ * |7 |8 |9 | |+ |- |* | |^ |& |! | |VLU|Ver|WFD| |VLU|NXT|FFD|
+ * |-----------| |-----------| |-----------| |-----------| |-----------|
+ * |4 |5 |6 | |/ |% |, | |D |E |F | |MUT|C-W|CHR| |MUT|STP|PLY|
+ * |-----------| |-----------| |-----------| |-----------| |-----------|
+ * |1 |2 |3 | |. |= |Ent| |A |B |C | |VLD|CMP|WBK| |VLD|PRV|RWD|
+ * |-----------| |-----------| |-----------| |-----------| |-----------|
+ * |#L0|_L9/0 | |#L1|_L9 | |#L2|_L9 | |#L3|_L9 | |#L4|_L9 |
+ * *-----------* *-----------* *-----------* *-----------* *-----------*
+ * .-----------. .-----------. .-----------. .-----------. .-----------.
+ * | | | | | | | | |MP1| |MP2| | | |RST| |_L6|_L7|_L8|
+ * |-----------| |-----------| |-----------| |-----------| |-----------|
+ * | | | | | | | | | |MRS| | | | | | |_L3|_L4|_L5|
+ * |-----------| |-----------| |-----------| |-----------| |-----------|
+ * | | | | | | | | |MR1| |MR2| | | | | |_L0|_L1|_L2|
+ * |-----------| |-----------| |-----------| |-----------| |-----------|
+ * |#L5|_L9 | |#L6|_L9 | |#L7|_L9 | |#L8|_L9 | |#L9| |
+ * *-----------* *-----------* *-----------* *-----------* *-----------*
*/
- [_L0] = {{KC_7, KC_8, KC_9 }, {KC_4, KC_5, KC_6 }, {KC_1, KC_2, KC_3 }, {XXXXXXX, XXXXXXX, FN_ZERO}},
+ [_L0] = {{KC_KP_7, KC_KP_8, KC_KP_9}, {KC_KP_4, KC_KP_5, KC_KP_6}, {KC_KP_1, KC_KP_2, KC_KP_3}, {XXXXXXX, XXXXXXX, FN_ZERO}},
[_L1] = {{KC_PPLS, KC_PMNS, KC_PAST}, {KC_PSLS, KC_PERC, KC_COMM}, {KC_PDOT, KC_EQL, KC_PENT}, {XXXXXXX, XXXXXXX, MO(_L9)}},
[_L2] = {{KC_CIRC, KC_AMPR, KC_EXLM}, {S(KC_D), S(KC_E), S(KC_F)}, {S(KC_A), S(KC_B), S(KC_C)}, {XXXXXXX, XXXXXXX, MO(_L9)}},
- [_L3] = {{KC_VOLU, F(0), KC_WFWD}, {KC_MUTE, M(1), M(0) }, {KC_VOLD, KC_MYCM, KC_WBAK}, {XXXXXXX, XXXXXXX, MO(_L9)}},
+ [_L3] = {{KC_VOLU, QMK_REV, KC_WFWD}, {KC_MUTE, KC_WCLS, KC_WEB }, {KC_VOLD, KC_MYCM, KC_WBAK}, {XXXXXXX, XXXXXXX, MO(_L9)}},
[_L4] = {{KC_VOLU, KC_MNXT, KC_MFFD}, {KC_MUTE, KC_MSTP, KC_MPLY}, {KC_VOLD, KC_MPRV, KC_MRWD}, {XXXXXXX, XXXXXXX, MO(_L9)}},
[_L5] = {{_______, _______, _______}, {_______, _______, _______}, {_______, _______, _______}, {XXXXXXX, XXXXXXX, MO(_L9)}},
[_L6] = {{_______, _______, _______}, {_______, _______, _______}, {_______, _______, _______}, {XXXXXXX, XXXXXXX, MO(_L9)}},
@@ -66,96 +66,93 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_L9] = {{DF(_L6), DF(_L7), DF(_L8)}, {DF(_L3), DF(_L4), DF(_L5)}, {DF(_L0), DF(_L1), DF(_L2)}, {XXXXXXX, XXXXXXX, _______}},
};
-const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
- switch(id) {
- case 0:
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case QMK_REV:
if (record->event.pressed) {
- return MACRO(I(10), D(LGUI), T(R), U(LGUI), END);
+ SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP "@" QMK_VERSION ":" QMK_BUILDDATE);
}
- else {
+ return false;
+ break;
+ case KC_WEB:
+ if (record->event.pressed) {
+ SEND_STRING(SS_LGUI("r"));
+ wait_ms(100);
SEND_STRING("chrome.exe\n");
- return false;
}
- break;
- case 1:
+ return false;
+ break;
+ case KC_WCLS:
if (record->event.pressed) {
- return MACRO(I(10), D(LCTL), T(W), U(LCTL), END);
+ SEND_STRING (SS_LCTRL("w"));
}
- break;
+ return false;
+ break;
}
- return MACRO_NONE;
-};
-
-const uint16_t PROGMEM fn_actions[] = {
- [0] = ACTION_FUNCTION(0),
-};
-
-void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
- switch (id) {
- case 0:
- if (record->event.pressed) {
- SEND_STRING ("[Keyboard: " QMK_KEYBOARD "] -- [QMK Version: " QMK_VERSION "] -- [Keymap: " QMK_KEYMAP "]");
- }
- break;
+ // Dynamic Macros.
+ if (!process_record_dynamic_macro(keycode, record)) {
+ return false;
}
+ return true;
+}
+
+void custom_backlight_level(uint8_t level) {
+ if (level > BACKLIGHT_LEVELS)
+ level = BACKLIGHT_LEVELS;
+ backlight_config.level = level;
+ backlight_config.enable = !!backlight_config.level;
+ backlight_set(backlight_config.level);
}
void matrix_init_user(void) {
#ifdef BACKLIGHT_ENABLE
- backlight_level(0);
+ custom_backlight_level(0);
#endif
}
-// Runs constantly in the background, in a loop.
void matrix_scan_user(void) {
- uint8_t layer = biton32(layer_state);
- if (current_layer == layer) {
- }
- else {
- current_layer = layer;
- switch (layer) {
- case 0:
- backlight_level(0);
- break;
- case 1:
- backlight_level(1);
- break;
- case 2:
- backlight_level(2);
- break;
- case 3:
- backlight_level(3);
- break;
- case 4:
- backlight_level(4);
- break;
- case 5:
- backlight_level(5);
- break;
- case 6:
- backlight_level(6);
- break;
- case 7:
- backlight_level(6);
- break;
- case 8:
- backlight_level(6);
- break;
- case 9:
- backlight_level(0);
- break;
- default:
- backlight_level(0);
- break;
- }
- }
}
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- // Enable Dynamic Macros.
- if (!process_record_dynamic_macro(keycode, record)) {
- return false;
+uint32_t layer_state_set_user(uint32_t state) {
+ switch (biton32(state)) {
+ case _L0:
+ custom_backlight_level(0);
+ break;
+ case _L1:
+ custom_backlight_level(1);
+ break;
+ case _L2:
+ custom_backlight_level(2);
+ break;
+ case _L3:
+ custom_backlight_level(3);
+ break;
+ case _L4:
+ custom_backlight_level(4);
+ break;
+ case _L5:
+ custom_backlight_level(5);
+ break;
+ case _L6:
+ custom_backlight_level(6);
+ break;
+ case _L7:
+ custom_backlight_level(6);
+ break;
+ case _L8:
+ custom_backlight_level(6);
+ break;
+ case _L9:
+ custom_backlight_level(0);
+ break;
+ default:
+ custom_backlight_level(0);
+ break;
}
- return true;
+ return state;
+}
+
+void led_set_user(uint8_t usb_led) {
+
}
diff --git a/keyboards/m10a/keymaps/gam3cat/readme.md b/keyboards/m10a/keymaps/gam3cat/readme.md
index 879a6c5a37..5c68e8c893 100644
--- a/keyboards/m10a/keymaps/gam3cat/readme.md
+++ b/keyboards/m10a/keymaps/gam3cat/readme.md
@@ -2,13 +2,13 @@
make m10a:gam3cat
## Layout Config:
.-----------. .-----------. .-----------. .-----------. .-----------.
- | 7| 8| 9| | +| -| *| | ^| &| !| |VLU|Ver|WFD| |VLU|NXT|FFD|
+ |7 |8 |9 | |+ |- |* | |^ |& |! | |VLU|Ver|WFD| |VLU|NXT|FFD|
|-----------| |-----------| |-----------| |-----------| |-----------|
- | 4| 5| 6| | /| %| ,| | D| E| F| |MUT|C-W|CHR| |MUT|STP|PLY|
+ |4 |5 |6 | |/ |% |, | |D |E |F | |MUT|C-W|CHR| |MUT|STP|PLY|
|-----------| |-----------| |-----------| |-----------| |-----------|
- | 1| 2| 3| | .| =|Ent| | A| B| C| |VLD|CMP|WBK| |VLD|PRV|RWD|
+ |1 |2 |3 | |. |= |Ent| |A |B |C | |VLD|CMP|WBK| |VLD|PRV|RWD|
|-----------| |-----------| |-----------| |-----------| |-----------|
- |L0 | _L9/0| |L1 | _L9 | |L2 | _L9 | |L3 | _L9 | |L4 | _L9 |
+ |#L0|_L9/0 | |#L1|_L9 | |#L2|_L9 | |#L3|_L9 | |#L4|_L9 |
*-----------* *-----------* *-----------* *-----------* *-----------*
.-----------. .-----------. .-----------. .-----------. .-----------.
| | | | | | | | |MP1| |MP2| | | |RST| |_L6|_L7|_L8|
@@ -17,5 +17,5 @@ make m10a:gam3cat
|-----------| |-----------| |-----------| |-----------| |-----------|
| | | | | | | | |MR1| |MR2| | | | | |_L0|_L1|_L2|
|-----------| |-----------| |-----------| |-----------| |-----------|
- |L5 | _L9 | |L6 | _L9 | |L7 | _L9 | |L8 | _L9 | |L9 | |
+ |#L5|_L9 | |#L6|_L9 | |#L7|_L9 | |#L8|_L9 | |#L9| |
*-----------* *-----------* *-----------* *-----------* *-----------*
diff --git a/keyboards/m10a/keymaps/gam3cat/rules.mk b/keyboards/m10a/keymaps/gam3cat/rules.mk
index 457a3d01d4..00515a31e9 100644
--- a/keyboards/m10a/keymaps/gam3cat/rules.mk
+++ b/keyboards/m10a/keymaps/gam3cat/rules.mk
@@ -1,3 +1,24 @@
-ifndef QUANTUM_DIR
- include ../../../../Makefile
-endif
+# Build Options
+# change to "no" to disable the options, or define them in the Makefile in
+# the appropriate keymap folder that will get included automatically
+#
+TAP_DANCE_ENABLE = no # Enable TapDance functionality
+RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
+BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
+MOUSEKEY_ENABLE = yes # Mouse keys(+1500)
+EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
+CONSOLE_ENABLE = no # Console for debug(+400)
+COMMAND_ENABLE = no # Commands for debug and configuration
+SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
+NKRO_ENABLE = yes # Nkey Rollover - If this doesn't work, add this to config.h: #define FORCE_NKRO
+BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
+MIDI_ENABLE = no # MIDI controls
+UNICODE_ENABLE = no # Unicode
+UNICODEMAP_ENABLE = no # Enable extended unicode
+BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
+AUDIO_ENABLE = no # Audio output on port C6
+FAUXCLICKY_ENABLE = no # Uses buzzer to emulate clicky switches. By default, uses the C6 pin, same as AUDIO_ENABLE.
+#VARIABLE_TRACE = no # Use this to debug changes to variable values
+API_SYSEX_ENABLE = no # This enables using the Quantum SYSEX API to send strings(+5390)
+KEY_LOCK_ENABLE = no # This enables key lock(+260)
+SPLIT_KEYBOARD = no # This enables split keyboard support and includes all necessary files located at quantum/split_common