Fixed hdbx keymaps (#2899)

* Add

* Revert "Add"

This reverts commit 4b10fef88712a63f4a91410410b4c99346fa1b24.

* Add Ergo42 keymaps

for JIS layout

* Fix hdbx keymap for Ergo42

Changed some keys layout and add description.
daktil_thumb_popravljen
hdbx 2018-05-06 02:48:28 +09:00 committed by Drashna Jaelre
parent c9108f4b37
commit 24efce0eca
2 changed files with 35 additions and 35 deletions

View File

@ -1,11 +1,15 @@
// WindowsでJIS配列として認識しているときに、US配列として使うためのキーマップ
// @leopard_gecko さんがPlanck用に作成されたキーマップをかなり参考にしています。
#include "ergo42.h" #include "ergo42.h"
#include "action_layer.h" #include "action_layer.h"
#include "eeconfig.h" #include "eeconfig.h"
#include "keymap_jp.h" // qmk_firmware-master/quantum/keymap_extras/keymap_jp.h 日本語キーボード設定用 #include "keymap_jp.h" // qmk_firmware-master/quantum/keymap_extras/keymap_jp.h 日本語キーボード設定用
#include <sendstring_jis.h> // macro sendstring for jis keyboard マクロ文字列送信時に日本語キーボード設定での文字化け回避 #include <sendstring_jis.h> // macro sendstring for jis keyboard マクロ文字列送信時に日本語キーボード設定での文字化け回避
extern keymap_config_t keymap_config; extern keymap_config_t keymap_config;
// レイヤー
#define _QWERTY 0 #define _QWERTY 0
#define _LOWER 1 #define _LOWER 1
#define _RAISE 2 #define _RAISE 2
@ -13,12 +17,12 @@ extern keymap_config_t keymap_config;
#define _ADJUST 4 #define _ADJUST 4
enum custom_keycodes { enum custom_keycodes {
QWERTY = SAFE_RANGE, QWERTY = SAFE_RANGE, // デフォルトレイヤー用
MCR1, MCR1, // マクロ1
MCR2, MCR2, // マクロ2
MCR3, MCR3, // マクロ3
DYNAMIC_MACRO_RANGE, DYNAMIC_MACRO_RANGE, // ダイナミックマクロ
WN_SCLN, // タップでJISの「:」 シフトでJISの「;」 (Windows) WN_SCLN, // タップでJISの「:」 シフトでJISの「;」 (Windows)
}; };
// Use Dynamic macro // Use Dynamic macro
@ -27,14 +31,14 @@ enum custom_keycodes {
// Fillers to make layering more clear // Fillers to make layering more clear
#define _______ KC_TRNS #define _______ KC_TRNS
#define XXXXXXX KC_NO #define XXXXXXX KC_NO
#define KC_LOWR LT(_LOWER, KC_MHEN) // タップで無変換 ホールドでLower #define KC_LOWR LT(_LOWER, KC_MHEN) // タップで無変換 ホールドでLower
#define KC_RASE LT(_RAISE, KC_HENK) // タップで変換 ホールドでRaise #define KC_RASE LT(_RAISE, KC_HENK) // タップで変換 ホールドでRaise
#define KC_LSLB MT(MOD_LSFT, JP_LBRC) // タップで[ ホールドで左Shift
#define KC_RSRB MT(MOD_RSFT, JP_RBRC) // タップで] ホールドで右Shift
#define KC_ALTB MT(MOD_LALT, KC_TAB) // タップでTAB ホールドで左ALT
#define KC_ESCA LT(_ADJUST,KC_ESC) // タップでESC ホールドでADJUSTレイヤーon
#define CTL_ZH CTL_T(KC_ZKHK) // タップで半角/全角 ホールドで左Control (Windows)
#define KC_ALPS LALT(KC_PSCR) // Alt + PrintScreen #define KC_ALPS LALT(KC_PSCR) // Alt + PrintScreen
#define KC_LSLP MT(MOD_LSFT, JP_LPRN) // タップで( ホールドで左Shift
#define KC_RSRP MT(MOD_RSFT, JP_RPRN) // タップで) ホールドで右Shift
#define KC_ALTB MT(MOD_LALT, KC_TAB) // タップでTAB ホールドで左ALT
#define KC_ESCA LT(_ADJUST,KC_ESC) // タップでESC ホールドでADJUSTレイヤーon
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
@ -42,19 +46,19 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* ,-------------------------------------------------------. ,-------------------------------------------------------. * ,-------------------------------------------------------. ,-------------------------------------------------------.
* |Tab/Alt| Q | W | E | R | T | - | | ~ | Y | U | I | O | P | BSPC | * |Tab/Alt| Q | W | E | R | T | - | | ~ | Y | U | I | O | P | BSPC |
* |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| * |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
* | Ctrl | A | S | D | F | G | [ | | ] | H | J | K | L | : | ' | * |ZH/Ctrl| A | S | D | F | G | ( | | ) | H | J | K | L | : | ' |
* |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| * |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
* | (/Sft | Z | X | C | V | B | F2 | | Home | N | M | , | . | / | )/Sft | * | [/Sft | Z | X | C | V | B | F2 | | Home | N | M | , | . | / | ]/Sft |
* |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| * |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
* | TT | GUI | \ | Esc/ | LOWER | Enter | Del | | End | Space | RAISE | Left | Down | Up | Right | * | TT | GUI | \ | Esc/ | LOWER | Enter | Del | | End | Space | RAISE | Left | Down | Up | Right |
* |(_GAME)| | |_ADJUST| | | | | | | | | | | | * |(_GAME)| | |_ADJUST| | | | | | | | | | | |
* `-------------------------------------------------------' `-------------------------------------------------------' * `-------------------------------------------------------' `-------------------------------------------------------'
*/ */
[_QWERTY] = KEYMAP( \ [_QWERTY] = KEYMAP( \
KC_ALTB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_MINS, JP_TILD, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \ KC_ALTB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_MINS, JP_TILD, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, JP_LBRC, JP_RBRC, KC_H, KC_J, KC_K, KC_L, WN_SCLN, JP_QUOT, \ CTL_ZH, KC_A, KC_S, KC_D, KC_F, KC_G, JP_LPRN, JP_RPRN, KC_H, KC_J, KC_K, KC_L, WN_SCLN, JP_QUOT, \
KC_LSLP, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_F2, KC_HOME, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSRP, \ KC_LSLB, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_F2, KC_HOME, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSRB, \
TT(_GAME),KC_LGUI, JP_YEN, KC_ESCA, KC_LOWR, KC_ENT, KC_DEL, KC_END, KC_SPC, KC_RASE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ TT(_GAME),KC_LGUI, JP_YEN, KC_ESCA, KC_LOWR, KC_ENT, KC_DEL, KC_END, KC_SPC, KC_RASE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
), ),
@ -62,7 +66,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* ,-------------------------------------------------------. ,-------------------------------------------------------. * ,-------------------------------------------------------. ,-------------------------------------------------------.
* |Tab/Alt| 1 | 2 | 3 | 4 | 5 | 6 | | Esc | 7 | 8 | 9 | O | = | BSPC | * |Tab/Alt| 1 | 2 | 3 | 4 | 5 | 6 | | Esc | 7 | 8 | 9 | O | = | BSPC |
* |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| * |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
* | Ctrl | F1 | F2 | F3 | F4 | F5 | F6 | | F2 | 4 | 5 | 6 | - | / | Enter | * |ZH/Ctrl| F1 | F2 | F3 | F4 | F5 | F6 | | F2 | 4 | 5 | 6 | - | / | Enter |
* |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| * |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
* | Shift | F7 | F8 | F9 | F10 | F11 | F12 | | Home | 1 | 2 | 3 | + | * | Shift | * | Shift | F7 | F8 | F9 | F10 | F11 | F12 | | Home | 1 | 2 | 3 | + | * | Shift |
* |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| * |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
@ -81,7 +85,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* ,-------------------------------------------------------. ,-------------------------------------------------------. * ,-------------------------------------------------------. ,-------------------------------------------------------.
* |Tab/Alt| ! | @ | # | $ | % | _ | | ` | ^ | & | Ins | \ |PrntScr| BSPC | * |Tab/Alt| ! | @ | # | $ | % | _ | | ` | ^ | & | Ins | \ |PrntScr| BSPC |
* |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| * |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
* | Ctrl |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| { | | } | Left | Down | Up | Right | ; | " | * |ZH/Ctrl|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| { | | } | Left | Down | Up | Right | ; | " |
* |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| * |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
* | Shift |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| |PageUp |XXXXXXX|XXXXXXX| < | > | ? | Shift | * | Shift |XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX|XXXXXXX| |PageUp |XXXXXXX|XXXXXXX| < | > | ? | Shift |
* |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| * |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
@ -91,9 +95,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_RAISE] = KEYMAP( \ [_RAISE] = KEYMAP( \
_______, KC_EXLM, JP_AT, KC_HASH, KC_DLR, KC_PERC, JP_UNDS, JP_GRV, JP_CIRC, JP_AMPR, KC_INS, JP_YEN, KC_ALPS, _______, \ _______, KC_EXLM, JP_AT, KC_HASH, KC_DLR, KC_PERC, JP_UNDS, JP_GRV, JP_CIRC, JP_AMPR, KC_INS, JP_YEN, KC_ALPS, _______, \
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, JP_LBRC, JP_RBRC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_SCLN, JP_DQT, \ _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, JP_LCBR, JP_RCBR, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_SCLN, JP_DQT, \
KC_LSFT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PGUP, XXXXXXX, XXXXXXX, KC_LT, KC_GT, KC_QUES, KC_RSFT, \ KC_LSFT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PGUP, XXXXXXX, XXXXXXX, KC_LT, KC_GT, KC_QUES, KC_RSFT, \
_______, _______, KC_PIPE, KC_ESC, XXXXXXX, _______, _______, KC_PGDN, _______, _______, _______, _______, _______, _______ \ _______, _______, JP_PIPE, KC_ESC, XXXXXXX, _______, _______, KC_PGDN, _______, _______, _______, _______, _______, _______ \
), ),
/* GAME /* GAME
@ -151,7 +155,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
} }
return false; return false;
break; break;
case WN_SCLN: // コロン「;:」 case WN_SCLN: // コロン「;:」
if (record->event.pressed) { if (record->event.pressed) {
lshift = keyboard_report->mods & MOD_BIT(KC_LSFT); lshift = keyboard_report->mods & MOD_BIT(KC_LSFT);
if (lshift) { if (lshift) {
@ -167,19 +171,19 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break; break;
case MCR1: case MCR1:
if (record->event.pressed) { if (record->event.pressed) {
SEND_STRING("hogehoge"); // 送信文字列 SEND_STRING("hogehoge"); // 送信文字列
} }
return false; return false;
break; break;
case MCR2: case MCR2:
if (record->event.pressed) { if (record->event.pressed) {
SEND_STRING("hogehogehoge"SS_TAP(X_ENTER)); // 送信文字列 SEND_STRING("hogehogehoge"SS_TAP(X_ENTER)); // 送信文字列
} }
return false; return false;
break; break;
case MCR3: case MCR3:
if (record->event.pressed) { if (record->event.pressed) {
SEND_STRING("hoge@hoge.co.jp"); // 送信文字列 SEND_STRING("hoge@hoge.co.jp"); // 送信文字列
} }
return false; return false;
break; break;

View File

@ -9,14 +9,13 @@ QWERTY
,-------------------------------------------------------. ,-------------------------------------------------------. ,-------------------------------------------------------. ,-------------------------------------------------------.
|Tab/Alt| Q | W | E | R | T | - | | ~ | Y | U | I | O | P | BSPC | |Tab/Alt| Q | W | E | R | T | - | | ~ | Y | U | I | O | P | BSPC |
|-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
| Ctrl | A | S | D | F | G | [ | | ] | H | J | K | L | : | ' | |ZH/Ctrl| A | S | D | F | G | ( | | ) | H | J | K | L | : | ' |
|-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
| (/Sft | Z | X | C | V | B | F2 | | Home | N | M | , | . | / | )/Sft | | [/Sft | Z | X | C | V | B | F2 | | Home | N | M | , | . | / | ]/Sft |
|-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
| TT | GUI | \ | Esc/ | LOWER | Enter | Del | | End | Space | RAISE | Left | Down | Up | Right | | TT | GUI | \ | Esc/ | LOWER | Enter | Del | | End | Space | RAISE | Left | Down | Up | Right |
|(_GAME)| | |_ADJUST| –³•ÏŠ·| | | | | | •ÏŠ· | | | | | |(_GAME)| | |_ADJUST| –³•ÏŠ·| | | | | | •ÏŠ· | | | | |
`-------------------------------------------------------' `-------------------------------------------------------' `-------------------------------------------------------' `-------------------------------------------------------'
*/
LOWER LOWER
,-------------------------------------------------------. ,-------------------------------------------------------. ,-------------------------------------------------------. ,-------------------------------------------------------.
@ -28,7 +27,6 @@ LOWER
|-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
|XXXXXXX| GUI |XXXXXXX| Esc | | Enter | Del | | End | 0 | . | Left | Down | Up | Right | |XXXXXXX| GUI |XXXXXXX| Esc | | Enter | Del | | End | 0 | . | Left | Down | Up | Right |
`-------------------------------------------------------' `-------------------------------------------------------' `-------------------------------------------------------' `-------------------------------------------------------'
*/
RAISE RAISE
,-------------------------------------------------------. ,-------------------------------------------------------. ,-------------------------------------------------------. ,-------------------------------------------------------.
@ -40,7 +38,6 @@ RAISE
|-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
|XXXXXXX| GUI | | | Esc |XXXXXXX| Enter | Del | |PageDwn| Space | | Left | Down | Up | Right | |XXXXXXX| GUI | | | Esc |XXXXXXX| Enter | Del | |PageDwn| Space | | Left | Down | Up | Right |
`-------------------------------------------------------' `-------------------------------------------------------' `-------------------------------------------------------' `-------------------------------------------------------'
*/
GAME GAME
,-------------------------------------------------------. ,-------------------------------------------------------. ,-------------------------------------------------------. ,-------------------------------------------------------.
@ -52,7 +49,6 @@ GAME
|-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------| |-------+-------+-------+-------+-------+-------+-------|
| | GUI | Tab | Alt | Space | Enter | Del | |PageDwn| Space |XXXXXXX| Left | Down | Up | Right | | | GUI | Tab | Alt | Space | Enter | Del | |PageDwn| Space |XXXXXXX| Left | Down | Up | Right |
`-------------------------------------------------------' `-------------------------------------------------------' `-------------------------------------------------------' `-------------------------------------------------------'
*/
ADJUST ADJUST
,-------------------------------------------------------. ,-------------------------------------------------------. ,-------------------------------------------------------. ,-------------------------------------------------------.