Skip to content

Commit

Permalink
[Keyboard] Add support for Idobao Montex (qmk#13214)
Browse files Browse the repository at this point in the history
Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: Ryan <[email protected]>
  • Loading branch information
3 people authored Jul 3, 2021
1 parent 0e32689 commit 1ee74da
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 0 deletions.
67 changes: 67 additions & 0 deletions layouts/default/numpad_6x5/default_numpad_6x5/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/* Copyright 2021 NachoxMacho
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.
*/

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┌───┬───┬───┬───┐
* │ ` │Esc│Tab│MO1│Bsp│
* ├───┼───┼───┼───┼───┤
* │ , │Num│ / │ * │ - │
* ├───┼───┼───┼───┼───┤
* │Gui│ 7 │ 8 │ 9 │ │
* ├───┼───┼───┼───┤ + │
* │Alt│ 4 │ 5 │ 6 │ │
* ├───┼───┼───┼───┼───┤
* │Shi│ 1 │ 2 │ 3 │ │
* ├───┼───┴───┼───┤Ent│
* │Ctr│ 0 │ . │ │
* └───┴───────┴───┴───┘
*/
[0] = LAYOUT_numpad_6x5(
KC_GRAVE, KC_ESC, KC_TAB, MO(1), KC_BSPC,
KC_COMMA, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_LGUI, KC_P7, KC_P8, KC_P9,
KC_LALT, KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_LSHIFT, KC_P1, KC_P2, KC_P3,
KC_LCTRL, KC_P0, KC_PDOT, KC_PENT
),

/*
* ┌───┌───┐───┬───┬───┐
* │ ` │Rst│Tab│MO1│Bsp│
* ├───┼───┘───┼───┼───┤
* │ , │Num│ / │ * │ - │
* ├───┼───┼───┼───┼───┤
* │Gui│Hom│ ↑ │PgU│ │
* ├───┼───┼───┼───┤ + │
* │Alt│ ← │ │ → │ │
* ├───┼───┼───┼───┤───┤
* │Shi│End│ ↓ │PgD│ │
* ├───┼───┴───┼───┤Ent│
* │Ctr│Insert │Del│ │
* └───┴───────┴───┘───┘
*/
[1] = LAYOUT_numpad_6x5(
_______, RESET, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, KC_HOME, KC_UP, KC_PGUP,
_______, KC_LEFT, XXXXXXX, KC_RGHT, _______,
_______, KC_END, KC_DOWN, KC_PGDN,
_______, KC_INS, KC_DEL, _______
)
};
45 changes: 45 additions & 0 deletions layouts/default/numpad_6x5/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"keyboard_name": "6x5 number pad layout",
"url": "",
"maintainer": "qmk",
"width": 5,
"height": 6,
"layouts": {
"LAYOUT_numpad_6x5": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
{"x":2, "y":0},
{"x":3, "y":0},
{"x":4, "y":0},

{"x":0, "y":1},
{"x":1, "y":1},
{"x":2, "y":1},
{"x":3, "y":1},
{"x":4, "y":1},

{"x":0, "y":2},
{"x":1, "y":2},
{"x":2, "y":2},
{"x":3, "y":2},

{"x":0, "y":3},
{"x":1, "y":3},
{"x":2, "y":3},
{"x":3, "y":3},
{"x":4, "y":2, "h":2},

{"x":0, "y":4},
{"x":1, "y":4},
{"x":2, "y":4},
{"x":3, "y":4},

{"x":0, "y":5},
{"x":1, "y":5, "w":2},
{"x":3, "y":5},
{"x":4, "y":4, "h":2}
]
}
}
}
6 changes: 6 additions & 0 deletions layouts/default/numpad_6x5/layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[{a:7},"","","","",""],
["","","","",""],
["","","","",{h:2},""],
["","","",""],
["","","","",{h:2},""],
["",{w:2},"",""]
3 changes: 3 additions & 0 deletions layouts/default/numpad_6x5/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# numpad_6x5

LAYOUT_numpad_6x5

0 comments on commit 1ee74da

Please sign in to comment.