From 2a3795f3bdd2b583c47d4a433c476b931ba82fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Fri, 1 May 2026 23:00:44 +0200 Subject: [PATCH] feat: initial commit --- .clang-format | 30 ++++++++++++++++++++++++++++++ .editorconfig | 32 ++++++++++++++++++++++++++++++++ .gitignore | 16 ++++++++++++++++ .gitmodules | 6 ++++++ LICENSE | 21 +++++++++++++++++++++ Makefile | 16 ++++++++++++++++ README.md | 1 + keyboards/.keep | 0 layouts/.keep | 0 qmk.json | 4 ++++ qmk_framework | 1 + qmk_upstream | 1 + users/.keep | 0 13 files changed, 128 insertions(+) create mode 100644 .clang-format create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 README.md create mode 100644 keyboards/.keep create mode 100644 layouts/.keep create mode 100644 qmk.json create mode 160000 qmk_framework create mode 160000 qmk_upstream create mode 100644 users/.keep diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..ce145e2 --- /dev/null +++ b/.clang-format @@ -0,0 +1,30 @@ +--- +BasedOnStyle: Google +AlignAfterOpenBracket: Align +AlignConsecutiveAssignments: 'true' +AlignConsecutiveDeclarations: 'true' +AlignOperands: 'true' +AllowAllParametersOfDeclarationOnNextLine: 'false' +AllowShortCaseLabelsOnASingleLine: 'false' +AllowShortFunctionsOnASingleLine: Empty +AllowShortLoopsOnASingleLine: 'false' +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: 'false' +BinPackArguments: 'true' +BinPackParameters: 'true' +ColumnLimit: '1000' +IndentCaseLabels: 'true' +IndentPPDirectives: AfterHash +IndentWidth: '4' +MaxEmptyLinesToKeep: '1' +PointerAlignment: Right +SortIncludes: 'false' +SpaceBeforeAssignmentOperators: 'true' +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: 'false' +SpacesBeforeTrailingComments: 1 +TabWidth: '4' +UseTab: Never + +... diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e06a225 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,32 @@ +# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs +# editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 4 + +# We recommend you to keep these unchanged +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false +indent_size = 4 + +[{qmk,*.py}] +charset = utf-8 +max_line_length = 200 + +# Make these match what we have in .gitattributes +[*.mk] +end_of_line = lf +indent_style = tab + +[Makefile] +end_of_line = lf +indent_style = tab + +[*.sh] +end_of_line = lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..800a4e2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +# Junk files +*.bak +*.swp +*~ +.DS_Store +._* + +# Firmware files +*.hex +*.bin +*.uf2 + +# clangd +compile_commands.json +.clangd/ +.cache/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f21a415 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "qmk_upstream"] + path = qmk_upstream + url = https://github.com/qmk/qmk_firmware.git +[submodule "qmk_framework"] + path = qmk_framework + url = https://github.com/FrameworkComputer/qmk_firmware.git diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..12e3c66 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Matej Janezic + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4b045ed --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +.SILENT: + +MAKEFLAGS += --no-print-directory + +QMK_USERSPACE := $(patsubst %/,%,$(dir $(shell realpath "$(lastword $(MAKEFILE_LIST))"))) +ifeq ($(QMK_USERSPACE),) + QMK_USERSPACE := $(shell pwd) +endif + +QMK_FIRMWARE_ROOT = $(shell qmk config -ro user.qmk_home | cut -d= -f2 | sed -e 's@^None$$@@g') +ifeq ($(QMK_FIRMWARE_ROOT),) + $(error Cannot determine qmk_firmware location. `qmk config -ro user.qmk_home` is not set) +endif + +%: + +$(MAKE) -C $(QMK_FIRMWARE_ROOT) $(MAKECMDGOALS) QMK_USERSPACE=$(QMK_USERSPACE) diff --git a/README.md b/README.md new file mode 100644 index 0000000..a3f552d --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# qmk-kbs diff --git a/keyboards/.keep b/keyboards/.keep new file mode 100644 index 0000000..e69de29 diff --git a/layouts/.keep b/layouts/.keep new file mode 100644 index 0000000..e69de29 diff --git a/qmk.json b/qmk.json new file mode 100644 index 0000000..3afc389 --- /dev/null +++ b/qmk.json @@ -0,0 +1,4 @@ +{ + "userspace_version": "1.0", + "build_targets": [] +} \ No newline at end of file diff --git a/qmk_framework b/qmk_framework new file mode 160000 index 0000000..e06fde4 --- /dev/null +++ b/qmk_framework @@ -0,0 +1 @@ +Subproject commit e06fde429d5a52585ca47a18f9a43b7697f24a73 diff --git a/qmk_upstream b/qmk_upstream new file mode 160000 index 0000000..15e8658 --- /dev/null +++ b/qmk_upstream @@ -0,0 +1 @@ +Subproject commit 15e8658e8199b7d54b3060374badbf34e2aab90b diff --git a/users/.keep b/users/.keep new file mode 100644 index 0000000..e69de29