Add and Update Keymap

This commit is contained in:
Sendy YK 2020-08-11 05:04:58 +07:00
parent 4961f68880
commit 6f868847a1
6 changed files with 213 additions and 158 deletions

View File

@ -1,21 +1,19 @@
#include QMK_KEYBOARD_H
// ai03 Design Studio Soyuz Numpad 5x4 Layout
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Layer [0]
* ,-----------------------.
* |Num L| / | * | - |
* |-----------------------+
* | 7 | 8 | 9 | |
* |-----------------| + |
* | 4 | 5 | 6 | |
* |-----------------------+
* | 1 | 2 | 3 | |
* |-----------------|Enter|
* | 0 | . | |
* `-----------------------'
* ,-------------------.
* |Nm L|/ |* |- |
* |-------------------+
* |7 |8 |9 | |
* |--------------|+ |
* |4 |5 |6 | |
* |-------------------+
* |1 | 2 |3 | |
* |--------------|Rtrn|
* |0 |. | |
* `-------------------'
*/
[0] = LAYOUT_Numpad_5x4_mrsendyyk(KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
@ -24,23 +22,23 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_P1, KC_P2, KC_P3,
KC_P0, LT(1, KC_PDOT), KC_PENT),
/* Layer [1] (Press & Hold Right `.` Key)
* ,-----------------------.
/* Layer [1] (Press & Hold `.` Key)
* ,-------------------.
* | | | | |
* |-----------------------+
* |-------------------+
* | | | | |
* |-----------------| |
* |Reset| | | |
* |-----------------------+
* |--------------| |
* |Rst | | | |
* |-------------------+
* | | | | |
* |-----------------| |
* |--------------| |
* | | | |
* `-----------------------'
* `-------------------'
*/
[0] = LAYOUT_Numpad_5x4_mrsendyyk(_______, _______, _______, _______,
_______, _______, _______,
KC_P4, _______, _______, _______,
RESET, _______, _______, _______,
_______, _______, _______,
_______, KC_TRNS, _______)
};

View File

