mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-23 00:47:02 +06:00
d8183c5249
* [miryoku] Revert "[Keymap] manna-harbour_miryoku RESET to QK_BOOT (#18755)"
This reverts commit 89dbc18161
.
* [miryoku] Add keyboardio/model01
* [miryoku] Add handwired/dactyl_manuform/4x6
* [miryoku] Update BT keycodes
- Update BT keycodes on Media inner index:
- Move OUT_AUTO to bottom row
- Move RGB_TOG in vi to pinkie column to match other TOG keycodes, and rotate row
* [miryoku] Add Extra and Tap layers
* [miryoku] Rename config workflow option to custom_config
* [miryoku] Update custom_config.h and custom_rules.mk behaviour
* [miryoku] Make mapping macro customisable globally and per layer
* [miryoku] Add layer lock
* [miryoku] Update RGB order in media-l-invertedt
* [miryoku] Change mouse button order
* [miryoku] Change to X macros for layer list
- Supports adding and removing layers from custom_config.h
- Add "U_" prefix to layer names
- Add layer name strings
- Populate keymaps array from X macro
- Populate layers enum from X macro
- Move layers enum to manna-harbour_miryoku.h
- Rename miryoku_alternatives.h to miryoku_layer_alternatives.h
- Rename miryoku_layer.h to miryoku_layer_selection.h
- Remove miryoku_layer_names.h
- Add miryoku_layer_list.h
* [miryoku] Reformat split_3x6_3 mapping
* [miryoku] Add merge field to workflows
* [miryoku] Update thumb combos with new layer names
* [miryoku] Update cover image
* [miryoku] Add satt/vision
* [miryoku] Update Branches and Building docs
* [miryoku] Update reset keycode
* [miryoku] Add xmk
* [miryoku] Add boardsource/lulu
* [miryoku] Fix keyboardio/model01
52 lines
1.8 KiB
C
52 lines
1.8 KiB
C
// Copyright 2022 Manna Harbour
|
|
// https://github.com/manna-harbour/miryoku
|
|
|
|
// 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
|
|
|
|
#include "miryoku_babel/miryoku_layer_selection.h"
|
|
#include "miryoku_babel/miryoku_layer_list.h"
|
|
|
|
enum miryoku_layers {
|
|
#define MIRYOKU_X(LAYER, STRING) U_##LAYER,
|
|
MIRYOKU_LAYER_LIST
|
|
#undef MIRYOKU_X
|
|
};
|
|
|
|
#define U_MACRO_VA_ARGS(macro, ...) macro(__VA_ARGS__)
|
|
|
|
#if !defined (MIRYOKU_MAPPING)
|
|
#define MIRYOKU_MAPPING LAYOUT_miryoku
|
|
#endif
|
|
|
|
#define U_NP KC_NO // key is not present
|
|
#define U_NA KC_NO // present but not available for use
|
|
#define U_NU KC_NO // available but not used
|
|
|
|
#if defined (MIRYOKU_CLIPBOARD_FUN)
|
|
#define U_RDO KC_AGIN
|
|
#define U_PST KC_PSTE
|
|
#define U_CPY KC_COPY
|
|
#define U_CUT KC_CUT
|
|
#define U_UND KC_UNDO
|
|
#elif defined (MIRYOKU_CLIPBOARD_MAC)
|
|
#define U_RDO SCMD(KC_Z)
|
|
#define U_PST LCMD(KC_V)
|
|
#define U_CPY LCMD(KC_C)
|
|
#define U_CUT LCMD(KC_X)
|
|
#define U_UND LCMD(KC_Z)
|
|
#elif defined (MIRYOKU_CLIPBOARD_WIN)
|
|
#define U_RDO C(KC_Y)
|
|
#define U_PST C(KC_V)
|
|
#define U_CPY C(KC_C)
|
|
#define U_CUT C(KC_X)
|
|
#define U_UND C(KC_Z)
|
|
#else
|
|
#define U_RDO KC_AGIN
|
|
#define U_PST S(KC_INS)
|
|
#define U_CPY C(KC_INS)
|
|
#define U_CUT S(KC_DEL)
|
|
#define U_UND KC_UNDO
|
|
#endif
|