Skip to content

Instantly share code, notes, and snippets.

@bouzuya
Last active September 9, 2019 09:26
Show Gist options
  • Save bouzuya/cb95efa40691ab8a556ddd487ac87346 to your computer and use it in GitHub Desktop.
Save bouzuya/cb95efa40691ab8a556ddd487ac87346 to your computer and use it in GitHub Desktop.
ErgoDox EZ bouzuya v23
#include "ergodox.h"
#include "action_layer.h"
#include "keymap_jp.h"
#define L0 0
#define L1 1
#define L2 2
#define L3 3
enum custom_keycodes {
PLACEHOLDER = SAFE_RANGE
};
#define _______ KC_TRNS
#define XXXXXXX KC_NO
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[L0] = KEYMAP(
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
XXXXXXX, KC_Q, KC_W, KC_E, KC_R, KC_T, XXXXXXX,
XXXXXXX, KC_A, KC_S, KC_D, KC_F, KC_G,
XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, XXXXXXX,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LCTL,
XXXXXXX, XXXXXXX,
XXXXXXX,
KC_LSFT, GUI_T(KC_SPC), XXXXXXX,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
XXXXXXX, KC_Y, KC_U, KC_I, KC_O, KC_P, XXXXXXX,
KC_H, KC_J, KC_K, KC_L, OSL(L2), XXXXXXX,
XXXXXXX, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, XXXXXXX,
KC_RALT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
XXXXXXX, XXXXXXX,
XXXXXXX,
XXXXXXX, GUI_T(KC_SPC), TO(L1)),
[L1] = KEYMAP(
_______, _______, _______, _______, _______, _______, _______,
_______, KC_1, KC_2, KC_3, KC_4, KC_5, _______,
_______, JP_DOT, JP_SLSH, JP_ASTR, JP_MINS, JP_PLUS,
_______, _______, JP_CIRC, JP_AT, JP_MINS, LALT(JP_YEN), _______,
_______, _______, _______, _______, _______,
_______, RESET,
_______,
_______, _______, _______,
_______, _______, _______, _______, _______, _______, _______,
_______, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______,
_______, JP_SCLN, JP_COLN, JP_LBRC, JP_RBRC, _______, _______,
_______, _______, _______, _______, _______,
RESET, _______,
_______,
_______, _______, _______),
[L2] = KEYMAP(
_______, _______, _______, _______, _______, _______, _______,
_______, KC_ESC, _______, KC_END, OSL(L3), _______, _______,
_______, KC_HOME, TO(L1), KC_DEL, _______, _______,
_______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______,
_______,
_______, _______, _______,
_______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, KC_TAB, _______, _______, _______,
KC_BSPC, KC_LANG1, TO(L0), KC_LANG2, _______, _______,
_______, _______, KC_ENT, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______,
_______,
_______, _______, _______),
[L3] = KEYMAP(
_______, _______, _______, _______, _______, _______, _______,
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______,
_______, KC_F11, KC_F12, KC_F13, KC_F14, KC_F15,
_______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______,
_______,
_______, _______, _______,
_______, _______, _______, _______, _______, _______, _______,
_______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,
KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, _______,
_______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______,
_______,
_______, _______, _______)};
void matrix_scan_user(void)
{
uint8_t layer = biton32(layer_state);
ergodox_board_led_off();
ergodox_right_led_1_off();
ergodox_right_led_2_off();
ergodox_right_led_3_off();
switch (layer)
{
case 1:
ergodox_right_led_1_on();
break;
case 2:
ergodox_right_led_2_on();
break;
case 3:
ergodox_right_led_3_on();
break;
case 4:
ergodox_right_led_1_on();
ergodox_right_led_2_on();
break;
case 5:
ergodox_right_led_1_on();
ergodox_right_led_3_on();
break;
case 6:
ergodox_right_led_2_on();
ergodox_right_led_3_on();
break;
case 7:
ergodox_right_led_1_on();
ergodox_right_led_2_on();
ergodox_right_led_3_on();
break;
default:
break;
}
}
@bouzuya
Copy link
Author

bouzuya commented Sep 6, 2017

v18

https://gist.github.com/bouzuya/cb95efa40691ab8a556ddd487ac87346/7eb8a88afe4ae26c31c61e92269d61423e2007ea

  • バックスラッシュが入力できないのを修正

v19

https://gist.github.com/bouzuya/cb95efa40691ab8a556ddd487ac87346/cded3376c2859129857bb89b519d2a5596d18229

  • mod tap を A (ctrl), L2 . (ctrl), Z (shift), / (shift), space (gui) に導入
  • 4 行目の shift を削除
  • 親指に space (gui) を追加
  • alt の位置を移動
  • L4 を L0 から L3 に移動

@bouzuya
Copy link
Author

bouzuya commented Sep 7, 2017

v20

https://gist.github.com/bouzuya/cb95efa40691ab8a556ddd487ac87346/0843faf14035168e9bd5994b0dd870524957ab9f

  • L1, L2 を入れ替え
  • mod tap を削減
  • let's split v7 に同期

@bouzuya
Copy link
Author

bouzuya commented Sep 8, 2017

@bouzuya
Copy link
Author

bouzuya commented Sep 8, 2017

@bouzuya
Copy link
Author

bouzuya commented Sep 10, 2017

v23

  • Let's Split v10 と同期

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment