summaryrefslogtreecommitdiff
path: root/layouts/default/ortho_6x4
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-11-21 22:50:23 +1100
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2019-11-21 03:50:23 -0800
commit57815dbc3be3ff49495d4347595b5c3e080c51c9 (patch)
tree11da6de70f65914fd8503dd380deb6a1a3f9a152 /layouts/default/ortho_6x4
parent5d76b5f6551ade03285e27a5d3ea6fcf09ae0810 (diff)
downloadqmk_firmware-57815dbc3be3ff49495d4347595b5c3e080c51c9.tar.gz
qmk_firmware-57815dbc3be3ff49495d4347595b5c3e080c51c9.zip
[Keymap] Clean up & improve default layouts (#7428)
* Clean up & improve default layouts * Add newline at EOF in readmes * Oops
Diffstat (limited to 'layouts/default/ortho_6x4')
-rw-r--r--layouts/default/ortho_6x4/default_ortho_6x4/keymap.c71
-rw-r--r--layouts/default/ortho_6x4/readme.md2
2 files changed, 64 insertions, 9 deletions
diff --git a/layouts/default/ortho_6x4/default_ortho_6x4/keymap.c b/layouts/default/ortho_6x4/default_ortho_6x4/keymap.c
index 39c1ed4810..04e806cbd5 100644
--- a/layouts/default/ortho_6x4/default_ortho_6x4/keymap.c
+++ b/layouts/default/ortho_6x4/default_ortho_6x4/keymap.c
@@ -1,12 +1,67 @@
#include QMK_KEYBOARD_H
+enum custom_keycodes {
+ KC_P00 = SAFE_RANGE
+};
+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = LAYOUT_ortho_6x4(
- 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_F13, KC_F14, KC_F15, KC_F16, \
- KC_F17, KC_F18, KC_F19, KC_F20, \
- KC_F21, KC_F22, KC_F23, KC_F24 \
- ),
+ /*
+ * ┌───┬───┬───┬───┐
+ * │Esc│Tab│MO1│Bsp│
+ * ├───┼───┼───┼───┤
+ * │Num│ / │ * │ - │
+ * ├───┼───┼───┼───┤
+ * │ 7 │ 8 │ 9 │ + │
+ * ├───┼───┼───┼───┤
+ * │ 4 │ 5 │ 6 │ % │
+ * ├───┼───┼───┼───┤
+ * │ 1 │ 2 │ 3 │ = │
+ * ├───┼───┼───┼───┤
+ * │ 0 │00 │ . │Ent│
+ * └───┴───┴───┴───┘
+ */
+ [0] = LAYOUT_ortho_6x4(
+ KC_ESC, KC_TAB, MO(1), KC_BSPC,
+ KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_P4, KC_P5, KC_P6, KC_PERC,
+ KC_P1, KC_P2, KC_P3, KC_EQL,
+ KC_P0, KC_P00, KC_PDOT, KC_PENT
+ ),
+
+ /*
+ * ┌───┐───┬───┬───┐
+ * │Rst│Tab│MO1│Bsp│
+ * └───┘───┼───┼───┤
+ * │Num│ / │ * │ - │
+ * ┌───┬───┬───┐───┤
+ * │Hom│ ↑ │PgU│ + │
+ * ├───┼───┼───┤───┤
+ * │ ← │   │ → │ % │
+ * ├───┼───┼───┤───┤
+ * │End│ ↓ │PgD│ = │
+ * ├───┼───┼───┤───┤
+ * │Ins│   │Del│Ent│
+ * └───┴───┴───┘───┘
+ */
+ [1] = LAYOUT_ortho_6x4(
+ RESET, _______, _______, _______,
+ _______, _______, _______, _______,
+ KC_HOME, KC_UP, KC_PGUP, _______,
+ KC_LEFT, XXXXXXX, KC_RGHT, _______,
+ KC_END, KC_DOWN, KC_PGDN, _______,
+ KC_INS, XXXXXXX, KC_DEL, _______
+ )
};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ if (record->event.pressed) {
+ switch (keycode) {
+ case KC_P00:
+ tap_code(KC_P0);
+ tap_code(KC_P0);
+ return false;
+ }
+ }
+ return true;
+}
diff --git a/layouts/default/ortho_6x4/readme.md b/layouts/default/ortho_6x4/readme.md
index 6014d4b196..02b1c32d58 100644
--- a/layouts/default/ortho_6x4/readme.md
+++ b/layouts/default/ortho_6x4/readme.md
@@ -1,3 +1,3 @@
# ortho_6x4
- LAYOUT_ortho_6x4 \ No newline at end of file
+ LAYOUT_ortho_6x4