1
0
Fork 0

Keymap: add Interrobang (#4420)

* remove clmk and dvrk and backlight; switch esc and enter to be modtap; add meh key

* change songs

* space cadet; move enter; move '"; move pgup pgdn

* remove extra songs

* update from noahfredrick keymap

* make it easier to type ../../thing/*/*

* move pipe

* requested changes

* add interrobang support

* add shift-insert to raise-v and lower-v, move pipe to raise-/lower-n
This commit is contained in:
mwpeterson 2018-11-26 12:26:26 -05:00 committed by Drashna Jaelre
parent 8bc19c8dcf
commit 97ab3211e2
2 changed files with 29 additions and 11 deletions

View file

@ -35,6 +35,19 @@ enum planck_layers {
#define WM_W LALT(LGUI(KC_LEFT)) #define WM_W LALT(LGUI(KC_LEFT))
#define WM_CNTR LALT(LGUI(KC_C)) #define WM_CNTR LALT(LGUI(KC_C))
#define SFT_INS LSFT(KC_INS)
// Unicode
#ifdef UNICODEMAP_ENABLE
enum unicode_name {
IBANG // ‽
};
const uint32_t PROGMEM unicode_map[] = {
[IBANG] = 0x0203D // ‽
};
#endif // UNICODEMAP_ENABLE
// Custom key codes // Custom key codes
enum planck_keycodes { enum planck_keycodes {
QWERTY = SAFE_RANGE, QWERTY = SAFE_RANGE,
@ -81,7 +94,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* window * window
* switcher 1 2 3 4 5 6 7 8 9 0 * switcher 1 2 3 4 5 6 7 8 9 0
* *
* - + ` | : , . \ * - + ` SFTIN : | , . \
* *
* Backspace * Backspace
* *
@ -89,7 +102,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[LOWER_LAYER] = LAYOUT_planck_grid( [LOWER_LAYER] = LAYOUT_planck_grid(
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, S(KC_3), KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, S(KC_3),
_______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
_______, KC_MINS, KC_PLUS, KC_GRV, KC_PIPE, KC_COLN, XXXXXXX, XXXXXXX, KC_COMM, KC_DOT, KC_BSLS, _______, _______, KC_MINS, KC_PLUS, KC_GRV, SFT_INS, KC_COLN, KC_PIPE, X(IBANG), KC_COMM, KC_DOT, KC_BSLS, _______,
_______, _______, _______, _______, _______, KC_BSPC, KC_BSPC, _______, _______, _______, _______, _______ _______, _______, _______, _______, _______, KC_BSPC, KC_BSPC, _______, _______, _______, _______, _______
), ),
@ -99,7 +112,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* *
* ! @ # $ % ^ & * ' " │ │ \ * ! @ # $ % ^ & * ' " │ │ \
* |-- Mostly shifted version * |-- Mostly shifted version
* _ = ~ | : , . / / of lower layer * _ = ~ SFTIN : | , . / / of lower layer
* *
* Delete * Delete
* *
@ -107,7 +120,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[RAISE_LAYER] = LAYOUT_planck_grid( [RAISE_LAYER] = LAYOUT_planck_grid(
S(KC_GRV), KC_F11, KC_F12, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, S(KC_3), S(KC_GRV), KC_F11, KC_F12, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, S(KC_3),
_______, S(KC_1), S(KC_2), S(KC_3), S(KC_4), S(KC_5), S(KC_6), S(KC_7), S(KC_8), KC_QUOT, S(KC_QUOT), _______, _______, S(KC_1), S(KC_2), S(KC_3), S(KC_4), S(KC_5), S(KC_6), S(KC_7), S(KC_8), KC_QUOT, S(KC_QUOT), _______,
_______, KC_UNDS, KC_EQL, KC_TILD, KC_PIPE, KC_COLN, XXXXXXX, XXXXXXX, KC_COMM, KC_DOT, KC_SLSH, _______, _______, KC_UNDS, KC_EQL, KC_TILD, SFT_INS, KC_COLN, KC_PIPE, XXXXXXX, KC_COMM, KC_DOT, KC_SLSH, _______,
_______, _______, _______, _______, _______, KC_DEL, KC_DEL, _______, _______, _______, _______, _______ _______, _______, _______, _______, _______, KC_DEL, KC_DEL, _______, _______, _______, _______, _______
), ),
@ -241,6 +254,10 @@ void plover_lookup(void) {
unregister_code(PV_RG); unregister_code(PV_RG);
} }
void matrix_init_user(void) {
set_unicode_input_mode(UC_LNX);
};
uint32_t layer_state_set_user(uint32_t state) { uint32_t layer_state_set_user(uint32_t state) {
return update_tri_layer_state(state, LOWER_LAYER, RAISE_LAYER, ADJUST_LAYER); return update_tri_layer_state(state, LOWER_LAYER, RAISE_LAYER, ADJUST_LAYER);
} }

View file

@ -4,3 +4,4 @@ COMMAND_ENABLE = no # Disable shift combination, which conflicts with shift-
MOUSEKEY_ENABLE = yes # Mouse keys (disabled to save space) MOUSEKEY_ENABLE = yes # Mouse keys (disabled to save space)
NKRO_ENABLE = no # N-key rollover required for use as a steno board NKRO_ENABLE = no # N-key rollover required for use as a steno board
AUDIO_ENABLE = yes # Audio output on port C6 AUDIO_ENABLE = yes # Audio output on port C6
UNICODEMAP_ENABLE = yes # Enable extended unicode