@ -1,49 +1,41 @@
# [Sendy YK](https://github.com/mrsendyyk)'s Keymap
## ai03 Design Studio Soyuz Numpad 5x4 Layout
[ai03/soyuz/soyuz.h](https://github.com/qmk/qmk_firmware/blob/master/keyboards/ai03/soyuz/soyuz.h)
#define LAYOUT_Numpad_5x4_mrsendyyk
# [Sendy YK](https://mr.sendyyk.com)'s Keymap
### Layer [0]
```
,-----------------------.
|Num L| / | * | - |
|-----------------------+
| 7 | 8 | 9 | |
|-----------------| + |
| 4 | 5 | 6 | |
|-----------------------+
| 1 | 2 | 3 | |
|-----------------|Enter|
| 0 | . | |
`-----------------------'
,-------------------.
|Nm L|/ |* |- |
|-------------------+
|7 |8 |9 | |
|--------------|+ |
|4 |5 |6 | |
|-------------------+
|1 | 2 |3 | |
|--------------|Rtrn|
|0 |. | |
`-------------------'
```
### Layer [1]
Press & Hold Right `.` Key
Press & Hold `.` Key
```
,-----------------------.
,-------------------.
| | | | |
|-----------------------+
|-------------------+
| | | | |
|-----------------| |
|Reset| | | |
|-----------------------+
|--------------| |
|Rst | | | |
|-------------------+
| | | | |
|-----------------| |
|--------------| |
| | | |
`-----------------------'
`-------------------'
```
---
## Build The Firmware
Make example for this keyboard (after setting up your build environment):
You will need to build the firmware. To do so go back to your terminal window and run the compile command:
make ai03/soyuz:mrsendyyk
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
qmk compile -kb ai03/soyuz -km mrsendyyk

View File

@ -1,21 +1,19 @@
#include QMK_KEYBOARD_H
// KBDfans DZ60 ANSI Arrow Layout
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Layer [0]
* ,-----------------------------------------------------------------------------------------.
* | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Backspace |
* |-----------------------------------------------------------------------------------------+
* | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
* |-----------------------------------------------------------------------------------------+
* |Caps Lock| A | S | D | F | G | H | J | K | L | ; | ' | Enter |
* |-----------------------------------------------------------------------------------------+
* | Left Shift | Z | X | C | V | B | N | M | , | . | R Shift | Up | / |
* |-----------------------------------------------------------------------------------------+
* | L Ctl | OS |L Alt | Space |R Alt|R Ctl|Left |Down |Right|
* `-----------------------------------------------------------------------------------------'
* ,--------------------------------------------------------------------------.
* |Esc |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backspace|
* |--------------------------------------------------------------------------+
* |Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |
* |--------------------------------------------------------------------------+
* |Caps Lck|A |S |D |F |G |H |J |K |L |; |' |Enter |
* |--------------------------------------------------------------------------+
* |Shift |Z |X |C |V |B |N |M |, |. |Shift | |/ |
* |--------------------------------------------------------------------------+
* |Ctrl |OS |Alt | Space |Alt |Ctrl| | | |
* `--------------------------------------------------------------------------'
*/
[0] = LAYOUT_60_ANSI_Arrow_mrsendyyk(KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,
@ -24,38 +22,38 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT, KC_UP, KC_SLSH,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, LT(2, KC_RALT), LT(1, KC_RCTL), KC_LEFT, KC_DOWN, KC_RGHT),
/* Layer [1] (Press & Hold `R Ctl` Key)
* ,-----------------------------------------------------------------------------------------.
* | ` ~ | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Delete |
* |-----------------------------------------------------------------------------------------+
* | Bri Up | | | End |Reset| | | | Ins | |Pr Sc| | | Eject |
* |-----------------------------------------------------------------------------------------+
* | Bri Down| |Sc L | | | |Home | | | | | | Mute |
* |-----------------------------------------------------------------------------------------+
* | Vol + | | | Calc| | |Num L| Mail| | | |Pg U |Pause|
* |-----------------------------------------------------------------------------------------+
* | Vol - | Rwd | F Fd | Play |M Stp | |Prev |Pg D |Next |
* `-----------------------------------------------------------------------------------------'
/* Layer [1] (Press & Hold Right `Ctrl` Key)
* ,--------------------------------------------------------------------------.
* |` |F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10 |F11 |F12 |Delete |
* |--------------------------------------------------------------------------+
* |Bri Up| | |End |Rst | | | |Ins | |Pr S| | |Eject |
* |--------------------------------------------------------------------------+
* |Bri Down| |Sc L| | | |Home| | | | | |Mute |
* |--------------------------------------------------------------------------+
* |Vol + | | |Calc| | |Nm L|Mail| | |Pause |Pg U| |
* |--------------------------------------------------------------------------+
* |Vol -|Rwd |F Fd | Play |M Sp| |Prev|Pg D|Next|
* `--------------------------------------------------------------------------'
*/
[1] = LAYOUT_60_ANSI_Arrow_mrsendyyk(KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL,
KC_BRIU, _______, _______, KC_END, RESET, _______, _______, _______, KC_INS, _______, KC_PSCR, _______, _______, KC_EJCT,
KC_BRID, _______, KC_SLCK, _______, _______, _______, KC_HOME, _______, _______, _______, _______, _______, KC_MUTE,
KC_VOLU, _______, _______, KC_CALC, _______, _______, KC_NLCK, KC_MAIL, _______, _______, _______, KC_PGUP, KC_PAUS,
KC_VOLU, _______, _______, KC_CALC, _______, _______, KC_NLCK, KC_MAIL, _______, _______, KC_PAUS, KC_PGUP, _______,
KC_VOLD, KC_MRWD, KC_MFFD, KC_MPLY, KC_MSTP, KC_TRNS, KC_MPRV, KC_PGDN, KC_MNXT),
/* Layer [2] (Press & Hold `R Alt` Key)
* ,-----------------------------------------------------------------------------------------.
/* Layer [2] (Press & Hold Right `Alt` Key)
* ,--------------------------------------------------------------------------.
* | | | | | | | | | | | | | | |
* |-----------------------------------------------------------------------------------------+
* | |R Tog|R Mo+|Hue +|Hue -|Sat +|Sat -|Bri +|Bri -| | | | | |
* |-----------------------------------------------------------------------------------------+
* |--------------------------------------------------------------------------+
* | |R Tg|R M+|Hue+|Hue-|Sat+|Sat-|Bri+|Bri-| | | | | |
* |--------------------------------------------------------------------------+
* | | | | | | | | | | | | | |
* |-----------------------------------------------------------------------------------------+
* | | | | |BL - |B Tog|BL +|B Cyc| | | | | |
* |-----------------------------------------------------------------------------------------+
* |--------------------------------------------------------------------------+
* | | | | |BL -|B Tg|BL+|B Cy| | | | | |
* |--------------------------------------------------------------------------+
* | | | | | | | | | |
* `-----------------------------------------------------------------------------------------'
* `--------------------------------------------------------------------------'
*/
[2] = LAYOUT_60_ANSI_Arrow_mrsendyyk(_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
@ -72,7 +70,7 @@ void keyboard_post_init_user(void) {
// RGB Underglow as Caps Lock, Num Lock, and Layer Indicator
void update_led(void) { // Num Lock Indicator (Press & Hold `R Ctl` Key + Press `N` Key)
void update_led(void) { // Num Lock Indicator (Press & Hold Right `Ctrl` Key + Press `N` Key)
if (host_keyboard_leds() & (1<<USB_LED_NUM_LOCK)) {
rgblight_setrgb(100, 255, 100);
}
@ -84,10 +82,10 @@ void led_set_user(uint8_t usb_led) {
rgblight_setrgb(255, 110, 0);
} else { // Layer Indicator
switch (biton32(layer_state)) {
case 1: // Layer [1] Indicator (Press & Hold `R Ctl` Key)
case 1: // Layer [1] Indicator (Press & Hold Right `Ctrl` Key)
rgblight_setrgb(225, 8, 0);
break;
case 2: // Layer [2] Indicator (Press & Hold `R Alt` Key)
case 2: // Layer [2] Indicator (Press & Hold Right `Alt` Key)
rgblight_setrgb(225, 8, 0);
break;
default: // Layer [0] Indicator

View File

@ -1,75 +1,59 @@
# [Sendy YK](https://github.com/mrsendyyk)'s Keymap
## KBDfans DZ60 ANSI Arrow Layout
[dz60/dz60.h](https://github.com/qmk/qmk_firmware/blob/master/keyboards/dz60/dz60.h)
#define LAYOUT_60_ANSI_Arrow_mrsendyyk
# [Sendy YK](https://mr.sendyyk.com)'s Keymap
### Layer [0]
```
,-----------------------------------------------------------------------------------------.
| Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Backspace |
|-----------------------------------------------------------------------------------------+
| Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
|-----------------------------------------------------------------------------------------+
|Caps Lock| A | S | D | F | G | H | J | K | L | ; | ' | Enter |
|-----------------------------------------------------------------------------------------+
| L Shift | Z | X | C | V | B | N | M | , | . | R Shift | Up | / |
|-----------------------------------------------------------------------------------------+
| L Ctr | OS | Alt | Space |R Alt|R Ctr|Left |Down |Right|
`-----------------------------------------------------------------------------------------'
,--------------------------------------------------------------------------.
|Esc |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backspace|
|--------------------------------------------------------------------------+
|Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |
|--------------------------------------------------------------------------+
|Caps Lck|A |S |D |F |G |H |J |K |L |; |' |Enter |
|--------------------------------------------------------------------------+
|Shift |Z |X |C |V |B |N |M |, |. |Shift |↑ |/ |
|--------------------------------------------------------------------------+
|Ctrl |OS |Alt | Space |Alt |Ctrl|← |↓ |→ |
`--------------------------------------------------------------------------'
```
### Layer [1]
Press & Hold `R Ctr` Key
Press & Hold Right `Ctrl` Key
```
,-----------------------------------------------------------------------------------------.
| ` ~ | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Delete |
|-----------------------------------------------------------------------------------------+
| Bri Up | | | End |Reset| | | | Ins | |Pr Sc| | | Eject |
|-----------------------------------------------------------------------------------------+
| Bri Down| |Sc L | | | | Home| | | | | | Mute |
|-----------------------------------------------------------------------------------------+
| Vol + | | |Calc | | |Num L| Mail| | | |Pg U |Pause|
|-----------------------------------------------------------------------------------------+
| Vol - | Rwd | F Fd | Play |M Stp | |Prev |Pg D |Next |
`-----------------------------------------------------------------------------------------'
,--------------------------------------------------------------------------.
|` |F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10 |F11 |F12 |Delete |
|--------------------------------------------------------------------------+
|Bri Up| | |End |Rst | | | |Ins | |Pr S| | |Eject |
|--------------------------------------------------------------------------+
|Bri Down| |Sc L| | | |Home| | | | | |Mute |
|--------------------------------------------------------------------------+
|Vol + | | |Calc| | |Nm L|Mail| | |Pause |Pg U| |
|--------------------------------------------------------------------------+
|Vol -|Rwd |F Fd | Play |M Sp| |Prev|Pg D|Next|
`--------------------------------------------------------------------------'
```
### Layer [2]
Press & Hold `R Alt` Key
Press & Hold Right `Alt` Key
```
,-----------------------------------------------------------------------------------------.
,--------------------------------------------------------------------------.
| | | | | | | | | | | | | | |
|-----------------------------------------------------------------------------------------+
| |R Tog|R Mo+|Hue +|Hue -|Sat +|Sat -|Bri +|Bri -| | | | | |
|-----------------------------------------------------------------------------------------+
|--------------------------------------------------------------------------+
| |R Tg|R M+|Hue+|Hue-|Sat+|Sat-|Bri+|Bri-| | | | | |
|--------------------------------------------------------------------------+
| | | | | | | | | | | | | |
|-----------------------------------------------------------------------------------------+
| | | | |BL - |B Tog|BL +|B Cyc| | | | | |
|-----------------------------------------------------------------------------------------+
|--------------------------------------------------------------------------+
| | | | |BL -|B Tg|BL+|B Cy| | | | | |
|--------------------------------------------------------------------------+
| | | | | | | | | |
`-----------------------------------------------------------------------------------------'
`--------------------------------------------------------------------------'
```
## RGB Underglow as Caps Lock, Num Lock, and Layer Indicator
## Build The Firmware
[dz60/keymaps/mrsendyyk/keymap.c](https://github.com/qmk/qmk_firmware/blob/master/keyboards/dz60/keymaps/mrsendyyk/keymap.c)
You will need to build the firmware. To do so go back to your terminal window and run the compile command:
1. Caps Lock Indicator `rgblight_setrgb(255, 110, 0)`
2. Num Lock Indicator (Press & Hold `R Ctr` Key + Press `N` Key) `rgblight_setrgb(100, 255, 100)`
3. Layer Indicator `rgblight_setrgb(225, 8, 0)`
---
Make example for this keyboard (after setting up your build environment):
make dz60:mrsendyyk
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
qmk compile -kb dz60 -km mrsendyyk

View File

@ -0,0 +1,44 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Layer [0]
* ,-------------------------------------------------------------------------------.
* |Esc |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backspace|Del |
* |-------------------------------------------------------------------------------+
* |Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Pg U|
* |-------------------------------------------------------------------------------+
* |Caps Lck|A |S |D |F |G |H |J |K |L |; |' |Return |Pg D|
* |-------------------------------------------------------------------------------+
* |Shift |Z |X |C |V |B |N |M |, |. |/ |Shift | |Fn |
* |-------------------------------------------------------------------------------+
* |Ctrl |Opt |Cmd | Space |Cmd |Opt || | | |
* `-------------------------------------------------------------------------------'
*/
[0] = LAYOUT_65_ansi_blocker(KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, MO(1),
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT),
/* Layer [1]
* ,-------------------------------------------------------------------------------.
* |` | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10| F11| F12| | |
* |-------------------------------------------------------------------------------+
* |Bri Up| | |End |Rst | | | |Ins | |Pr S| | |Eject | |
* |-------------------------------------------------------------------------------+
* |Bri Down| |Sc L| | | |Home| | | | | |Mute | |
* |-------------------------------------------------------------------------------+
* |Vol + | | |Calc| | |Nm L|Mail| | | |Pause | | |
* |-------------------------------------------------------------------------------+
* |Vol -|Rwd |F Fd | Play |M Stp| ||Prev| |Next|
* `-------------------------------------------------------------------------------'
*/
[1] = LAYOUT_65_ansi_blocker(KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______,
KC_BRIU, _______, _______, KC_END, RESET, _______, _______, _______, KC_INS, _______, KC_PSCR, _______, _______, KC_EJCT, _______,
KC_BRID, _______, KC_SLCK, _______, _______, _______, KC_HOME, _______, _______, _______, _______, _______, KC_MUTE, _______,
KC_VOLU, _______, _______, KC_CALC, _______, _______, KC_NLCK, KC_MAIL, _______, _______, _______, KC_PAUS, _______, _______,
KC_VOLD, KC_MRWD, KC_MFFD, KC_MPLY, KC_MSTP, KC_NO, KC_MPRV, KC_NO, KC_MNXT)
};

View File

@ -0,0 +1,39 @@
# [Sendy YK](https://mr.sendyyk.com)'s Keymap
### Layer [0]
```
,-------------------------------------------------------------------------------.
|Esc |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Backspace|Del |
|-------------------------------------------------------------------------------+
|Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ |Pg U|
|-------------------------------------------------------------------------------+
|Caps Lck|A |S |D |F |G |H |J |K |L |; |' |Return |Pg D|
|-------------------------------------------------------------------------------+
|Shift |Z |X |C |V |B |N |M |, |. |/ |Shift |↑ |Fn |
|-------------------------------------------------------------------------------+
|Ctrl |Opt |Cmd | Space |Cmd |Opt |██|← |↓ |→ |
`-------------------------------------------------------------------------------'
```
### Layer [1]
```
,-------------------------------------------------------------------------------.
|` | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10| F11| F12| | |
|-------------------------------------------------------------------------------+
|Bri Up| | |End |Rst | | | |Ins | |Pr S| | |Eject | |
|-------------------------------------------------------------------------------+
|Bri Down| |Sc L| | | |Home| | | | | |Mute | |
|-------------------------------------------------------------------------------+
|Vol + | | |Calc| | |Nm L|Mail| | | |Pause | | |
|-------------------------------------------------------------------------------+
|Vol -|Rwd |F Fd | Play |M Stp| |██|Prev| |Next|
`-------------------------------------------------------------------------------'
```
## Build The Firmware
You will need to build the firmware. To do so go back to your terminal window and run the compile command:
qmk compile -kb maartenwut/eon65 -km mrsendyyk