aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEddie Ehlin <eddiex@eddiex.se>2021-02-27 21:11:07 +0100
committerEddie Ehlin <eddiex@eddiex.se>2021-02-27 21:11:07 +0100
commit14acc938ea7ad6037991649825a2a12b090cd183 (patch)
tree679880284314f4f573844e4faff491ce553c8f17
parent8af904f52d7025e54ad78c32eb8f6f843dc0f0cb (diff)
downloadplanck-keyboard-14acc938ea7ad6037991649825a2a12b090cd183.tar.gz
planck-keyboard-14acc938ea7ad6037991649825a2a12b090cd183.zip
Reworked numpad to resemble a proper numpad including operators + added some KC_NOs
-rw-r--r--keymap/0xedd1e/keymap.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/keymap/0xedd1e/keymap.c b/keymap/0xedd1e/keymap.c
index 53f2899..fd64215 100644
--- a/keymap/0xedd1e/keymap.c
+++ b/keymap/0xedd1e/keymap.c
@@ -46,21 +46,21 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | Shift| Z | X | C | V | B | N | M | , | . | - |Enter |
* |------+------+------+------+------+------+------+------+------+------+------+------|
- * | Ctrl | Alt | GUI | RAlt |Raise | Lower| Spc | Bksp | Left | Down | Up |Right |
+ * | Ctrl | Alt | GUI | AltGr|Raise | Lower| Spc | Bksp | Left | Down | Up |Right |
* `-----------------------------------------------------------------------------------'
*/
[_QWERTY] = LAYOUT_planck_grid(
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, SE_ARNG,
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, SE_ODIA, SE_ADIA,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, SE_MINS, KC_ENT,
- KC_LCTL, KC_LALT, KC_LGUI, KC_RALT, RAISE, LOWER, KC_SPC, KC_BSPC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
+ KC_LCTL, KC_LALT, KC_LGUI, KC_ALGR, RAISE, LOWER, KC_SPC, KC_BSPC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
),
/* Lower
* ,-----------------------------------------------------------------------------------.
* | | ! | " | # | ¤ | % | & | / | ( | ) | = | ` |
* |------+------+------+------+------+------+------+------+------+------+------+------|
- * | | ? | @ | £ | $ | € | V-L | V-D | V-U | V-R | | ^ | V-{L,D,U,R} - VIM movement keys
+ * | | ? | @ | £ | $ | € | V-L | V-D | V-U | V-R | NOP | ^ | V-{L,D,U,R} - VIM movement keys
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | | < | > | \ | | | / | | { | [ | ] | } | ' |
* |------+------+------+------+------+------+------+------+------+------+------+------|
@@ -69,7 +69,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
[_LOWER] = LAYOUT_planck_grid(
_______, SE_EXLM, SE_DQUO, SE_HASH, SE_CURR, SE_PERC, SE_AMPR, SE_SLSH, SE_LPRN, SE_RPRN, SE_EQL, SE_GRV,
- _______, SE_QUES, SE_AT, SE_PND, SE_DLR, SE_EURO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, SE_CIRC,
+ _______, SE_QUES, SE_AT, SE_PND, SE_DLR, SE_EURO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO, SE_CIRC,
_______, SE_LABK, SE_RABK, SE_BSLS, SE_PIPE, SE_SLSH, _______, SE_LCBR, SE_LBRC, SE_RBRC, SE_RCBR, SE_QUOT,
_______, _______, _______, _______, _______, _______, _______, KC_DEL, KC_HOME, KC_PGDN, KC_PGUP, KC_END
),
@@ -77,20 +77,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Raise
* ,-----------------------------------------------------------------------------------.
- * | | F1 | F2 | F3 | F4 | | | | 1 | 2 | 3 | * |
+ * | | F1 | F2 | F3 | F4 | | | = | 7 | 8 | 9 | + |
* |------+------+------+------+------+------+------+------+------+------+------+------|
- * | | F5 | F6 | F7 | F8 | | | | 4 | 5 | 6 | |
+ * | | F5 | F6 | F7 | F8 | | | | 4 | 5 | 6 | - |
* |------+------+------+------+------+------+------+------+------+------+------+------|
- * | | F9 | F10 | F11 | F12 | | | 0 | 7 | 8 | 9 | |
+ * | | F9 | F10 | F11 | F12 | | | | 1 | 2 | 3 | * |
* |------+------+------+------+------+------+------+------+------+------+------+------|
- * | | | | | |Adjust| | | Next | Vol- | Vol+ | Play |
+ * | | | | | |Adjust| | | 0 | , | . | / |
* `-----------------------------------------------------------------------------------'
*/
[_RAISE] = LAYOUT_planck_grid(
- _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, _______, KC_1, KC_2, KC_3, SE_ASTR,
- _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, _______, _______, KC_4, KC_5, KC_6, _______,
- _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_0, KC_7, KC_8, KC_9, _______,
- _______, _______, _______, _______, _______, ADJUST, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
+ _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, KC_PEQL, KC_7, KC_8, KC_9, KC_KP_PLUS,
+ _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, _______, _______, KC_4, KC_5, KC_6, KC_KP_MINUS,
+ _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, KC_1, KC_2, KC_3, KC_KP_ASTERISK,
+ _______, _______, _______, _______, _______, ADJUST, _______, _______, KC_0, KC_PCMM, KC_PDOT, KC_KP_SLASH
),
/* Adjust (Lower + Raise)
@@ -124,6 +124,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ /*
switch (keycode) {
case QWERTY:
if (record->event.pressed) {
@@ -150,6 +151,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return false;
break;
}
+ */
return true;
}