Skip to content

Instantly share code, notes, and snippets.

@bouzuya
Last active February 20, 2018 02:00
Show Gist options
  • Save bouzuya/38cf85e55fb3a064e9efc49cfec8a6c4 to your computer and use it in GitHub Desktop.
Save bouzuya/38cf85e55fb3a064e9efc49cfec8a6c4 to your computer and use it in GitHub Desktop.
bouzuya's "Let's Split" keymap
#include "lets_split.h"
#include "action_layer.h"
#define L0 0
#define L1 1
#define L2 2
#define L3 3
#define L4 4
enum custom_keycodes {
PLACEHOLDER = SAFE_RANGE
};
#define _______ KC_TRNS
#define XXXXXXX KC_NO
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Layer0
* ,-----------------------------------------------------------------------------------.
* | Q | W | E | R | T |RESET | | Y | U | I | O | P |
* |------+------+------+------+-------------+------+------+------+------+------+------|
* | A | S | D | F | G | | | H | J | K | L | L3 |
* |------+------+------+------+------|------+------+------+------+------+------+------|
* | Z | X | C | V | B | | | N | M | , | . | / |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | | | | Ctrl |Shift |GUI/SP|GUI/SP| L1 | Alt | | | |
* `-----------------------------------------------------------------------------------'
*/
[L0] = KEYMAP( \
KC_Q, KC_W, KC_E, KC_R, KC_T, RESET, XXXXXXX, KC_Y, KC_U, KC_I, KC_O, KC_P, \
KC_A, KC_S, KC_D, KC_F, KC_G, XXXXXXX, XXXXXXX, KC_H, KC_J, KC_K, KC_L, OSL(L3), \
KC_Z, KC_X, KC_C, KC_V, KC_B, XXXXXXX, XXXXXXX, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, \
XXXXXXX, XXXXXXX, XXXXXXX, KC_LCTL, KC_LSFT, GUI_T(KC_SPC), GUI_T(KC_SPC), TO(L1), KC_RALT, XXXXXXX, XXXXXXX, XXXXXXX \
),
/* Layer1
* ,-----------------------------------------------------------------------------------.
* | 1 | 2 | 3 | 4 | 5 | | | 6 | 7 | 8 | 9 | 0 |
* |------+------+------+------+-------------+------+------+------+------+------+------|
* | . | / | * | - | + | | | Left | Down | Up |Right | |
* |------+------+------+------+------|------+------+------+------+------+------+------|
* | | ^ | @ | - | \ | | | ; | : | [ | ] | |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | | | | | L2 | | | | | | | |
* `-----------------------------------------------------------------------------------'
*/
[L1] = KEYMAP( \
KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, \
KC_DOT, KC_SLSH, KC_ASTR, KC_MINS, KC_PLUS, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, \
_______, KC_GRV, KC_AT, KC_MINS, KC_BSLS, _______, _______, KC_SCLN, KC_COLN, KC_LBRC, KC_RBRC, _______, \
_______, _______, _______, _______, TO(L2), _______, _______, _______, _______, _______, _______, _______ \
),
/* Layer2
* ,-----------------------------------------------------------------------------------.
* | ! | " | # | $ | % | | | & | ' | ( | ) | _ |
* |------+------+------+------+-------------+------+------+------+------+------+------|
* | | | | | | | |S+Left|S+Down| S+Up |S+Right| |
* |------+------+------+------+------|------+------+------+------+------+------+------|
* | | ~ | ` | = | | | | | + | * | { | } | |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | | | | | | | | | | | | |
* `-----------------------------------------------------------------------------------'
*/
[L2] = KEYMAP( \
KC_EXLM, KC_DQUO, KC_HASH, KC_DLR, KC_PERC, _______, _______, KC_AMPR, KC_QUOT, KC_LPRN, KC_RPRN, KC_UNDS, \
_______, _______, _______, _______, _______, _______, _______, S(KC_LEFT), S(KC_DOWN), S(KC_UP), S(KC_RGHT), _______, \
_______, KC_TILD, KC_GRV, KC_EQL, KC_PIPE, _______, _______, KC_PLUS, KC_ASTR, KC_LCBR, KC_RCBR, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
),
/* Layer3
* ,-----------------------------------------------------------------------------------.
* | Esc | | End | L4 | |RESET | | | | Tab | | |
* |------+------+------+------+-------------+------+------+------+------+------+------|
* | Home | L1 | Del | L2 | | | | BS | Kana | L0 | Eisu | |
* |------+------+------+------+------|------+------+------+------+------+------+------|
* | | | | | | | | |Enter | | | |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | | | | | | | | | | | | |
* `-----------------------------------------------------------------------------------'
*/
[L3] = KEYMAP( \
KC_ESC, _______, KC_END, OSL(L4), _______, RESET, _______, _______, _______, KC_TAB, _______, _______, \
KC_HOME, TO(L1), KC_DEL, TO(L2), _______, _______, _______, KC_BSPC, KC_LANG1, TO(L0), KC_LANG2, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, KC_ENT, _______, _______, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
),
/* Layer4
* ,-----------------------------------------------------------------------------------.
* | F1 | F2 | F3 | F4 | F5 | | | F6 | F7 | F8 | F9 | F10 |
* |------+------+------+------+-------------+------+------+------+------+------+------|
* | F10 | F12 | F13 | F14 | F15 | | | F16 | F17 | F18 | F19 | F20 |
* |------+------+------+------+------|------+------+------+------+------+------+------|
* | | | | | | | | | | | | |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | | | | | | | | | | | | |
* `-----------------------------------------------------------------------------------'
*/
[L4] = KEYMAP( \
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, \
KC_F10, KC_F12, KC_F13, KC_F14, KC_F15, _______, _______, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
),
};
@bouzuya
Copy link
Author

bouzuya commented Sep 7, 2017

v7

  • L1, L2 を入れ替え
  • mod tap を削減

@bouzuya
Copy link
Author

bouzuya commented Sep 9, 2017

v8

  • JP_* を使用し、 L2 を削除

@bouzuya
Copy link
Author

bouzuya commented Sep 9, 2017

v9

  • L2, L3 を入れ替え
  • L3 から戻れないのを修正

OSL の挙動・制約について調べておく必要がある。確かに Graphical Configurator でも制約があった。

@bouzuya
Copy link
Author

bouzuya commented Sep 10, 2017

v10

  • 記号の配置を ascii table に近い形に変更
  • keymap の整形

#define IGNORE_MOD_TAP_INTERRUPT はメモ。 config に足す。

@bouzuya
Copy link
Author

bouzuya commented Jan 31, 2018

v11

  • SFT -> OSL3
  • GUI/SP -> SFT/SP
  • Alt -> GUI
  • Ln -> TOn/OSLn
  • move reset key
  • add 1 phisical key

@bouzuya
Copy link
Author

bouzuya commented Jan 31, 2018

v12

  • remove 1 phisical key
  • add L4 and L5 (mod key layer)

@bouzuya
Copy link
Author

bouzuya commented Jan 31, 2018

v13

  • sort mod key

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