forked from mirrors/qmk_userspace
Tidy 40percentclub boards (#4403)
* Remove unnecessary re-definitions for XXXXXXX and _______ * Update 6lit to use KC_NO in layout macros * Update rules.mk to follow current template * Remove use of deprecated function action_get_macro - unused and contents were from old template * Remove use of deprecated function action_get_macro - all code was commented out * Remove use of deprecated function action_get_macro - convert macro to use process_record_user * Convert keymap to consistent use of _______ * fix use of old style header guards * Swap KC_NO for XXXXXXX macro since the swap to the macro for KC_TRANS * Resolve use of ?= in rules.mk files * Remove duplication of rules.mk and config.h in gherkin mjt keymap * Remove unnecessary #includes * Align layout macros so foobar can use gherkin keymaps * Align 6lit layout macros with foobar * Remove ifndef QUANTUM_DIR from keymaps
This commit is contained in:
parent
746005acba
commit
b173c05cc2
56 changed files with 299 additions and 617 deletions
|
@ -12,10 +12,9 @@ enum custom_keycodes {
|
|||
PS = SAFE_RANGE,
|
||||
AI,
|
||||
PR,
|
||||
MACRO_0,
|
||||
};
|
||||
|
||||
#define _______ KC_TRNS
|
||||
|
||||
#define PS TO(0)
|
||||
#define AI TO(1)
|
||||
#define PR TO(2)
|
||||
|
@ -72,7 +71,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
|
||||
// Illustrator layer
|
||||
[_AI] = LAYOUT_ortho_3x10(
|
||||
_______, M(0), RULER, _______, KC_G, _______, _______, KC_Q, KC_MINS, KC_PLUS,
|
||||
_______, MACRO_0, RULER, _______, KC_G, _______, _______, KC_Q, KC_MINS, KC_PLUS,
|
||||
_______, _______, _______, KC_E, _______, _______, _______, SHAPE, KC_O, OPEN,
|
||||
_______, _______, _______, _______, _______, _______, _______, KC_M, KC_SLSH, PR
|
||||
),
|
||||
|
@ -133,20 +132,14 @@ void matrix_scan_user(void) {
|
|||
#endif
|
||||
}
|
||||
|
||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||
keyevent_t event = record->event;
|
||||
(void)event;
|
||||
|
||||
switch (id) {
|
||||
case 0:
|
||||
// Save for Web Macro.
|
||||
return MACRO(D(LSFT), D(LALT), D(LCTL), T(S), U(LCTL), U(LALT), U(LSFT), END);
|
||||
}
|
||||
return MACRO_NONE;
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (record->event.pressed) {
|
||||
switch(keycode) {
|
||||
case MACRO_0:
|
||||
// Save for Web Macro.
|
||||
SEND_STRING(SS_LSFT(SS_LALT(SS_LCTRL("s"))));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue