diff options
| author | jotix <47826561+jotix@users.noreply.github.com> | 2019-08-01 13:51:51 -0300 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-08-01 09:51:51 -0700 |
| commit | ac20e7e3f2dd60f2f7c3823362f0b1ba985a63b0 (patch) | |
| tree | 8a43385725831b7423f32ac83e23f472f0d8bb7d /layouts | |
| parent | a2d61d76fa840eecf20480f317397b23be6b93de (diff) | |
| download | qmk_firmware-ac20e7e3f2dd60f2f7c3823362f0b1ba985a63b0.tar.gz qmk_firmware-ac20e7e3f2dd60f2f7c3823362f0b1ba985a63b0.zip | |
[Keymap] jotix ortho_4x12_layout (#6458)
* jotix ortho_4x12_layout
* jotix ortho_4x12_layout
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/community/ortho_4x12/jotix/keymap.c | 44 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/jotix/unicode.c | 23 |
2 files changed, 49 insertions, 18 deletions
diff --git a/layouts/community/ortho_4x12/jotix/keymap.c b/layouts/community/ortho_4x12/jotix/keymap.c index d1e8b3958..b61cf3e06 100644 --- a/layouts/community/ortho_4x12/jotix/keymap.c +++ b/layouts/community/ortho_4x12/jotix/keymap.c | |||
| @@ -3,17 +3,18 @@ | |||
| 3 | 3 | ||
| 4 | enum layers { | 4 | enum layers { |
| 5 | _QWERTY, | 5 | _QWERTY, |
| 6 | _FN, | ||
| 6 | _LOWER, | 7 | _LOWER, |
| 7 | _RAISE, | 8 | _RAISE, |
| 8 | _UNI_LCK | 9 | _UNICODE |
| 9 | }; | 10 | }; |
| 10 | 11 | ||
| 12 | #define FN MO(_FN) | ||
| 11 | #define LOWER MO(_LOWER) | 13 | #define LOWER MO(_LOWER) |
| 12 | #define RAISE MO(_RAISE) | 14 | #define RAISE MO(_RAISE) |
| 13 | #define UNI_LCK MO(_UNI_LCK) | 15 | #define UNICODE MO(_UNICODE) |
| 14 | #define TGLOWER TG(_LOWER) | 16 | #define TGLOWER TG(_LOWER) |
| 15 | #define TGRAISE TG(_RAISE) | 17 | #define TGRAISE TG(_RAISE) |
| 16 | #define SHRAISE LM(_RAISE, MOD_LSFT) | ||
| 17 | 18 | ||
| 18 | static bool is_ctl_pressed; | 19 | static bool is_ctl_pressed; |
| 19 | static bool is_esc_pressed; | 20 | static bool is_esc_pressed; |
| @@ -29,19 +30,31 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 29 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | 30 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ |
| 30 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M ,KC_COMM, KC_DOT, KC_UP ,KC_SLSH, | 31 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M ,KC_COMM, KC_DOT, KC_UP ,KC_SLSH, |
| 31 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | 32 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ |
| 32 | KC_LCTL,KC_LGUI,KC_LALT,UNI_LCK, LOWER , KC_SPC, KC_SPC, RAISE ,SHRAISE,KC_LEFT,KC_DOWN,KC_RGHT | 33 | KC_LCTL,KC_LGUI,KC_LALT, FN , LOWER , KC_SPC, KC_SPC, RAISE ,UNICODE,KC_LEFT,KC_DOWN,KC_RGHT |
| 33 | // └───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┘ | 34 | // └───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┘ |
| 34 | ), | 35 | ), |
| 35 | 36 | ||
| 37 | [_FN] = LAYOUT_ortho_4x12 ( | ||
| 38 | // ┌───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┐ | ||
| 39 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 ,_______,_______,_______,_______,_______,_______,_______, | ||
| 40 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | ||
| 41 | _______, KC_F5 , KC_F6 , KC_F7 , KC_F8 ,_______,_______,_______,_______,_______,_______,_______, | ||
| 42 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | ||
| 43 | _______, KC_F9 , KC_F10, KC_F11, KC_F12,_______,_______,_______,_______,_______,KC_PGUP,_______, | ||
| 44 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | ||
| 45 | _______,_______,_______,_______,TGLOWER,_______,_______,TGRAISE,_______,KC_HOME,KC_PGDN, KC_END | ||
| 46 | // └───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┘ | ||
| 47 | ), | ||
| 48 | |||
| 36 | [_LOWER] = LAYOUT_ortho_4x12 ( | 49 | [_LOWER] = LAYOUT_ortho_4x12 ( |
| 37 | // ┌───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┐ | 50 | // ┌───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┐ |
| 38 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 ,_______, KC_INS, KC_P7 , KC_P8 , KC_P9 ,KC_PMNS,_______, | 51 | _______, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 ,_______, |
| 39 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | 52 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ |
| 40 | _______, KC_F5 , KC_F6 , KC_F7 , KC_F8 ,KC_HOME,KC_PGUP, KC_P4 , KC_P5 , KC_P6 ,KC_PPLS,KC_PENT, | 53 | _______,KC_VOLD,KC_MUTE,KC_VOLU,KC_HOME,KC_PGUP,KC_LBRC,KC_RBRC,KC_BSLS,KC_QUOT,_______,_______, |
| 41 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | 54 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ |
| 42 | _______, KC_F9 , KC_F10, KC_F11, KC_F12, KC_END,KC_PGDN, KC_P1 , KC_P2 , KC_P3 ,KC_PAST,KC_PSLS, | 55 | _______,KC_MPRV,KC_MPLY,KC_MNXT, KC_END,KC_PGDN,KC_MINS, KC_EQL,_______,_______,_______,_______, |
| 43 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | 56 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ |
| 44 | _______,_______,_______,_______,_______,_______,_______,_______, KC_P0 ,KC_PDOT,KC_LPRN,KC_RPRN | 57 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______ |
| 45 | // └───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┘ | 58 | // └───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┘ |
| 46 | ), | 59 | ), |
| 47 | 60 | ||
| @@ -49,7 +62,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 49 | // ┌───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┐ | 62 | // ┌───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┐ |
| 50 | KC_GRV, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_DEL, | 63 | KC_GRV, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_DEL, |
| 51 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | 64 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ |
| 52 | KC_CAPS,_______,_______,_______,_______,_______,KC_LBRC,KC_RBRC,KC_BSLS,KC_QUOT,_______,_______, | 65 | _______,_______,_______,_______,_______,_______,KC_LBRC,KC_RBRC,KC_BSLS,KC_QUOT,_______,_______, |
| 53 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | 66 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ |
| 54 | _______,_______,_______,_______,_______,_______,KC_MINS, KC_EQL,_______,_______,KC_VOLU,_______, | 67 | _______,_______,_______,_______,_______,_______,KC_MINS, KC_EQL,_______,_______,KC_VOLU,_______, |
| 55 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | 68 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ |
| @@ -57,15 +70,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 57 | // └───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┘ | 70 | // └───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┘ |
| 58 | ), | 71 | ), |
| 59 | 72 | ||
| 60 | [_UNI_LCK] = LAYOUT_ortho_4x12 ( | 73 | [_UNICODE] = LAYOUT_ortho_4x12 ( |
| 61 | // ┌───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┐ | 74 | // ┌───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┬───────┐ |
| 62 | UN_ESC, UN_Q , UN_W , UN_E , UN_R , UN_T , UN_Y , UN_U , UN_I , UN_O , UN_P ,_______, | 75 | UN_ESC, UN_Q , UN_W , UN_E , UN_R , UN_T , UN_Y , UN_U , UN_I , UN_O , UN_P ,UN_BSPC, |
| 63 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | 76 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ |
| 64 | _______, UN_A , UN_S , UN_D , UN_F , UN_G , UN_H , UN_J , UN_K , UN_L ,UN_SCLN,_______, | 77 | UN_TAB, UN_A , UN_S , UN_D , UN_F , UN_G , UN_H , UN_J , UN_K , UN_L ,UN_SCLN, UN_ENT, |
| 65 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | 78 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ |
| 66 | _______, UN_Z , UN_X , UN_C , UN_V , UN_B , UN_N , UN_M ,UN_COMM, UN_DOT, UN_UP ,UN_SLSH, | 79 | _______, UN_Z , UN_X , UN_C , UN_V , UN_B , UN_N , UN_M ,UN_COMM, UN_DOT, UN_UP ,UN_SLSH, |
| 67 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ | 80 | // ├───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┼───────┤ |
| 68 | UC_M_LN,UC_M_WI,UC_M_OS,_______,TGLOWER,_______,_______,TGRAISE,_______,UN_LEFT,UN_DOWN,UN_RGHT | 81 | UC_M_LN,UC_M_WI,UC_M_OS,_______,_______,_______,_______,_______,_______,UN_DOWN, UN_UP ,UN_RGHT |
| 69 | // └───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┘ | 82 | // └───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┴───────┘ |
| 70 | ), | 83 | ), |
| 71 | 84 | ||
| @@ -82,7 +95,7 @@ uint32_t layer_state_set_user(uint32_t state) { | |||
| 82 | writePinLow(JOTANCK_LED1); | 95 | writePinLow(JOTANCK_LED1); |
| 83 | writePinHigh(JOTANCK_LED2); | 96 | writePinHigh(JOTANCK_LED2); |
| 84 | break; | 97 | break; |
| 85 | case _UNI_LCK: | 98 | case _FN: |
| 86 | writePinHigh(JOTANCK_LED1); | 99 | writePinHigh(JOTANCK_LED1); |
| 87 | writePinHigh(JOTANCK_LED2); | 100 | writePinHigh(JOTANCK_LED2); |
| 88 | break; | 101 | break; |
| @@ -95,11 +108,13 @@ uint32_t layer_state_set_user(uint32_t state) { | |||
| 95 | return state; | 108 | return state; |
| 96 | } | 109 | } |
| 97 | 110 | ||
| 111 | /* | ||
| 98 | void led_set_user(uint8_t usb_led) { | 112 | void led_set_user(uint8_t usb_led) { |
| 99 | if (!(IS_LED_ON(usb_led, USB_LED_NUM_LOCK))) { | 113 | if (!(IS_LED_ON(usb_led, USB_LED_NUM_LOCK))) { |
| 100 | tap_code(KC_NUMLOCK); | 114 | tap_code(KC_NUMLOCK); |
| 101 | } | 115 | } |
| 102 | } | 116 | } |
| 117 | */ | ||
| 103 | 118 | ||
| 104 | void keyboard_post_init_user(void) { | 119 | void keyboard_post_init_user(void) { |
| 105 | set_unicode_input_mode(UC_LNX); | 120 | set_unicode_input_mode(UC_LNX); |
| @@ -119,6 +134,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 119 | }; | 134 | }; |
| 120 | return true; | 135 | return true; |
| 121 | } | 136 | } |
| 137 | |||
| 122 | void matrix_scan_user(void) { | 138 | void matrix_scan_user(void) { |
| 123 | if (is_ctl_pressed && is_esc_pressed && is_bspc_pressed) { | 139 | if (is_ctl_pressed && is_esc_pressed && is_bspc_pressed) { |
| 124 | reset_keyboard(); | 140 | reset_keyboard(); |
diff --git a/layouts/community/ortho_4x12/jotix/unicode.c b/layouts/community/ortho_4x12/jotix/unicode.c index eaa0da1ac..1935d3a72 100644 --- a/layouts/community/ortho_4x12/jotix/unicode.c +++ b/layouts/community/ortho_4x12/jotix/unicode.c | |||
| @@ -71,6 +71,12 @@ enum unicode_names { | |||
| 71 | TREBOL_SUIT, | 71 | TREBOL_SUIT, |
| 72 | HEART_SUIT, | 72 | HEART_SUIT, |
| 73 | DIAMOND_SUIT, | 73 | DIAMOND_SUIT, |
| 74 | NARRAY_SUM, | ||
| 75 | INFINIT_SYMBOL, | ||
| 76 | DIAMOND_BULLET, | ||
| 77 | CIRCLE_BULLET, | ||
| 78 | SMILE_FACE, | ||
| 79 | SAD_FACE | ||
| 74 | }; | 80 | }; |
| 75 | 81 | ||
| 76 | const uint32_t PROGMEM unicode_map[] = { | 82 | const uint32_t PROGMEM unicode_map[] = { |
| @@ -142,10 +148,16 @@ const uint32_t PROGMEM unicode_map[] = { | |||
| 142 | [DIVISION] = 0x00F7, | 148 | [DIVISION] = 0x00F7, |
| 143 | [SQUARE_ROOT] = 0x221A, | 149 | [SQUARE_ROOT] = 0x221A, |
| 144 | [CUBE_ROOT] = 0x221B, | 150 | [CUBE_ROOT] = 0x221B, |
| 145 | [SPADE_SUIT] = 0x2660, | 151 | [SPADE_SUIT] = 0x2660, |
| 146 | [TREBOL_SUIT] = 0x2663, | 152 | [TREBOL_SUIT] = 0x2663, |
| 147 | [HEART_SUIT] = 0x2664, | 153 | [HEART_SUIT] = 0x2664, |
| 148 | [DIAMOND_SUIT] = 0x2665 | 154 | [DIAMOND_SUIT] = 0x2665, |
| 155 | [NARRAY_SUM] = 0x2211, | ||
| 156 | [INFINIT_SYMBOL]= 0x221E, | ||
| 157 | [DIAMOND_BULLET]= 0x2B25, | ||
| 158 | [CIRCLE_BULLET] = 0x2981, | ||
| 159 | [SMILE_FACE] = 0x263A, | ||
| 160 | [SAD_FACE] = 0x2639 | ||
| 149 | }; | 161 | }; |
| 150 | 162 | ||
| 151 | #define UN_ESC XP(DEGREE, DEGREE_CELCIUS) | 163 | #define UN_ESC XP(DEGREE, DEGREE_CELCIUS) |
| @@ -159,6 +171,8 @@ const uint32_t PROGMEM unicode_map[] = { | |||
| 159 | #define UN_I XP(I_ACUTE, I_ACUTEC) | 171 | #define UN_I XP(I_ACUTE, I_ACUTEC) |
| 160 | #define UN_O XP(O_ACUTE, O_ACUTEC) | 172 | #define UN_O XP(O_ACUTE, O_ACUTEC) |
| 161 | #define UN_P XP(POUND, PILCROW) | 173 | #define UN_P XP(POUND, PILCROW) |
| 174 | #define UN_BSPC XP(BOX_CROSS, DBOX_CROSS) | ||
| 175 | #define UN_TAB XP(DIAMOND_BULLET, CIRCLE_BULLET) | ||
| 162 | #define UN_A XP(A_ACUTE, A_ACUTEC) | 176 | #define UN_A XP(A_ACUTE, A_ACUTEC) |
| 163 | #define UN_S XP(BOX_CORNER_1, DBOX_CORNER_1) | 177 | #define UN_S XP(BOX_CORNER_1, DBOX_CORNER_1) |
| 164 | #define UN_D XP(BOX_CORNER_2, DBOX_CORNER_2) | 178 | #define UN_D XP(BOX_CORNER_2, DBOX_CORNER_2) |
| @@ -169,8 +183,9 @@ const uint32_t PROGMEM unicode_map[] = { | |||
| 169 | #define UN_K XP(BOX_UNION_3, DBOX_UNION_3) | 183 | #define UN_K XP(BOX_UNION_3, DBOX_UNION_3) |
| 170 | #define UN_L XP(BOX_UNION_4, DBOX_UNION_4) | 184 | #define UN_L XP(BOX_UNION_4, DBOX_UNION_4) |
| 171 | #define UN_SCLN XP(BOX_HORIZONTAL, DBOX_HORIZONT) | 185 | #define UN_SCLN XP(BOX_HORIZONTAL, DBOX_HORIZONT) |
| 172 | #define UN_Z XP(BOX_VERTICAL, DBOX_VERTICAL) | 186 | #define UN_ENT XP(BOX_VERTICAL, DBOX_VERTICAL) |
| 173 | #define UN_X XP(BOX_CROSS, DBOX_CROSS) | 187 | #define UN_Z XP(NARRAY_SUM, INFINIT_SYMBOL) |
| 188 | #define UN_X XP(SMILE_FACE, SAD_FACE) | ||
| 174 | #define UN_C XP(COPYRIGHT, REGISTERED) | 189 | #define UN_C XP(COPYRIGHT, REGISTERED) |
| 175 | #define UN_V XP(SPADE_SUIT, TREBOL_SUIT) | 190 | #define UN_V XP(SPADE_SUIT, TREBOL_SUIT) |
| 176 | #define UN_B XP(HEART_SUIT, DIAMOND_SUIT) | 191 | #define UN_B XP(HEART_SUIT, DIAMOND_SUIT) |
