Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new base keymap template #5

Merged
merged 1 commit into from
May 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions layouts/default/layout/default_layout/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright %YEAR% %REAL_NAME% (@%USER_NAME%)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┬───┬───┐
* │ 1 │ 2 │ 3 │
* ├───┼───┼───┤
* │ 4 │ 5 │(1)│
* └───┴───┴───┘
*/
[0] = LAYOUT(
KC_1, KC_2, KC_3,
KC_4, KC_5, MO(1)
),
[1] = LAYOUT(
KC_TRNS, KC_TRNS, KC_TRNS,
RESET, KC_TRNS, KC_TRNS
)
};
18 changes: 18 additions & 0 deletions layouts/default/layout/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"keyboard_name": "default QMK layout",
"url": "",
"maintainer": "qmk",
"layouts": {
"LAYOUT": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
{"x":2, "y":0},

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

LAYOUT
2 changes: 1 addition & 1 deletion lib/python/qmk/cli/new/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def new_keyboard(cli):

# TODO: detach community layout and rename to just "LAYOUT"
if default_layout == 'none of the above':
default_layout = "ortho_4x4"
default_layout = "layout"

# begin with making the deepest folder in the tree
keymaps_path = keyboard(kb_name) / 'keymaps/'
Expand Down