diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4c7f7d0 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +* text eol=lf + +*.ico binary +*.png binary \ No newline at end of file diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..ddcb7ed --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +ko_fi: rnayabed +github: rnayabed +custom: paypal.me/rnayabed \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7627e90 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,84 @@ +name: Build + +on: + push: + branches: [ master ] + paths-ignore: + - '*.md' + - 'screenshots/*.md' + - 'screenshots/*.png' + pull_request: + branches: [ master ] + paths-ignore: + - '*.md' + - 'screenshots/*.md' + - 'screenshots/*.png' + +env: + QT_VERSION: '6.4.2' + +jobs: + linux-x64: + runs-on: ubuntu-20.04 + steps: + - name: "Checkout" + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: ${{ env.QT_VERSION }} + arch: 'gcc_64' + tools: 'tools_ninja' + - name: Install libhidapi dependency + run: | + sudo apt-get -y install libudev-dev + - name: Build + run: | + cmake -B build -S . -G Ninja -DCMAKE_MAKE_PROGRAM="${IQTA_TOOLS}/Ninja/ninja" + cmake --build build + + windows-x64: + runs-on: windows-2019 + steps: + - name: "Checkout" + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: ${{ env.QT_VERSION }} + arch: 'win64_mingw' + tools: 'tools_ninja tools_mingw90' + - name: Build + run: | + ${env:IQTA_TOOLS} = ${env:IQTA_TOOLS} -replace '\\', '/' + + cmake -B build -S . -G Ninja ` + -DCMAKE_C_COMPILER="${env:IQTA_TOOLS}/mingw1120_64/bin/gcc.exe" ` + -DCMAKE_CXX_COMPILER="${env:IQTA_TOOLS}/mingw1120_64/bin/g++.exe" ` + -DCMAKE_MAKE_PROGRAM="${env:IQTA_TOOLS}/Ninja/ninja.exe" + + cmake --build build + + macos: + runs-on: macos-11 + steps: + - name: "Checkout" + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: ${{ env.QT_VERSION }} + arch: 'clang_64' + tools: 'tools_ninja' + - name: Build + run: | + cmake -B build -S . -G Ninja -DCMAKE_MAKE_PROGRAM="${IQTA_TOOLS}/Ninja/ninja" + cmake --build build + + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c8b4cdd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,221 @@ +name: Release + +on: workflow_dispatch + +env: + QT_VERSION: '6.4.2' + QT_IFW_VERSION: '4.5' + INSTALLER_PACKAGE_NAME: 'io.github.rnayabed.rangoli' + LINUX_64_STATIC_URL: 'https://github.com/rnayabed/qt-builds/releases/download/6.4.2/qt-6.4.2-rangoli-linux-x86_64-static.zip' + WINDOWS_64_OPENSSL_URL: 'https://github.com/rnayabed/OpenSSL-builds/releases/download/1.1.1t/windows-x86_64.zip' + LINUX_64_OPENSSL_URL: 'https://github.com/rnayabed/OpenSSL-builds/releases/download/1.1.1t/linux-x86_64.zip' + +jobs: + linux: + runs-on: ubuntu-20.04 + strategy: + matrix: + arch: [64] + steps: + - name: "Checkout" + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: ${{ env.QT_VERSION }} + arch: 'gcc_64' + tools-only: 'true' + tools: 'tools_ninja tools_ifw' + - name: Download static 64-bit Qt build + if: matrix.arch == 64 + run: | + wget -O qt.zip ${LINUX_64_STATIC_URL} + unzip qt.zip -d qt + - name: Download 64-bit OpenSSL + if: matrix.arch == 64 + run: | + wget -O openssl.zip ${LINUX_64_OPENSSL_URL} + unzip openssl.zip -d openssl + - name: Install dependencies + run: | + sudo apt-get -y install libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev \ + libxi-dev libxrender-dev libxcb1-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev \ + libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-cursor-dev libxcb-cursor0 \ + libxcb-randr0-dev libxcb-render-util0-dev libxcb-util-dev libxcb-xinerama0 libxcb-xinerama0-dev libxcb-xkb-dev \ + libxkbcommon-dev libxkbcommon-x11-dev freeglut3 freeglut3-dev binutils-gold libglew-dev \ + mesa-common-dev libglew1.5-dev libglm-dev libgles2-mesa-dev xorg-dev libatspi2.0-dev libudev-dev \ + libmtdev-dev libmtdev1 libts-bin libts-dev libts0 libinput-bin libinput-dev libinput10 + - name: Build 64-bit + if: matrix.arch == 64 + run: | + export PATH=$PATH:${IQTA_TOOLS}/Ninja/:${GITHUB_WORKSPACE}/qt + + cmake -B build -S . -G Ninja \ + -DCMAKE_INSTALL_PREFIX="installer/packages/${INSTALLER_PACKAGE_NAME}/data" \ + -DCMAKE_BUILD_TYPE=Release + + cmake --build build + cmake --install build + + chmod a+x installer/packages/${INSTALLER_PACKAGE_NAME}/data/bin/udev-rule-writer.sh + - name: Cleanup directories + run: | + rm -rf installer/packages/${INSTALLER_PACKAGE_NAME}/data/lib + - name: Create output directory + run: | + mkdir installer/output + - name: Move app icon + run: | + mv icons/rangoli.svg installer/packages/${INSTALLER_PACKAGE_NAME}/data/bin/rangoli.svg + - name: Move OpenSSL files + run: | + mv openssl/* installer/packages/${INSTALLER_PACKAGE_NAME}/data/bin + - name: Create installer + run: | + ${IQTA_TOOLS}/QtInstallerFramework/${QT_IFW_VERSION}/bin/binarycreator \ + --offline-only \ + -p installer/packages \ + -c installer/config/config.xml \ + installer/output/rangoli-installer-linux-${{matrix.arch}}.run + + chmod a+x installer/output/rangoli-installer-linux-${{matrix.arch}}.run + - name: Create portable + run: | + cd installer/packages/${INSTALLER_PACKAGE_NAME}/data + mv bin rangoli-portable-linux-${{matrix.arch}} + zip -r ${GITHUB_WORKSPACE}/installer/output/rangoli-portable-linux-${{matrix.arch}}.zip rangoli-portable-linux-${{matrix.arch}} + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: Linux + path: installer/output/* + + windows: + runs-on: windows-2019 + strategy: + matrix: + arch: [64] + steps: + - name: "Checkout" + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: ${{ env.QT_VERSION }} + arch: 'win64_mingw' + tools: 'tools_ninja tools_mingw90 tools_ifw' + - name: Download OpenSSL 64 + if: matrix.arch == 64 + run: | + Invoke-WebRequest ${env:WINDOWS_64_OPENSSL_URL} -OutFile openssl.zip + Expand-Archive openssl.zip -DestinationPath openssl/ + - name: Build 64-bit + if: matrix.arch == 64 + run: | + ${env:IQTA_TOOLS} = ${env:IQTA_TOOLS} -replace '\\', '/' + + $env:Path += ";${env:Qt6_DIR}/bin;${env:IQTA_TOOLS}/mingw1120_64/bin;${env:IQTA_TOOLS}/Ninja" + + cmake -B build -S . -G Ninja ` + -DCMAKE_INSTALL_PREFIX="installer/packages/${env:INSTALLER_PACKAGE_NAME}/data" ` + -DCMAKE_C_COMPILER="${env:IQTA_TOOLS}/mingw1120_64/bin/gcc.exe" ` + -DCMAKE_CXX_COMPILER="${env:IQTA_TOOLS}/mingw1120_64/bin/g++.exe" ` + -DCMAKE_BUILD_TYPE=Release ` + + cmake --build build + cmake --install build + - name: Copy extra DLL files + run: | + Copy-Item ${env:Qt6_DIR}/bin/libgcc_s_seh-1.dll installer/packages/${env:INSTALLER_PACKAGE_NAME}/data/bin + Copy-Item ${env:Qt6_DIR}/bin/libstdc++-6.dll installer/packages/${env:INSTALLER_PACKAGE_NAME}/data/bin + Copy-Item ${env:Qt6_DIR}/bin/libwinpthread-1.dll installer/packages/${env:INSTALLER_PACKAGE_NAME}/data/bin + - name: Move OpenSSL files + run: | + Move-Item openssl/* -Destination installer/packages/${env:INSTALLER_PACKAGE_NAME}/data/bin + - name: Delete OpenGL SW DLL + run: | + Remove-Item -Force installer/packages/${env:INSTALLER_PACKAGE_NAME}/data/bin/opengl32sw.dll + - name: Cleanup directories + run: | + Remove-Item -Recurse -Force installer/packages/${env:INSTALLER_PACKAGE_NAME}/data/lib + Remove-Item -Recurse -Force installer/packages/${env:INSTALLER_PACKAGE_NAME}/data/translations + - name: Create output directory + run: | + mkdir installer/output + - name: Create installer + run: | + & ${env:IQTA_TOOLS}/QtInstallerFramework/${env:QT_IFW_VERSION}/bin/binarycreator.exe ` + --offline-only ` + -p installer/packages ` + -c installer/config/config.xml ` + installer/output/rangoli-installer-windows-${{matrix.arch}}.exe + - name: Create portable + run: | + Rename-Item installer/packages/${env:INSTALLER_PACKAGE_NAME}/data rangoli-portable-windows-${{matrix.arch}} + $compress = @{ + Path = "${env:GITHUB_WORKSPACE}/installer/packages/${env:INSTALLER_PACKAGE_NAME}/rangoli-portable-windows-${{matrix.arch}}" + CompressionLevel = "Fastest" + DestinationPath = "${env:GITHUB_WORKSPACE}/installer/output/rangoli-portable-windows-${{matrix.arch}}.zip" + } + Compress-Archive @compress + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: Windows + path: installer/output/* + + macos: + runs-on: macos-11 + steps: + - name: "Checkout" + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: ${{ env.QT_VERSION }} + arch: 'clang_64' + tools: 'tools_ninja tools_ifw' + - name: Build + run: | + + export PATH=$PATH:${IQTA_TOOLS}/Ninja/ + + cmake -B build -S . -G Ninja \ + -DCMAKE_INSTALL_PREFIX="installer/packages/${INSTALLER_PACKAGE_NAME}/data" \ + -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \ + -DCMAKE_BUILD_TYPE=Release + + cmake --build build + cmake --install build + - name: Cleanup directories + run: | + rm -rf installer/packages/${INSTALLER_PACKAGE_NAME}/data/lib + rm -rf installer/packages/${INSTALLER_PACKAGE_NAME}/data/translations + - name: Create output directory + run: | + mkdir installer/output + - name: Create installer + run: | + ${IQTA_TOOLS}/QtInstallerFramework/${QT_IFW_VERSION}/bin/binarycreator \ + --offline-only \ + -p installer/packages \ + -c installer/config/config.xml \ + rangoli-installer-macos.app + zip -rX rangoli-installer-macos.app.zip rangoli-installer-macos.app + mv rangoli-installer-macos.app.zip installer/output/ + - name: Create portable + run: | + cd installer/packages/${INSTALLER_PACKAGE_NAME}/ + mv data rangoli-portable-macos + zip -rX ${GITHUB_WORKSPACE}/installer/output/rangoli-portable-macos.zip rangoli-portable-macos + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: MacOS + path: installer/output/* diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..350e9f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,74 @@ +# This file is used to ignore files which are generated +# ---------------------------------------------------------------------------- + +*~ +*.autosave +*.a +*.core +*.moc +*.o +*.obj +*.orig +*.rej +*.so +*.so.* +*_pch.h.cpp +*_resource.rc +*.qm +.#* +*.*# +core +!core/ +tags +.DS_Store +.directory +*.debug +Makefile* +*.prl +*.app +moc_*.cpp +ui_*.h +qrc_*.cpp +Thumbs.db +*.res +/.qmake.cache +/.qmake.stash +CMakeFiles/ + +# qtcreator generated files +*.pro.user* +CMakeLists.txt.user* + +# xemacs temporary files +*.flc + +# Vim temporary files +.*.swp + +# Visual Studio generated files +*.ib_pdb_index +*.idb +*.ilk +*.pdb +*.sln +*.suo +*.vcproj +*vcproj.*.*.user +*.ncb +*.sdf +*.opensdf +*.vcxproj +*vcxproj.* + +# MinGW generated files +*.Debug +*.Release + +# Python byte code +*.pyc + +# Binaries +# -------- +*.dll +*.exe + diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..99de390 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "hidapi"] + path = hidapi + url = https://github.com/libusb/hidapi.git diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4bf139d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,55 @@ +#[[ +Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + +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 3 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. +]] + +cmake_minimum_required(VERSION 3.16) + +set(VERSION 1.0) + +project(rangoli VERSION ${VERSION} LANGUAGES CXX) + +set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(LINUX_UDEV_RULE_WRITER_NAME "udev-rule-writer.sh") + +add_compile_definitions( + VERSION=${VERSION} + GIT_REPOSITORY="https://github.com/rnayabed/rangoli" + SUPPORTED_KEYBOARDS="https://github.com/rnayabed/rangoli/blob/master/supported-keyboards.md" + WEBSITE="https://rnayabed.github.io/rangoli" + REPORT_ISSUE="https://github.com/rnayabed/rangoli/issues/new" + LICENSE="https://github.com/rnayabed/rangoli/blob/master/LICENSE" + AUTHOR_WEBSITE="https://github.com/rnayabed" + AUTHOR_KO_FI="https://ko-fi.com/rnayabed" + AUTHOR_UPI="9903299105@upi" + AUTHOR_EMAIL="debayansutradhar3@gmail.com" + GITHUB_RELEASES="https://api.github.com/repos/rnayabed/rangoli/releases" + KEYBOARDS_LIST_PATH="keyboards/list.json" + LINUX_UDEV_RULE_WRITER_NAME="${LINUX_UDEV_RULE_WRITER_NAME}" + LINUX_UDEV_RULES_PATH="/etc/udev/rules.d/71-rangoli.rules" + LINUX_TERMINAL="xterm" + + DEFAULT_ACCENT_RED=229 + DEFAULT_ACCENT_GREEN=21 + DEFAULT_ACCENT_BLUE=115 +) + +find_package(Qt6 6.4 COMPONENTS Quick REQUIRED) + +set(HIDAPI_WITH_LIBUSB FALSE) +set(BUILD_SHARED_LIBS FALSE) + +add_subdirectory(hidapi) +add_subdirectory(src) diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..53d1f3d --- /dev/null +++ b/LICENSE @@ -0,0 +1,675 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + 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 3 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 . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..48123d2 --- /dev/null +++ b/README.md @@ -0,0 +1,130 @@ +
+Rangoli + +# Rangoli / रंगोली / রঙ্গোলি + +*Free, Open Source, Lightweight, Cross-platform Software for Royal Kludge Keyboards* + +![version](https://img.shields.io/badge/Version-1.0-green) +![Total Downloads](https://img.shields.io/github/downloads/rnayabed/rangoli/total?label=Total%20Downloads) +[![Tip Me via PayPal](https://img.shields.io/badge/PayPal-Tip%20me-blue.svg?logo=paypal)](https://www.paypal.me/rnayabed) +[![Tip Me via Ko-Fi](https://img.shields.io/badge/Ko--Fi-Tip%20me-red.svg?logo=kofi)](https://ko-fi.com/rnayabed) + +Rangoli Main Screenshot + +### [Website](https://rnayabed.github.io/rangoli_website) + +### [Demonstration Video](https://youtu.be/MTGICKC4G5U) + +### [Screenshots](https://github.com/rnayabed/rangoli/blob/master/screenshots/README.md#screenshots) + +### [Download latest release](https://github.com/rnayabed/rangoli/releases/latest) + +**If you enjoy using Rangoli, please consider [donating](https://github.com/rnayabed/rangoli#donate)** +
+ +## Purpose + +[Royal Kludge Keyboards](https://rkgamingstore.com/) are very popular in the budget mechanical keyboard community. Sometimes it is the only viable option for students especially from developing countries like me. However, they are infamous for poor software support. + +There are efforts to get 3rd party firmware like [QMK](https://qmk.fm/) to run on some of these keyboards, but not every keyboard is supported. Also there are keyboards with the same model name but different processors. The entire process is risky and not recommended for begineers. + +I decided to try another approach to this problem. I reverse engineered the protocol these keyboards use with their default firmware. I did this by using [Wireshark](https://www.wireshark.org/) to capture and observe USB packets sent from my PC to my keyboard after editing settings in the RK Software. + +Therefore, instead of changing the keyboard firmware, this software pretends to be "RK Software". There is no risk of bricking your keyboard. It is plug and play! + +## Pros over RK Software +- Cross-platform. Rangoli runs on Linux, Windows and MacOS. +- Start On Boot. You can configure Rangoli to start at system boot and also select a profile to be applied on startup. +- Functional System Tray Icon. Although the RK Software does show up in System Tray, it is very limited and opens up the main window for even basic tasks like selecting a profile. Rangoli offers more functionality, including the ability to apply a profile per keyboard. +- Modern. Far more user friendly and has basic window behaviours including being able to resize, maximise, etc - something which the RK Software lacks. +- Colour Picker. You can select colour of your choice directly from your screen. Hex, RGB, HSV, HSL are also supported. +- Customisable. Rangoli offers users to change it's theme colours and also offers light and dark themes. + +## Supported features +- Custom Key Map +- All built-in light modes +- Per key RGB +- Per key LED Brightness, Animation and Sleep + +## Planned features +- Music Mode +- Custom RGB Patterns + +## Features that will not be worked on +- Macros. This is something that can be done directly on OS level. There are tools like [AutoHotkey](https://www.autohotkey.com/) and [AutoKey](https://github.com/autokey/autokey) that does this far better than RK Software itself. +- Keyboard Firmware update. I was not able to reverse engineer this aspect of the RK Software because the function itself is broken. + +## Supported Keyboards + +Rangoli has been tested to be compliant with RK Software version 3.9. + +Full list of supported keyboards can be found [here](https://github.com/rnayabed/rangoli/blob/master/supported-keyboards.md). + +## Compile and Run from source + +### Prerequisites + +- Qt >= 6.4 +- CMake >= 3.16 +- GCC >= 9.4.0 +- Ninja >= 1.10.2 + +### Compile, build and run + +#### Linux / MacOS + +``` +cmake -B build -G Ninja -S . -DCMAKE_BUILD_TYPE=Release +cmake --build build +./build/src/rangoli +``` + +### Windows + +``` +cmake -B build -G Ninja -S . -DCMAKE_BUILD_TYPE=Release +cmake --build build +.\build\src\rangoli.exe +``` + +## Bugs and Support + +If you want to report an issue or sugggest a feature, please report it by creating a [GitHub issue](https://github.com/rnayabed/rangoli/issues). + +You may also contact me via any of the following platforms: +- E-Mail: [debayansutradhar3@gmail.com](mailto:debayansutradhar3@gmail.com) +- Matrix: @dubbadhar:matrix.org +- Discord: rnayabed#0784 + +## Donate + +It takes a lot of time and effort to build quality software. Anything will be highly appreciated <3 + +- UPI: 9903299105@upi +- [Ko-Fi](https://ko-fi.com/rnayabed) +- [Paypal](https://paypal.me/rnayabed) + +## Credits + +Developed by [Debayan Sutradhar](https://github.com/rnayabed). All Rights Reserved. + +Logo by [Sab GFX](https://twitter.com/Sab_gfx). + +## License + +Rangoli is licensed to [GNU General Public License v3.0](https://github.com/rnayabed/rangoli/blob/master/LICENSE). + +``` +Rangoli - Free, Open Source, Lightweight, Cross-platform Software for Royal Kludge Keyboards +Copyright (C) 2023 Debayan Sutradhar (rnayabed) + +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 3 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. +``` diff --git a/hidapi b/hidapi new file mode 160000 index 0000000..4ebce6b --- /dev/null +++ b/hidapi @@ -0,0 +1 @@ +Subproject commit 4ebce6b5059b086d05ca7e091ce04a5fd08ac3ac diff --git a/icons/add.svg b/icons/add.svg new file mode 100644 index 0000000..76d4d8a --- /dev/null +++ b/icons/add.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow_back.svg b/icons/arrow_back.svg new file mode 100644 index 0000000..f7e700d --- /dev/null +++ b/icons/arrow_back.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/bug_report.svg b/icons/bug_report.svg new file mode 100644 index 0000000..61ddef6 --- /dev/null +++ b/icons/bug_report.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/delete.svg b/icons/delete.svg new file mode 100644 index 0000000..a8565b3 --- /dev/null +++ b/icons/delete.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/donate.svg b/icons/donate.svg new file mode 100644 index 0000000..4e53849 --- /dev/null +++ b/icons/donate.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/done.svg b/icons/done.svg new file mode 100644 index 0000000..f3ab422 --- /dev/null +++ b/icons/done.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/edit.svg b/icons/edit.svg new file mode 100644 index 0000000..c4f727b --- /dev/null +++ b/icons/edit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/git.svg b/icons/git.svg new file mode 100644 index 0000000..6b6a26a --- /dev/null +++ b/icons/git.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/help.svg b/icons/help.svg new file mode 100644 index 0000000..ca4ae67 --- /dev/null +++ b/icons/help.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/home.svg b/icons/home.svg new file mode 100644 index 0000000..6a00126 --- /dev/null +++ b/icons/home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/keyboard.svg b/icons/keyboard.svg new file mode 100644 index 0000000..1a76daa --- /dev/null +++ b/icons/keyboard.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/light.svg b/icons/light.svg new file mode 100644 index 0000000..6d8037d --- /dev/null +++ b/icons/light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/rangoli.ico b/icons/rangoli.ico new file mode 100644 index 0000000..9277800 Binary files /dev/null and b/icons/rangoli.ico differ diff --git a/icons/rangoli.svg b/icons/rangoli.svg new file mode 100644 index 0000000..f8f9c18 --- /dev/null +++ b/icons/rangoli.svg @@ -0,0 +1,364 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/refresh.svg b/icons/refresh.svg new file mode 100644 index 0000000..299cddb --- /dev/null +++ b/icons/refresh.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/reset.svg b/icons/reset.svg new file mode 100644 index 0000000..8cd8c56 --- /dev/null +++ b/icons/reset.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/save.svg b/icons/save.svg new file mode 100644 index 0000000..9c84d19 --- /dev/null +++ b/icons/save.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/settings.svg b/icons/settings.svg new file mode 100644 index 0000000..0d6f550 --- /dev/null +++ b/icons/settings.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/website.svg b/icons/website.svg new file mode 100644 index 0000000..0f976a7 --- /dev/null +++ b/icons/website.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/installer/config/config.xml b/installer/config/config.xml new file mode 100644 index 0000000..703e84d --- /dev/null +++ b/installer/config/config.xml @@ -0,0 +1,9 @@ + + + Rangoli + 1.0 + Rangoli Installer + Debayan Sutradhar + Rangoli + @ApplicationsDir@/Rangoli + \ No newline at end of file diff --git a/installer/packages/io.github.rnayabed.rangoli/meta/install-script.qs b/installer/packages/io.github.rnayabed.rangoli/meta/install-script.qs new file mode 100644 index 0000000..0910ecd --- /dev/null +++ b/installer/packages/io.github.rnayabed.rangoli/meta/install-script.qs @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +function Component() +{} + +Component.prototype.createOperations = function() +{ + component.createOperations(); + + if (systemInfo.kernelType === "linux") { + component.addOperation("CreateDesktopEntry", + "Rangoli.desktop", + "Name=Rangoli\n" + + "Type=Application\n" + + "Terminal=false\n" + + "Exec=@TargetDir@/bin/rangoli\n"+ + "Icon=@TargetDir@/bin/rangoli.svg\n" + + "Categories=Settings;Utility\n" + + "Keywords=Royal Kludge;RK;Keyboard\n" + + "Comment=Start Rangoli\n" + + "SingleMainWindow=true\n" + ); + component.addOperation("CreateDesktopEntry", + "Rangoli Maintenance Tool.desktop", + "Name=Rangoli Maintenance Tool\n" + + "Type=Application\n" + + "Terminal=false\n" + + "Exec=@TargetDir@/maintenancetool\n" + + "Icon=@TargetDir@/bin/rangoli.svg\n" + + "Categories=Settings;Utility\n" + + "Keywords=Royal Kludge;RK;Keyboard\n" + + "Comment=Start Rangoli Maintenance Tool\n" + + "SingleMainWindow=true\n" + ); + } + else if (systemInfo.kernelType === "winnt") + { + component.addOperation("CreateShortcut", + "@TargetDir@/bin/rangoli.exe", + "@StartMenuDir@/Rangoli.lnk", + "workingDirectory=@TargetDir@/bin", + "iconPath=@TargetDir@/bin/rangoli.exe", "iconId=0", + "description=Start Rangoli" + ); + + component.addOperation("CreateShortcut", + "@TargetDir@/bin/rangoli.exe", + "@DesktopDir@/Rangoli.lnk", + "workingDirectory=@TargetDir@/bin", + "iconPath=@TargetDir@/bin/rangoli.exe", "iconId=0", + "description=Start Rangoli"); + } + else if (systemInfo.kernelType === "darwin") + { + installer.execute("osascript", "-e", 'tell application "Finder" to make alias file to POSIX file "@TargetDir@/bin/rangoli.app" at desktop'); + } +} diff --git a/installer/packages/io.github.rnayabed.rangoli/meta/license.txt b/installer/packages/io.github.rnayabed.rangoli/meta/license.txt new file mode 100644 index 0000000..e72bfdd --- /dev/null +++ b/installer/packages/io.github.rnayabed.rangoli/meta/license.txt @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + 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 3 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 . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. \ No newline at end of file diff --git a/installer/packages/io.github.rnayabed.rangoli/meta/package.xml b/installer/packages/io.github.rnayabed.rangoli/meta/package.xml new file mode 100644 index 0000000..98a3504 --- /dev/null +++ b/installer/packages/io.github.rnayabed.rangoli/meta/package.xml @@ -0,0 +1,12 @@ + + + Rangoli + Install Rangoli on your system + 1.0 + 2023-02-11 + + + + script + + \ No newline at end of file diff --git a/keyboards/configs/102.json b/keyboards/configs/102.json new file mode 100644 index 0000000..8407fdd --- /dev/null +++ b/keyboards/configs/102.json @@ -0,0 +1,90 @@ +{ + "pid":"102", + "name":"RK-H81RGB", + "rgb":true, + "top":[37, 49], + "bottom":[808, 345], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[37, 49], "bottom":[69, 85] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[96, 49], "bottom":[128, 85] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[145, 49], "bottom":[177, 85] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[194, 49], "bottom":[226, 85] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[241, 49], "bottom":[273, 85] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[301, 49], "bottom":[333, 85] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[349, 49], "bottom":[381, 85] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[396, 49], "bottom":[428, 85] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[444, 49], "bottom":[476, 85] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[504, 49], "bottom":[536, 85] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[552, 49], "bottom":[584, 85] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[601, 49], "bottom":[633, 85] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[650, 49], "bottom":[682, 85] }, + { "bIndex":84, "keyCode":"Key_Delete", "top":[707, 49], "bottom":[739, 85] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[37, 109], "bottom":[69, 145] }, + { "bIndex":7, "keyCode":"Key_1", "top":[86, 109], "bottom":[118, 145] }, + { "bIndex":13, "keyCode":"Key_2", "top":[133, 110], "bottom":[165, 146] }, + { "bIndex":19, "keyCode":"Key_3", "top":[180, 110], "bottom":[212, 146] }, + { "bIndex":25, "keyCode":"Key_4", "top":[229, 110], "bottom":[261, 146] }, + { "bIndex":31, "keyCode":"Key_5", "top":[277, 110], "bottom":[309, 146] }, + { "bIndex":37, "keyCode":"Key_6", "top":[325, 111], "bottom":[357, 147] }, + { "bIndex":43, "keyCode":"Key_7", "top":[373, 111], "bottom":[405, 147] }, + { "bIndex":49, "keyCode":"Key_8", "top":[421, 111], "bottom":[453, 147] }, + { "bIndex":55, "keyCode":"Key_9", "top":[469, 110], "bottom":[501, 146] }, + { "bIndex":61, "keyCode":"Key_0", "top":[516, 110], "bottom":[548, 146] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[564, 110], "bottom":[596, 146] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[612, 110], "bottom":[644, 146] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[662, 109], "bottom":[740, 145] }, + { "bIndex":91, "keyCode":"Key_Page_Up", "top":[776, 109], "bottom":[808, 145] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 157], "bottom":[93, 193] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[110, 157], "bottom":[142, 193] }, + { "bIndex":14, "keyCode":"Key_W", "top":[157, 157], "bottom":[189, 193] }, + { "bIndex":20, "keyCode":"Key_E", "top":[205, 157], "bottom":[237, 193] }, + { "bIndex":26, "keyCode":"Key_R", "top":[253, 157], "bottom":[285, 193] }, + { "bIndex":32, "keyCode":"Key_T", "top":[300, 157], "bottom":[332, 193] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[348, 157], "bottom":[380, 193] }, + { "bIndex":44, "keyCode":"Key_U", "top":[396, 157], "bottom":[428, 193] }, + { "bIndex":50, "keyCode":"Key_I", "top":[445, 157], "bottom":[477, 193] }, + { "bIndex":56, "keyCode":"Key_O", "top":[492, 157], "bottom":[524, 193] }, + { "bIndex":62, "keyCode":"Key_P", "top":[540, 157], "bottom":[572, 193] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[588, 157], "bottom":[620, 193] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[637, 157], "bottom":[669, 193] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[684, 157], "bottom":[740, 193] }, + { "bIndex":92, "keyCode":"Key_Page_Down", "top":[776, 157], "bottom":[808, 193] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 205], "bottom":[105, 241] }, + { "bIndex":9, "keyCode":"Key_A", "top":[121, 204], "bottom":[153, 240] }, + { "bIndex":15, "keyCode":"Key_S", "top":[169, 204], "bottom":[201, 240] }, + { "bIndex":21, "keyCode":"Key_D", "top":[216, 204], "bottom":[248, 240] }, + { "bIndex":27, "keyCode":"Key_F", "top":[265, 204], "bottom":[297, 240] }, + { "bIndex":33, "keyCode":"Key_G", "top":[313, 205], "bottom":[345, 241] }, + { "bIndex":39, "keyCode":"Key_H", "top":[361, 205], "bottom":[393, 241] }, + { "bIndex":45, "keyCode":"Key_J", "top":[409, 205], "bottom":[441, 241] }, + { "bIndex":51, "keyCode":"Key_K", "top":[456, 205], "bottom":[488, 241] }, + { "bIndex":57, "keyCode":"Key_L", "top":[505, 205], "bottom":[537, 241] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[552, 205], "bottom":[584, 241] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[600, 205], "bottom":[632, 241] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[39, 252], "bottom":[129, 288] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[145, 252], "bottom":[177, 288] }, + { "bIndex":16, "keyCode":"Key_X", "top":[193, 252], "bottom":[225, 288] }, + { "bIndex":22, "keyCode":"Key_C", "top":[241, 252], "bottom":[273, 288] }, + { "bIndex":28, "keyCode":"Key_V", "top":[288, 252], "bottom":[320, 288] }, + { "bIndex":34, "keyCode":"Key_B", "top":[337, 252], "bottom":[369, 288] }, + { "bIndex":40, "keyCode":"Key_N", "top":[385, 253], "bottom":[417, 289] }, + { "bIndex":46, "keyCode":"Key_M", "top":[433, 253], "bottom":[465, 289] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[481, 253], "bottom":[513, 289] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[528, 253], "bottom":[560, 289] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[576, 253], "bottom":[608, 289] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[625, 253], "bottom":[693, 289] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[718, 262], "bottom":[750, 298] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 300], "bottom":[81, 336] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[99, 300], "bottom":[141, 336] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[157, 300], "bottom":[201, 336] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[216, 300], "bottom":[502, 336] }, + { "bIndex":59, "keyCode":"Key_Right_Alt", "top":[516, 300], "bottom":[548, 336] }, + { "bIndex":65, "keyCode":"Key_Fn", "top":[564, 300], "bottom":[596, 336] }, + { "bIndex":77, "keyCode":"Key_Right_Control", "top":[612, 300], "bottom":[644, 336] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[670, 309], "bottom":[702, 345] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[718, 309], "bottom":[750, 345] }, + { "bIndex":93, "keyCode":"Key_Pause", "top":[776, 205], "bottom":[808, 241] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[766, 309], "bottom":[798, 345] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[648, 205], "bottom":[742, 241] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/103.json b/keyboards/configs/103.json new file mode 100644 index 0000000..0bf4c08 --- /dev/null +++ b/keyboards/configs/103.json @@ -0,0 +1,78 @@ +{ + "pid":"103", + "name":"RK68 N ISO Return Bluetooth", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 56], "bottom":[709, 89] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":75, "keyCode":"Key_Back_Slash", "top":[580, 103], "bottom":[607, 136] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 150], "bottom":[709, 183] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 103], "bottom":[709, 136] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[49, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[111, 150], "bottom":[140, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[156, 150], "bottom":[185, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[200, 150], "bottom":[229, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[12, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[104, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[123, 197], "bottom":[160, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":76, "keyCode":"Key_Left_Shift_Split", "top":[66, 149], "bottom":[95, 182] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[624, 97], "bottom":[662, 130] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/10a.json b/keyboards/configs/10a.json new file mode 100644 index 0000000..5d49e11 --- /dev/null +++ b/keyboards/configs/10a.json @@ -0,0 +1,77 @@ +{ + "pid":"10a", + "name":"RK68RGB N Wired", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 58], "bottom":[709, 91] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[613, 57], "bottom":[663, 90] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 151], "bottom":[709, 184] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 105], "bottom":[709, 138] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[93, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 150], "bottom":[138, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 150], "bottom":[184, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 150], "bottom":[228, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[10, 197], "bottom":[47, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[65, 197], "bottom":[102, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[121, 197], "bottom":[158, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[580, 104], "bottom":[662, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/10d.json b/keyboards/configs/10d.json new file mode 100644 index 0000000..436ce20 --- /dev/null +++ b/keyboards/configs/10d.json @@ -0,0 +1,93 @@ +{ + "pid":"10d", + "name":"RK84RGB N Wired", + "rgb":true, + "top":[22, 17], + "bottom":[702, 271], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[22, 18], "bottom":[51, 51] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[66, 18], "bottom":[95, 51] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[109, 18], "bottom":[138, 51] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[152, 18], "bottom":[181, 51] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[195, 18], "bottom":[224, 51] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[239, 18], "bottom":[268, 51] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[282, 18], "bottom":[311, 51] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[325, 18], "bottom":[354, 51] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[369, 18], "bottom":[398, 51] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[412, 18], "bottom":[441, 51] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[455, 18], "bottom":[484, 51] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[498, 18], "bottom":[527, 51] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[541, 18], "bottom":[570, 51] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[585, 18], "bottom":[614, 51] }, + { "bIndex":84, "keyCode":"Key_Pause", "top":[627, 18], "bottom":[656, 51] }, + { "bIndex":90, "keyCode":"Key_Delete", "top":[671, 17], "bottom":[700, 50] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[22, 62], "bottom":[51, 95] }, + { "bIndex":7, "keyCode":"Key_1", "top":[66, 62], "bottom":[95, 95] }, + { "bIndex":13, "keyCode":"Key_2", "top":[109, 62], "bottom":[138, 95] }, + { "bIndex":19, "keyCode":"Key_3", "top":[152, 62], "bottom":[181, 95] }, + { "bIndex":25, "keyCode":"Key_4", "top":[195, 62], "bottom":[224, 95] }, + { "bIndex":31, "keyCode":"Key_5", "top":[238, 62], "bottom":[267, 95] }, + { "bIndex":37, "keyCode":"Key_6", "top":[282, 62], "bottom":[311, 95] }, + { "bIndex":43, "keyCode":"Key_7", "top":[325, 62], "bottom":[354, 95] }, + { "bIndex":49, "keyCode":"Key_8", "top":[368, 62], "bottom":[397, 95] }, + { "bIndex":55, "keyCode":"Key_9", "top":[410, 62], "bottom":[439, 95] }, + { "bIndex":61, "keyCode":"Key_0", "top":[454, 62], "bottom":[483, 95] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[498, 62], "bottom":[527, 95] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[540, 62], "bottom":[569, 95] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[586, 62], "bottom":[657, 95] }, + { "bIndex":92, "keyCode":"Key_End", "top":[672, 105], "bottom":[701, 138] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[671, 62], "bottom":[700, 95] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[24, 106], "bottom":[73, 139] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[88, 106], "bottom":[117, 139] }, + { "bIndex":14, "keyCode":"Key_W", "top":[130, 106], "bottom":[159, 139] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 106], "bottom":[204, 139] }, + { "bIndex":26, "keyCode":"Key_R", "top":[217, 106], "bottom":[246, 139] }, + { "bIndex":32, "keyCode":"Key_T", "top":[260, 106], "bottom":[289, 139] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[303, 106], "bottom":[332, 139] }, + { "bIndex":44, "keyCode":"Key_U", "top":[347, 106], "bottom":[376, 139] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 106], "bottom":[419, 139] }, + { "bIndex":56, "keyCode":"Key_O", "top":[433, 106], "bottom":[462, 139] }, + { "bIndex":62, "keyCode":"Key_P", "top":[477, 106], "bottom":[506, 139] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[519, 106], "bottom":[548, 139] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[562, 106], "bottom":[591, 139] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[607, 106], "bottom":[657, 139] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[672, 192], "bottom":[701, 225] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[672, 149], "bottom":[701, 182] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[23, 149], "bottom":[83, 182] }, + { "bIndex":9, "keyCode":"Key_A", "top":[98, 148], "bottom":[127, 181] }, + { "bIndex":15, "keyCode":"Key_S", "top":[142, 148], "bottom":[171, 181] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 148], "bottom":[215, 181] }, + { "bIndex":27, "keyCode":"Key_F", "top":[228, 148], "bottom":[257, 181] }, + { "bIndex":33, "keyCode":"Key_G", "top":[271, 148], "bottom":[300, 181] }, + { "bIndex":39, "keyCode":"Key_H", "top":[315, 148], "bottom":[344, 181] }, + { "bIndex":45, "keyCode":"Key_J", "top":[358, 148], "bottom":[387, 181] }, + { "bIndex":51, "keyCode":"Key_K", "top":[402, 148], "bottom":[431, 181] }, + { "bIndex":57, "keyCode":"Key_L", "top":[444, 148], "bottom":[473, 181] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[488, 148], "bottom":[517, 181] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[531, 148], "bottom":[560, 181] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 193], "bottom":[104, 226] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[120, 192], "bottom":[149, 225] }, + { "bIndex":16, "keyCode":"Key_X", "top":[163, 192], "bottom":[192, 225] }, + { "bIndex":22, "keyCode":"Key_C", "top":[207, 192], "bottom":[236, 225] }, + { "bIndex":28, "keyCode":"Key_V", "top":[251, 192], "bottom":[280, 225] }, + { "bIndex":34, "keyCode":"Key_B", "top":[294, 192], "bottom":[323, 225] }, + { "bIndex":40, "keyCode":"Key_N", "top":[337, 192], "bottom":[366, 225] }, + { "bIndex":46, "keyCode":"Key_M", "top":[380, 192], "bottom":[409, 225] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[422, 192], "bottom":[451, 225] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 192], "bottom":[495, 225] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[509, 192], "bottom":[538, 225] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[553, 192], "bottom":[613, 225] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[630, 193], "bottom":[659, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[24, 237], "bottom":[61, 270] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[78, 237], "bottom":[115, 270] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[132, 237], "bottom":[169, 270] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 237], "bottom":[442, 270] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[455, 237], "bottom":[484, 270] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[499, 237], "bottom":[528, 270] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[543, 238], "bottom":[572, 271] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[586, 238], "bottom":[615, 271] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[630, 238], "bottom":[659, 271] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[673, 238], "bottom":[702, 271] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[575, 148], "bottom":[657, 181] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/1ff.json b/keyboards/configs/1ff.json new file mode 100644 index 0000000..b15fb48 --- /dev/null +++ b/keyboards/configs/1ff.json @@ -0,0 +1,96 @@ +{ + "pid":"1ff", + "name":"RK987RGB 2.4G N", + "rgb":true, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/2a.json b/keyboards/configs/2a.json new file mode 100644 index 0000000..1f5e482 --- /dev/null +++ b/keyboards/configs/2a.json @@ -0,0 +1,109 @@ +{ + "pid":"2a", + "name":"RK100", + "rgb":false, + "top":[11, 9], + "bottom":[838, 265], + "keys":[ + { "bIndex":6, "keyCode":"Key_Escape", "top":[13, 10], "bottom":[42, 43] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[56, 10], "bottom":[85, 43] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[101, 10], "bottom":[130, 43] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[145, 10], "bottom":[174, 43] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[189, 10], "bottom":[218, 43] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[233, 10], "bottom":[262, 43] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[277, 10], "bottom":[306, 43] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[320, 10], "bottom":[349, 43] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[366, 10], "bottom":[395, 43] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[409, 10], "bottom":[438, 43] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[455, 10], "bottom":[484, 43] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[499, 10], "bottom":[528, 43] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[544, 10], "bottom":[573, 43] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[587, 10], "bottom":[616, 43] }, + { "bIndex":90, "keyCode":"Key_Delete", "top":[631, 10], "bottom":[660, 43] }, + { "bIndex":102, "keyCode":"Key_Home", "top":[675, 10], "bottom":[704, 43] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[11, 54], "bottom":[40, 87] }, + { "bIndex":7, "keyCode":"Key_1", "top":[56, 54], "bottom":[85, 87] }, + { "bIndex":13, "keyCode":"Key_2", "top":[100, 54], "bottom":[129, 87] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 54], "bottom":[173, 87] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 54], "bottom":[217, 87] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 54], "bottom":[261, 87] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 54], "bottom":[306, 87] }, + { "bIndex":43, "keyCode":"Key_7", "top":[321, 54], "bottom":[350, 87] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 54], "bottom":[395, 87] }, + { "bIndex":55, "keyCode":"Key_9", "top":[409, 54], "bottom":[438, 87] }, + { "bIndex":61, "keyCode":"Key_0", "top":[455, 54], "bottom":[484, 87] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[500, 54], "bottom":[529, 87] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[543, 54], "bottom":[572, 87] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[590, 54], "bottom":[661, 87] }, + { "bIndex":114, "keyCode":"Key_Page_Up", "top":[763, 10], "bottom":[792, 43] }, + { "bIndex":103, "keyCode":"Key_Num_Lock", "top":[676, 55], "bottom":[705, 88] }, + { "bIndex":109, "keyCode":"Key_Num_Divide", "top":[719, 55], "bottom":[748, 88] }, + { "bIndex":115, "keyCode":"Key_Num_Multiply", "top":[763, 55], "bottom":[792, 88] }, + { "bIndex":121, "keyCode":"Key_Num_Substract", "top":[808, 55], "bottom":[837, 88] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[12, 98], "bottom":[61, 131] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 98], "bottom":[108, 131] }, + { "bIndex":14, "keyCode":"Key_W", "top":[123, 98], "bottom":[152, 131] }, + { "bIndex":20, "keyCode":"Key_E", "top":[166, 98], "bottom":[195, 131] }, + { "bIndex":26, "keyCode":"Key_R", "top":[210, 98], "bottom":[239, 131] }, + { "bIndex":32, "keyCode":"Key_T", "top":[255, 98], "bottom":[284, 131] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[299, 98], "bottom":[328, 131] }, + { "bIndex":44, "keyCode":"Key_U", "top":[344, 98], "bottom":[373, 131] }, + { "bIndex":50, "keyCode":"Key_I", "top":[388, 98], "bottom":[417, 131] }, + { "bIndex":56, "keyCode":"Key_O", "top":[433, 98], "bottom":[462, 131] }, + { "bIndex":62, "keyCode":"Key_P", "top":[477, 98], "bottom":[506, 131] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[521, 98], "bottom":[550, 131] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[564, 98], "bottom":[593, 131] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[608, 98], "bottom":[658, 131] }, + { "bIndex":108, "keyCode":"Key_Insert", "top":[717, 9], "bottom":[746, 42] }, + { "bIndex":120, "keyCode":"Key_Page_Down", "top":[808, 9], "bottom":[837, 42] }, + { "bIndex":104, "keyCode":"Key_Num_7", "top":[676, 99], "bottom":[705, 132] }, + { "bIndex":110, "keyCode":"Key_Num_8", "top":[721, 99], "bottom":[750, 132] }, + { "bIndex":116, "keyCode":"Key_Num_9", "top":[764, 99], "bottom":[793, 132] }, + { "bIndex":122, "keyCode":"Key_Num_Add", "top":[809, 101], "bottom":[838, 175] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[11, 143], "bottom":[71, 176] }, + { "bIndex":9, "keyCode":"Key_A", "top":[88, 142], "bottom":[117, 175] }, + { "bIndex":15, "keyCode":"Key_S", "top":[133, 142], "bottom":[162, 175] }, + { "bIndex":21, "keyCode":"Key_D", "top":[177, 142], "bottom":[206, 175] }, + { "bIndex":27, "keyCode":"Key_F", "top":[222, 142], "bottom":[251, 175] }, + { "bIndex":33, "keyCode":"Key_G", "top":[266, 142], "bottom":[295, 175] }, + { "bIndex":39, "keyCode":"Key_H", "top":[312, 142], "bottom":[341, 175] }, + { "bIndex":45, "keyCode":"Key_J", "top":[355, 142], "bottom":[384, 175] }, + { "bIndex":51, "keyCode":"Key_K", "top":[399, 142], "bottom":[428, 175] }, + { "bIndex":57, "keyCode":"Key_L", "top":[443, 142], "bottom":[472, 175] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[489, 142], "bottom":[518, 175] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[533, 142], "bottom":[562, 175] }, + { "bIndex":105, "keyCode":"Key_Num_4", "top":[674, 144], "bottom":[703, 177] }, + { "bIndex":111, "keyCode":"Key_Num_5", "top":[719, 144], "bottom":[748, 177] }, + { "bIndex":117, "keyCode":"Key_Num_6", "top":[763, 144], "bottom":[792, 177] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[12, 185], "bottom":[94, 218] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[110, 186], "bottom":[139, 219] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 186], "bottom":[184, 219] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 186], "bottom":[228, 219] }, + { "bIndex":28, "keyCode":"Key_V", "top":[243, 186], "bottom":[272, 219] }, + { "bIndex":34, "keyCode":"Key_B", "top":[287, 186], "bottom":[316, 219] }, + { "bIndex":40, "keyCode":"Key_N", "top":[332, 186], "bottom":[361, 219] }, + { "bIndex":46, "keyCode":"Key_M", "top":[377, 186], "bottom":[406, 219] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[421, 186], "bottom":[450, 219] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 186], "bottom":[495, 219] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[510, 186], "bottom":[539, 219] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[556, 186], "bottom":[616, 219] }, + { "bIndex":76, "keyCode":"Key_Up", "top":[632, 187], "bottom":[661, 220] }, + { "bIndex":106, "keyCode":"Key_Num_1", "top":[674, 187], "bottom":[703, 220] }, + { "bIndex":112, "keyCode":"Key_Num_2", "top":[719, 187], "bottom":[748, 220] }, + { "bIndex":118, "keyCode":"Key_Num_3", "top":[763, 187], "bottom":[792, 220] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 231], "bottom":[50, 264] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[69, 231], "bottom":[106, 264] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[124, 231], "bottom":[161, 264] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[177, 231], "bottom":[438, 264] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[455, 231], "bottom":[484, 264] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[499, 231], "bottom":[528, 264] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[543, 232], "bottom":[572, 265] }, + { "bIndex":77, "keyCode":"Key_Left", "top":[588, 232], "bottom":[617, 265] }, + { "bIndex":83, "keyCode":"Key_Down", "top":[632, 232], "bottom":[661, 265] }, + { "bIndex":107, "keyCode":"Key_Right", "top":[676, 232], "bottom":[705, 265] }, + { "bIndex":113, "keyCode":"Key_Num_0", "top":[720, 231], "bottom":[749, 264] }, + { "bIndex":119, "keyCode":"Key_Num_Decimal_Point", "top":[763, 231], "bottom":[792, 264] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[576, 142], "bottom":[658, 175] }, + { "bIndex":124, "keyCode":"Key_Num_Enter", "top":[808, 189], "bottom":[837, 263] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/48.json b/keyboards/configs/48.json new file mode 100644 index 0000000..5290d5c --- /dev/null +++ b/keyboards/configs/48.json @@ -0,0 +1,77 @@ +{ + "pid":"48", + "name":"RK-68Plus", + "rgb":false, + "top":[18, 54], + "bottom":[699, 246], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[18, 54], "bottom":[43, 84] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[633, 54], "bottom":[658, 84] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[633, 94], "bottom":[658, 124] }, + { "bIndex":7, "keyCode":"Key_1", "top":[58, 54], "bottom":[83, 84] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 54], "bottom":[123, 84] }, + { "bIndex":19, "keyCode":"Key_3", "top":[139, 54], "bottom":[164, 84] }, + { "bIndex":25, "keyCode":"Key_4", "top":[179, 54], "bottom":[204, 84] }, + { "bIndex":31, "keyCode":"Key_5", "top":[220, 54], "bottom":[245, 84] }, + { "bIndex":37, "keyCode":"Key_6", "top":[260, 54], "bottom":[285, 84] }, + { "bIndex":43, "keyCode":"Key_7", "top":[300, 54], "bottom":[325, 84] }, + { "bIndex":49, "keyCode":"Key_8", "top":[340, 54], "bottom":[365, 84] }, + { "bIndex":55, "keyCode":"Key_9", "top":[381, 54], "bottom":[406, 84] }, + { "bIndex":61, "keyCode":"Key_0", "top":[421, 54], "bottom":[446, 84] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[462, 54], "bottom":[487, 84] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[502, 54], "bottom":[527, 84] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 54], "bottom":[607, 84] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[19, 94], "bottom":[62, 124] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 94], "bottom":[103, 124] }, + { "bIndex":14, "keyCode":"Key_W", "top":[119, 94], "bottom":[144, 124] }, + { "bIndex":20, "keyCode":"Key_E", "top":[159, 94], "bottom":[184, 124] }, + { "bIndex":26, "keyCode":"Key_R", "top":[199, 94], "bottom":[224, 124] }, + { "bIndex":32, "keyCode":"Key_T", "top":[240, 94], "bottom":[265, 124] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[280, 94], "bottom":[305, 124] }, + { "bIndex":44, "keyCode":"Key_U", "top":[320, 94], "bottom":[345, 124] }, + { "bIndex":50, "keyCode":"Key_I", "top":[361, 94], "bottom":[386, 124] }, + { "bIndex":56, "keyCode":"Key_O", "top":[401, 94], "bottom":[426, 124] }, + { "bIndex":62, "keyCode":"Key_P", "top":[442, 94], "bottom":[467, 124] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[481, 94], "bottom":[506, 124] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[522, 94], "bottom":[547, 124] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 94], "bottom":[607, 124] }, + { "bIndex":92, "keyCode":"Key_Page_Down", "top":[674, 95], "bottom":[699, 125] }, + { "bIndex":91, "keyCode":"Key_Page_Up", "top":[674, 55], "bottom":[699, 85] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[18, 135], "bottom":[73, 165] }, + { "bIndex":9, "keyCode":"Key_A", "top":[89, 135], "bottom":[114, 165] }, + { "bIndex":15, "keyCode":"Key_S", "top":[129, 135], "bottom":[154, 165] }, + { "bIndex":21, "keyCode":"Key_D", "top":[169, 135], "bottom":[194, 165] }, + { "bIndex":27, "keyCode":"Key_F", "top":[209, 135], "bottom":[234, 165] }, + { "bIndex":33, "keyCode":"Key_G", "top":[250, 135], "bottom":[275, 165] }, + { "bIndex":39, "keyCode":"Key_H", "top":[290, 135], "bottom":[315, 165] }, + { "bIndex":45, "keyCode":"Key_J", "top":[331, 135], "bottom":[356, 165] }, + { "bIndex":51, "keyCode":"Key_K", "top":[371, 135], "bottom":[396, 165] }, + { "bIndex":57, "keyCode":"Key_L", "top":[411, 135], "bottom":[436, 165] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[451, 135], "bottom":[476, 165] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[491, 135], "bottom":[516, 165] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[18, 174], "bottom":[92, 204] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 175], "bottom":[134, 205] }, + { "bIndex":16, "keyCode":"Key_X", "top":[149, 175], "bottom":[174, 205] }, + { "bIndex":22, "keyCode":"Key_C", "top":[190, 175], "bottom":[215, 205] }, + { "bIndex":28, "keyCode":"Key_V", "top":[231, 175], "bottom":[256, 205] }, + { "bIndex":34, "keyCode":"Key_B", "top":[271, 175], "bottom":[296, 205] }, + { "bIndex":40, "keyCode":"Key_N", "top":[311, 175], "bottom":[336, 205] }, + { "bIndex":46, "keyCode":"Key_M", "top":[351, 175], "bottom":[376, 205] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[392, 175], "bottom":[417, 205] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[431, 175], "bottom":[456, 205] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[472, 175], "bottom":[497, 205] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[512, 175], "bottom":[566, 205] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[632, 174], "bottom":[657, 204] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[18, 215], "bottom":[51, 245] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[69, 215], "bottom":[102, 245] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[120, 215], "bottom":[152, 245] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[170, 215], "bottom":[405, 245] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[421, 215], "bottom":[446, 245] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[463, 215], "bottom":[496, 245] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[512, 215], "bottom":[546, 245] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[594, 216], "bottom":[619, 246] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[633, 216], "bottom":[658, 246] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[673, 216], "bottom":[698, 246] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[532, 135], "bottom":[607, 165] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/49.json b/keyboards/configs/49.json new file mode 100644 index 0000000..876442f --- /dev/null +++ b/keyboards/configs/49.json @@ -0,0 +1,77 @@ +{ + "pid":"49", + "name":"RK-G68", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 58], "bottom":[709, 91] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[613, 57], "bottom":[663, 90] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 151], "bottom":[709, 184] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 105], "bottom":[709, 138] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[93, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 150], "bottom":[138, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 150], "bottom":[184, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 150], "bottom":[228, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[10, 197], "bottom":[47, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[65, 197], "bottom":[102, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[121, 197], "bottom":[158, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[580, 104], "bottom":[662, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/4a.json b/keyboards/configs/4a.json new file mode 100644 index 0000000..6f3f882 --- /dev/null +++ b/keyboards/configs/4a.json @@ -0,0 +1,70 @@ +{ + "pid":"4a", + "name":"RK61RGB Wired", + "rgb":true, + "top":[6, 7], + "bottom":[702, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[6, 7], "bottom":[36, 40] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[543, 198], "bottom":[583, 231] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 7], "bottom":[84, 40] }, + { "bIndex":13, "keyCode":"Key_2", "top":[102, 7], "bottom":[132, 40] }, + { "bIndex":19, "keyCode":"Key_3", "top":[149, 7], "bottom":[179, 40] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 7], "bottom":[227, 40] }, + { "bIndex":31, "keyCode":"Key_5", "top":[244, 7], "bottom":[274, 40] }, + { "bIndex":37, "keyCode":"Key_6", "top":[292, 7], "bottom":[322, 40] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 7], "bottom":[370, 40] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 8], "bottom":[417, 41] }, + { "bIndex":55, "keyCode":"Key_9", "top":[434, 8], "bottom":[464, 41] }, + { "bIndex":61, "keyCode":"Key_0", "top":[482, 8], "bottom":[512, 41] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[530, 8], "bottom":[560, 41] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[578, 8], "bottom":[608, 41] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[627, 9], "bottom":[702, 42] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[8, 55], "bottom":[60, 88] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 56], "bottom":[109, 89] }, + { "bIndex":14, "keyCode":"Key_W", "top":[125, 56], "bottom":[155, 89] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 56], "bottom":[205, 89] }, + { "bIndex":26, "keyCode":"Key_R", "top":[221, 56], "bottom":[251, 89] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 56], "bottom":[299, 89] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 56], "bottom":[347, 89] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 56], "bottom":[394, 89] }, + { "bIndex":50, "keyCode":"Key_I", "top":[411, 56], "bottom":[441, 89] }, + { "bIndex":56, "keyCode":"Key_O", "top":[459, 57], "bottom":[489, 90] }, + { "bIndex":62, "keyCode":"Key_P", "top":[507, 57], "bottom":[537, 90] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[554, 57], "bottom":[584, 90] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[602, 57], "bottom":[632, 90] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[650, 57], "bottom":[702, 90] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[9, 103], "bottom":[73, 136] }, + { "bIndex":9, "keyCode":"Key_A", "top":[91, 103], "bottom":[121, 136] }, + { "bIndex":15, "keyCode":"Key_S", "top":[138, 104], "bottom":[168, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 104], "bottom":[216, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 104], "bottom":[264, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 104], "bottom":[311, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[329, 104], "bottom":[359, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 104], "bottom":[406, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[423, 104], "bottom":[453, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[471, 104], "bottom":[501, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[519, 104], "bottom":[549, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[566, 104], "bottom":[596, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[10, 149], "bottom":[97, 182] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[114, 149], "bottom":[144, 182] }, + { "bIndex":16, "keyCode":"Key_X", "top":[162, 149], "bottom":[192, 182] }, + { "bIndex":22, "keyCode":"Key_C", "top":[210, 149], "bottom":[240, 182] }, + { "bIndex":28, "keyCode":"Key_V", "top":[257, 149], "bottom":[287, 182] }, + { "bIndex":34, "keyCode":"Key_B", "top":[304, 149], "bottom":[334, 182] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 149], "bottom":[381, 182] }, + { "bIndex":46, "keyCode":"Key_M", "top":[399, 149], "bottom":[429, 182] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[448, 150], "bottom":[478, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[495, 150], "bottom":[525, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[542, 150], "bottom":[572, 183] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[590, 150], "bottom":[702, 183] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[9, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[107, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[127, 197], "bottom":[167, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 198], "bottom":[465, 231] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[484, 198], "bottom":[524, 231] }, + { "bIndex":83, "keyCode":"Key_Fn", "top":[661, 198], "bottom":[701, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[602, 199], "bottom":[642, 232] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[614, 104], "bottom":[702, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/4b.json b/keyboards/configs/4b.json new file mode 100644 index 0000000..c7a891d --- /dev/null +++ b/keyboards/configs/4b.json @@ -0,0 +1,109 @@ +{ + "pid":"4b", + "name":"RK100RGB Wireless", + "rgb":true, + "top":[11, 9], + "bottom":[838, 265], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[13, 10], "bottom":[42, 43] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[56, 10], "bottom":[85, 43] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[101, 10], "bottom":[130, 43] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[145, 10], "bottom":[174, 43] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[189, 10], "bottom":[218, 43] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[233, 10], "bottom":[262, 43] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[277, 10], "bottom":[306, 43] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[320, 10], "bottom":[349, 43] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[366, 10], "bottom":[395, 43] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[409, 10], "bottom":[438, 43] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[455, 10], "bottom":[484, 43] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[499, 10], "bottom":[528, 43] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[544, 10], "bottom":[573, 43] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[587, 10], "bottom":[616, 43] }, + { "bIndex":84, "keyCode":"Key_Delete", "top":[631, 10], "bottom":[660, 43] }, + { "bIndex":90, "keyCode":"Key_Home", "top":[675, 10], "bottom":[704, 43] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[11, 54], "bottom":[40, 87] }, + { "bIndex":7, "keyCode":"Key_1", "top":[56, 54], "bottom":[85, 87] }, + { "bIndex":13, "keyCode":"Key_2", "top":[100, 54], "bottom":[129, 87] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 54], "bottom":[173, 87] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 54], "bottom":[217, 87] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 54], "bottom":[261, 87] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 54], "bottom":[306, 87] }, + { "bIndex":43, "keyCode":"Key_7", "top":[321, 54], "bottom":[350, 87] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 54], "bottom":[395, 87] }, + { "bIndex":55, "keyCode":"Key_9", "top":[409, 54], "bottom":[438, 87] }, + { "bIndex":61, "keyCode":"Key_0", "top":[455, 54], "bottom":[484, 87] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[500, 54], "bottom":[529, 87] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[543, 54], "bottom":[572, 87] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[590, 54], "bottom":[661, 87] }, + { "bIndex":102, "keyCode":"Key_Page_Up", "top":[763, 10], "bottom":[792, 43] }, + { "bIndex":91, "keyCode":"Key_Num_Lock", "top":[676, 55], "bottom":[705, 88] }, + { "bIndex":97, "keyCode":"Key_Num_Divide", "top":[719, 55], "bottom":[748, 88] }, + { "bIndex":103, "keyCode":"Key_Num_Multiply", "top":[763, 55], "bottom":[792, 88] }, + { "bIndex":109, "keyCode":"Key_Num_Substract", "top":[808, 55], "bottom":[837, 88] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[12, 98], "bottom":[61, 131] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 98], "bottom":[108, 131] }, + { "bIndex":14, "keyCode":"Key_W", "top":[123, 98], "bottom":[152, 131] }, + { "bIndex":20, "keyCode":"Key_E", "top":[166, 98], "bottom":[195, 131] }, + { "bIndex":26, "keyCode":"Key_R", "top":[210, 98], "bottom":[239, 131] }, + { "bIndex":32, "keyCode":"Key_T", "top":[255, 98], "bottom":[284, 131] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[299, 98], "bottom":[328, 131] }, + { "bIndex":44, "keyCode":"Key_U", "top":[344, 98], "bottom":[373, 131] }, + { "bIndex":50, "keyCode":"Key_I", "top":[388, 98], "bottom":[417, 131] }, + { "bIndex":56, "keyCode":"Key_O", "top":[433, 98], "bottom":[462, 131] }, + { "bIndex":62, "keyCode":"Key_P", "top":[477, 98], "bottom":[506, 131] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[521, 98], "bottom":[550, 131] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[564, 98], "bottom":[593, 131] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[608, 98], "bottom":[658, 131] }, + { "bIndex":96, "keyCode":"Key_Insert", "top":[717, 9], "bottom":[746, 42] }, + { "bIndex":108, "keyCode":"Key_Page_Down", "top":[808, 9], "bottom":[837, 42] }, + { "bIndex":92, "keyCode":"Key_Num_7", "top":[676, 99], "bottom":[705, 132] }, + { "bIndex":98, "keyCode":"Key_Num_8", "top":[721, 99], "bottom":[750, 132] }, + { "bIndex":104, "keyCode":"Key_Num_9", "top":[764, 99], "bottom":[793, 132] }, + { "bIndex":110, "keyCode":"Key_Num_Add", "top":[809, 101], "bottom":[838, 175] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[11, 143], "bottom":[71, 176] }, + { "bIndex":9, "keyCode":"Key_A", "top":[88, 142], "bottom":[117, 175] }, + { "bIndex":15, "keyCode":"Key_S", "top":[133, 142], "bottom":[162, 175] }, + { "bIndex":21, "keyCode":"Key_D", "top":[177, 142], "bottom":[206, 175] }, + { "bIndex":27, "keyCode":"Key_F", "top":[222, 142], "bottom":[251, 175] }, + { "bIndex":33, "keyCode":"Key_G", "top":[266, 142], "bottom":[295, 175] }, + { "bIndex":39, "keyCode":"Key_H", "top":[312, 142], "bottom":[341, 175] }, + { "bIndex":45, "keyCode":"Key_J", "top":[355, 142], "bottom":[384, 175] }, + { "bIndex":51, "keyCode":"Key_K", "top":[399, 142], "bottom":[428, 175] }, + { "bIndex":57, "keyCode":"Key_L", "top":[443, 142], "bottom":[472, 175] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[489, 142], "bottom":[518, 175] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[533, 142], "bottom":[562, 175] }, + { "bIndex":93, "keyCode":"Key_Num_4", "top":[674, 144], "bottom":[703, 177] }, + { "bIndex":99, "keyCode":"Key_Num_5", "top":[719, 144], "bottom":[748, 177] }, + { "bIndex":105, "keyCode":"Key_Num_6", "top":[763, 144], "bottom":[792, 177] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[12, 185], "bottom":[94, 218] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[110, 186], "bottom":[139, 219] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 186], "bottom":[184, 219] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 186], "bottom":[228, 219] }, + { "bIndex":28, "keyCode":"Key_V", "top":[243, 186], "bottom":[272, 219] }, + { "bIndex":34, "keyCode":"Key_B", "top":[287, 186], "bottom":[316, 219] }, + { "bIndex":40, "keyCode":"Key_N", "top":[332, 186], "bottom":[361, 219] }, + { "bIndex":46, "keyCode":"Key_M", "top":[377, 186], "bottom":[406, 219] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[421, 186], "bottom":[450, 219] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 186], "bottom":[495, 219] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[510, 186], "bottom":[539, 219] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[556, 186], "bottom":[616, 219] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[632, 187], "bottom":[661, 220] }, + { "bIndex":94, "keyCode":"Key_Num_1", "top":[674, 187], "bottom":[703, 220] }, + { "bIndex":100, "keyCode":"Key_Num_2", "top":[719, 187], "bottom":[748, 220] }, + { "bIndex":106, "keyCode":"Key_Num_3", "top":[763, 187], "bottom":[792, 220] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 231], "bottom":[50, 264] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[69, 231], "bottom":[106, 264] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[124, 231], "bottom":[161, 264] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[177, 231], "bottom":[438, 264] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[455, 231], "bottom":[484, 264] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[499, 231], "bottom":[528, 264] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[543, 232], "bottom":[572, 265] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[588, 232], "bottom":[617, 265] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[632, 232], "bottom":[661, 265] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[676, 232], "bottom":[705, 265] }, + { "bIndex":101, "keyCode":"Key_Num_0", "top":[720, 231], "bottom":[749, 264] }, + { "bIndex":107, "keyCode":"Key_Num_Decimal_Point", "top":[763, 231], "bottom":[792, 264] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[576, 142], "bottom":[658, 175] }, + { "bIndex":112, "keyCode":"Key_Num_Enter", "top":[808, 189], "bottom":[837, 263] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/4c.json b/keyboards/configs/4c.json new file mode 100644 index 0000000..6349f47 --- /dev/null +++ b/keyboards/configs/4c.json @@ -0,0 +1,96 @@ +{ + "pid":"4c", + "name":"RK87RGB", + "rgb":true, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/4d.json b/keyboards/configs/4d.json new file mode 100644 index 0000000..07fa960 --- /dev/null +++ b/keyboards/configs/4d.json @@ -0,0 +1,80 @@ +{ + "pid":"4d", + "name":"RK71RGB Wired", + "rgb":true, + "top":[12, 43], + "bottom":[707, 247], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[12, 44], "bottom":[39, 75] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[638, 45], "bottom":[665, 76] }, + { "bIndex":87, "keyCode":"Key_Pause", "top":[638, 130], "bottom":[665, 161] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[638, 87], "bottom":[665, 118] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 44], "bottom":[81, 75] }, + { "bIndex":13, "keyCode":"Key_2", "top":[96, 44], "bottom":[123, 75] }, + { "bIndex":19, "keyCode":"Key_3", "top":[138, 44], "bottom":[165, 75] }, + { "bIndex":25, "keyCode":"Key_4", "top":[179, 44], "bottom":[206, 75] }, + { "bIndex":31, "keyCode":"Key_5", "top":[221, 44], "bottom":[248, 75] }, + { "bIndex":37, "keyCode":"Key_6", "top":[262, 44], "bottom":[289, 75] }, + { "bIndex":43, "keyCode":"Key_7", "top":[305, 44], "bottom":[332, 75] }, + { "bIndex":49, "keyCode":"Key_8", "top":[346, 44], "bottom":[373, 75] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 44], "bottom":[415, 75] }, + { "bIndex":61, "keyCode":"Key_0", "top":[430, 44], "bottom":[457, 75] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[471, 44], "bottom":[498, 75] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[513, 44], "bottom":[540, 75] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[556, 43], "bottom":[622, 74] }, + { "bIndex":92, "keyCode":"Key_End", "top":[679, 87], "bottom":[706, 118] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[680, 44], "bottom":[707, 75] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[13, 87], "bottom":[60, 118] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[75, 87], "bottom":[102, 118] }, + { "bIndex":14, "keyCode":"Key_W", "top":[117, 87], "bottom":[144, 118] }, + { "bIndex":20, "keyCode":"Key_E", "top":[158, 87], "bottom":[185, 118] }, + { "bIndex":26, "keyCode":"Key_R", "top":[200, 87], "bottom":[227, 118] }, + { "bIndex":32, "keyCode":"Key_T", "top":[242, 87], "bottom":[269, 118] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[284, 87], "bottom":[311, 118] }, + { "bIndex":44, "keyCode":"Key_U", "top":[325, 87], "bottom":[352, 118] }, + { "bIndex":50, "keyCode":"Key_I", "top":[367, 87], "bottom":[394, 118] }, + { "bIndex":56, "keyCode":"Key_O", "top":[409, 87], "bottom":[436, 118] }, + { "bIndex":62, "keyCode":"Key_P", "top":[450, 87], "bottom":[477, 118] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[492, 87], "bottom":[519, 118] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[534, 87], "bottom":[561, 118] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[576, 87], "bottom":[622, 118] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 173], "bottom":[707, 204] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 130], "bottom":[707, 161] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[13, 130], "bottom":[70, 161] }, + { "bIndex":9, "keyCode":"Key_A", "top":[86, 130], "bottom":[113, 161] }, + { "bIndex":15, "keyCode":"Key_S", "top":[127, 130], "bottom":[154, 161] }, + { "bIndex":21, "keyCode":"Key_D", "top":[169, 130], "bottom":[196, 161] }, + { "bIndex":27, "keyCode":"Key_F", "top":[211, 130], "bottom":[238, 161] }, + { "bIndex":33, "keyCode":"Key_G", "top":[253, 130], "bottom":[280, 161] }, + { "bIndex":39, "keyCode":"Key_H", "top":[294, 130], "bottom":[321, 161] }, + { "bIndex":45, "keyCode":"Key_J", "top":[336, 130], "bottom":[363, 161] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 130], "bottom":[405, 161] }, + { "bIndex":57, "keyCode":"Key_L", "top":[419, 130], "bottom":[446, 161] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[461, 130], "bottom":[488, 161] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[502, 130], "bottom":[529, 161] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[13, 172], "bottom":[91, 203] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[107, 172], "bottom":[134, 203] }, + { "bIndex":16, "keyCode":"Key_X", "top":[148, 172], "bottom":[175, 203] }, + { "bIndex":22, "keyCode":"Key_C", "top":[190, 172], "bottom":[217, 203] }, + { "bIndex":28, "keyCode":"Key_V", "top":[232, 172], "bottom":[259, 203] }, + { "bIndex":34, "keyCode":"Key_B", "top":[273, 172], "bottom":[300, 203] }, + { "bIndex":40, "keyCode":"Key_N", "top":[315, 172], "bottom":[342, 203] }, + { "bIndex":46, "keyCode":"Key_M", "top":[357, 172], "bottom":[384, 203] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 172], "bottom":[425, 203] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[440, 172], "bottom":[467, 203] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[482, 172], "bottom":[509, 203] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[524, 172], "bottom":[622, 203] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[638, 172], "bottom":[665, 203] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 215], "bottom":[49, 246] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[66, 215], "bottom":[102, 246] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[118, 215], "bottom":[153, 246] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[170, 215], "bottom":[414, 246] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[433, 215], "bottom":[465, 246] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[486, 215], "bottom":[518, 246] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[539, 216], "bottom":[571, 247] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[597, 216], "bottom":[624, 247] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[638, 216], "bottom":[665, 247] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[679, 216], "bottom":[706, 247] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[545, 129], "bottom":[622, 160] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/4e.json b/keyboards/configs/4e.json new file mode 100644 index 0000000..ab952f5 --- /dev/null +++ b/keyboards/configs/4e.json @@ -0,0 +1,80 @@ +{ + "pid":"4e", + "name":"RK71", + "rgb":false, + "top":[12, 43], + "bottom":[707, 247], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[12, 44], "bottom":[39, 75] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[638, 45], "bottom":[665, 76] }, + { "bIndex":87, "keyCode":"Key_Pause", "top":[638, 130], "bottom":[665, 161] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[638, 87], "bottom":[665, 118] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 44], "bottom":[81, 75] }, + { "bIndex":13, "keyCode":"Key_2", "top":[96, 44], "bottom":[123, 75] }, + { "bIndex":19, "keyCode":"Key_3", "top":[138, 44], "bottom":[165, 75] }, + { "bIndex":25, "keyCode":"Key_4", "top":[179, 44], "bottom":[206, 75] }, + { "bIndex":31, "keyCode":"Key_5", "top":[221, 44], "bottom":[248, 75] }, + { "bIndex":37, "keyCode":"Key_6", "top":[262, 44], "bottom":[289, 75] }, + { "bIndex":43, "keyCode":"Key_7", "top":[305, 44], "bottom":[332, 75] }, + { "bIndex":49, "keyCode":"Key_8", "top":[346, 44], "bottom":[373, 75] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 44], "bottom":[415, 75] }, + { "bIndex":61, "keyCode":"Key_0", "top":[430, 44], "bottom":[457, 75] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[471, 44], "bottom":[498, 75] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[513, 44], "bottom":[540, 75] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[556, 43], "bottom":[622, 74] }, + { "bIndex":92, "keyCode":"Key_End", "top":[679, 87], "bottom":[706, 118] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[680, 44], "bottom":[707, 75] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[13, 87], "bottom":[60, 118] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[75, 87], "bottom":[102, 118] }, + { "bIndex":14, "keyCode":"Key_W", "top":[117, 87], "bottom":[144, 118] }, + { "bIndex":20, "keyCode":"Key_E", "top":[158, 87], "bottom":[185, 118] }, + { "bIndex":26, "keyCode":"Key_R", "top":[200, 87], "bottom":[227, 118] }, + { "bIndex":32, "keyCode":"Key_T", "top":[242, 87], "bottom":[269, 118] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[284, 87], "bottom":[311, 118] }, + { "bIndex":44, "keyCode":"Key_U", "top":[325, 87], "bottom":[352, 118] }, + { "bIndex":50, "keyCode":"Key_I", "top":[367, 87], "bottom":[394, 118] }, + { "bIndex":56, "keyCode":"Key_O", "top":[409, 87], "bottom":[436, 118] }, + { "bIndex":62, "keyCode":"Key_P", "top":[450, 87], "bottom":[477, 118] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[492, 87], "bottom":[519, 118] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[534, 87], "bottom":[561, 118] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[576, 87], "bottom":[622, 118] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 173], "bottom":[707, 204] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 130], "bottom":[707, 161] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[13, 130], "bottom":[70, 161] }, + { "bIndex":9, "keyCode":"Key_A", "top":[86, 130], "bottom":[113, 161] }, + { "bIndex":15, "keyCode":"Key_S", "top":[127, 130], "bottom":[154, 161] }, + { "bIndex":21, "keyCode":"Key_D", "top":[169, 130], "bottom":[196, 161] }, + { "bIndex":27, "keyCode":"Key_F", "top":[211, 130], "bottom":[238, 161] }, + { "bIndex":33, "keyCode":"Key_G", "top":[253, 130], "bottom":[280, 161] }, + { "bIndex":39, "keyCode":"Key_H", "top":[294, 130], "bottom":[321, 161] }, + { "bIndex":45, "keyCode":"Key_J", "top":[336, 130], "bottom":[363, 161] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 130], "bottom":[405, 161] }, + { "bIndex":57, "keyCode":"Key_L", "top":[419, 130], "bottom":[446, 161] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[461, 130], "bottom":[488, 161] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[502, 130], "bottom":[529, 161] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[13, 172], "bottom":[91, 203] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[107, 172], "bottom":[134, 203] }, + { "bIndex":16, "keyCode":"Key_X", "top":[148, 172], "bottom":[175, 203] }, + { "bIndex":22, "keyCode":"Key_C", "top":[190, 172], "bottom":[217, 203] }, + { "bIndex":28, "keyCode":"Key_V", "top":[232, 172], "bottom":[259, 203] }, + { "bIndex":34, "keyCode":"Key_B", "top":[273, 172], "bottom":[300, 203] }, + { "bIndex":40, "keyCode":"Key_N", "top":[315, 172], "bottom":[342, 203] }, + { "bIndex":46, "keyCode":"Key_M", "top":[357, 172], "bottom":[384, 203] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 172], "bottom":[425, 203] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[440, 172], "bottom":[467, 203] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[482, 172], "bottom":[509, 203] }, + { "bIndex":76, "keyCode":"Key_Right_Shift", "top":[524, 172], "bottom":[622, 203] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[638, 172], "bottom":[665, 203] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 215], "bottom":[49, 246] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[66, 215], "bottom":[102, 246] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[118, 215], "bottom":[153, 246] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[170, 215], "bottom":[414, 246] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[433, 215], "bottom":[465, 246] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[486, 215], "bottom":[518, 246] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[539, 216], "bottom":[571, 247] }, + { "bIndex":77, "keyCode":"Key_Left", "top":[597, 216], "bottom":[624, 247] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[638, 216], "bottom":[665, 247] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[679, 216], "bottom":[706, 247] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[545, 129], "bottom":[622, 160] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/4f.json b/keyboards/configs/4f.json new file mode 100644 index 0000000..b918a29 --- /dev/null +++ b/keyboards/configs/4f.json @@ -0,0 +1,96 @@ +{ + "pid":"4f", + "name":"G87RGB Wired", + "rgb":true, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/52.json b/keyboards/configs/52.json new file mode 100644 index 0000000..61c52a8 --- /dev/null +++ b/keyboards/configs/52.json @@ -0,0 +1,77 @@ +{ + "pid":"52", + "name":"RK837", + "rgb":false, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[680, 58], "bottom":[709, 91] }, + { "bIndex":85, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[613, 57], "bottom":[663, 90] }, + { "bIndex":88, "keyCode":"Key_Page_Down", "top":[680, 151], "bottom":[709, 184] }, + { "bIndex":87, "keyCode":"Key_Page_Up", "top":[680, 105], "bottom":[709, 138] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[93, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 150], "bottom":[138, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 150], "bottom":[184, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 150], "bottom":[228, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":76, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[10, 197], "bottom":[47, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[65, 197], "bottom":[102, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[121, 197], "bottom":[158, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":77, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":83, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":89, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[580, 104], "bottom":[662, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/53.json b/keyboards/configs/53.json new file mode 100644 index 0000000..62db5f9 --- /dev/null +++ b/keyboards/configs/53.json @@ -0,0 +1,113 @@ +{ + "pid":"53", + "name":"RK960", + "rgb":false, + "top":[34, 34], + "bottom":[992, 287], + "keys":[ + { "bIndex":6, "keyCode":"Key_Escape", "top":[34, 34], "bottom":[58, 58] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[121, 34], "bottom":[145, 58] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[164, 34], "bottom":[188, 58] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[208, 34], "bottom":[232, 58] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[252, 34], "bottom":[276, 58] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[315, 34], "bottom":[339, 58] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[359, 34], "bottom":[383, 58] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[404, 35], "bottom":[428, 59] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[447, 35], "bottom":[471, 59] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[511, 35], "bottom":[535, 59] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[555, 35], "bottom":[579, 59] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[599, 35], "bottom":[623, 59] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[641, 36], "bottom":[665, 60] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[696, 36], "bottom":[720, 60] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[739, 36], "bottom":[763, 60] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[784, 36], "bottom":[808, 60] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[34, 89], "bottom":[58, 113] }, + { "bIndex":7, "keyCode":"Key_1", "top":[78, 89], "bottom":[102, 113] }, + { "bIndex":13, "keyCode":"Key_2", "top":[121, 87], "bottom":[145, 111] }, + { "bIndex":19, "keyCode":"Key_3", "top":[165, 87], "bottom":[189, 111] }, + { "bIndex":25, "keyCode":"Key_4", "top":[210, 87], "bottom":[234, 111] }, + { "bIndex":31, "keyCode":"Key_5", "top":[251, 87], "bottom":[275, 111] }, + { "bIndex":37, "keyCode":"Key_6", "top":[295, 87], "bottom":[319, 111] }, + { "bIndex":43, "keyCode":"Key_7", "top":[338, 87], "bottom":[362, 111] }, + { "bIndex":49, "keyCode":"Key_8", "top":[382, 88], "bottom":[406, 112] }, + { "bIndex":55, "keyCode":"Key_9", "top":[425, 88], "bottom":[449, 112] }, + { "bIndex":61, "keyCode":"Key_0", "top":[469, 88], "bottom":[493, 112] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[513, 88], "bottom":[537, 112] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[555, 88], "bottom":[579, 112] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[600, 89], "bottom":[666, 113] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[695, 87], "bottom":[719, 111] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[739, 87], "bottom":[763, 111] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[783, 87], "bottom":[807, 111] }, + { "bIndex":103, "keyCode":"Key_Num_Lock", "top":[837, 88], "bottom":[861, 112] }, + { "bIndex":109, "keyCode":"Key_Num_Divide", "top":[881, 88], "bottom":[905, 112] }, + { "bIndex":115, "keyCode":"Key_Num_Multiply", "top":[924, 88], "bottom":[948, 112] }, + { "bIndex":121, "keyCode":"Key_Num_Substract", "top":[968, 88], "bottom":[992, 112] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[37, 131], "bottom":[76, 155] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[99, 131], "bottom":[123, 155] }, + { "bIndex":14, "keyCode":"Key_W", "top":[142, 131], "bottom":[166, 155] }, + { "bIndex":20, "keyCode":"Key_E", "top":[186, 131], "bottom":[210, 155] }, + { "bIndex":26, "keyCode":"Key_R", "top":[230, 131], "bottom":[254, 155] }, + { "bIndex":32, "keyCode":"Key_T", "top":[275, 131], "bottom":[299, 155] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 131], "bottom":[341, 155] }, + { "bIndex":44, "keyCode":"Key_U", "top":[358, 131], "bottom":[382, 155] }, + { "bIndex":50, "keyCode":"Key_I", "top":[402, 131], "bottom":[426, 155] }, + { "bIndex":56, "keyCode":"Key_O", "top":[447, 131], "bottom":[471, 155] }, + { "bIndex":62, "keyCode":"Key_P", "top":[488, 131], "bottom":[512, 155] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[533, 131], "bottom":[557, 155] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[578, 131], "bottom":[602, 155] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[623, 131], "bottom":[661, 155] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[694, 132], "bottom":[718, 156] }, + { "bIndex":92, "keyCode":"Key_End", "top":[740, 132], "bottom":[764, 156] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[784, 132], "bottom":[808, 156] }, + { "bIndex":104, "keyCode":"Key_Num_7", "top":[838, 132], "bottom":[862, 156] }, + { "bIndex":110, "keyCode":"Key_Num_8", "top":[882, 132], "bottom":[906, 156] }, + { "bIndex":116, "keyCode":"Key_Num_9", "top":[925, 132], "bottom":[949, 156] }, + { "bIndex":122, "keyCode":"Key_Num_Add", "top":[968, 133], "bottom":[992, 200] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[36, 175], "bottom":[90, 199] }, + { "bIndex":9, "keyCode":"Key_A", "top":[110, 175], "bottom":[134, 199] }, + { "bIndex":15, "keyCode":"Key_S", "top":[154, 175], "bottom":[178, 199] }, + { "bIndex":21, "keyCode":"Key_D", "top":[197, 175], "bottom":[221, 199] }, + { "bIndex":27, "keyCode":"Key_F", "top":[239, 175], "bottom":[263, 199] }, + { "bIndex":33, "keyCode":"Key_G", "top":[283, 175], "bottom":[307, 199] }, + { "bIndex":39, "keyCode":"Key_H", "top":[325, 175], "bottom":[349, 199] }, + { "bIndex":45, "keyCode":"Key_J", "top":[369, 175], "bottom":[393, 199] }, + { "bIndex":51, "keyCode":"Key_K", "top":[412, 175], "bottom":[436, 199] }, + { "bIndex":57, "keyCode":"Key_L", "top":[456, 175], "bottom":[480, 199] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[501, 175], "bottom":[525, 199] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[544, 175], "bottom":[568, 199] }, + { "bIndex":105, "keyCode":"Key_Num_4", "top":[837, 175], "bottom":[861, 199] }, + { "bIndex":111, "keyCode":"Key_Num_5", "top":[881, 175], "bottom":[905, 199] }, + { "bIndex":117, "keyCode":"Key_Num_6", "top":[925, 175], "bottom":[949, 199] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[36, 218], "bottom":[110, 242] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[131, 219], "bottom":[155, 243] }, + { "bIndex":16, "keyCode":"Key_X", "top":[175, 219], "bottom":[199, 243] }, + { "bIndex":22, "keyCode":"Key_C", "top":[219, 219], "bottom":[243, 243] }, + { "bIndex":28, "keyCode":"Key_V", "top":[262, 219], "bottom":[286, 243] }, + { "bIndex":34, "keyCode":"Key_B", "top":[307, 219], "bottom":[331, 243] }, + { "bIndex":40, "keyCode":"Key_N", "top":[350, 219], "bottom":[374, 243] }, + { "bIndex":46, "keyCode":"Key_M", "top":[391, 219], "bottom":[415, 243] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[436, 219], "bottom":[460, 243] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[479, 219], "bottom":[503, 243] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[524, 219], "bottom":[548, 243] }, + { "bIndex":76, "keyCode":"Key_Right_Shift", "top":[568, 219], "bottom":[664, 243] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[739, 219], "bottom":[763, 243] }, + { "bIndex":106, "keyCode":"Key_Num_1", "top":[838, 219], "bottom":[862, 243] }, + { "bIndex":112, "keyCode":"Key_Num_2", "top":[881, 219], "bottom":[905, 243] }, + { "bIndex":118, "keyCode":"Key_Num_3", "top":[924, 219], "bottom":[948, 243] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[36, 262], "bottom":[66, 286] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[91, 262], "bottom":[121, 286] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[146, 262], "bottom":[176, 286] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[204, 263], "bottom":[444, 287] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[471, 263], "bottom":[501, 287] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[524, 263], "bottom":[554, 287] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[578, 263], "bottom":[608, 287] }, + { "bIndex":77, "keyCode":"Key_Right_Control", "top":[633, 263], "bottom":[665, 287] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[696, 263], "bottom":[720, 287] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[740, 262], "bottom":[764, 286] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[784, 263], "bottom":[808, 287] }, + { "bIndex":107, "keyCode":"Key_Num_0", "top":[841, 262], "bottom":[901, 286] }, + { "bIndex":119, "keyCode":"Key_Num_Decimal_Point", "top":[925, 261], "bottom":[949, 285] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[587, 176], "bottom":[663, 200] }, + { "bIndex":124, "keyCode":"Key_Num_Enter", "top":[968, 222], "bottom":[992, 286] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/54.json b/keyboards/configs/54.json new file mode 100644 index 0000000..5280ae5 --- /dev/null +++ b/keyboards/configs/54.json @@ -0,0 +1,96 @@ +{ + "pid":"54", + "name":"RK987 Single Color", + "rgb":false, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":6, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":76, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":77, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/55.json b/keyboards/configs/55.json new file mode 100644 index 0000000..aabc00f --- /dev/null +++ b/keyboards/configs/55.json @@ -0,0 +1,70 @@ +{ + "pid":"55", + "name":"RK-61", + "rgb":true, + "top":[6, 7], + "bottom":[702, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[6, 7], "bottom":[36, 40] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[543, 198], "bottom":[583, 231] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 7], "bottom":[84, 40] }, + { "bIndex":13, "keyCode":"Key_2", "top":[102, 7], "bottom":[132, 40] }, + { "bIndex":19, "keyCode":"Key_3", "top":[149, 7], "bottom":[179, 40] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 7], "bottom":[227, 40] }, + { "bIndex":31, "keyCode":"Key_5", "top":[244, 7], "bottom":[274, 40] }, + { "bIndex":37, "keyCode":"Key_6", "top":[292, 7], "bottom":[322, 40] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 7], "bottom":[370, 40] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 8], "bottom":[417, 41] }, + { "bIndex":55, "keyCode":"Key_9", "top":[434, 8], "bottom":[464, 41] }, + { "bIndex":61, "keyCode":"Key_0", "top":[482, 8], "bottom":[512, 41] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[530, 8], "bottom":[560, 41] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[578, 8], "bottom":[608, 41] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[627, 9], "bottom":[702, 42] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[8, 55], "bottom":[60, 88] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 56], "bottom":[109, 89] }, + { "bIndex":14, "keyCode":"Key_W", "top":[125, 56], "bottom":[155, 89] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 56], "bottom":[205, 89] }, + { "bIndex":26, "keyCode":"Key_R", "top":[221, 56], "bottom":[251, 89] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 56], "bottom":[299, 89] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 56], "bottom":[347, 89] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 56], "bottom":[394, 89] }, + { "bIndex":50, "keyCode":"Key_I", "top":[411, 56], "bottom":[441, 89] }, + { "bIndex":56, "keyCode":"Key_O", "top":[459, 57], "bottom":[489, 90] }, + { "bIndex":62, "keyCode":"Key_P", "top":[507, 57], "bottom":[537, 90] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[554, 57], "bottom":[584, 90] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[602, 57], "bottom":[632, 90] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[650, 57], "bottom":[702, 90] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[9, 103], "bottom":[73, 136] }, + { "bIndex":9, "keyCode":"Key_A", "top":[91, 103], "bottom":[121, 136] }, + { "bIndex":15, "keyCode":"Key_S", "top":[138, 104], "bottom":[168, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 104], "bottom":[216, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 104], "bottom":[264, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 104], "bottom":[311, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[329, 104], "bottom":[359, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 104], "bottom":[406, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[423, 104], "bottom":[453, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[471, 104], "bottom":[501, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[519, 104], "bottom":[549, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[566, 104], "bottom":[596, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[10, 149], "bottom":[97, 182] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[114, 149], "bottom":[144, 182] }, + { "bIndex":16, "keyCode":"Key_X", "top":[162, 149], "bottom":[192, 182] }, + { "bIndex":22, "keyCode":"Key_C", "top":[210, 149], "bottom":[240, 182] }, + { "bIndex":28, "keyCode":"Key_V", "top":[257, 149], "bottom":[287, 182] }, + { "bIndex":34, "keyCode":"Key_B", "top":[304, 149], "bottom":[334, 182] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 149], "bottom":[381, 182] }, + { "bIndex":46, "keyCode":"Key_M", "top":[399, 149], "bottom":[429, 182] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[448, 150], "bottom":[478, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[495, 150], "bottom":[525, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[542, 150], "bottom":[572, 183] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[590, 150], "bottom":[702, 183] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[9, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[107, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[127, 197], "bottom":[167, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 198], "bottom":[465, 231] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[484, 198], "bottom":[524, 231] }, + { "bIndex":83, "keyCode":"Key_Fn", "top":[661, 198], "bottom":[701, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[602, 199], "bottom":[642, 232] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[614, 104], "bottom":[702, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/56.json b/keyboards/configs/56.json new file mode 100644 index 0000000..465239b --- /dev/null +++ b/keyboards/configs/56.json @@ -0,0 +1,109 @@ +{ + "pid":"56", + "name":"RK100RGB", + "rgb":true, + "top":[11, 9], + "bottom":[838, 265], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[13, 10], "bottom":[42, 43] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[56, 10], "bottom":[85, 43] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[101, 10], "bottom":[130, 43] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[145, 10], "bottom":[174, 43] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[189, 10], "bottom":[218, 43] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[233, 10], "bottom":[262, 43] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[277, 10], "bottom":[306, 43] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[320, 10], "bottom":[349, 43] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[366, 10], "bottom":[395, 43] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[409, 10], "bottom":[438, 43] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[455, 10], "bottom":[484, 43] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[499, 10], "bottom":[528, 43] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[544, 10], "bottom":[573, 43] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[587, 10], "bottom":[616, 43] }, + { "bIndex":84, "keyCode":"Key_Delete", "top":[631, 10], "bottom":[660, 43] }, + { "bIndex":90, "keyCode":"Key_Home", "top":[675, 10], "bottom":[704, 43] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[11, 54], "bottom":[40, 87] }, + { "bIndex":7, "keyCode":"Key_1", "top":[56, 54], "bottom":[85, 87] }, + { "bIndex":13, "keyCode":"Key_2", "top":[100, 54], "bottom":[129, 87] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 54], "bottom":[173, 87] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 54], "bottom":[217, 87] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 54], "bottom":[261, 87] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 54], "bottom":[306, 87] }, + { "bIndex":43, "keyCode":"Key_7", "top":[321, 54], "bottom":[350, 87] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 54], "bottom":[395, 87] }, + { "bIndex":55, "keyCode":"Key_9", "top":[409, 54], "bottom":[438, 87] }, + { "bIndex":61, "keyCode":"Key_0", "top":[455, 54], "bottom":[484, 87] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[500, 54], "bottom":[529, 87] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[543, 54], "bottom":[572, 87] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[590, 54], "bottom":[661, 87] }, + { "bIndex":102, "keyCode":"Key_Page_Up", "top":[763, 10], "bottom":[792, 43] }, + { "bIndex":91, "keyCode":"Key_Num_Lock", "top":[676, 55], "bottom":[705, 88] }, + { "bIndex":97, "keyCode":"Key_Num_Divide", "top":[719, 55], "bottom":[748, 88] }, + { "bIndex":103, "keyCode":"Key_Num_Multiply", "top":[763, 55], "bottom":[792, 88] }, + { "bIndex":109, "keyCode":"Key_Num_Substract", "top":[808, 55], "bottom":[837, 88] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[12, 98], "bottom":[61, 131] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 98], "bottom":[108, 131] }, + { "bIndex":14, "keyCode":"Key_W", "top":[123, 98], "bottom":[152, 131] }, + { "bIndex":20, "keyCode":"Key_E", "top":[166, 98], "bottom":[195, 131] }, + { "bIndex":26, "keyCode":"Key_R", "top":[210, 98], "bottom":[239, 131] }, + { "bIndex":32, "keyCode":"Key_T", "top":[255, 98], "bottom":[284, 131] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[299, 98], "bottom":[328, 131] }, + { "bIndex":44, "keyCode":"Key_U", "top":[344, 98], "bottom":[373, 131] }, + { "bIndex":50, "keyCode":"Key_I", "top":[388, 98], "bottom":[417, 131] }, + { "bIndex":56, "keyCode":"Key_O", "top":[433, 98], "bottom":[462, 131] }, + { "bIndex":62, "keyCode":"Key_P", "top":[477, 98], "bottom":[506, 131] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[521, 98], "bottom":[550, 131] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[564, 98], "bottom":[593, 131] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[608, 98], "bottom":[658, 131] }, + { "bIndex":96, "keyCode":"Key_Insert", "top":[717, 9], "bottom":[746, 42] }, + { "bIndex":108, "keyCode":"Key_Page_Down", "top":[808, 9], "bottom":[837, 42] }, + { "bIndex":92, "keyCode":"Key_Num_7", "top":[676, 99], "bottom":[705, 132] }, + { "bIndex":98, "keyCode":"Key_Num_8", "top":[721, 99], "bottom":[750, 132] }, + { "bIndex":104, "keyCode":"Key_Num_9", "top":[764, 99], "bottom":[793, 132] }, + { "bIndex":110, "keyCode":"Key_Num_Add", "top":[809, 101], "bottom":[838, 175] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[11, 143], "bottom":[71, 176] }, + { "bIndex":9, "keyCode":"Key_A", "top":[88, 142], "bottom":[117, 175] }, + { "bIndex":15, "keyCode":"Key_S", "top":[133, 142], "bottom":[162, 175] }, + { "bIndex":21, "keyCode":"Key_D", "top":[177, 142], "bottom":[206, 175] }, + { "bIndex":27, "keyCode":"Key_F", "top":[222, 142], "bottom":[251, 175] }, + { "bIndex":33, "keyCode":"Key_G", "top":[266, 142], "bottom":[295, 175] }, + { "bIndex":39, "keyCode":"Key_H", "top":[312, 142], "bottom":[341, 175] }, + { "bIndex":45, "keyCode":"Key_J", "top":[355, 142], "bottom":[384, 175] }, + { "bIndex":51, "keyCode":"Key_K", "top":[399, 142], "bottom":[428, 175] }, + { "bIndex":57, "keyCode":"Key_L", "top":[443, 142], "bottom":[472, 175] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[489, 142], "bottom":[518, 175] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[533, 142], "bottom":[562, 175] }, + { "bIndex":93, "keyCode":"Key_Num_4", "top":[674, 144], "bottom":[703, 177] }, + { "bIndex":99, "keyCode":"Key_Num_5", "top":[719, 144], "bottom":[748, 177] }, + { "bIndex":105, "keyCode":"Key_Num_6", "top":[763, 144], "bottom":[792, 177] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[12, 185], "bottom":[94, 218] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[110, 186], "bottom":[139, 219] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 186], "bottom":[184, 219] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 186], "bottom":[228, 219] }, + { "bIndex":28, "keyCode":"Key_V", "top":[243, 186], "bottom":[272, 219] }, + { "bIndex":34, "keyCode":"Key_B", "top":[287, 186], "bottom":[316, 219] }, + { "bIndex":40, "keyCode":"Key_N", "top":[332, 186], "bottom":[361, 219] }, + { "bIndex":46, "keyCode":"Key_M", "top":[377, 186], "bottom":[406, 219] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[421, 186], "bottom":[450, 219] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 186], "bottom":[495, 219] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[510, 186], "bottom":[539, 219] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[556, 186], "bottom":[616, 219] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[632, 187], "bottom":[661, 220] }, + { "bIndex":94, "keyCode":"Key_Num_1", "top":[674, 187], "bottom":[703, 220] }, + { "bIndex":100, "keyCode":"Key_Num_2", "top":[719, 187], "bottom":[748, 220] }, + { "bIndex":106, "keyCode":"Key_Num_3", "top":[763, 187], "bottom":[792, 220] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 231], "bottom":[50, 264] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[69, 231], "bottom":[106, 264] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[124, 231], "bottom":[161, 264] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[177, 231], "bottom":[438, 264] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[455, 231], "bottom":[484, 264] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[499, 231], "bottom":[528, 264] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[543, 232], "bottom":[572, 265] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[588, 232], "bottom":[617, 265] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[632, 232], "bottom":[661, 265] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[676, 232], "bottom":[705, 265] }, + { "bIndex":101, "keyCode":"Key_Num_0", "top":[720, 231], "bottom":[749, 264] }, + { "bIndex":107, "keyCode":"Key_Num_Decimal_Point", "top":[763, 231], "bottom":[792, 264] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[576, 142], "bottom":[658, 175] }, + { "bIndex":112, "keyCode":"Key_Num_Enter", "top":[808, 189], "bottom":[837, 263] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/57.json b/keyboards/configs/57.json new file mode 100644 index 0000000..b65cc5a --- /dev/null +++ b/keyboards/configs/57.json @@ -0,0 +1,93 @@ +{ + "pid":"57", + "name":"RK857 Single", + "rgb":false, + "top":[22, 17], + "bottom":[702, 271], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[22, 18], "bottom":[51, 51] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[66, 18], "bottom":[95, 51] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[109, 18], "bottom":[138, 51] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[152, 18], "bottom":[181, 51] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[195, 18], "bottom":[224, 51] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[239, 18], "bottom":[268, 51] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[282, 18], "bottom":[311, 51] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[325, 18], "bottom":[354, 51] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[369, 18], "bottom":[398, 51] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[412, 18], "bottom":[441, 51] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[455, 18], "bottom":[484, 51] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[498, 18], "bottom":[527, 51] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[541, 18], "bottom":[570, 51] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[585, 18], "bottom":[614, 51] }, + { "bIndex":84, "keyCode":"Key_Pause", "top":[627, 18], "bottom":[656, 51] }, + { "bIndex":90, "keyCode":"Key_Delete", "top":[671, 17], "bottom":[700, 50] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[22, 62], "bottom":[51, 95] }, + { "bIndex":7, "keyCode":"Key_1", "top":[66, 62], "bottom":[95, 95] }, + { "bIndex":13, "keyCode":"Key_2", "top":[109, 62], "bottom":[138, 95] }, + { "bIndex":19, "keyCode":"Key_3", "top":[152, 62], "bottom":[181, 95] }, + { "bIndex":25, "keyCode":"Key_4", "top":[195, 62], "bottom":[224, 95] }, + { "bIndex":31, "keyCode":"Key_5", "top":[238, 62], "bottom":[267, 95] }, + { "bIndex":37, "keyCode":"Key_6", "top":[282, 62], "bottom":[311, 95] }, + { "bIndex":43, "keyCode":"Key_7", "top":[325, 62], "bottom":[354, 95] }, + { "bIndex":49, "keyCode":"Key_8", "top":[368, 62], "bottom":[397, 95] }, + { "bIndex":55, "keyCode":"Key_9", "top":[410, 62], "bottom":[439, 95] }, + { "bIndex":61, "keyCode":"Key_0", "top":[454, 62], "bottom":[483, 95] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[498, 62], "bottom":[527, 95] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[540, 62], "bottom":[569, 95] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[586, 62], "bottom":[657, 95] }, + { "bIndex":92, "keyCode":"Key_End", "top":[672, 105], "bottom":[701, 138] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[671, 62], "bottom":[700, 95] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[24, 106], "bottom":[73, 139] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[88, 106], "bottom":[117, 139] }, + { "bIndex":14, "keyCode":"Key_W", "top":[130, 106], "bottom":[159, 139] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 106], "bottom":[204, 139] }, + { "bIndex":26, "keyCode":"Key_R", "top":[217, 106], "bottom":[246, 139] }, + { "bIndex":32, "keyCode":"Key_T", "top":[260, 106], "bottom":[289, 139] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[303, 106], "bottom":[332, 139] }, + { "bIndex":44, "keyCode":"Key_U", "top":[347, 106], "bottom":[376, 139] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 106], "bottom":[419, 139] }, + { "bIndex":56, "keyCode":"Key_O", "top":[433, 106], "bottom":[462, 139] }, + { "bIndex":62, "keyCode":"Key_P", "top":[477, 106], "bottom":[506, 139] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[519, 106], "bottom":[548, 139] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[562, 106], "bottom":[591, 139] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[607, 106], "bottom":[657, 139] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[672, 192], "bottom":[701, 225] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[672, 149], "bottom":[701, 182] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[23, 149], "bottom":[83, 182] }, + { "bIndex":9, "keyCode":"Key_A", "top":[98, 148], "bottom":[127, 181] }, + { "bIndex":15, "keyCode":"Key_S", "top":[142, 148], "bottom":[171, 181] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 148], "bottom":[215, 181] }, + { "bIndex":27, "keyCode":"Key_F", "top":[228, 148], "bottom":[257, 181] }, + { "bIndex":33, "keyCode":"Key_G", "top":[271, 148], "bottom":[300, 181] }, + { "bIndex":39, "keyCode":"Key_H", "top":[315, 148], "bottom":[344, 181] }, + { "bIndex":45, "keyCode":"Key_J", "top":[358, 148], "bottom":[387, 181] }, + { "bIndex":51, "keyCode":"Key_K", "top":[402, 148], "bottom":[431, 181] }, + { "bIndex":57, "keyCode":"Key_L", "top":[444, 148], "bottom":[473, 181] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[488, 148], "bottom":[517, 181] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[531, 148], "bottom":[560, 181] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 193], "bottom":[104, 226] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[120, 192], "bottom":[149, 225] }, + { "bIndex":16, "keyCode":"Key_X", "top":[163, 192], "bottom":[192, 225] }, + { "bIndex":22, "keyCode":"Key_C", "top":[207, 192], "bottom":[236, 225] }, + { "bIndex":28, "keyCode":"Key_V", "top":[251, 192], "bottom":[280, 225] }, + { "bIndex":34, "keyCode":"Key_B", "top":[294, 192], "bottom":[323, 225] }, + { "bIndex":40, "keyCode":"Key_N", "top":[337, 192], "bottom":[366, 225] }, + { "bIndex":46, "keyCode":"Key_M", "top":[380, 192], "bottom":[409, 225] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[422, 192], "bottom":[451, 225] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 192], "bottom":[495, 225] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[509, 192], "bottom":[538, 225] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[553, 192], "bottom":[613, 225] }, + { "bIndex":82, "keyCode":"Key_Up", "top":[630, 193], "bottom":[659, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[24, 237], "bottom":[61, 270] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[78, 237], "bottom":[115, 270] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[132, 237], "bottom":[169, 270] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 237], "bottom":[442, 270] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[455, 237], "bottom":[484, 270] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[499, 237], "bottom":[528, 270] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[543, 238], "bottom":[572, 271] }, + { "bIndex":71, "keyCode":"Key_Left", "top":[586, 238], "bottom":[615, 271] }, + { "bIndex":83, "keyCode":"Key_Down", "top":[630, 238], "bottom":[659, 271] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[673, 238], "bottom":[702, 271] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[575, 148], "bottom":[657, 181] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/58.json b/keyboards/configs/58.json new file mode 100644 index 0000000..85407bd --- /dev/null +++ b/keyboards/configs/58.json @@ -0,0 +1,113 @@ +{ + "pid":"58", + "name":"RK SINK104", + "rgb":false, + "top":[21, 17], + "bottom":[1009, 294], + "keys":[ + { "bIndex":6, "keyCode":"Key_Escape", "top":[21, 17], "bottom":[48, 47] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[111, 17], "bottom":[138, 47] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[156, 17], "bottom":[183, 47] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[201, 17], "bottom":[228, 47] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[246, 17], "bottom":[273, 47] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[312, 17], "bottom":[339, 47] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[357, 17], "bottom":[384, 47] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[401, 17], "bottom":[428, 47] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[446, 17], "bottom":[473, 47] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[513, 17], "bottom":[540, 47] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[558, 17], "bottom":[585, 47] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[602, 17], "bottom":[629, 47] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[647, 17], "bottom":[674, 47] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[702, 17], "bottom":[729, 47] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[703, 84], "bottom":[730, 114] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[747, 84], "bottom":[774, 114] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[21, 84], "bottom":[48, 114] }, + { "bIndex":7, "keyCode":"Key_1", "top":[66, 84], "bottom":[93, 114] }, + { "bIndex":13, "keyCode":"Key_2", "top":[111, 84], "bottom":[138, 114] }, + { "bIndex":19, "keyCode":"Key_3", "top":[158, 84], "bottom":[185, 114] }, + { "bIndex":25, "keyCode":"Key_4", "top":[202, 84], "bottom":[229, 114] }, + { "bIndex":31, "keyCode":"Key_5", "top":[246, 84], "bottom":[273, 114] }, + { "bIndex":37, "keyCode":"Key_6", "top":[291, 84], "bottom":[318, 114] }, + { "bIndex":43, "keyCode":"Key_7", "top":[335, 84], "bottom":[362, 114] }, + { "bIndex":49, "keyCode":"Key_8", "top":[380, 84], "bottom":[407, 114] }, + { "bIndex":55, "keyCode":"Key_9", "top":[423, 84], "bottom":[450, 114] }, + { "bIndex":61, "keyCode":"Key_0", "top":[469, 84], "bottom":[496, 114] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[514, 84], "bottom":[541, 114] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[557, 84], "bottom":[584, 114] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[602, 84], "bottom":[674, 114] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[792, 84], "bottom":[819, 114] }, + { "bIndex":103, "keyCode":"Key_Num_Lock", "top":[846, 85], "bottom":[873, 115] }, + { "bIndex":109, "keyCode":"Key_Num_Divide", "top":[892, 85], "bottom":[919, 115] }, + { "bIndex":115, "keyCode":"Key_Num_Multiply", "top":[937, 85], "bottom":[964, 115] }, + { "bIndex":121, "keyCode":"Key_Num_Substract", "top":[982, 85], "bottom":[1009, 115] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[22, 130], "bottom":[71, 160] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[89, 130], "bottom":[116, 160] }, + { "bIndex":14, "keyCode":"Key_W", "top":[135, 130], "bottom":[162, 160] }, + { "bIndex":20, "keyCode":"Key_E", "top":[179, 130], "bottom":[206, 160] }, + { "bIndex":26, "keyCode":"Key_R", "top":[223, 130], "bottom":[250, 160] }, + { "bIndex":32, "keyCode":"Key_T", "top":[268, 130], "bottom":[295, 160] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[312, 130], "bottom":[339, 160] }, + { "bIndex":44, "keyCode":"Key_U", "top":[357, 130], "bottom":[384, 160] }, + { "bIndex":50, "keyCode":"Key_I", "top":[401, 130], "bottom":[428, 160] }, + { "bIndex":56, "keyCode":"Key_O", "top":[446, 130], "bottom":[473, 160] }, + { "bIndex":62, "keyCode":"Key_P", "top":[490, 130], "bottom":[517, 160] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[534, 130], "bottom":[561, 160] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[579, 130], "bottom":[606, 160] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[624, 130], "bottom":[674, 160] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[702, 129], "bottom":[729, 159] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[793, 129], "bottom":[820, 159] }, + { "bIndex":104, "keyCode":"Key_Num_7", "top":[848, 130], "bottom":[875, 160] }, + { "bIndex":110, "keyCode":"Key_Num_8", "top":[893, 130], "bottom":[920, 160] }, + { "bIndex":116, "keyCode":"Key_Num_9", "top":[936, 130], "bottom":[963, 160] }, + { "bIndex":122, "keyCode":"Key_Num_Add", "top":[981, 131], "bottom":[1008, 205] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[22, 174], "bottom":[82, 204] }, + { "bIndex":9, "keyCode":"Key_A", "top":[100, 174], "bottom":[127, 204] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 174], "bottom":[172, 204] }, + { "bIndex":21, "keyCode":"Key_D", "top":[189, 174], "bottom":[216, 204] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 174], "bottom":[261, 204] }, + { "bIndex":33, "keyCode":"Key_G", "top":[278, 174], "bottom":[305, 204] }, + { "bIndex":39, "keyCode":"Key_H", "top":[323, 174], "bottom":[350, 204] }, + { "bIndex":45, "keyCode":"Key_J", "top":[368, 174], "bottom":[395, 204] }, + { "bIndex":51, "keyCode":"Key_K", "top":[412, 174], "bottom":[439, 204] }, + { "bIndex":57, "keyCode":"Key_L", "top":[457, 174], "bottom":[484, 204] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[501, 174], "bottom":[528, 204] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[545, 174], "bottom":[572, 204] }, + { "bIndex":105, "keyCode":"Key_Num_4", "top":[846, 174], "bottom":[873, 204] }, + { "bIndex":111, "keyCode":"Key_Num_5", "top":[891, 174], "bottom":[918, 204] }, + { "bIndex":117, "keyCode":"Key_Num_6", "top":[935, 174], "bottom":[962, 204] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 219], "bottom":[104, 249] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[122, 219], "bottom":[149, 249] }, + { "bIndex":16, "keyCode":"Key_X", "top":[167, 219], "bottom":[194, 249] }, + { "bIndex":22, "keyCode":"Key_C", "top":[212, 219], "bottom":[239, 249] }, + { "bIndex":28, "keyCode":"Key_V", "top":[256, 219], "bottom":[283, 249] }, + { "bIndex":34, "keyCode":"Key_B", "top":[300, 219], "bottom":[327, 249] }, + { "bIndex":40, "keyCode":"Key_N", "top":[345, 219], "bottom":[372, 249] }, + { "bIndex":46, "keyCode":"Key_M", "top":[390, 219], "bottom":[417, 249] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[434, 219], "bottom":[461, 249] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[479, 219], "bottom":[506, 249] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[523, 219], "bottom":[550, 249] }, + { "bIndex":76, "keyCode":"Key_Right_Shift", "top":[569, 218], "bottom":[674, 248] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[747, 219], "bottom":[774, 249] }, + { "bIndex":106, "keyCode":"Key_Num_1", "top":[846, 219], "bottom":[873, 249] }, + { "bIndex":112, "keyCode":"Key_Num_2", "top":[891, 219], "bottom":[918, 249] }, + { "bIndex":118, "keyCode":"Key_Num_3", "top":[935, 219], "bottom":[962, 249] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[22, 264], "bottom":[60, 294] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[77, 264], "bottom":[115, 294] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[132, 264], "bottom":[170, 294] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[190, 264], "bottom":[450, 294] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[468, 264], "bottom":[506, 294] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[523, 264], "bottom":[561, 294] }, + { "bIndex":77, "keyCode":"Key_Right_Control", "top":[635, 264], "bottom":[673, 294] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[702, 264], "bottom":[729, 294] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[747, 264], "bottom":[774, 294] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[791, 264], "bottom":[818, 294] }, + { "bIndex":107, "keyCode":"Key_Num_0", "top":[848, 264], "bottom":[919, 294] }, + { "bIndex":119, "keyCode":"Key_Num_Decimal_Point", "top":[936, 264], "bottom":[963, 294] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[747, 18], "bottom":[774, 48] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[793, 18], "bottom":[820, 48] }, + { "bIndex":92, "keyCode":"Key_End", "top":[747, 129], "bottom":[774, 159] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[579, 263], "bottom":[617, 293] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[590, 174], "bottom":[674, 204] }, + { "bIndex":124, "keyCode":"Key_Num_Enter", "top":[981, 220], "bottom":[1008, 294] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/59.json b/keyboards/configs/59.json new file mode 100644 index 0000000..e3c034d --- /dev/null +++ b/keyboards/configs/59.json @@ -0,0 +1,93 @@ +{ + "pid":"59", + "name":"RK84RGB", + "rgb":true, + "top":[22, 17], + "bottom":[702, 271], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[22, 18], "bottom":[51, 51] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[66, 18], "bottom":[95, 51] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[109, 18], "bottom":[138, 51] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[152, 18], "bottom":[181, 51] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[195, 18], "bottom":[224, 51] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[239, 18], "bottom":[268, 51] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[282, 18], "bottom":[311, 51] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[325, 18], "bottom":[354, 51] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[369, 18], "bottom":[398, 51] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[412, 18], "bottom":[441, 51] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[455, 18], "bottom":[484, 51] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[498, 18], "bottom":[527, 51] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[541, 18], "bottom":[570, 51] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[585, 18], "bottom":[614, 51] }, + { "bIndex":84, "keyCode":"Key_Pause", "top":[627, 18], "bottom":[656, 51] }, + { "bIndex":90, "keyCode":"Key_Delete", "top":[671, 17], "bottom":[700, 50] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[22, 62], "bottom":[51, 95] }, + { "bIndex":7, "keyCode":"Key_1", "top":[66, 62], "bottom":[95, 95] }, + { "bIndex":13, "keyCode":"Key_2", "top":[109, 62], "bottom":[138, 95] }, + { "bIndex":19, "keyCode":"Key_3", "top":[152, 62], "bottom":[181, 95] }, + { "bIndex":25, "keyCode":"Key_4", "top":[195, 62], "bottom":[224, 95] }, + { "bIndex":31, "keyCode":"Key_5", "top":[238, 62], "bottom":[267, 95] }, + { "bIndex":37, "keyCode":"Key_6", "top":[282, 62], "bottom":[311, 95] }, + { "bIndex":43, "keyCode":"Key_7", "top":[325, 62], "bottom":[354, 95] }, + { "bIndex":49, "keyCode":"Key_8", "top":[368, 62], "bottom":[397, 95] }, + { "bIndex":55, "keyCode":"Key_9", "top":[410, 62], "bottom":[439, 95] }, + { "bIndex":61, "keyCode":"Key_0", "top":[454, 62], "bottom":[483, 95] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[498, 62], "bottom":[527, 95] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[540, 62], "bottom":[569, 95] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[586, 62], "bottom":[657, 95] }, + { "bIndex":92, "keyCode":"Key_End", "top":[672, 105], "bottom":[701, 138] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[671, 62], "bottom":[700, 95] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[24, 106], "bottom":[73, 139] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[88, 106], "bottom":[117, 139] }, + { "bIndex":14, "keyCode":"Key_W", "top":[130, 106], "bottom":[159, 139] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 106], "bottom":[204, 139] }, + { "bIndex":26, "keyCode":"Key_R", "top":[217, 106], "bottom":[246, 139] }, + { "bIndex":32, "keyCode":"Key_T", "top":[260, 106], "bottom":[289, 139] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[303, 106], "bottom":[332, 139] }, + { "bIndex":44, "keyCode":"Key_U", "top":[347, 106], "bottom":[376, 139] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 106], "bottom":[419, 139] }, + { "bIndex":56, "keyCode":"Key_O", "top":[433, 106], "bottom":[462, 139] }, + { "bIndex":62, "keyCode":"Key_P", "top":[477, 106], "bottom":[506, 139] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[519, 106], "bottom":[548, 139] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[562, 106], "bottom":[591, 139] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[607, 106], "bottom":[657, 139] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[672, 192], "bottom":[701, 225] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[672, 149], "bottom":[701, 182] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[23, 149], "bottom":[83, 182] }, + { "bIndex":9, "keyCode":"Key_A", "top":[98, 148], "bottom":[127, 181] }, + { "bIndex":15, "keyCode":"Key_S", "top":[142, 148], "bottom":[171, 181] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 148], "bottom":[215, 181] }, + { "bIndex":27, "keyCode":"Key_F", "top":[228, 148], "bottom":[257, 181] }, + { "bIndex":33, "keyCode":"Key_G", "top":[271, 148], "bottom":[300, 181] }, + { "bIndex":39, "keyCode":"Key_H", "top":[315, 148], "bottom":[344, 181] }, + { "bIndex":45, "keyCode":"Key_J", "top":[358, 148], "bottom":[387, 181] }, + { "bIndex":51, "keyCode":"Key_K", "top":[402, 148], "bottom":[431, 181] }, + { "bIndex":57, "keyCode":"Key_L", "top":[444, 148], "bottom":[473, 181] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[488, 148], "bottom":[517, 181] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[531, 148], "bottom":[560, 181] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 193], "bottom":[104, 226] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[120, 192], "bottom":[149, 225] }, + { "bIndex":16, "keyCode":"Key_X", "top":[163, 192], "bottom":[192, 225] }, + { "bIndex":22, "keyCode":"Key_C", "top":[207, 192], "bottom":[236, 225] }, + { "bIndex":28, "keyCode":"Key_V", "top":[251, 192], "bottom":[280, 225] }, + { "bIndex":34, "keyCode":"Key_B", "top":[294, 192], "bottom":[323, 225] }, + { "bIndex":40, "keyCode":"Key_N", "top":[337, 192], "bottom":[366, 225] }, + { "bIndex":46, "keyCode":"Key_M", "top":[380, 192], "bottom":[409, 225] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[422, 192], "bottom":[451, 225] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 192], "bottom":[495, 225] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[509, 192], "bottom":[538, 225] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[553, 192], "bottom":[613, 225] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[630, 193], "bottom":[659, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[24, 237], "bottom":[61, 270] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[78, 237], "bottom":[115, 270] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[132, 237], "bottom":[169, 270] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 237], "bottom":[442, 270] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[455, 237], "bottom":[484, 270] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[499, 237], "bottom":[528, 270] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[543, 238], "bottom":[572, 271] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[586, 238], "bottom":[615, 271] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[630, 238], "bottom":[659, 271] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[673, 238], "bottom":[702, 271] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[575, 148], "bottom":[657, 181] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/5a.json b/keyboards/configs/5a.json new file mode 100644 index 0000000..39d8ea3 --- /dev/null +++ b/keyboards/configs/5a.json @@ -0,0 +1,80 @@ +{ + "pid":"5a", + "name":"RK71RGB", + "rgb":true, + "top":[12, 43], + "bottom":[707, 247], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[12, 44], "bottom":[39, 75] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[638, 45], "bottom":[665, 76] }, + { "bIndex":87, "keyCode":"Key_Pause", "top":[638, 130], "bottom":[665, 161] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[638, 87], "bottom":[665, 118] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 44], "bottom":[81, 75] }, + { "bIndex":13, "keyCode":"Key_2", "top":[96, 44], "bottom":[123, 75] }, + { "bIndex":19, "keyCode":"Key_3", "top":[138, 44], "bottom":[165, 75] }, + { "bIndex":25, "keyCode":"Key_4", "top":[179, 44], "bottom":[206, 75] }, + { "bIndex":31, "keyCode":"Key_5", "top":[221, 44], "bottom":[248, 75] }, + { "bIndex":37, "keyCode":"Key_6", "top":[262, 44], "bottom":[289, 75] }, + { "bIndex":43, "keyCode":"Key_7", "top":[305, 44], "bottom":[332, 75] }, + { "bIndex":49, "keyCode":"Key_8", "top":[346, 44], "bottom":[373, 75] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 44], "bottom":[415, 75] }, + { "bIndex":61, "keyCode":"Key_0", "top":[430, 44], "bottom":[457, 75] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[471, 44], "bottom":[498, 75] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[513, 44], "bottom":[540, 75] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[556, 43], "bottom":[622, 74] }, + { "bIndex":92, "keyCode":"Key_End", "top":[679, 87], "bottom":[706, 118] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[680, 44], "bottom":[707, 75] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[13, 87], "bottom":[60, 118] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[75, 87], "bottom":[102, 118] }, + { "bIndex":14, "keyCode":"Key_W", "top":[117, 87], "bottom":[144, 118] }, + { "bIndex":20, "keyCode":"Key_E", "top":[158, 87], "bottom":[185, 118] }, + { "bIndex":26, "keyCode":"Key_R", "top":[200, 87], "bottom":[227, 118] }, + { "bIndex":32, "keyCode":"Key_T", "top":[242, 87], "bottom":[269, 118] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[284, 87], "bottom":[311, 118] }, + { "bIndex":44, "keyCode":"Key_U", "top":[325, 87], "bottom":[352, 118] }, + { "bIndex":50, "keyCode":"Key_I", "top":[367, 87], "bottom":[394, 118] }, + { "bIndex":56, "keyCode":"Key_O", "top":[409, 87], "bottom":[436, 118] }, + { "bIndex":62, "keyCode":"Key_P", "top":[450, 87], "bottom":[477, 118] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[492, 87], "bottom":[519, 118] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[534, 87], "bottom":[561, 118] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[576, 87], "bottom":[622, 118] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 173], "bottom":[707, 204] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 130], "bottom":[707, 161] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[13, 130], "bottom":[70, 161] }, + { "bIndex":9, "keyCode":"Key_A", "top":[86, 130], "bottom":[113, 161] }, + { "bIndex":15, "keyCode":"Key_S", "top":[127, 130], "bottom":[154, 161] }, + { "bIndex":21, "keyCode":"Key_D", "top":[169, 130], "bottom":[196, 161] }, + { "bIndex":27, "keyCode":"Key_F", "top":[211, 130], "bottom":[238, 161] }, + { "bIndex":33, "keyCode":"Key_G", "top":[253, 130], "bottom":[280, 161] }, + { "bIndex":39, "keyCode":"Key_H", "top":[294, 130], "bottom":[321, 161] }, + { "bIndex":45, "keyCode":"Key_J", "top":[336, 130], "bottom":[363, 161] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 130], "bottom":[405, 161] }, + { "bIndex":57, "keyCode":"Key_L", "top":[419, 130], "bottom":[446, 161] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[461, 130], "bottom":[488, 161] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[502, 130], "bottom":[529, 161] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[13, 172], "bottom":[91, 203] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[107, 172], "bottom":[134, 203] }, + { "bIndex":16, "keyCode":"Key_X", "top":[148, 172], "bottom":[175, 203] }, + { "bIndex":22, "keyCode":"Key_C", "top":[190, 172], "bottom":[217, 203] }, + { "bIndex":28, "keyCode":"Key_V", "top":[232, 172], "bottom":[259, 203] }, + { "bIndex":34, "keyCode":"Key_B", "top":[273, 172], "bottom":[300, 203] }, + { "bIndex":40, "keyCode":"Key_N", "top":[315, 172], "bottom":[342, 203] }, + { "bIndex":46, "keyCode":"Key_M", "top":[357, 172], "bottom":[384, 203] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 172], "bottom":[425, 203] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[440, 172], "bottom":[467, 203] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[482, 172], "bottom":[509, 203] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[524, 172], "bottom":[622, 203] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[638, 172], "bottom":[665, 203] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 215], "bottom":[49, 246] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[66, 215], "bottom":[102, 246] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[118, 215], "bottom":[153, 246] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[170, 215], "bottom":[414, 246] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[433, 215], "bottom":[465, 246] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[486, 215], "bottom":[518, 246] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[539, 216], "bottom":[571, 247] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[597, 216], "bottom":[624, 247] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[638, 216], "bottom":[665, 247] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[679, 216], "bottom":[706, 247] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[545, 129], "bottom":[622, 160] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/5b.json b/keyboards/configs/5b.json new file mode 100644 index 0000000..7f93c18 --- /dev/null +++ b/keyboards/configs/5b.json @@ -0,0 +1,96 @@ +{ + "pid":"5b", + "name":"RK987RGB", + "rgb":true, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/5c.json b/keyboards/configs/5c.json new file mode 100644 index 0000000..20629ee --- /dev/null +++ b/keyboards/configs/5c.json @@ -0,0 +1,78 @@ +{ + "pid":"5c", + "name":"RK-G68RGB-UK", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 56], "bottom":[709, 89] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":75, "keyCode":"Key_Back_Slash", "top":[580, 103], "bottom":[607, 136] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 150], "bottom":[709, 183] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 103], "bottom":[709, 136] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[49, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[111, 150], "bottom":[140, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[156, 150], "bottom":[185, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[200, 150], "bottom":[229, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[12, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[104, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[123, 197], "bottom":[160, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":76, "keyCode":"Key_Left_Shift_Split", "top":[66, 149], "bottom":[95, 182] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[624, 97], "bottom":[662, 130] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/5d.json b/keyboards/configs/5d.json new file mode 100644 index 0000000..e8aa737 --- /dev/null +++ b/keyboards/configs/5d.json @@ -0,0 +1,93 @@ +{ + "pid":"5d", + "name":"RK857", + "rgb":true, + "top":[22, 17], + "bottom":[702, 271], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[22, 18], "bottom":[51, 51] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[66, 18], "bottom":[95, 51] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[109, 18], "bottom":[138, 51] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[152, 18], "bottom":[181, 51] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[195, 18], "bottom":[224, 51] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[239, 18], "bottom":[268, 51] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[282, 18], "bottom":[311, 51] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[325, 18], "bottom":[354, 51] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[369, 18], "bottom":[398, 51] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[412, 18], "bottom":[441, 51] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[455, 18], "bottom":[484, 51] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[498, 18], "bottom":[527, 51] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[541, 18], "bottom":[570, 51] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[585, 18], "bottom":[614, 51] }, + { "bIndex":84, "keyCode":"Key_Pause", "top":[627, 18], "bottom":[656, 51] }, + { "bIndex":90, "keyCode":"Key_Delete", "top":[671, 17], "bottom":[700, 50] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[22, 62], "bottom":[51, 95] }, + { "bIndex":7, "keyCode":"Key_1", "top":[66, 62], "bottom":[95, 95] }, + { "bIndex":13, "keyCode":"Key_2", "top":[109, 62], "bottom":[138, 95] }, + { "bIndex":19, "keyCode":"Key_3", "top":[152, 62], "bottom":[181, 95] }, + { "bIndex":25, "keyCode":"Key_4", "top":[195, 62], "bottom":[224, 95] }, + { "bIndex":31, "keyCode":"Key_5", "top":[238, 62], "bottom":[267, 95] }, + { "bIndex":37, "keyCode":"Key_6", "top":[282, 62], "bottom":[311, 95] }, + { "bIndex":43, "keyCode":"Key_7", "top":[325, 62], "bottom":[354, 95] }, + { "bIndex":49, "keyCode":"Key_8", "top":[368, 62], "bottom":[397, 95] }, + { "bIndex":55, "keyCode":"Key_9", "top":[410, 62], "bottom":[439, 95] }, + { "bIndex":61, "keyCode":"Key_0", "top":[454, 62], "bottom":[483, 95] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[498, 62], "bottom":[527, 95] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[540, 62], "bottom":[569, 95] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[586, 62], "bottom":[657, 95] }, + { "bIndex":92, "keyCode":"Key_End", "top":[672, 105], "bottom":[701, 138] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[671, 62], "bottom":[700, 95] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[24, 106], "bottom":[73, 139] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[88, 106], "bottom":[117, 139] }, + { "bIndex":14, "keyCode":"Key_W", "top":[130, 106], "bottom":[159, 139] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 106], "bottom":[204, 139] }, + { "bIndex":26, "keyCode":"Key_R", "top":[217, 106], "bottom":[246, 139] }, + { "bIndex":32, "keyCode":"Key_T", "top":[260, 106], "bottom":[289, 139] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[303, 106], "bottom":[332, 139] }, + { "bIndex":44, "keyCode":"Key_U", "top":[347, 106], "bottom":[376, 139] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 106], "bottom":[419, 139] }, + { "bIndex":56, "keyCode":"Key_O", "top":[433, 106], "bottom":[462, 139] }, + { "bIndex":62, "keyCode":"Key_P", "top":[477, 106], "bottom":[506, 139] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[519, 106], "bottom":[548, 139] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[562, 106], "bottom":[591, 139] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[607, 106], "bottom":[657, 139] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[672, 192], "bottom":[701, 225] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[672, 149], "bottom":[701, 182] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[23, 149], "bottom":[83, 182] }, + { "bIndex":9, "keyCode":"Key_A", "top":[98, 148], "bottom":[127, 181] }, + { "bIndex":15, "keyCode":"Key_S", "top":[142, 148], "bottom":[171, 181] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 148], "bottom":[215, 181] }, + { "bIndex":27, "keyCode":"Key_F", "top":[228, 148], "bottom":[257, 181] }, + { "bIndex":33, "keyCode":"Key_G", "top":[271, 148], "bottom":[300, 181] }, + { "bIndex":39, "keyCode":"Key_H", "top":[315, 148], "bottom":[344, 181] }, + { "bIndex":45, "keyCode":"Key_J", "top":[358, 148], "bottom":[387, 181] }, + { "bIndex":51, "keyCode":"Key_K", "top":[402, 148], "bottom":[431, 181] }, + { "bIndex":57, "keyCode":"Key_L", "top":[444, 148], "bottom":[473, 181] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[488, 148], "bottom":[517, 181] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[531, 148], "bottom":[560, 181] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 193], "bottom":[104, 226] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[120, 192], "bottom":[149, 225] }, + { "bIndex":16, "keyCode":"Key_X", "top":[163, 192], "bottom":[192, 225] }, + { "bIndex":22, "keyCode":"Key_C", "top":[207, 192], "bottom":[236, 225] }, + { "bIndex":28, "keyCode":"Key_V", "top":[251, 192], "bottom":[280, 225] }, + { "bIndex":34, "keyCode":"Key_B", "top":[294, 192], "bottom":[323, 225] }, + { "bIndex":40, "keyCode":"Key_N", "top":[337, 192], "bottom":[366, 225] }, + { "bIndex":46, "keyCode":"Key_M", "top":[380, 192], "bottom":[409, 225] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[422, 192], "bottom":[451, 225] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 192], "bottom":[495, 225] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[509, 192], "bottom":[538, 225] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[553, 192], "bottom":[613, 225] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[630, 193], "bottom":[659, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[24, 237], "bottom":[61, 270] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[78, 237], "bottom":[115, 270] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[132, 237], "bottom":[169, 270] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 237], "bottom":[442, 270] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[455, 237], "bottom":[484, 270] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[499, 237], "bottom":[528, 270] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[543, 238], "bottom":[572, 271] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[586, 238], "bottom":[615, 271] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[630, 238], "bottom":[659, 271] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[673, 238], "bottom":[702, 271] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[575, 148], "bottom":[657, 181] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/5e.json b/keyboards/configs/5e.json new file mode 100644 index 0000000..bd8f3d1 --- /dev/null +++ b/keyboards/configs/5e.json @@ -0,0 +1,77 @@ +{ + "pid":"5e", + "name":"RK68RGB Bluetooth Dual Mode", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 58], "bottom":[709, 91] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[613, 57], "bottom":[663, 90] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 151], "bottom":[709, 184] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 105], "bottom":[709, 138] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[93, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 150], "bottom":[138, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 150], "bottom":[184, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 150], "bottom":[228, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[10, 197], "bottom":[47, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[65, 197], "bottom":[102, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[121, 197], "bottom":[158, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[580, 104], "bottom":[662, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/60.json b/keyboards/configs/60.json new file mode 100644 index 0000000..2bb0c44 --- /dev/null +++ b/keyboards/configs/60.json @@ -0,0 +1,70 @@ +{ + "pid":"60", + "name":"RK61", + "rgb":false, + "top":[6, 7], + "bottom":[702, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[6, 7], "bottom":[36, 40] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[543, 198], "bottom":[583, 231] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 7], "bottom":[84, 40] }, + { "bIndex":13, "keyCode":"Key_2", "top":[102, 7], "bottom":[132, 40] }, + { "bIndex":19, "keyCode":"Key_3", "top":[149, 7], "bottom":[179, 40] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 7], "bottom":[227, 40] }, + { "bIndex":31, "keyCode":"Key_5", "top":[244, 7], "bottom":[274, 40] }, + { "bIndex":37, "keyCode":"Key_6", "top":[292, 7], "bottom":[322, 40] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 7], "bottom":[370, 40] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 8], "bottom":[417, 41] }, + { "bIndex":55, "keyCode":"Key_9", "top":[434, 8], "bottom":[464, 41] }, + { "bIndex":61, "keyCode":"Key_0", "top":[482, 8], "bottom":[512, 41] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[530, 8], "bottom":[560, 41] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[578, 8], "bottom":[608, 41] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[627, 9], "bottom":[702, 42] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[8, 55], "bottom":[60, 88] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 56], "bottom":[109, 89] }, + { "bIndex":14, "keyCode":"Key_W", "top":[125, 56], "bottom":[155, 89] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 56], "bottom":[205, 89] }, + { "bIndex":26, "keyCode":"Key_R", "top":[221, 56], "bottom":[251, 89] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 56], "bottom":[299, 89] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 56], "bottom":[347, 89] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 56], "bottom":[394, 89] }, + { "bIndex":50, "keyCode":"Key_I", "top":[411, 56], "bottom":[441, 89] }, + { "bIndex":56, "keyCode":"Key_O", "top":[459, 57], "bottom":[489, 90] }, + { "bIndex":62, "keyCode":"Key_P", "top":[507, 57], "bottom":[537, 90] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[554, 57], "bottom":[584, 90] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[602, 57], "bottom":[632, 90] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[650, 57], "bottom":[702, 90] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[9, 103], "bottom":[73, 136] }, + { "bIndex":9, "keyCode":"Key_A", "top":[91, 103], "bottom":[121, 136] }, + { "bIndex":15, "keyCode":"Key_S", "top":[138, 104], "bottom":[168, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 104], "bottom":[216, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 104], "bottom":[264, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 104], "bottom":[311, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[329, 104], "bottom":[359, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 104], "bottom":[406, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[423, 104], "bottom":[453, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[471, 104], "bottom":[501, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[519, 104], "bottom":[549, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[566, 104], "bottom":[596, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[10, 149], "bottom":[97, 182] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[114, 149], "bottom":[144, 182] }, + { "bIndex":16, "keyCode":"Key_X", "top":[162, 149], "bottom":[192, 182] }, + { "bIndex":22, "keyCode":"Key_C", "top":[210, 149], "bottom":[240, 182] }, + { "bIndex":28, "keyCode":"Key_V", "top":[257, 149], "bottom":[287, 182] }, + { "bIndex":34, "keyCode":"Key_B", "top":[304, 149], "bottom":[334, 182] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 149], "bottom":[381, 182] }, + { "bIndex":46, "keyCode":"Key_M", "top":[399, 149], "bottom":[429, 182] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[448, 150], "bottom":[478, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[495, 150], "bottom":[525, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[542, 150], "bottom":[572, 183] }, + { "bIndex":76, "keyCode":"Key_Right_Shift", "top":[590, 150], "bottom":[702, 183] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[9, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[107, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[127, 197], "bottom":[167, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 198], "bottom":[465, 231] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[484, 198], "bottom":[524, 231] }, + { "bIndex":77, "keyCode":"Key_Fn", "top":[661, 198], "bottom":[701, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[602, 199], "bottom":[642, 232] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[614, 104], "bottom":[702, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/64.json b/keyboards/configs/64.json new file mode 100644 index 0000000..a22e588 --- /dev/null +++ b/keyboards/configs/64.json @@ -0,0 +1,77 @@ +{ + "pid":"64", + "name":"RK68RGB Wired", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 58], "bottom":[709, 91] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[613, 57], "bottom":[663, 90] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 151], "bottom":[709, 184] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 105], "bottom":[709, 138] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[93, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 150], "bottom":[138, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 150], "bottom":[184, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 150], "bottom":[228, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[10, 197], "bottom":[47, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[65, 197], "bottom":[102, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[121, 197], "bottom":[158, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[580, 104], "bottom":[662, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/65.json b/keyboards/configs/65.json new file mode 100644 index 0000000..db49a3e --- /dev/null +++ b/keyboards/configs/65.json @@ -0,0 +1,71 @@ +{ + "pid":"65", + "name":"RK61RGB ISO Return", + "rgb":true, + "top":[6, 7], + "bottom":[702, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[6, 7], "bottom":[36, 40] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[543, 198], "bottom":[583, 231] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 7], "bottom":[84, 40] }, + { "bIndex":13, "keyCode":"Key_2", "top":[102, 7], "bottom":[132, 40] }, + { "bIndex":19, "keyCode":"Key_3", "top":[149, 7], "bottom":[179, 40] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 7], "bottom":[227, 40] }, + { "bIndex":31, "keyCode":"Key_5", "top":[244, 7], "bottom":[274, 40] }, + { "bIndex":37, "keyCode":"Key_6", "top":[292, 7], "bottom":[322, 40] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 7], "bottom":[370, 40] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 8], "bottom":[417, 41] }, + { "bIndex":55, "keyCode":"Key_9", "top":[434, 8], "bottom":[464, 41] }, + { "bIndex":61, "keyCode":"Key_0", "top":[482, 8], "bottom":[512, 41] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[530, 8], "bottom":[560, 41] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[578, 8], "bottom":[608, 41] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[627, 9], "bottom":[702, 42] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[8, 55], "bottom":[60, 88] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 56], "bottom":[109, 89] }, + { "bIndex":14, "keyCode":"Key_W", "top":[125, 56], "bottom":[155, 89] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 56], "bottom":[205, 89] }, + { "bIndex":26, "keyCode":"Key_R", "top":[221, 56], "bottom":[251, 89] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 56], "bottom":[299, 89] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 56], "bottom":[347, 89] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 56], "bottom":[394, 89] }, + { "bIndex":50, "keyCode":"Key_I", "top":[411, 56], "bottom":[441, 89] }, + { "bIndex":56, "keyCode":"Key_O", "top":[459, 57], "bottom":[489, 90] }, + { "bIndex":62, "keyCode":"Key_P", "top":[507, 57], "bottom":[537, 90] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[554, 57], "bottom":[584, 90] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[602, 57], "bottom":[632, 90] }, + { "bIndex":75, "keyCode":"Key_Back_Slash", "top":[613, 103], "bottom":[643, 136] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[9, 103], "bottom":[73, 136] }, + { "bIndex":9, "keyCode":"Key_A", "top":[91, 103], "bottom":[121, 136] }, + { "bIndex":15, "keyCode":"Key_S", "top":[138, 104], "bottom":[168, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 104], "bottom":[216, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 104], "bottom":[264, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 104], "bottom":[311, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[329, 104], "bottom":[359, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 104], "bottom":[406, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[423, 104], "bottom":[453, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[471, 104], "bottom":[501, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[519, 104], "bottom":[549, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[566, 104], "bottom":[596, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[10, 149], "bottom":[47, 182] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[114, 149], "bottom":[144, 182] }, + { "bIndex":16, "keyCode":"Key_X", "top":[162, 149], "bottom":[192, 182] }, + { "bIndex":22, "keyCode":"Key_C", "top":[210, 149], "bottom":[240, 182] }, + { "bIndex":28, "keyCode":"Key_V", "top":[257, 149], "bottom":[287, 182] }, + { "bIndex":34, "keyCode":"Key_B", "top":[304, 149], "bottom":[334, 182] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 149], "bottom":[381, 182] }, + { "bIndex":46, "keyCode":"Key_M", "top":[399, 149], "bottom":[429, 182] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[448, 150], "bottom":[478, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[495, 150], "bottom":[525, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[542, 150], "bottom":[572, 183] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[590, 150], "bottom":[702, 183] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[9, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[107, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[127, 197], "bottom":[167, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 198], "bottom":[465, 231] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[484, 198], "bottom":[524, 231] }, + { "bIndex":83, "keyCode":"Key_Fn", "top":[661, 198], "bottom":[701, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[602, 199], "bottom":[642, 232] }, + { "bIndex":76, "keyCode":"Key_Left_Shift_Split", "top":[68, 150], "bottom":[98, 183] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[664, 104], "bottom":[694, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/66.json b/keyboards/configs/66.json new file mode 100644 index 0000000..a0c040f --- /dev/null +++ b/keyboards/configs/66.json @@ -0,0 +1,71 @@ +{ + "pid":"66", + "name":"RK61ISO Return", + "rgb":false, + "top":[6, 7], + "bottom":[702, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[6, 7], "bottom":[36, 40] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[543, 198], "bottom":[583, 231] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 7], "bottom":[84, 40] }, + { "bIndex":13, "keyCode":"Key_2", "top":[102, 7], "bottom":[132, 40] }, + { "bIndex":19, "keyCode":"Key_3", "top":[149, 7], "bottom":[179, 40] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 7], "bottom":[227, 40] }, + { "bIndex":31, "keyCode":"Key_5", "top":[244, 7], "bottom":[274, 40] }, + { "bIndex":37, "keyCode":"Key_6", "top":[292, 7], "bottom":[322, 40] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 7], "bottom":[370, 40] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 8], "bottom":[417, 41] }, + { "bIndex":55, "keyCode":"Key_9", "top":[434, 8], "bottom":[464, 41] }, + { "bIndex":61, "keyCode":"Key_0", "top":[482, 8], "bottom":[512, 41] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[530, 8], "bottom":[560, 41] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[578, 8], "bottom":[608, 41] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[627, 9], "bottom":[702, 42] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[8, 55], "bottom":[60, 88] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 56], "bottom":[109, 89] }, + { "bIndex":14, "keyCode":"Key_W", "top":[125, 56], "bottom":[155, 89] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 56], "bottom":[205, 89] }, + { "bIndex":26, "keyCode":"Key_R", "top":[221, 56], "bottom":[251, 89] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 56], "bottom":[299, 89] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 56], "bottom":[347, 89] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 56], "bottom":[394, 89] }, + { "bIndex":50, "keyCode":"Key_I", "top":[411, 56], "bottom":[441, 89] }, + { "bIndex":56, "keyCode":"Key_O", "top":[459, 57], "bottom":[489, 90] }, + { "bIndex":62, "keyCode":"Key_P", "top":[507, 57], "bottom":[537, 90] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[554, 57], "bottom":[584, 90] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[602, 57], "bottom":[632, 90] }, + { "bIndex":75, "keyCode":"Key_Back_Slash", "top":[613, 103], "bottom":[643, 136] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[9, 103], "bottom":[73, 136] }, + { "bIndex":9, "keyCode":"Key_A", "top":[91, 103], "bottom":[121, 136] }, + { "bIndex":15, "keyCode":"Key_S", "top":[138, 104], "bottom":[168, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 104], "bottom":[216, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 104], "bottom":[264, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 104], "bottom":[311, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[329, 104], "bottom":[359, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 104], "bottom":[406, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[423, 104], "bottom":[453, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[471, 104], "bottom":[501, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[519, 104], "bottom":[549, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[566, 104], "bottom":[596, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[10, 149], "bottom":[47, 182] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[114, 149], "bottom":[144, 182] }, + { "bIndex":16, "keyCode":"Key_X", "top":[162, 149], "bottom":[192, 182] }, + { "bIndex":22, "keyCode":"Key_C", "top":[210, 149], "bottom":[240, 182] }, + { "bIndex":28, "keyCode":"Key_V", "top":[257, 149], "bottom":[287, 182] }, + { "bIndex":34, "keyCode":"Key_B", "top":[304, 149], "bottom":[334, 182] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 149], "bottom":[381, 182] }, + { "bIndex":46, "keyCode":"Key_M", "top":[399, 149], "bottom":[429, 182] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[448, 150], "bottom":[478, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[495, 150], "bottom":[525, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[542, 150], "bottom":[572, 183] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[590, 150], "bottom":[702, 183] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[9, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[107, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[127, 197], "bottom":[167, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 198], "bottom":[465, 231] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[484, 198], "bottom":[524, 231] }, + { "bIndex":83, "keyCode":"Key_Fn", "top":[661, 198], "bottom":[701, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[602, 199], "bottom":[642, 232] }, + { "bIndex":76, "keyCode":"Key_Left_Shift_Split", "top":[68, 150], "bottom":[98, 183] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[664, 104], "bottom":[694, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/67.json b/keyboards/configs/67.json new file mode 100644 index 0000000..3db5c15 --- /dev/null +++ b/keyboards/configs/67.json @@ -0,0 +1,109 @@ +{ + "pid":"67", + "name":"RK100PRO", + "rgb":true, + "top":[11, 9], + "bottom":[838, 265], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[13, 10], "bottom":[42, 43] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[56, 10], "bottom":[85, 43] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[101, 10], "bottom":[130, 43] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[145, 10], "bottom":[174, 43] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[189, 10], "bottom":[218, 43] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[233, 10], "bottom":[262, 43] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[277, 10], "bottom":[306, 43] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[320, 10], "bottom":[349, 43] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[366, 10], "bottom":[395, 43] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[409, 10], "bottom":[438, 43] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[455, 10], "bottom":[484, 43] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[499, 10], "bottom":[528, 43] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[544, 10], "bottom":[573, 43] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[587, 10], "bottom":[616, 43] }, + { "bIndex":84, "keyCode":"Key_Delete", "top":[631, 10], "bottom":[660, 43] }, + { "bIndex":90, "keyCode":"Key_Home", "top":[675, 10], "bottom":[704, 43] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[11, 54], "bottom":[40, 87] }, + { "bIndex":7, "keyCode":"Key_1", "top":[56, 54], "bottom":[85, 87] }, + { "bIndex":13, "keyCode":"Key_2", "top":[100, 54], "bottom":[129, 87] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 54], "bottom":[173, 87] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 54], "bottom":[217, 87] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 54], "bottom":[261, 87] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 54], "bottom":[306, 87] }, + { "bIndex":43, "keyCode":"Key_7", "top":[321, 54], "bottom":[350, 87] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 54], "bottom":[395, 87] }, + { "bIndex":55, "keyCode":"Key_9", "top":[409, 54], "bottom":[438, 87] }, + { "bIndex":61, "keyCode":"Key_0", "top":[455, 54], "bottom":[484, 87] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[500, 54], "bottom":[529, 87] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[543, 54], "bottom":[572, 87] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[590, 54], "bottom":[661, 87] }, + { "bIndex":102, "keyCode":"Key_Page_Up", "top":[763, 10], "bottom":[792, 43] }, + { "bIndex":91, "keyCode":"Key_Num_Lock", "top":[676, 55], "bottom":[705, 88] }, + { "bIndex":97, "keyCode":"Key_Num_Divide", "top":[719, 55], "bottom":[748, 88] }, + { "bIndex":103, "keyCode":"Key_Num_Multiply", "top":[763, 55], "bottom":[792, 88] }, + { "bIndex":109, "keyCode":"Key_Num_Substract", "top":[808, 55], "bottom":[837, 88] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[12, 98], "bottom":[61, 131] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 98], "bottom":[108, 131] }, + { "bIndex":14, "keyCode":"Key_W", "top":[123, 98], "bottom":[152, 131] }, + { "bIndex":20, "keyCode":"Key_E", "top":[166, 98], "bottom":[195, 131] }, + { "bIndex":26, "keyCode":"Key_R", "top":[210, 98], "bottom":[239, 131] }, + { "bIndex":32, "keyCode":"Key_T", "top":[255, 98], "bottom":[284, 131] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[299, 98], "bottom":[328, 131] }, + { "bIndex":44, "keyCode":"Key_U", "top":[344, 98], "bottom":[373, 131] }, + { "bIndex":50, "keyCode":"Key_I", "top":[388, 98], "bottom":[417, 131] }, + { "bIndex":56, "keyCode":"Key_O", "top":[433, 98], "bottom":[462, 131] }, + { "bIndex":62, "keyCode":"Key_P", "top":[477, 98], "bottom":[506, 131] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[521, 98], "bottom":[550, 131] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[564, 98], "bottom":[593, 131] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[608, 98], "bottom":[658, 131] }, + { "bIndex":96, "keyCode":"Key_Insert", "top":[717, 9], "bottom":[746, 42] }, + { "bIndex":108, "keyCode":"Key_Page_Down", "top":[808, 9], "bottom":[837, 42] }, + { "bIndex":92, "keyCode":"Key_Num_7", "top":[676, 99], "bottom":[705, 132] }, + { "bIndex":98, "keyCode":"Key_Num_8", "top":[721, 99], "bottom":[750, 132] }, + { "bIndex":104, "keyCode":"Key_Num_9", "top":[764, 99], "bottom":[793, 132] }, + { "bIndex":110, "keyCode":"Key_Num_Add", "top":[809, 101], "bottom":[838, 175] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[11, 143], "bottom":[71, 176] }, + { "bIndex":9, "keyCode":"Key_A", "top":[88, 142], "bottom":[117, 175] }, + { "bIndex":15, "keyCode":"Key_S", "top":[133, 142], "bottom":[162, 175] }, + { "bIndex":21, "keyCode":"Key_D", "top":[177, 142], "bottom":[206, 175] }, + { "bIndex":27, "keyCode":"Key_F", "top":[222, 142], "bottom":[251, 175] }, + { "bIndex":33, "keyCode":"Key_G", "top":[266, 142], "bottom":[295, 175] }, + { "bIndex":39, "keyCode":"Key_H", "top":[312, 142], "bottom":[341, 175] }, + { "bIndex":45, "keyCode":"Key_J", "top":[355, 142], "bottom":[384, 175] }, + { "bIndex":51, "keyCode":"Key_K", "top":[399, 142], "bottom":[428, 175] }, + { "bIndex":57, "keyCode":"Key_L", "top":[443, 142], "bottom":[472, 175] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[489, 142], "bottom":[518, 175] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[533, 142], "bottom":[562, 175] }, + { "bIndex":93, "keyCode":"Key_Num_4", "top":[674, 144], "bottom":[703, 177] }, + { "bIndex":99, "keyCode":"Key_Num_5", "top":[719, 144], "bottom":[748, 177] }, + { "bIndex":105, "keyCode":"Key_Num_6", "top":[763, 144], "bottom":[792, 177] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[12, 185], "bottom":[94, 218] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[110, 186], "bottom":[139, 219] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 186], "bottom":[184, 219] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 186], "bottom":[228, 219] }, + { "bIndex":28, "keyCode":"Key_V", "top":[243, 186], "bottom":[272, 219] }, + { "bIndex":34, "keyCode":"Key_B", "top":[287, 186], "bottom":[316, 219] }, + { "bIndex":40, "keyCode":"Key_N", "top":[332, 186], "bottom":[361, 219] }, + { "bIndex":46, "keyCode":"Key_M", "top":[377, 186], "bottom":[406, 219] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[421, 186], "bottom":[450, 219] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 186], "bottom":[495, 219] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[510, 186], "bottom":[539, 219] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[556, 186], "bottom":[616, 219] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[632, 187], "bottom":[661, 220] }, + { "bIndex":94, "keyCode":"Key_Num_1", "top":[674, 187], "bottom":[703, 220] }, + { "bIndex":100, "keyCode":"Key_Num_2", "top":[719, 187], "bottom":[748, 220] }, + { "bIndex":106, "keyCode":"Key_Num_3", "top":[763, 187], "bottom":[792, 220] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 231], "bottom":[50, 264] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[69, 231], "bottom":[106, 264] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[124, 231], "bottom":[161, 264] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[177, 231], "bottom":[438, 264] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[455, 231], "bottom":[484, 264] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[499, 231], "bottom":[528, 264] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[543, 232], "bottom":[572, 265] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[588, 232], "bottom":[617, 265] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[632, 232], "bottom":[661, 265] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[676, 232], "bottom":[705, 265] }, + { "bIndex":101, "keyCode":"Key_Num_0", "top":[720, 231], "bottom":[749, 264] }, + { "bIndex":107, "keyCode":"Key_Num_Decimal_Point", "top":[763, 231], "bottom":[792, 264] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[576, 142], "bottom":[658, 175] }, + { "bIndex":112, "keyCode":"Key_Num_Enter", "top":[808, 189], "bottom":[837, 263] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/68.json b/keyboards/configs/68.json new file mode 100644 index 0000000..e11a25e --- /dev/null +++ b/keyboards/configs/68.json @@ -0,0 +1,96 @@ +{ + "pid":"68", + "name":"RK987RGB Wired", + "rgb":true, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/69.json b/keyboards/configs/69.json new file mode 100644 index 0000000..281d6e6 --- /dev/null +++ b/keyboards/configs/69.json @@ -0,0 +1,80 @@ +{ + "pid":"69", + "name":"RK71RGB Wireless", + "rgb":true, + "top":[12, 43], + "bottom":[707, 247], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[12, 44], "bottom":[39, 75] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[638, 45], "bottom":[665, 76] }, + { "bIndex":87, "keyCode":"Key_Pause", "top":[638, 130], "bottom":[665, 161] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[638, 87], "bottom":[665, 118] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 44], "bottom":[81, 75] }, + { "bIndex":13, "keyCode":"Key_2", "top":[96, 44], "bottom":[123, 75] }, + { "bIndex":19, "keyCode":"Key_3", "top":[138, 44], "bottom":[165, 75] }, + { "bIndex":25, "keyCode":"Key_4", "top":[179, 44], "bottom":[206, 75] }, + { "bIndex":31, "keyCode":"Key_5", "top":[221, 44], "bottom":[248, 75] }, + { "bIndex":37, "keyCode":"Key_6", "top":[262, 44], "bottom":[289, 75] }, + { "bIndex":43, "keyCode":"Key_7", "top":[305, 44], "bottom":[332, 75] }, + { "bIndex":49, "keyCode":"Key_8", "top":[346, 44], "bottom":[373, 75] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 44], "bottom":[415, 75] }, + { "bIndex":61, "keyCode":"Key_0", "top":[430, 44], "bottom":[457, 75] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[471, 44], "bottom":[498, 75] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[513, 44], "bottom":[540, 75] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[556, 43], "bottom":[622, 74] }, + { "bIndex":92, "keyCode":"Key_End", "top":[679, 87], "bottom":[706, 118] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[680, 44], "bottom":[707, 75] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[13, 87], "bottom":[60, 118] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[75, 87], "bottom":[102, 118] }, + { "bIndex":14, "keyCode":"Key_W", "top":[117, 87], "bottom":[144, 118] }, + { "bIndex":20, "keyCode":"Key_E", "top":[158, 87], "bottom":[185, 118] }, + { "bIndex":26, "keyCode":"Key_R", "top":[200, 87], "bottom":[227, 118] }, + { "bIndex":32, "keyCode":"Key_T", "top":[242, 87], "bottom":[269, 118] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[284, 87], "bottom":[311, 118] }, + { "bIndex":44, "keyCode":"Key_U", "top":[325, 87], "bottom":[352, 118] }, + { "bIndex":50, "keyCode":"Key_I", "top":[367, 87], "bottom":[394, 118] }, + { "bIndex":56, "keyCode":"Key_O", "top":[409, 87], "bottom":[436, 118] }, + { "bIndex":62, "keyCode":"Key_P", "top":[450, 87], "bottom":[477, 118] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[492, 87], "bottom":[519, 118] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[534, 87], "bottom":[561, 118] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[576, 87], "bottom":[622, 118] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 173], "bottom":[707, 204] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 130], "bottom":[707, 161] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[13, 130], "bottom":[70, 161] }, + { "bIndex":9, "keyCode":"Key_A", "top":[86, 130], "bottom":[113, 161] }, + { "bIndex":15, "keyCode":"Key_S", "top":[127, 130], "bottom":[154, 161] }, + { "bIndex":21, "keyCode":"Key_D", "top":[169, 130], "bottom":[196, 161] }, + { "bIndex":27, "keyCode":"Key_F", "top":[211, 130], "bottom":[238, 161] }, + { "bIndex":33, "keyCode":"Key_G", "top":[253, 130], "bottom":[280, 161] }, + { "bIndex":39, "keyCode":"Key_H", "top":[294, 130], "bottom":[321, 161] }, + { "bIndex":45, "keyCode":"Key_J", "top":[336, 130], "bottom":[363, 161] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 130], "bottom":[405, 161] }, + { "bIndex":57, "keyCode":"Key_L", "top":[419, 130], "bottom":[446, 161] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[461, 130], "bottom":[488, 161] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[502, 130], "bottom":[529, 161] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[13, 172], "bottom":[91, 203] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[107, 172], "bottom":[134, 203] }, + { "bIndex":16, "keyCode":"Key_X", "top":[148, 172], "bottom":[175, 203] }, + { "bIndex":22, "keyCode":"Key_C", "top":[190, 172], "bottom":[217, 203] }, + { "bIndex":28, "keyCode":"Key_V", "top":[232, 172], "bottom":[259, 203] }, + { "bIndex":34, "keyCode":"Key_B", "top":[273, 172], "bottom":[300, 203] }, + { "bIndex":40, "keyCode":"Key_N", "top":[315, 172], "bottom":[342, 203] }, + { "bIndex":46, "keyCode":"Key_M", "top":[357, 172], "bottom":[384, 203] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 172], "bottom":[425, 203] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[440, 172], "bottom":[467, 203] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[482, 172], "bottom":[509, 203] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[524, 172], "bottom":[622, 203] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[638, 172], "bottom":[665, 203] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 215], "bottom":[49, 246] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[66, 215], "bottom":[102, 246] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[118, 215], "bottom":[153, 246] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[170, 215], "bottom":[414, 246] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[433, 215], "bottom":[465, 246] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[486, 215], "bottom":[518, 246] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[539, 216], "bottom":[571, 247] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[597, 216], "bottom":[624, 247] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[638, 216], "bottom":[665, 247] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[679, 216], "bottom":[706, 247] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[545, 129], "bottom":[622, 160] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/6a.json b/keyboards/configs/6a.json new file mode 100644 index 0000000..df98180 --- /dev/null +++ b/keyboards/configs/6a.json @@ -0,0 +1,80 @@ +{ + "pid":"6a", + "name":"RK71 Bluetooth Dual Mode", + "rgb":false, + "top":[12, 43], + "bottom":[707, 247], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[12, 44], "bottom":[39, 75] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[638, 45], "bottom":[665, 76] }, + { "bIndex":87, "keyCode":"Key_Pause", "top":[638, 130], "bottom":[665, 161] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[638, 87], "bottom":[665, 118] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 44], "bottom":[81, 75] }, + { "bIndex":13, "keyCode":"Key_2", "top":[96, 44], "bottom":[123, 75] }, + { "bIndex":19, "keyCode":"Key_3", "top":[138, 44], "bottom":[165, 75] }, + { "bIndex":25, "keyCode":"Key_4", "top":[179, 44], "bottom":[206, 75] }, + { "bIndex":31, "keyCode":"Key_5", "top":[221, 44], "bottom":[248, 75] }, + { "bIndex":37, "keyCode":"Key_6", "top":[262, 44], "bottom":[289, 75] }, + { "bIndex":43, "keyCode":"Key_7", "top":[305, 44], "bottom":[332, 75] }, + { "bIndex":49, "keyCode":"Key_8", "top":[346, 44], "bottom":[373, 75] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 44], "bottom":[415, 75] }, + { "bIndex":61, "keyCode":"Key_0", "top":[430, 44], "bottom":[457, 75] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[471, 44], "bottom":[498, 75] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[513, 44], "bottom":[540, 75] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[556, 43], "bottom":[622, 74] }, + { "bIndex":92, "keyCode":"Key_End", "top":[679, 87], "bottom":[706, 118] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[680, 44], "bottom":[707, 75] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[13, 87], "bottom":[60, 118] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[75, 87], "bottom":[102, 118] }, + { "bIndex":14, "keyCode":"Key_W", "top":[117, 87], "bottom":[144, 118] }, + { "bIndex":20, "keyCode":"Key_E", "top":[158, 87], "bottom":[185, 118] }, + { "bIndex":26, "keyCode":"Key_R", "top":[200, 87], "bottom":[227, 118] }, + { "bIndex":32, "keyCode":"Key_T", "top":[242, 87], "bottom":[269, 118] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[284, 87], "bottom":[311, 118] }, + { "bIndex":44, "keyCode":"Key_U", "top":[325, 87], "bottom":[352, 118] }, + { "bIndex":50, "keyCode":"Key_I", "top":[367, 87], "bottom":[394, 118] }, + { "bIndex":56, "keyCode":"Key_O", "top":[409, 87], "bottom":[436, 118] }, + { "bIndex":62, "keyCode":"Key_P", "top":[450, 87], "bottom":[477, 118] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[492, 87], "bottom":[519, 118] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[534, 87], "bottom":[561, 118] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[576, 87], "bottom":[622, 118] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 173], "bottom":[707, 204] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 130], "bottom":[707, 161] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[13, 130], "bottom":[70, 161] }, + { "bIndex":9, "keyCode":"Key_A", "top":[86, 130], "bottom":[113, 161] }, + { "bIndex":15, "keyCode":"Key_S", "top":[127, 130], "bottom":[154, 161] }, + { "bIndex":21, "keyCode":"Key_D", "top":[169, 130], "bottom":[196, 161] }, + { "bIndex":27, "keyCode":"Key_F", "top":[211, 130], "bottom":[238, 161] }, + { "bIndex":33, "keyCode":"Key_G", "top":[253, 130], "bottom":[280, 161] }, + { "bIndex":39, "keyCode":"Key_H", "top":[294, 130], "bottom":[321, 161] }, + { "bIndex":45, "keyCode":"Key_J", "top":[336, 130], "bottom":[363, 161] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 130], "bottom":[405, 161] }, + { "bIndex":57, "keyCode":"Key_L", "top":[419, 130], "bottom":[446, 161] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[461, 130], "bottom":[488, 161] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[502, 130], "bottom":[529, 161] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[13, 172], "bottom":[91, 203] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[107, 172], "bottom":[134, 203] }, + { "bIndex":16, "keyCode":"Key_X", "top":[148, 172], "bottom":[175, 203] }, + { "bIndex":22, "keyCode":"Key_C", "top":[190, 172], "bottom":[217, 203] }, + { "bIndex":28, "keyCode":"Key_V", "top":[232, 172], "bottom":[259, 203] }, + { "bIndex":34, "keyCode":"Key_B", "top":[273, 172], "bottom":[300, 203] }, + { "bIndex":40, "keyCode":"Key_N", "top":[315, 172], "bottom":[342, 203] }, + { "bIndex":46, "keyCode":"Key_M", "top":[357, 172], "bottom":[384, 203] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 172], "bottom":[425, 203] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[440, 172], "bottom":[467, 203] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[482, 172], "bottom":[509, 203] }, + { "bIndex":76, "keyCode":"Key_Right_Shift", "top":[524, 172], "bottom":[622, 203] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[638, 172], "bottom":[665, 203] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 215], "bottom":[49, 246] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[66, 215], "bottom":[102, 246] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[118, 215], "bottom":[153, 246] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[170, 215], "bottom":[414, 246] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[433, 215], "bottom":[465, 246] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[486, 215], "bottom":[518, 246] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[539, 216], "bottom":[571, 247] }, + { "bIndex":77, "keyCode":"Key_Left", "top":[597, 216], "bottom":[624, 247] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[638, 216], "bottom":[665, 247] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[679, 216], "bottom":[706, 247] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[545, 129], "bottom":[622, 160] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/6b.json b/keyboards/configs/6b.json new file mode 100644 index 0000000..4832ea1 --- /dev/null +++ b/keyboards/configs/6b.json @@ -0,0 +1,96 @@ +{ + "pid":"6b", + "name":"RK87(882)", + "rgb":false, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/6f.json b/keyboards/configs/6f.json new file mode 100644 index 0000000..bf75f65 --- /dev/null +++ b/keyboards/configs/6f.json @@ -0,0 +1,77 @@ +{ + "pid":"6f", + "name":"RK68Plus", + "rgb":true, + "top":[18, 54], + "bottom":[699, 246], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[18, 54], "bottom":[43, 84] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[633, 54], "bottom":[658, 84] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[633, 94], "bottom":[658, 124] }, + { "bIndex":7, "keyCode":"Key_1", "top":[58, 54], "bottom":[83, 84] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 54], "bottom":[123, 84] }, + { "bIndex":19, "keyCode":"Key_3", "top":[139, 54], "bottom":[164, 84] }, + { "bIndex":25, "keyCode":"Key_4", "top":[179, 54], "bottom":[204, 84] }, + { "bIndex":31, "keyCode":"Key_5", "top":[220, 54], "bottom":[245, 84] }, + { "bIndex":37, "keyCode":"Key_6", "top":[260, 54], "bottom":[285, 84] }, + { "bIndex":43, "keyCode":"Key_7", "top":[300, 54], "bottom":[325, 84] }, + { "bIndex":49, "keyCode":"Key_8", "top":[340, 54], "bottom":[365, 84] }, + { "bIndex":55, "keyCode":"Key_9", "top":[381, 54], "bottom":[406, 84] }, + { "bIndex":61, "keyCode":"Key_0", "top":[421, 54], "bottom":[446, 84] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[462, 54], "bottom":[487, 84] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[502, 54], "bottom":[527, 84] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 54], "bottom":[607, 84] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[19, 94], "bottom":[62, 124] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 94], "bottom":[103, 124] }, + { "bIndex":14, "keyCode":"Key_W", "top":[119, 94], "bottom":[144, 124] }, + { "bIndex":20, "keyCode":"Key_E", "top":[159, 94], "bottom":[184, 124] }, + { "bIndex":26, "keyCode":"Key_R", "top":[199, 94], "bottom":[224, 124] }, + { "bIndex":32, "keyCode":"Key_T", "top":[240, 94], "bottom":[265, 124] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[280, 94], "bottom":[305, 124] }, + { "bIndex":44, "keyCode":"Key_U", "top":[320, 94], "bottom":[345, 124] }, + { "bIndex":50, "keyCode":"Key_I", "top":[361, 94], "bottom":[386, 124] }, + { "bIndex":56, "keyCode":"Key_O", "top":[401, 94], "bottom":[426, 124] }, + { "bIndex":62, "keyCode":"Key_P", "top":[442, 94], "bottom":[467, 124] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[481, 94], "bottom":[506, 124] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[522, 94], "bottom":[547, 124] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 94], "bottom":[607, 124] }, + { "bIndex":92, "keyCode":"Key_Page_Down", "top":[674, 95], "bottom":[699, 125] }, + { "bIndex":91, "keyCode":"Key_Page_Up", "top":[674, 55], "bottom":[699, 85] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[18, 135], "bottom":[73, 165] }, + { "bIndex":9, "keyCode":"Key_A", "top":[89, 135], "bottom":[114, 165] }, + { "bIndex":15, "keyCode":"Key_S", "top":[129, 135], "bottom":[154, 165] }, + { "bIndex":21, "keyCode":"Key_D", "top":[169, 135], "bottom":[194, 165] }, + { "bIndex":27, "keyCode":"Key_F", "top":[209, 135], "bottom":[234, 165] }, + { "bIndex":33, "keyCode":"Key_G", "top":[250, 135], "bottom":[275, 165] }, + { "bIndex":39, "keyCode":"Key_H", "top":[290, 135], "bottom":[315, 165] }, + { "bIndex":45, "keyCode":"Key_J", "top":[331, 135], "bottom":[356, 165] }, + { "bIndex":51, "keyCode":"Key_K", "top":[371, 135], "bottom":[396, 165] }, + { "bIndex":57, "keyCode":"Key_L", "top":[411, 135], "bottom":[436, 165] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[451, 135], "bottom":[476, 165] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[491, 135], "bottom":[516, 165] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[18, 174], "bottom":[92, 204] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 175], "bottom":[134, 205] }, + { "bIndex":16, "keyCode":"Key_X", "top":[149, 175], "bottom":[174, 205] }, + { "bIndex":22, "keyCode":"Key_C", "top":[190, 175], "bottom":[215, 205] }, + { "bIndex":28, "keyCode":"Key_V", "top":[231, 175], "bottom":[256, 205] }, + { "bIndex":34, "keyCode":"Key_B", "top":[271, 175], "bottom":[296, 205] }, + { "bIndex":40, "keyCode":"Key_N", "top":[311, 175], "bottom":[336, 205] }, + { "bIndex":46, "keyCode":"Key_M", "top":[351, 175], "bottom":[376, 205] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[392, 175], "bottom":[417, 205] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[431, 175], "bottom":[456, 205] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[472, 175], "bottom":[497, 205] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[512, 175], "bottom":[566, 205] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[632, 174], "bottom":[657, 204] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[18, 215], "bottom":[51, 245] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[69, 215], "bottom":[102, 245] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[120, 215], "bottom":[152, 245] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[170, 215], "bottom":[405, 245] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[421, 215], "bottom":[446, 245] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[463, 215], "bottom":[496, 245] }, + { "bIndex":77, "keyCode":"Key_Right_Control", "top":[512, 215], "bottom":[546, 245] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[594, 216], "bottom":[619, 246] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[633, 216], "bottom":[658, 246] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[673, 216], "bottom":[698, 246] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[532, 135], "bottom":[607, 165] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/70.json b/keyboards/configs/70.json new file mode 100644 index 0000000..acbdbb7 --- /dev/null +++ b/keyboards/configs/70.json @@ -0,0 +1,107 @@ +{ + "pid":"70", + "name":"RK98 RGB", + "rgb":true, + "top":[20, 15], + "bottom":[846, 287], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[21, 15], "bottom":[50, 48] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[107, 15], "bottom":[136, 48] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[151, 15], "bottom":[180, 48] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[193, 15], "bottom":[222, 48] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[236, 15], "bottom":[265, 48] }, + { "bIndex":42, "keyCode":"Key_F5", "top":[302, 15], "bottom":[331, 48] }, + { "bIndex":48, "keyCode":"Key_F6", "top":[345, 15], "bottom":[374, 48] }, + { "bIndex":54, "keyCode":"Key_F7", "top":[388, 15], "bottom":[417, 48] }, + { "bIndex":60, "keyCode":"Key_F8", "top":[432, 15], "bottom":[461, 48] }, + { "bIndex":66, "keyCode":"Key_F9", "top":[496, 15], "bottom":[525, 48] }, + { "bIndex":72, "keyCode":"Key_F10", "top":[540, 15], "bottom":[569, 48] }, + { "bIndex":78, "keyCode":"Key_F11", "top":[582, 15], "bottom":[611, 48] }, + { "bIndex":84, "keyCode":"Key_F12", "top":[625, 15], "bottom":[654, 48] }, + { "bIndex":96, "keyCode":"Key_Print_Screen", "top":[730, 15], "bottom":[759, 48] }, + { "bIndex":90, "keyCode":"Key_Delete", "top":[687, 15], "bottom":[716, 48] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[21, 73], "bottom":[50, 106] }, + { "bIndex":7, "keyCode":"Key_1", "top":[65, 73], "bottom":[94, 106] }, + { "bIndex":13, "keyCode":"Key_2", "top":[107, 73], "bottom":[136, 106] }, + { "bIndex":19, "keyCode":"Key_3", "top":[150, 73], "bottom":[179, 106] }, + { "bIndex":25, "keyCode":"Key_4", "top":[193, 73], "bottom":[222, 106] }, + { "bIndex":31, "keyCode":"Key_5", "top":[237, 73], "bottom":[266, 106] }, + { "bIndex":37, "keyCode":"Key_6", "top":[280, 73], "bottom":[309, 106] }, + { "bIndex":43, "keyCode":"Key_7", "top":[323, 73], "bottom":[352, 106] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 73], "bottom":[395, 106] }, + { "bIndex":55, "keyCode":"Key_9", "top":[409, 73], "bottom":[438, 106] }, + { "bIndex":61, "keyCode":"Key_0", "top":[452, 73], "bottom":[481, 106] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[495, 73], "bottom":[524, 106] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[539, 73], "bottom":[568, 106] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[582, 72], "bottom":[653, 105] }, + { "bIndex":102, "keyCode":"Key_Page_Up", "top":[774, 15], "bottom":[803, 48] }, + { "bIndex":91, "keyCode":"Key_Num_Lock", "top":[686, 72], "bottom":[715, 105] }, + { "bIndex":97, "keyCode":"Key_Num_Divide", "top":[729, 72], "bottom":[758, 105] }, + { "bIndex":103, "keyCode":"Key_Num_Multiply", "top":[773, 72], "bottom":[802, 105] }, + { "bIndex":109, "keyCode":"Key_Num_Substract", "top":[816, 72], "bottom":[845, 105] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[21, 115], "bottom":[70, 148] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[86, 116], "bottom":[115, 149] }, + { "bIndex":14, "keyCode":"Key_W", "top":[129, 116], "bottom":[158, 149] }, + { "bIndex":20, "keyCode":"Key_E", "top":[172, 116], "bottom":[201, 149] }, + { "bIndex":26, "keyCode":"Key_R", "top":[215, 116], "bottom":[244, 149] }, + { "bIndex":32, "keyCode":"Key_T", "top":[258, 116], "bottom":[287, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 116], "bottom":[330, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[344, 116], "bottom":[373, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[388, 116], "bottom":[417, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[431, 116], "bottom":[460, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[475, 116], "bottom":[504, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[518, 116], "bottom":[547, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[561, 116], "bottom":[590, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[604, 116], "bottom":[654, 149] }, + { "bIndex":108, "keyCode":"Key_Page_Down", "top":[817, 15], "bottom":[846, 48] }, + { "bIndex":92, "keyCode":"Key_Num_7", "top":[687, 115], "bottom":[716, 148] }, + { "bIndex":98, "keyCode":"Key_Num_8", "top":[730, 115], "bottom":[759, 148] }, + { "bIndex":104, "keyCode":"Key_Num_9", "top":[773, 115], "bottom":[802, 148] }, + { "bIndex":110, "keyCode":"Key_Num_Add", "top":[816, 116], "bottom":[845, 190] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[20, 158], "bottom":[80, 191] }, + { "bIndex":9, "keyCode":"Key_A", "top":[97, 157], "bottom":[126, 190] }, + { "bIndex":15, "keyCode":"Key_S", "top":[140, 157], "bottom":[169, 190] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 157], "bottom":[213, 190] }, + { "bIndex":27, "keyCode":"Key_F", "top":[227, 157], "bottom":[256, 190] }, + { "bIndex":33, "keyCode":"Key_G", "top":[269, 157], "bottom":[298, 190] }, + { "bIndex":39, "keyCode":"Key_H", "top":[313, 157], "bottom":[342, 190] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 157], "bottom":[385, 190] }, + { "bIndex":51, "keyCode":"Key_K", "top":[399, 157], "bottom":[428, 190] }, + { "bIndex":57, "keyCode":"Key_L", "top":[442, 157], "bottom":[471, 190] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[485, 157], "bottom":[514, 190] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[527, 157], "bottom":[556, 190] }, + { "bIndex":93, "keyCode":"Key_Num_4", "top":[688, 159], "bottom":[717, 192] }, + { "bIndex":99, "keyCode":"Key_Num_5", "top":[730, 159], "bottom":[759, 192] }, + { "bIndex":105, "keyCode":"Key_Num_6", "top":[773, 159], "bottom":[802, 192] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 201], "bottom":[104, 234] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[118, 202], "bottom":[147, 235] }, + { "bIndex":16, "keyCode":"Key_X", "top":[161, 202], "bottom":[190, 235] }, + { "bIndex":22, "keyCode":"Key_C", "top":[205, 202], "bottom":[234, 235] }, + { "bIndex":28, "keyCode":"Key_V", "top":[247, 202], "bottom":[276, 235] }, + { "bIndex":34, "keyCode":"Key_B", "top":[291, 202], "bottom":[320, 235] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 202], "bottom":[363, 235] }, + { "bIndex":46, "keyCode":"Key_M", "top":[377, 202], "bottom":[406, 235] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[420, 202], "bottom":[449, 235] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[463, 202], "bottom":[492, 235] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[506, 202], "bottom":[535, 235] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[551, 202], "bottom":[611, 235] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 210], "bottom":[664, 243] }, + { "bIndex":94, "keyCode":"Key_Num_1", "top":[688, 202], "bottom":[717, 235] }, + { "bIndex":100, "keyCode":"Key_Num_2", "top":[730, 202], "bottom":[759, 235] }, + { "bIndex":106, "keyCode":"Key_Num_3", "top":[774, 202], "bottom":[803, 235] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[22, 244], "bottom":[59, 277] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[76, 244], "bottom":[113, 277] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[130, 244], "bottom":[167, 277] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[185, 244], "bottom":[437, 277] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[453, 244], "bottom":[482, 277] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[496, 244], "bottom":[525, 277] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[539, 245], "bottom":[568, 278] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 254], "bottom":[620, 287] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[635, 254], "bottom":[664, 287] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[678, 254], "bottom":[707, 287] }, + { "bIndex":101, "keyCode":"Key_Num_0", "top":[730, 244], "bottom":[759, 277] }, + { "bIndex":107, "keyCode":"Key_Num_Decimal_Point", "top":[772, 244], "bottom":[801, 277] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[574, 159], "bottom":[653, 192] }, + { "bIndex":112, "keyCode":"Key_Num_Enter", "top":[817, 202], "bottom":[846, 276] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/74.json b/keyboards/configs/74.json new file mode 100644 index 0000000..0fee60d --- /dev/null +++ b/keyboards/configs/74.json @@ -0,0 +1,96 @@ +{ + "pid":"74", + "name":"RK87(882) Wired", + "rgb":false, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/75.json b/keyboards/configs/75.json new file mode 100644 index 0000000..2949000 --- /dev/null +++ b/keyboards/configs/75.json @@ -0,0 +1,78 @@ +{ + "pid":"75", + "name":"G68RGB ISO Return", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 56], "bottom":[709, 89] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":75, "keyCode":"Key_Back_Slash", "top":[580, 103], "bottom":[607, 136] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 150], "bottom":[709, 183] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 103], "bottom":[709, 136] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[49, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[111, 150], "bottom":[140, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[156, 150], "bottom":[185, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[200, 150], "bottom":[229, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[12, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[104, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[123, 197], "bottom":[160, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":76, "keyCode":"Key_Left_Shift_Split", "top":[66, 149], "bottom":[95, 182] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[624, 97], "bottom":[662, 130] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/78.json b/keyboards/configs/78.json new file mode 100644 index 0000000..8053210 --- /dev/null +++ b/keyboards/configs/78.json @@ -0,0 +1,96 @@ +{ + "pid":"78", + "name":"RK87", + "rgb":true, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/79.json b/keyboards/configs/79.json new file mode 100644 index 0000000..3d9489c --- /dev/null +++ b/keyboards/configs/79.json @@ -0,0 +1,77 @@ +{ + "pid":"79", + "name":"RK68Pro", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 58], "bottom":[709, 91] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[613, 57], "bottom":[663, 90] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 151], "bottom":[709, 184] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 105], "bottom":[709, 138] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[93, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 150], "bottom":[138, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 150], "bottom":[184, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 150], "bottom":[228, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[10, 197], "bottom":[47, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[65, 197], "bottom":[102, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[121, 197], "bottom":[158, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[580, 104], "bottom":[662, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/7a.json b/keyboards/configs/7a.json new file mode 100644 index 0000000..071996e --- /dev/null +++ b/keyboards/configs/7a.json @@ -0,0 +1,70 @@ +{ + "pid":"7a", + "name":"RK61 RGB Bluetooth Dual Mode", + "rgb":true, + "top":[6, 7], + "bottom":[702, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[6, 7], "bottom":[36, 40] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[543, 198], "bottom":[583, 231] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 7], "bottom":[84, 40] }, + { "bIndex":13, "keyCode":"Key_2", "top":[102, 7], "bottom":[132, 40] }, + { "bIndex":19, "keyCode":"Key_3", "top":[149, 7], "bottom":[179, 40] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 7], "bottom":[227, 40] }, + { "bIndex":31, "keyCode":"Key_5", "top":[244, 7], "bottom":[274, 40] }, + { "bIndex":37, "keyCode":"Key_6", "top":[292, 7], "bottom":[322, 40] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 7], "bottom":[370, 40] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 8], "bottom":[417, 41] }, + { "bIndex":55, "keyCode":"Key_9", "top":[434, 8], "bottom":[464, 41] }, + { "bIndex":61, "keyCode":"Key_0", "top":[482, 8], "bottom":[512, 41] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[530, 8], "bottom":[560, 41] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[578, 8], "bottom":[608, 41] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[627, 9], "bottom":[702, 42] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[8, 55], "bottom":[60, 88] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 56], "bottom":[109, 89] }, + { "bIndex":14, "keyCode":"Key_W", "top":[125, 56], "bottom":[155, 89] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 56], "bottom":[205, 89] }, + { "bIndex":26, "keyCode":"Key_R", "top":[221, 56], "bottom":[251, 89] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 56], "bottom":[299, 89] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 56], "bottom":[347, 89] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 56], "bottom":[394, 89] }, + { "bIndex":50, "keyCode":"Key_I", "top":[411, 56], "bottom":[441, 89] }, + { "bIndex":56, "keyCode":"Key_O", "top":[459, 57], "bottom":[489, 90] }, + { "bIndex":62, "keyCode":"Key_P", "top":[507, 57], "bottom":[537, 90] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[554, 57], "bottom":[584, 90] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[602, 57], "bottom":[632, 90] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[650, 57], "bottom":[702, 90] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[9, 103], "bottom":[73, 136] }, + { "bIndex":9, "keyCode":"Key_A", "top":[91, 103], "bottom":[121, 136] }, + { "bIndex":15, "keyCode":"Key_S", "top":[138, 104], "bottom":[168, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 104], "bottom":[216, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 104], "bottom":[264, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 104], "bottom":[311, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[329, 104], "bottom":[359, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 104], "bottom":[406, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[423, 104], "bottom":[453, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[471, 104], "bottom":[501, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[519, 104], "bottom":[549, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[566, 104], "bottom":[596, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[10, 149], "bottom":[97, 182] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[114, 149], "bottom":[144, 182] }, + { "bIndex":16, "keyCode":"Key_X", "top":[162, 149], "bottom":[192, 182] }, + { "bIndex":22, "keyCode":"Key_C", "top":[210, 149], "bottom":[240, 182] }, + { "bIndex":28, "keyCode":"Key_V", "top":[257, 149], "bottom":[287, 182] }, + { "bIndex":34, "keyCode":"Key_B", "top":[304, 149], "bottom":[334, 182] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 149], "bottom":[381, 182] }, + { "bIndex":46, "keyCode":"Key_M", "top":[399, 149], "bottom":[429, 182] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[448, 150], "bottom":[478, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[495, 150], "bottom":[525, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[542, 150], "bottom":[572, 183] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[590, 150], "bottom":[702, 183] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[9, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[107, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[127, 197], "bottom":[167, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 198], "bottom":[465, 231] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[484, 198], "bottom":[524, 231] }, + { "bIndex":83, "keyCode":"Key_Fn", "top":[661, 198], "bottom":[701, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[602, 199], "bottom":[642, 232] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[614, 104], "bottom":[702, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/7b.json b/keyboards/configs/7b.json new file mode 100644 index 0000000..49d45f3 --- /dev/null +++ b/keyboards/configs/7b.json @@ -0,0 +1,113 @@ +{ + "pid":"7b", + "name":"RK896", + "rgb":true, + "top":[21, 17], + "bottom":[1009, 294], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[21, 17], "bottom":[48, 47] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[111, 17], "bottom":[138, 47] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[156, 17], "bottom":[183, 47] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[201, 17], "bottom":[228, 47] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[246, 17], "bottom":[273, 47] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[312, 17], "bottom":[339, 47] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[357, 17], "bottom":[384, 47] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[401, 17], "bottom":[428, 47] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[446, 17], "bottom":[473, 47] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[513, 17], "bottom":[540, 47] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[558, 17], "bottom":[585, 47] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[602, 17], "bottom":[629, 47] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[647, 17], "bottom":[674, 47] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[702, 17], "bottom":[729, 47] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[703, 84], "bottom":[730, 114] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[747, 84], "bottom":[774, 114] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[21, 84], "bottom":[48, 114] }, + { "bIndex":7, "keyCode":"Key_1", "top":[66, 84], "bottom":[93, 114] }, + { "bIndex":13, "keyCode":"Key_2", "top":[111, 84], "bottom":[138, 114] }, + { "bIndex":19, "keyCode":"Key_3", "top":[158, 84], "bottom":[185, 114] }, + { "bIndex":25, "keyCode":"Key_4", "top":[202, 84], "bottom":[229, 114] }, + { "bIndex":31, "keyCode":"Key_5", "top":[246, 84], "bottom":[273, 114] }, + { "bIndex":37, "keyCode":"Key_6", "top":[291, 84], "bottom":[318, 114] }, + { "bIndex":43, "keyCode":"Key_7", "top":[335, 84], "bottom":[362, 114] }, + { "bIndex":49, "keyCode":"Key_8", "top":[380, 84], "bottom":[407, 114] }, + { "bIndex":55, "keyCode":"Key_9", "top":[423, 84], "bottom":[450, 114] }, + { "bIndex":61, "keyCode":"Key_0", "top":[469, 84], "bottom":[496, 114] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[514, 84], "bottom":[541, 114] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[557, 84], "bottom":[584, 114] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[602, 84], "bottom":[674, 114] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[792, 84], "bottom":[819, 114] }, + { "bIndex":103, "keyCode":"Key_Num_Lock", "top":[846, 85], "bottom":[873, 115] }, + { "bIndex":109, "keyCode":"Key_Num_Divide", "top":[892, 85], "bottom":[919, 115] }, + { "bIndex":115, "keyCode":"Key_Num_Multiply", "top":[937, 85], "bottom":[964, 115] }, + { "bIndex":121, "keyCode":"Key_Num_Substract", "top":[982, 85], "bottom":[1009, 115] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[22, 130], "bottom":[71, 160] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[89, 130], "bottom":[116, 160] }, + { "bIndex":14, "keyCode":"Key_W", "top":[135, 130], "bottom":[162, 160] }, + { "bIndex":20, "keyCode":"Key_E", "top":[179, 130], "bottom":[206, 160] }, + { "bIndex":26, "keyCode":"Key_R", "top":[223, 130], "bottom":[250, 160] }, + { "bIndex":32, "keyCode":"Key_T", "top":[268, 130], "bottom":[295, 160] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[312, 130], "bottom":[339, 160] }, + { "bIndex":44, "keyCode":"Key_U", "top":[357, 130], "bottom":[384, 160] }, + { "bIndex":50, "keyCode":"Key_I", "top":[401, 130], "bottom":[428, 160] }, + { "bIndex":56, "keyCode":"Key_O", "top":[446, 130], "bottom":[473, 160] }, + { "bIndex":62, "keyCode":"Key_P", "top":[490, 130], "bottom":[517, 160] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[534, 130], "bottom":[561, 160] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[579, 130], "bottom":[606, 160] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[624, 130], "bottom":[674, 160] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[702, 129], "bottom":[729, 159] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[793, 129], "bottom":[820, 159] }, + { "bIndex":104, "keyCode":"Key_Num_7", "top":[848, 130], "bottom":[875, 160] }, + { "bIndex":110, "keyCode":"Key_Num_8", "top":[893, 130], "bottom":[920, 160] }, + { "bIndex":116, "keyCode":"Key_Num_9", "top":[936, 130], "bottom":[963, 160] }, + { "bIndex":122, "keyCode":"Key_Num_Add", "top":[981, 131], "bottom":[1008, 205] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[22, 174], "bottom":[82, 204] }, + { "bIndex":9, "keyCode":"Key_A", "top":[100, 174], "bottom":[127, 204] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 174], "bottom":[172, 204] }, + { "bIndex":21, "keyCode":"Key_D", "top":[189, 174], "bottom":[216, 204] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 174], "bottom":[261, 204] }, + { "bIndex":33, "keyCode":"Key_G", "top":[278, 174], "bottom":[305, 204] }, + { "bIndex":39, "keyCode":"Key_H", "top":[323, 174], "bottom":[350, 204] }, + { "bIndex":45, "keyCode":"Key_J", "top":[368, 174], "bottom":[395, 204] }, + { "bIndex":51, "keyCode":"Key_K", "top":[412, 174], "bottom":[439, 204] }, + { "bIndex":57, "keyCode":"Key_L", "top":[457, 174], "bottom":[484, 204] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[501, 174], "bottom":[528, 204] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[545, 174], "bottom":[572, 204] }, + { "bIndex":105, "keyCode":"Key_Num_4", "top":[846, 174], "bottom":[873, 204] }, + { "bIndex":111, "keyCode":"Key_Num_5", "top":[891, 174], "bottom":[918, 204] }, + { "bIndex":117, "keyCode":"Key_Num_6", "top":[935, 174], "bottom":[962, 204] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 219], "bottom":[104, 249] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[122, 219], "bottom":[149, 249] }, + { "bIndex":16, "keyCode":"Key_X", "top":[167, 219], "bottom":[194, 249] }, + { "bIndex":22, "keyCode":"Key_C", "top":[212, 219], "bottom":[239, 249] }, + { "bIndex":28, "keyCode":"Key_V", "top":[256, 219], "bottom":[283, 249] }, + { "bIndex":34, "keyCode":"Key_B", "top":[300, 219], "bottom":[327, 249] }, + { "bIndex":40, "keyCode":"Key_N", "top":[345, 219], "bottom":[372, 249] }, + { "bIndex":46, "keyCode":"Key_M", "top":[390, 219], "bottom":[417, 249] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[434, 219], "bottom":[461, 249] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[479, 219], "bottom":[506, 249] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[523, 219], "bottom":[550, 249] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[569, 218], "bottom":[674, 248] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[747, 219], "bottom":[774, 249] }, + { "bIndex":106, "keyCode":"Key_Num_1", "top":[846, 219], "bottom":[873, 249] }, + { "bIndex":112, "keyCode":"Key_Num_2", "top":[891, 219], "bottom":[918, 249] }, + { "bIndex":118, "keyCode":"Key_Num_3", "top":[935, 219], "bottom":[962, 249] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[22, 264], "bottom":[60, 294] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[77, 264], "bottom":[115, 294] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[132, 264], "bottom":[170, 294] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[190, 264], "bottom":[450, 294] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[468, 264], "bottom":[506, 294] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[523, 264], "bottom":[561, 294] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[635, 264], "bottom":[673, 294] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[702, 264], "bottom":[729, 294] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[747, 264], "bottom":[774, 294] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[791, 264], "bottom":[818, 294] }, + { "bIndex":107, "keyCode":"Key_Num_0", "top":[848, 264], "bottom":[919, 294] }, + { "bIndex":119, "keyCode":"Key_Num_Decimal_Point", "top":[936, 264], "bottom":[963, 294] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[747, 18], "bottom":[774, 48] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[793, 18], "bottom":[820, 48] }, + { "bIndex":92, "keyCode":"Key_End", "top":[747, 129], "bottom":[774, 159] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[579, 263], "bottom":[617, 293] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[590, 174], "bottom":[674, 204] }, + { "bIndex":124, "keyCode":"Key_Num_Enter", "top":[981, 220], "bottom":[1008, 294] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/7c.json b/keyboards/configs/7c.json new file mode 100644 index 0000000..4b2bcd3 --- /dev/null +++ b/keyboards/configs/7c.json @@ -0,0 +1,77 @@ +{ + "pid":"7c", + "name":"RK87T RGBWired", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 58], "bottom":[709, 91] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[613, 57], "bottom":[663, 90] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 151], "bottom":[709, 184] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 105], "bottom":[709, 138] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[93, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 150], "bottom":[138, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 150], "bottom":[184, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 150], "bottom":[228, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[10, 197], "bottom":[47, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[65, 197], "bottom":[102, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[121, 197], "bottom":[158, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[580, 104], "bottom":[662, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/7d.json b/keyboards/configs/7d.json new file mode 100644 index 0000000..40abfa6 --- /dev/null +++ b/keyboards/configs/7d.json @@ -0,0 +1,96 @@ +{ + "pid":"7d", + "name":"G87RGB Wired", + "rgb":true, + "top":[28, 27], + "bottom":[786, 287], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[28, 30], "bottom":[56, 58] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[112, 30], "bottom":[140, 58] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[154, 30], "bottom":[182, 58] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[197, 30], "bottom":[225, 58] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[239, 30], "bottom":[267, 58] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[302, 30], "bottom":[330, 58] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[345, 30], "bottom":[373, 58] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[386, 30], "bottom":[414, 58] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[430, 29], "bottom":[458, 57] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[491, 28], "bottom":[519, 56] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[535, 28], "bottom":[563, 56] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[577, 28], "bottom":[605, 56] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[620, 28], "bottom":[648, 56] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[672, 27], "bottom":[700, 55] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[714, 27], "bottom":[742, 55] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[758, 27], "bottom":[786, 55] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[28, 91], "bottom":[56, 119] }, + { "bIndex":7, "keyCode":"Key_1", "top":[71, 91], "bottom":[99, 119] }, + { "bIndex":13, "keyCode":"Key_2", "top":[113, 91], "bottom":[141, 119] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 91], "bottom":[183, 119] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 91], "bottom":[225, 119] }, + { "bIndex":31, "keyCode":"Key_5", "top":[239, 91], "bottom":[267, 119] }, + { "bIndex":37, "keyCode":"Key_6", "top":[282, 91], "bottom":[310, 119] }, + { "bIndex":43, "keyCode":"Key_7", "top":[324, 91], "bottom":[352, 119] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 91], "bottom":[394, 119] }, + { "bIndex":55, "keyCode":"Key_9", "top":[409, 90], "bottom":[437, 118] }, + { "bIndex":61, "keyCode":"Key_0", "top":[450, 90], "bottom":[478, 118] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[492, 90], "bottom":[520, 118] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[534, 90], "bottom":[562, 118] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[577, 89], "bottom":[646, 117] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[672, 89], "bottom":[700, 117] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[715, 89], "bottom":[743, 117] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[758, 89], "bottom":[786, 117] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[31, 134], "bottom":[76, 162] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[92, 134], "bottom":[120, 162] }, + { "bIndex":14, "keyCode":"Key_W", "top":[134, 134], "bottom":[162, 162] }, + { "bIndex":20, "keyCode":"Key_E", "top":[176, 134], "bottom":[204, 162] }, + { "bIndex":26, "keyCode":"Key_R", "top":[218, 134], "bottom":[246, 162] }, + { "bIndex":32, "keyCode":"Key_T", "top":[260, 133], "bottom":[288, 161] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 133], "bottom":[329, 161] }, + { "bIndex":44, "keyCode":"Key_U", "top":[344, 133], "bottom":[372, 161] }, + { "bIndex":50, "keyCode":"Key_I", "top":[386, 133], "bottom":[414, 161] }, + { "bIndex":56, "keyCode":"Key_O", "top":[429, 132], "bottom":[457, 160] }, + { "bIndex":62, "keyCode":"Key_P", "top":[470, 132], "bottom":[498, 160] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[513, 132], "bottom":[541, 160] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[555, 132], "bottom":[583, 160] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[599, 132], "bottom":[646, 160] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[671, 133], "bottom":[699, 161] }, + { "bIndex":92, "keyCode":"Key_End", "top":[716, 132], "bottom":[744, 160] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[757, 132], "bottom":[785, 160] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[31, 176], "bottom":[86, 204] }, + { "bIndex":9, "keyCode":"Key_A", "top":[102, 175], "bottom":[130, 203] }, + { "bIndex":15, "keyCode":"Key_S", "top":[144, 175], "bottom":[172, 203] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 175], "bottom":[214, 203] }, + { "bIndex":27, "keyCode":"Key_F", "top":[229, 175], "bottom":[257, 203] }, + { "bIndex":33, "keyCode":"Key_G", "top":[272, 175], "bottom":[300, 203] }, + { "bIndex":39, "keyCode":"Key_H", "top":[313, 174], "bottom":[341, 202] }, + { "bIndex":45, "keyCode":"Key_J", "top":[355, 174], "bottom":[383, 202] }, + { "bIndex":51, "keyCode":"Key_K", "top":[399, 174], "bottom":[427, 202] }, + { "bIndex":57, "keyCode":"Key_L", "top":[440, 174], "bottom":[468, 202] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[482, 174], "bottom":[510, 202] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[525, 173], "bottom":[553, 201] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[31, 217], "bottom":[107, 245] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[124, 217], "bottom":[152, 245] }, + { "bIndex":16, "keyCode":"Key_X", "top":[166, 216], "bottom":[194, 244] }, + { "bIndex":22, "keyCode":"Key_C", "top":[208, 216], "bottom":[236, 244] }, + { "bIndex":28, "keyCode":"Key_V", "top":[250, 216], "bottom":[278, 244] }, + { "bIndex":34, "keyCode":"Key_B", "top":[292, 217], "bottom":[320, 245] }, + { "bIndex":40, "keyCode":"Key_N", "top":[335, 217], "bottom":[363, 245] }, + { "bIndex":46, "keyCode":"Key_M", "top":[376, 217], "bottom":[404, 245] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[418, 217], "bottom":[446, 245] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[461, 217], "bottom":[489, 245] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[504, 217], "bottom":[532, 245] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[548, 216], "bottom":[646, 244] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[714, 215], "bottom":[742, 243] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[31, 259], "bottom":[67, 287] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[85, 259], "bottom":[121, 287] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 259], "bottom":[173, 287] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[190, 258], "bottom":[434, 286] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[453, 258], "bottom":[489, 286] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[506, 258], "bottom":[542, 286] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[559, 258], "bottom":[595, 286] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[610, 258], "bottom":[646, 286] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[672, 257], "bottom":[700, 285] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[714, 257], "bottom":[742, 285] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[758, 257], "bottom":[786, 285] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[569, 173], "bottom":[646, 201] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/89.json b/keyboards/configs/89.json new file mode 100644 index 0000000..611c42c --- /dev/null +++ b/keyboards/configs/89.json @@ -0,0 +1,105 @@ +{ + "pid":"89", + "name":"RK96 RGB", + "rgb":true, + "top":[16, 12], + "bottom":[947, 299], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[16, 12], "bottom":[45, 45] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[65, 12], "bottom":[94, 45] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[114, 12], "bottom":[143, 45] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[163, 12], "bottom":[192, 45] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[213, 12], "bottom":[242, 45] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[262, 12], "bottom":[291, 45] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[310, 12], "bottom":[339, 45] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[359, 12], "bottom":[388, 45] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[408, 12], "bottom":[437, 45] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[457, 12], "bottom":[486, 45] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[506, 12], "bottom":[535, 45] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[555, 12], "bottom":[584, 45] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[603, 12], "bottom":[632, 45] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[652, 12], "bottom":[681, 45] }, + { "bIndex":84, "keyCode":"Key_Delete", "top":[702, 12], "bottom":[731, 45] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[16, 61], "bottom":[45, 94] }, + { "bIndex":7, "keyCode":"Key_1", "top":[66, 61], "bottom":[95, 94] }, + { "bIndex":13, "keyCode":"Key_2", "top":[114, 61], "bottom":[143, 94] }, + { "bIndex":19, "keyCode":"Key_3", "top":[163, 61], "bottom":[192, 94] }, + { "bIndex":25, "keyCode":"Key_4", "top":[213, 61], "bottom":[242, 94] }, + { "bIndex":31, "keyCode":"Key_5", "top":[261, 61], "bottom":[290, 94] }, + { "bIndex":37, "keyCode":"Key_6", "top":[310, 61], "bottom":[339, 94] }, + { "bIndex":43, "keyCode":"Key_7", "top":[359, 61], "bottom":[388, 94] }, + { "bIndex":49, "keyCode":"Key_8", "top":[407, 61], "bottom":[436, 94] }, + { "bIndex":55, "keyCode":"Key_9", "top":[456, 61], "bottom":[485, 94] }, + { "bIndex":61, "keyCode":"Key_0", "top":[506, 61], "bottom":[535, 94] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[554, 61], "bottom":[583, 94] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[604, 61], "bottom":[633, 94] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[653, 60], "bottom":[730, 93] }, + { "bIndex":91, "keyCode":"Key_Num_Lock", "top":[771, 61], "bottom":[800, 94] }, + { "bIndex":97, "keyCode":"Key_Num_Divide", "top":[819, 61], "bottom":[848, 94] }, + { "bIndex":103, "keyCode":"Key_Num_Multiply", "top":[868, 61], "bottom":[897, 94] }, + { "bIndex":109, "keyCode":"Key_Num_Substract", "top":[918, 61], "bottom":[947, 94] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[19, 110], "bottom":[69, 143] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[89, 110], "bottom":[118, 143] }, + { "bIndex":14, "keyCode":"Key_W", "top":[139, 110], "bottom":[168, 143] }, + { "bIndex":20, "keyCode":"Key_E", "top":[188, 110], "bottom":[217, 143] }, + { "bIndex":26, "keyCode":"Key_R", "top":[236, 110], "bottom":[265, 143] }, + { "bIndex":32, "keyCode":"Key_T", "top":[287, 110], "bottom":[316, 143] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[336, 110], "bottom":[365, 143] }, + { "bIndex":44, "keyCode":"Key_U", "top":[383, 110], "bottom":[412, 143] }, + { "bIndex":50, "keyCode":"Key_I", "top":[432, 110], "bottom":[461, 143] }, + { "bIndex":56, "keyCode":"Key_O", "top":[481, 110], "bottom":[510, 143] }, + { "bIndex":62, "keyCode":"Key_P", "top":[530, 110], "bottom":[559, 143] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[579, 110], "bottom":[608, 143] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[629, 110], "bottom":[658, 143] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[677, 110], "bottom":[730, 143] }, + { "bIndex":92, "keyCode":"Key_Num_7", "top":[769, 111], "bottom":[798, 144] }, + { "bIndex":98, "keyCode":"Key_Num_8", "top":[820, 111], "bottom":[849, 144] }, + { "bIndex":104, "keyCode":"Key_Num_9", "top":[870, 111], "bottom":[899, 144] }, + { "bIndex":110, "keyCode":"Key_Num_Add", "top":[917, 111], "bottom":[946, 192] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[18, 159], "bottom":[81, 192] }, + { "bIndex":9, "keyCode":"Key_A", "top":[102, 159], "bottom":[131, 192] }, + { "bIndex":15, "keyCode":"Key_S", "top":[152, 159], "bottom":[181, 192] }, + { "bIndex":21, "keyCode":"Key_D", "top":[199, 159], "bottom":[228, 192] }, + { "bIndex":27, "keyCode":"Key_F", "top":[249, 159], "bottom":[278, 192] }, + { "bIndex":33, "keyCode":"Key_G", "top":[298, 159], "bottom":[327, 192] }, + { "bIndex":39, "keyCode":"Key_H", "top":[347, 159], "bottom":[376, 192] }, + { "bIndex":45, "keyCode":"Key_J", "top":[396, 159], "bottom":[425, 192] }, + { "bIndex":51, "keyCode":"Key_K", "top":[444, 159], "bottom":[473, 192] }, + { "bIndex":57, "keyCode":"Key_L", "top":[493, 159], "bottom":[522, 192] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[542, 159], "bottom":[571, 192] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[590, 159], "bottom":[619, 192] }, + { "bIndex":93, "keyCode":"Key_Num_4", "top":[770, 160], "bottom":[799, 193] }, + { "bIndex":99, "keyCode":"Key_Num_5", "top":[820, 160], "bottom":[849, 193] }, + { "bIndex":105, "keyCode":"Key_Num_6", "top":[867, 160], "bottom":[896, 193] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[17, 207], "bottom":[106, 240] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[127, 208], "bottom":[156, 241] }, + { "bIndex":16, "keyCode":"Key_X", "top":[176, 208], "bottom":[205, 241] }, + { "bIndex":22, "keyCode":"Key_C", "top":[225, 208], "bottom":[254, 241] }, + { "bIndex":28, "keyCode":"Key_V", "top":[274, 208], "bottom":[303, 241] }, + { "bIndex":34, "keyCode":"Key_B", "top":[323, 208], "bottom":[352, 241] }, + { "bIndex":40, "keyCode":"Key_N", "top":[372, 208], "bottom":[401, 241] }, + { "bIndex":46, "keyCode":"Key_M", "top":[420, 208], "bottom":[449, 241] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[468, 208], "bottom":[497, 241] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[517, 208], "bottom":[546, 241] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[567, 208], "bottom":[596, 241] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[615, 208], "bottom":[682, 241] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[710, 217], "bottom":[739, 250] }, + { "bIndex":94, "keyCode":"Key_Num_1", "top":[770, 208], "bottom":[799, 241] }, + { "bIndex":100, "keyCode":"Key_Num_2", "top":[820, 208], "bottom":[849, 241] }, + { "bIndex":106, "keyCode":"Key_Num_3", "top":[868, 208], "bottom":[897, 241] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[18, 256], "bottom":[57, 289] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[78, 256], "bottom":[119, 289] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[139, 256], "bottom":[180, 289] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[200, 256], "bottom":[486, 289] }, + { "bIndex":59, "keyCode":"Key_Right_Alt", "top":[506, 257], "bottom":[535, 290] }, + { "bIndex":65, "keyCode":"Key_Fn", "top":[554, 257], "bottom":[583, 290] }, + { "bIndex":77, "keyCode":"Key_Right_Control", "top":[603, 258], "bottom":[632, 291] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[660, 266], "bottom":[689, 299] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[711, 266], "bottom":[740, 299] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[760, 266], "bottom":[789, 299] }, + { "bIndex":101, "keyCode":"Key_Num_0", "top":[820, 256], "bottom":[849, 289] }, + { "bIndex":107, "keyCode":"Key_Num_Decimal_Point", "top":[868, 256], "bottom":[897, 289] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[639, 160], "bottom":[730, 193] }, + { "bIndex":112, "keyCode":"Key_Num_Enter", "top":[918, 208], "bottom":[947, 289] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/8b.json b/keyboards/configs/8b.json new file mode 100644 index 0000000..351589f --- /dev/null +++ b/keyboards/configs/8b.json @@ -0,0 +1,77 @@ +{ + "pid":"8b", + "name":"RK68 Bluetooth Dual Mode", + "rgb":false, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[680, 58], "bottom":[709, 91] }, + { "bIndex":85, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[613, 57], "bottom":[663, 90] }, + { "bIndex":88, "keyCode":"Key_Page_Down", "top":[680, 151], "bottom":[709, 184] }, + { "bIndex":87, "keyCode":"Key_Page_Up", "top":[680, 105], "bottom":[709, 138] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[93, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 150], "bottom":[138, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 150], "bottom":[184, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 150], "bottom":[228, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":76, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[10, 197], "bottom":[47, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[65, 197], "bottom":[102, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[121, 197], "bottom":[158, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":77, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":83, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":89, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[580, 104], "bottom":[662, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/8c.json b/keyboards/configs/8c.json new file mode 100644 index 0000000..83929d5 --- /dev/null +++ b/keyboards/configs/8c.json @@ -0,0 +1,71 @@ +{ + "pid":"8c", + "name":"RK61RGB ISO ReturnWired", + "rgb":true, + "top":[6, 7], + "bottom":[702, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[6, 7], "bottom":[36, 40] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[543, 198], "bottom":[583, 231] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 7], "bottom":[84, 40] }, + { "bIndex":13, "keyCode":"Key_2", "top":[102, 7], "bottom":[132, 40] }, + { "bIndex":19, "keyCode":"Key_3", "top":[149, 7], "bottom":[179, 40] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 7], "bottom":[227, 40] }, + { "bIndex":31, "keyCode":"Key_5", "top":[244, 7], "bottom":[274, 40] }, + { "bIndex":37, "keyCode":"Key_6", "top":[292, 7], "bottom":[322, 40] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 7], "bottom":[370, 40] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 8], "bottom":[417, 41] }, + { "bIndex":55, "keyCode":"Key_9", "top":[434, 8], "bottom":[464, 41] }, + { "bIndex":61, "keyCode":"Key_0", "top":[482, 8], "bottom":[512, 41] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[530, 8], "bottom":[560, 41] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[578, 8], "bottom":[608, 41] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[627, 9], "bottom":[702, 42] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[8, 55], "bottom":[60, 88] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 56], "bottom":[109, 89] }, + { "bIndex":14, "keyCode":"Key_W", "top":[125, 56], "bottom":[155, 89] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 56], "bottom":[205, 89] }, + { "bIndex":26, "keyCode":"Key_R", "top":[221, 56], "bottom":[251, 89] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 56], "bottom":[299, 89] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 56], "bottom":[347, 89] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 56], "bottom":[394, 89] }, + { "bIndex":50, "keyCode":"Key_I", "top":[411, 56], "bottom":[441, 89] }, + { "bIndex":56, "keyCode":"Key_O", "top":[459, 57], "bottom":[489, 90] }, + { "bIndex":62, "keyCode":"Key_P", "top":[507, 57], "bottom":[537, 90] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[554, 57], "bottom":[584, 90] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[602, 57], "bottom":[632, 90] }, + { "bIndex":75, "keyCode":"Key_Back_Slash", "top":[613, 103], "bottom":[643, 136] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[9, 103], "bottom":[73, 136] }, + { "bIndex":9, "keyCode":"Key_A", "top":[91, 103], "bottom":[121, 136] }, + { "bIndex":15, "keyCode":"Key_S", "top":[138, 104], "bottom":[168, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 104], "bottom":[216, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 104], "bottom":[264, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 104], "bottom":[311, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[329, 104], "bottom":[359, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 104], "bottom":[406, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[423, 104], "bottom":[453, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[471, 104], "bottom":[501, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[519, 104], "bottom":[549, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[566, 104], "bottom":[596, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[10, 149], "bottom":[47, 182] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[114, 149], "bottom":[144, 182] }, + { "bIndex":16, "keyCode":"Key_X", "top":[162, 149], "bottom":[192, 182] }, + { "bIndex":22, "keyCode":"Key_C", "top":[210, 149], "bottom":[240, 182] }, + { "bIndex":28, "keyCode":"Key_V", "top":[257, 149], "bottom":[287, 182] }, + { "bIndex":34, "keyCode":"Key_B", "top":[304, 149], "bottom":[334, 182] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 149], "bottom":[381, 182] }, + { "bIndex":46, "keyCode":"Key_M", "top":[399, 149], "bottom":[429, 182] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[448, 150], "bottom":[478, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[495, 150], "bottom":[525, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[542, 150], "bottom":[572, 183] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[590, 150], "bottom":[702, 183] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[9, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[107, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[127, 197], "bottom":[167, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 198], "bottom":[465, 231] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[484, 198], "bottom":[524, 231] }, + { "bIndex":83, "keyCode":"Key_Fn", "top":[661, 198], "bottom":[701, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[602, 199], "bottom":[642, 232] }, + { "bIndex":76, "keyCode":"Key_Left_Shift_Split", "top":[68, 150], "bottom":[98, 183] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[664, 104], "bottom":[694, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/8e.json b/keyboards/configs/8e.json new file mode 100644 index 0000000..f28c31c --- /dev/null +++ b/keyboards/configs/8e.json @@ -0,0 +1,77 @@ +{ + "pid":"8e", + "name":"RK68 a switch", + "rgb":false, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 58], "bottom":[709, 91] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[613, 57], "bottom":[663, 90] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 151], "bottom":[709, 184] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 105], "bottom":[709, 138] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[93, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 150], "bottom":[138, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 150], "bottom":[184, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 150], "bottom":[228, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[10, 197], "bottom":[47, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[65, 197], "bottom":[102, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[121, 197], "bottom":[158, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[580, 104], "bottom":[662, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/8f.json b/keyboards/configs/8f.json new file mode 100644 index 0000000..98a5006 --- /dev/null +++ b/keyboards/configs/8f.json @@ -0,0 +1,113 @@ +{ + "pid":"8f", + "name":"RK920RGB", + "rgb":true, + "top":[21, 17], + "bottom":[1009, 294], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[21, 17], "bottom":[48, 47] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[111, 17], "bottom":[138, 47] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[156, 17], "bottom":[183, 47] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[201, 17], "bottom":[228, 47] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[246, 17], "bottom":[273, 47] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[312, 17], "bottom":[339, 47] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[357, 17], "bottom":[384, 47] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[401, 17], "bottom":[428, 47] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[446, 17], "bottom":[473, 47] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[513, 17], "bottom":[540, 47] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[558, 17], "bottom":[585, 47] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[602, 17], "bottom":[629, 47] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[647, 17], "bottom":[674, 47] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[702, 17], "bottom":[729, 47] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[703, 84], "bottom":[730, 114] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[747, 84], "bottom":[774, 114] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[21, 84], "bottom":[48, 114] }, + { "bIndex":7, "keyCode":"Key_1", "top":[66, 84], "bottom":[93, 114] }, + { "bIndex":13, "keyCode":"Key_2", "top":[111, 84], "bottom":[138, 114] }, + { "bIndex":19, "keyCode":"Key_3", "top":[158, 84], "bottom":[185, 114] }, + { "bIndex":25, "keyCode":"Key_4", "top":[202, 84], "bottom":[229, 114] }, + { "bIndex":31, "keyCode":"Key_5", "top":[246, 84], "bottom":[273, 114] }, + { "bIndex":37, "keyCode":"Key_6", "top":[291, 84], "bottom":[318, 114] }, + { "bIndex":43, "keyCode":"Key_7", "top":[335, 84], "bottom":[362, 114] }, + { "bIndex":49, "keyCode":"Key_8", "top":[380, 84], "bottom":[407, 114] }, + { "bIndex":55, "keyCode":"Key_9", "top":[423, 84], "bottom":[450, 114] }, + { "bIndex":61, "keyCode":"Key_0", "top":[469, 84], "bottom":[496, 114] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[514, 84], "bottom":[541, 114] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[557, 84], "bottom":[584, 114] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[602, 84], "bottom":[674, 114] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[792, 84], "bottom":[819, 114] }, + { "bIndex":103, "keyCode":"Key_Num_Lock", "top":[846, 85], "bottom":[873, 115] }, + { "bIndex":109, "keyCode":"Key_Num_Divide", "top":[892, 85], "bottom":[919, 115] }, + { "bIndex":115, "keyCode":"Key_Num_Multiply", "top":[937, 85], "bottom":[964, 115] }, + { "bIndex":121, "keyCode":"Key_Num_Substract", "top":[982, 85], "bottom":[1009, 115] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[22, 130], "bottom":[71, 160] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[89, 130], "bottom":[116, 160] }, + { "bIndex":14, "keyCode":"Key_W", "top":[135, 130], "bottom":[162, 160] }, + { "bIndex":20, "keyCode":"Key_E", "top":[179, 130], "bottom":[206, 160] }, + { "bIndex":26, "keyCode":"Key_R", "top":[223, 130], "bottom":[250, 160] }, + { "bIndex":32, "keyCode":"Key_T", "top":[268, 130], "bottom":[295, 160] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[312, 130], "bottom":[339, 160] }, + { "bIndex":44, "keyCode":"Key_U", "top":[357, 130], "bottom":[384, 160] }, + { "bIndex":50, "keyCode":"Key_I", "top":[401, 130], "bottom":[428, 160] }, + { "bIndex":56, "keyCode":"Key_O", "top":[446, 130], "bottom":[473, 160] }, + { "bIndex":62, "keyCode":"Key_P", "top":[490, 130], "bottom":[517, 160] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[534, 130], "bottom":[561, 160] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[579, 130], "bottom":[606, 160] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[624, 130], "bottom":[674, 160] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[702, 129], "bottom":[729, 159] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[793, 129], "bottom":[820, 159] }, + { "bIndex":104, "keyCode":"Key_Num_7", "top":[848, 130], "bottom":[875, 160] }, + { "bIndex":110, "keyCode":"Key_Num_8", "top":[893, 130], "bottom":[920, 160] }, + { "bIndex":116, "keyCode":"Key_Num_9", "top":[936, 130], "bottom":[963, 160] }, + { "bIndex":122, "keyCode":"Key_Num_Add", "top":[981, 131], "bottom":[1008, 205] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[22, 174], "bottom":[82, 204] }, + { "bIndex":9, "keyCode":"Key_A", "top":[100, 174], "bottom":[127, 204] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 174], "bottom":[172, 204] }, + { "bIndex":21, "keyCode":"Key_D", "top":[189, 174], "bottom":[216, 204] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 174], "bottom":[261, 204] }, + { "bIndex":33, "keyCode":"Key_G", "top":[278, 174], "bottom":[305, 204] }, + { "bIndex":39, "keyCode":"Key_H", "top":[323, 174], "bottom":[350, 204] }, + { "bIndex":45, "keyCode":"Key_J", "top":[368, 174], "bottom":[395, 204] }, + { "bIndex":51, "keyCode":"Key_K", "top":[412, 174], "bottom":[439, 204] }, + { "bIndex":57, "keyCode":"Key_L", "top":[457, 174], "bottom":[484, 204] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[501, 174], "bottom":[528, 204] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[545, 174], "bottom":[572, 204] }, + { "bIndex":105, "keyCode":"Key_Num_4", "top":[846, 174], "bottom":[873, 204] }, + { "bIndex":111, "keyCode":"Key_Num_5", "top":[891, 174], "bottom":[918, 204] }, + { "bIndex":117, "keyCode":"Key_Num_6", "top":[935, 174], "bottom":[962, 204] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 219], "bottom":[104, 249] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[122, 219], "bottom":[149, 249] }, + { "bIndex":16, "keyCode":"Key_X", "top":[167, 219], "bottom":[194, 249] }, + { "bIndex":22, "keyCode":"Key_C", "top":[212, 219], "bottom":[239, 249] }, + { "bIndex":28, "keyCode":"Key_V", "top":[256, 219], "bottom":[283, 249] }, + { "bIndex":34, "keyCode":"Key_B", "top":[300, 219], "bottom":[327, 249] }, + { "bIndex":40, "keyCode":"Key_N", "top":[345, 219], "bottom":[372, 249] }, + { "bIndex":46, "keyCode":"Key_M", "top":[390, 219], "bottom":[417, 249] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[434, 219], "bottom":[461, 249] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[479, 219], "bottom":[506, 249] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[523, 219], "bottom":[550, 249] }, + { "bIndex":76, "keyCode":"Key_Right_Shift", "top":[569, 218], "bottom":[674, 248] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[747, 219], "bottom":[774, 249] }, + { "bIndex":106, "keyCode":"Key_Num_1", "top":[846, 219], "bottom":[873, 249] }, + { "bIndex":112, "keyCode":"Key_Num_2", "top":[891, 219], "bottom":[918, 249] }, + { "bIndex":118, "keyCode":"Key_Num_3", "top":[935, 219], "bottom":[962, 249] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[22, 264], "bottom":[60, 294] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[77, 264], "bottom":[115, 294] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[132, 264], "bottom":[170, 294] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[190, 264], "bottom":[450, 294] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[468, 264], "bottom":[506, 294] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[523, 264], "bottom":[561, 294] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[635, 264], "bottom":[673, 294] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[702, 264], "bottom":[729, 294] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[747, 264], "bottom":[774, 294] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[791, 264], "bottom":[818, 294] }, + { "bIndex":107, "keyCode":"Key_Num_0", "top":[848, 264], "bottom":[919, 294] }, + { "bIndex":119, "keyCode":"Key_Num_Decimal_Point", "top":[936, 264], "bottom":[963, 294] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[747, 18], "bottom":[774, 48] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[793, 18], "bottom":[820, 48] }, + { "bIndex":92, "keyCode":"Key_End", "top":[747, 129], "bottom":[774, 159] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[579, 263], "bottom":[617, 293] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[590, 174], "bottom":[674, 204] }, + { "bIndex":124, "keyCode":"Key_Num_Enter", "top":[981, 220], "bottom":[1008, 294] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/9c.json b/keyboards/configs/9c.json new file mode 100644 index 0000000..d0e6e96 --- /dev/null +++ b/keyboards/configs/9c.json @@ -0,0 +1,98 @@ +{ + "pid":"9c", + "name":"RK89RGB", + "rgb":true, + "top":[24, 19], + "bottom":[838, 298], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[24, 19], "bottom":[53, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[115, 19], "bottom":[144, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[161, 19], "bottom":[190, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[206, 19], "bottom":[235, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[252, 19], "bottom":[281, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[319, 19], "bottom":[348, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[364, 19], "bottom":[393, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[409, 19], "bottom":[438, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[455, 19], "bottom":[484, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[523, 19], "bottom":[552, 53] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[568, 19], "bottom":[597, 53] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[613, 19], "bottom":[642, 53] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[659, 19], "bottom":[688, 53] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[25, 82], "bottom":[54, 116] }, + { "bIndex":7, "keyCode":"Key_1", "top":[70, 82], "bottom":[99, 116] }, + { "bIndex":13, "keyCode":"Key_2", "top":[115, 82], "bottom":[144, 116] }, + { "bIndex":19, "keyCode":"Key_3", "top":[161, 82], "bottom":[190, 116] }, + { "bIndex":25, "keyCode":"Key_4", "top":[205, 82], "bottom":[234, 116] }, + { "bIndex":31, "keyCode":"Key_5", "top":[251, 82], "bottom":[280, 116] }, + { "bIndex":37, "keyCode":"Key_6", "top":[297, 82], "bottom":[326, 116] }, + { "bIndex":43, "keyCode":"Key_7", "top":[342, 82], "bottom":[371, 116] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 82], "bottom":[416, 116] }, + { "bIndex":55, "keyCode":"Key_9", "top":[433, 82], "bottom":[462, 116] }, + { "bIndex":61, "keyCode":"Key_0", "top":[477, 82], "bottom":[506, 116] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[523, 82], "bottom":[552, 116] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[25, 126], "bottom":[77, 160] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[93, 128], "bottom":[122, 162] }, + { "bIndex":14, "keyCode":"Key_W", "top":[139, 127], "bottom":[168, 161] }, + { "bIndex":20, "keyCode":"Key_E", "top":[183, 127], "bottom":[212, 161] }, + { "bIndex":26, "keyCode":"Key_R", "top":[229, 128], "bottom":[258, 162] }, + { "bIndex":32, "keyCode":"Key_T", "top":[273, 128], "bottom":[302, 162] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[319, 128], "bottom":[348, 162] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 128], "bottom":[393, 162] }, + { "bIndex":50, "keyCode":"Key_I", "top":[410, 128], "bottom":[439, 162] }, + { "bIndex":56, "keyCode":"Key_O", "top":[455, 128], "bottom":[484, 162] }, + { "bIndex":62, "keyCode":"Key_P", "top":[499, 128], "bottom":[528, 162] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[545, 128], "bottom":[574, 162] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[590, 128], "bottom":[619, 162] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[635, 128], "bottom":[687, 162] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[568, 83], "bottom":[597, 117] }, + { "bIndex":85, "keyCode":"Key_Num_7", "top":[716, 82], "bottom":[745, 116] }, + { "bIndex":91, "keyCode":"Key_Num_8", "top":[762, 82], "bottom":[791, 116] }, + { "bIndex":97, "keyCode":"Key_Num_9", "top":[807, 82], "bottom":[836, 116] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[25, 170], "bottom":[87, 204] }, + { "bIndex":9, "keyCode":"Key_A", "top":[104, 173], "bottom":[133, 207] }, + { "bIndex":15, "keyCode":"Key_S", "top":[149, 173], "bottom":[178, 207] }, + { "bIndex":21, "keyCode":"Key_D", "top":[195, 173], "bottom":[224, 207] }, + { "bIndex":27, "keyCode":"Key_F", "top":[241, 173], "bottom":[270, 207] }, + { "bIndex":33, "keyCode":"Key_G", "top":[285, 173], "bottom":[314, 207] }, + { "bIndex":39, "keyCode":"Key_H", "top":[331, 173], "bottom":[360, 207] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 173], "bottom":[405, 207] }, + { "bIndex":51, "keyCode":"Key_K", "top":[421, 173], "bottom":[450, 207] }, + { "bIndex":57, "keyCode":"Key_L", "top":[466, 173], "bottom":[495, 207] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[512, 173], "bottom":[541, 207] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[557, 173], "bottom":[586, 207] }, + { "bIndex":86, "keyCode":"Key_Num_4", "top":[717, 126], "bottom":[746, 160] }, + { "bIndex":92, "keyCode":"Key_Num_5", "top":[762, 127], "bottom":[791, 161] }, + { "bIndex":98, "keyCode":"Key_Num_6", "top":[808, 127], "bottom":[837, 161] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[25, 215], "bottom":[111, 249] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[127, 217], "bottom":[156, 251] }, + { "bIndex":16, "keyCode":"Key_X", "top":[171, 218], "bottom":[200, 252] }, + { "bIndex":22, "keyCode":"Key_C", "top":[217, 218], "bottom":[246, 252] }, + { "bIndex":28, "keyCode":"Key_V", "top":[262, 218], "bottom":[291, 252] }, + { "bIndex":34, "keyCode":"Key_B", "top":[308, 217], "bottom":[337, 251] }, + { "bIndex":40, "keyCode":"Key_N", "top":[352, 217], "bottom":[381, 251] }, + { "bIndex":46, "keyCode":"Key_M", "top":[398, 217], "bottom":[427, 251] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[444, 217], "bottom":[473, 251] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[488, 217], "bottom":[517, 251] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[533, 217], "bottom":[562, 251] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[577, 216], "bottom":[687, 250] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[763, 219], "bottom":[792, 253] }, + { "bIndex":87, "keyCode":"Key_Num_1", "top":[716, 173], "bottom":[745, 207] }, + { "bIndex":93, "keyCode":"Key_Num_2", "top":[763, 173], "bottom":[792, 207] }, + { "bIndex":99, "keyCode":"Key_Num_3", "top":[808, 173], "bottom":[837, 207] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[27, 262], "bottom":[65, 296] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[83, 261], "bottom":[121, 295] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 261], "bottom":[177, 295] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[195, 262], "bottom":[463, 296] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[478, 262], "bottom":[518, 296] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[534, 262], "bottom":[574, 296] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[649, 262], "bottom":[689, 296] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[718, 264], "bottom":[747, 298] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[763, 264], "bottom":[792, 298] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[809, 264], "bottom":[838, 298] }, + { "bIndex":88, "keyCode":"Key_Num_0", "top":[716, 218], "bottom":[745, 252] }, + { "bIndex":100, "keyCode":"Key_Num_Decimal_Point", "top":[808, 218], "bottom":[837, 252] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[613, 83], "bottom":[687, 117] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[590, 261], "bottom":[630, 295] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[604, 173], "bottom":[688, 207] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/9e.json b/keyboards/configs/9e.json new file mode 100644 index 0000000..acc8e69 --- /dev/null +++ b/keyboards/configs/9e.json @@ -0,0 +1,101 @@ +{ + "pid":"9e", + "name":"RK92RGB N", + "rgb":true, + "top":[24, 20], + "bottom":[835, 296], + "keys":[ + { "bIndex":6, "keyCode":"Key_Escape", "top":[25, 20], "bottom":[55, 52] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[115, 20], "bottom":[145, 52] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[161, 20], "bottom":[191, 52] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[206, 20], "bottom":[236, 52] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[251, 20], "bottom":[281, 52] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[319, 20], "bottom":[349, 52] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[365, 20], "bottom":[395, 52] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[409, 20], "bottom":[439, 52] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[454, 20], "bottom":[484, 52] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[522, 20], "bottom":[552, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[567, 20], "bottom":[597, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[613, 20], "bottom":[643, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[657, 20], "bottom":[687, 52] }, + { "bIndex":41, "keyCode":"Key_Num_7", "top":[713, 21], "bottom":[743, 53] }, + { "bIndex":47, "keyCode":"Key_Num_8", "top":[759, 21], "bottom":[789, 53] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[25, 82], "bottom":[55, 114] }, + { "bIndex":7, "keyCode":"Key_1", "top":[69, 81], "bottom":[99, 113] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 81], "bottom":[146, 113] }, + { "bIndex":19, "keyCode":"Key_3", "top":[160, 81], "bottom":[190, 113] }, + { "bIndex":25, "keyCode":"Key_4", "top":[205, 82], "bottom":[235, 114] }, + { "bIndex":31, "keyCode":"Key_5", "top":[251, 81], "bottom":[281, 113] }, + { "bIndex":37, "keyCode":"Key_6", "top":[296, 82], "bottom":[326, 114] }, + { "bIndex":43, "keyCode":"Key_7", "top":[341, 82], "bottom":[371, 114] }, + { "bIndex":49, "keyCode":"Key_8", "top":[386, 82], "bottom":[416, 114] }, + { "bIndex":55, "keyCode":"Key_9", "top":[432, 82], "bottom":[462, 114] }, + { "bIndex":61, "keyCode":"Key_0", "top":[476, 82], "bottom":[506, 114] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[522, 82], "bottom":[552, 114] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[566, 82], "bottom":[596, 114] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[613, 82], "bottom":[687, 114] }, + { "bIndex":103, "keyCode":"Key_Num_4", "top":[713, 66], "bottom":[743, 98] }, + { "bIndex":109, "keyCode":"Key_Num_5", "top":[759, 66], "bottom":[789, 98] }, + { "bIndex":115, "keyCode":"Key_Num_6", "top":[804, 66], "bottom":[834, 98] }, + { "bIndex":121, "keyCode":"Key_Num_9", "top":[805, 21], "bottom":[835, 53] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[27, 127], "bottom":[77, 159] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[91, 128], "bottom":[121, 160] }, + { "bIndex":14, "keyCode":"Key_W", "top":[138, 128], "bottom":[168, 160] }, + { "bIndex":20, "keyCode":"Key_E", "top":[183, 128], "bottom":[213, 160] }, + { "bIndex":26, "keyCode":"Key_R", "top":[228, 128], "bottom":[258, 160] }, + { "bIndex":32, "keyCode":"Key_T", "top":[274, 128], "bottom":[304, 160] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[319, 128], "bottom":[349, 160] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 128], "bottom":[394, 160] }, + { "bIndex":50, "keyCode":"Key_I", "top":[409, 128], "bottom":[439, 160] }, + { "bIndex":56, "keyCode":"Key_O", "top":[454, 128], "bottom":[484, 160] }, + { "bIndex":62, "keyCode":"Key_P", "top":[499, 128], "bottom":[529, 160] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[544, 128], "bottom":[574, 160] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[589, 128], "bottom":[619, 160] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[634, 128], "bottom":[686, 160] }, + { "bIndex":104, "keyCode":"Key_Num_1", "top":[713, 111], "bottom":[743, 143] }, + { "bIndex":110, "keyCode":"Key_Num_2", "top":[759, 111], "bottom":[789, 143] }, + { "bIndex":116, "keyCode":"Key_Num_3", "top":[804, 111], "bottom":[834, 143] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[25, 172], "bottom":[88, 204] }, + { "bIndex":9, "keyCode":"Key_A", "top":[103, 173], "bottom":[133, 205] }, + { "bIndex":15, "keyCode":"Key_S", "top":[149, 173], "bottom":[179, 205] }, + { "bIndex":21, "keyCode":"Key_D", "top":[194, 173], "bottom":[224, 205] }, + { "bIndex":27, "keyCode":"Key_F", "top":[240, 173], "bottom":[270, 205] }, + { "bIndex":33, "keyCode":"Key_G", "top":[285, 173], "bottom":[315, 205] }, + { "bIndex":39, "keyCode":"Key_H", "top":[330, 173], "bottom":[360, 205] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 173], "bottom":[406, 205] }, + { "bIndex":51, "keyCode":"Key_K", "top":[421, 173], "bottom":[451, 205] }, + { "bIndex":57, "keyCode":"Key_L", "top":[465, 173], "bottom":[495, 205] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[511, 173], "bottom":[541, 205] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[556, 173], "bottom":[586, 205] }, + { "bIndex":105, "keyCode":"Key_Page_Up", "top":[712, 156], "bottom":[742, 188] }, + { "bIndex":111, "keyCode":"Key_Num_0", "top":[758, 156], "bottom":[788, 188] }, + { "bIndex":117, "keyCode":"Key_Num_Decimal_Point", "top":[804, 155], "bottom":[834, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[24, 217], "bottom":[110, 249] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 218], "bottom":[156, 250] }, + { "bIndex":16, "keyCode":"Key_X", "top":[172, 218], "bottom":[202, 250] }, + { "bIndex":22, "keyCode":"Key_C", "top":[217, 218], "bottom":[247, 250] }, + { "bIndex":28, "keyCode":"Key_V", "top":[263, 218], "bottom":[293, 250] }, + { "bIndex":34, "keyCode":"Key_B", "top":[307, 218], "bottom":[337, 250] }, + { "bIndex":40, "keyCode":"Key_N", "top":[353, 218], "bottom":[383, 250] }, + { "bIndex":46, "keyCode":"Key_M", "top":[398, 218], "bottom":[428, 250] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[443, 218], "bottom":[473, 250] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[489, 218], "bottom":[519, 250] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[533, 218], "bottom":[563, 250] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[578, 218], "bottom":[688, 250] }, + { "bIndex":106, "keyCode":"Key_Page_Down", "top":[713, 218], "bottom":[743, 250] }, + { "bIndex":112, "keyCode":"Key_Up", "top":[759, 218], "bottom":[789, 250] }, + { "bIndex":118, "keyCode":"Key_Fn", "top":[805, 218], "bottom":[835, 250] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[24, 263], "bottom":[66, 295] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[82, 262], "bottom":[124, 294] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 263], "bottom":[179, 295] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[195, 263], "bottom":[461, 295] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[474, 263], "bottom":[516, 295] }, + { "bIndex":59, "keyCode":"Key_Right_Super", "top":[530, 263], "bottom":[572, 295] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[588, 264], "bottom":[630, 296] }, + { "bIndex":77, "keyCode":"Key_Right_Control", "top":[644, 264], "bottom":[686, 296] }, + { "bIndex":107, "keyCode":"Key_Left", "top":[714, 263], "bottom":[744, 295] }, + { "bIndex":113, "keyCode":"Key_Down", "top":[758, 263], "bottom":[788, 295] }, + { "bIndex":119, "keyCode":"Key_Right", "top":[804, 263], "bottom":[834, 295] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[599, 173], "bottom":[687, 205] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/a2.json b/keyboards/configs/a2.json new file mode 100644 index 0000000..ef4abe2 --- /dev/null +++ b/keyboards/configs/a2.json @@ -0,0 +1,77 @@ +{ + "pid":"a2", + "name":"68RGB Wired", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 58], "bottom":[709, 91] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[613, 57], "bottom":[663, 90] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 151], "bottom":[709, 184] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 105], "bottom":[709, 138] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[93, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 150], "bottom":[138, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 150], "bottom":[184, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 150], "bottom":[228, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[10, 197], "bottom":[47, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[65, 197], "bottom":[102, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[121, 197], "bottom":[158, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[580, 104], "bottom":[662, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/a4.json b/keyboards/configs/a4.json new file mode 100644 index 0000000..65b62e3 --- /dev/null +++ b/keyboards/configs/a4.json @@ -0,0 +1,105 @@ +{ + "pid":"a4", + "name":"RK96", + "rgb":false, + "top":[16, 12], + "bottom":[947, 299], + "keys":[ + { "bIndex":6, "keyCode":"Key_Escape", "top":[16, 12], "bottom":[45, 45] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[65, 12], "bottom":[94, 45] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[114, 12], "bottom":[143, 45] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[163, 12], "bottom":[192, 45] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[213, 12], "bottom":[242, 45] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[262, 12], "bottom":[291, 45] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[310, 12], "bottom":[339, 45] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[359, 12], "bottom":[388, 45] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[408, 12], "bottom":[437, 45] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[457, 12], "bottom":[486, 45] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[506, 12], "bottom":[535, 45] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[555, 12], "bottom":[584, 45] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[603, 12], "bottom":[632, 45] }, + { "bIndex":41, "keyCode":"Key_Print_Screen", "top":[652, 12], "bottom":[681, 45] }, + { "bIndex":47, "keyCode":"Key_Delete", "top":[702, 12], "bottom":[731, 45] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[16, 61], "bottom":[45, 94] }, + { "bIndex":7, "keyCode":"Key_1", "top":[66, 61], "bottom":[95, 94] }, + { "bIndex":13, "keyCode":"Key_2", "top":[114, 61], "bottom":[143, 94] }, + { "bIndex":19, "keyCode":"Key_3", "top":[163, 61], "bottom":[192, 94] }, + { "bIndex":25, "keyCode":"Key_4", "top":[213, 61], "bottom":[242, 94] }, + { "bIndex":31, "keyCode":"Key_5", "top":[261, 61], "bottom":[290, 94] }, + { "bIndex":37, "keyCode":"Key_6", "top":[310, 61], "bottom":[339, 94] }, + { "bIndex":43, "keyCode":"Key_7", "top":[359, 61], "bottom":[388, 94] }, + { "bIndex":49, "keyCode":"Key_8", "top":[407, 61], "bottom":[436, 94] }, + { "bIndex":55, "keyCode":"Key_9", "top":[456, 61], "bottom":[485, 94] }, + { "bIndex":61, "keyCode":"Key_0", "top":[506, 61], "bottom":[535, 94] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[554, 61], "bottom":[583, 94] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[604, 61], "bottom":[633, 94] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[653, 60], "bottom":[730, 93] }, + { "bIndex":103, "keyCode":"Key_Num_Lock", "top":[771, 61], "bottom":[800, 94] }, + { "bIndex":109, "keyCode":"Key_Num_Divide", "top":[819, 61], "bottom":[848, 94] }, + { "bIndex":115, "keyCode":"Key_Num_Multiply", "top":[868, 61], "bottom":[897, 94] }, + { "bIndex":121, "keyCode":"Key_Num_Substract", "top":[918, 61], "bottom":[947, 94] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[19, 110], "bottom":[69, 143] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[89, 110], "bottom":[118, 143] }, + { "bIndex":14, "keyCode":"Key_W", "top":[139, 110], "bottom":[168, 143] }, + { "bIndex":20, "keyCode":"Key_E", "top":[188, 110], "bottom":[217, 143] }, + { "bIndex":26, "keyCode":"Key_R", "top":[236, 110], "bottom":[265, 143] }, + { "bIndex":32, "keyCode":"Key_T", "top":[287, 110], "bottom":[316, 143] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[336, 110], "bottom":[365, 143] }, + { "bIndex":44, "keyCode":"Key_U", "top":[383, 110], "bottom":[412, 143] }, + { "bIndex":50, "keyCode":"Key_I", "top":[432, 110], "bottom":[461, 143] }, + { "bIndex":56, "keyCode":"Key_O", "top":[481, 110], "bottom":[510, 143] }, + { "bIndex":62, "keyCode":"Key_P", "top":[530, 110], "bottom":[559, 143] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[579, 110], "bottom":[608, 143] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[629, 110], "bottom":[658, 143] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[677, 110], "bottom":[730, 143] }, + { "bIndex":104, "keyCode":"Key_Num_7", "top":[769, 111], "bottom":[798, 144] }, + { "bIndex":110, "keyCode":"Key_Num_8", "top":[820, 111], "bottom":[849, 144] }, + { "bIndex":116, "keyCode":"Key_Num_9", "top":[870, 111], "bottom":[899, 144] }, + { "bIndex":122, "keyCode":"Key_Num_Add", "top":[917, 111], "bottom":[946, 192] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[18, 159], "bottom":[81, 192] }, + { "bIndex":9, "keyCode":"Key_A", "top":[102, 159], "bottom":[131, 192] }, + { "bIndex":15, "keyCode":"Key_S", "top":[152, 159], "bottom":[181, 192] }, + { "bIndex":21, "keyCode":"Key_D", "top":[199, 159], "bottom":[228, 192] }, + { "bIndex":27, "keyCode":"Key_F", "top":[249, 159], "bottom":[278, 192] }, + { "bIndex":33, "keyCode":"Key_G", "top":[298, 159], "bottom":[327, 192] }, + { "bIndex":39, "keyCode":"Key_H", "top":[347, 159], "bottom":[376, 192] }, + { "bIndex":45, "keyCode":"Key_J", "top":[396, 159], "bottom":[425, 192] }, + { "bIndex":51, "keyCode":"Key_K", "top":[444, 159], "bottom":[473, 192] }, + { "bIndex":57, "keyCode":"Key_L", "top":[493, 159], "bottom":[522, 192] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[542, 159], "bottom":[571, 192] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[590, 159], "bottom":[619, 192] }, + { "bIndex":105, "keyCode":"Key_Num_4", "top":[770, 160], "bottom":[799, 193] }, + { "bIndex":111, "keyCode":"Key_Num_5", "top":[820, 160], "bottom":[849, 193] }, + { "bIndex":117, "keyCode":"Key_Num_6", "top":[867, 160], "bottom":[896, 193] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[17, 207], "bottom":[106, 240] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[127, 208], "bottom":[156, 241] }, + { "bIndex":16, "keyCode":"Key_X", "top":[176, 208], "bottom":[205, 241] }, + { "bIndex":22, "keyCode":"Key_C", "top":[225, 208], "bottom":[254, 241] }, + { "bIndex":28, "keyCode":"Key_V", "top":[274, 208], "bottom":[303, 241] }, + { "bIndex":34, "keyCode":"Key_B", "top":[323, 208], "bottom":[352, 241] }, + { "bIndex":40, "keyCode":"Key_N", "top":[372, 208], "bottom":[401, 241] }, + { "bIndex":46, "keyCode":"Key_M", "top":[420, 208], "bottom":[449, 241] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[468, 208], "bottom":[497, 241] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[517, 208], "bottom":[546, 241] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[567, 208], "bottom":[596, 241] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[615, 208], "bottom":[682, 241] }, + { "bIndex":76, "keyCode":"Key_Up", "top":[710, 217], "bottom":[739, 250] }, + { "bIndex":106, "keyCode":"Key_Num_1", "top":[770, 208], "bottom":[799, 241] }, + { "bIndex":112, "keyCode":"Key_Num_2", "top":[820, 208], "bottom":[849, 241] }, + { "bIndex":118, "keyCode":"Key_Num_3", "top":[868, 208], "bottom":[897, 241] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[18, 256], "bottom":[57, 289] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[78, 256], "bottom":[119, 289] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[139, 256], "bottom":[180, 289] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[200, 256], "bottom":[486, 289] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[506, 257], "bottom":[535, 290] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[554, 257], "bottom":[583, 290] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[603, 258], "bottom":[632, 291] }, + { "bIndex":77, "keyCode":"Key_Left", "top":[660, 266], "bottom":[689, 299] }, + { "bIndex":83, "keyCode":"Key_Down", "top":[711, 266], "bottom":[740, 299] }, + { "bIndex":107, "keyCode":"Key_Right", "top":[760, 266], "bottom":[789, 299] }, + { "bIndex":113, "keyCode":"Key_Num_0", "top":[820, 256], "bottom":[849, 289] }, + { "bIndex":119, "keyCode":"Key_Num_Decimal_Point", "top":[868, 256], "bottom":[897, 289] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[639, 160], "bottom":[730, 193] }, + { "bIndex":124, "keyCode":"Key_Num_Enter", "top":[918, 208], "bottom":[947, 289] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/a5.json b/keyboards/configs/a5.json new file mode 100644 index 0000000..7103396 --- /dev/null +++ b/keyboards/configs/a5.json @@ -0,0 +1,80 @@ +{ + "pid":"a5", + "name":"RK71RGB N", + "rgb":true, + "top":[12, 43], + "bottom":[707, 247], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[12, 44], "bottom":[39, 75] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[638, 45], "bottom":[665, 76] }, + { "bIndex":87, "keyCode":"Key_Pause", "top":[638, 130], "bottom":[665, 161] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[638, 87], "bottom":[665, 118] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 44], "bottom":[81, 75] }, + { "bIndex":13, "keyCode":"Key_2", "top":[96, 44], "bottom":[123, 75] }, + { "bIndex":19, "keyCode":"Key_3", "top":[138, 44], "bottom":[165, 75] }, + { "bIndex":25, "keyCode":"Key_4", "top":[179, 44], "bottom":[206, 75] }, + { "bIndex":31, "keyCode":"Key_5", "top":[221, 44], "bottom":[248, 75] }, + { "bIndex":37, "keyCode":"Key_6", "top":[262, 44], "bottom":[289, 75] }, + { "bIndex":43, "keyCode":"Key_7", "top":[305, 44], "bottom":[332, 75] }, + { "bIndex":49, "keyCode":"Key_8", "top":[346, 44], "bottom":[373, 75] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 44], "bottom":[415, 75] }, + { "bIndex":61, "keyCode":"Key_0", "top":[430, 44], "bottom":[457, 75] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[471, 44], "bottom":[498, 75] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[513, 44], "bottom":[540, 75] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[556, 43], "bottom":[622, 74] }, + { "bIndex":92, "keyCode":"Key_End", "top":[679, 87], "bottom":[706, 118] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[680, 44], "bottom":[707, 75] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[13, 87], "bottom":[60, 118] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[75, 87], "bottom":[102, 118] }, + { "bIndex":14, "keyCode":"Key_W", "top":[117, 87], "bottom":[144, 118] }, + { "bIndex":20, "keyCode":"Key_E", "top":[158, 87], "bottom":[185, 118] }, + { "bIndex":26, "keyCode":"Key_R", "top":[200, 87], "bottom":[227, 118] }, + { "bIndex":32, "keyCode":"Key_T", "top":[242, 87], "bottom":[269, 118] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[284, 87], "bottom":[311, 118] }, + { "bIndex":44, "keyCode":"Key_U", "top":[325, 87], "bottom":[352, 118] }, + { "bIndex":50, "keyCode":"Key_I", "top":[367, 87], "bottom":[394, 118] }, + { "bIndex":56, "keyCode":"Key_O", "top":[409, 87], "bottom":[436, 118] }, + { "bIndex":62, "keyCode":"Key_P", "top":[450, 87], "bottom":[477, 118] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[492, 87], "bottom":[519, 118] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[534, 87], "bottom":[561, 118] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[576, 87], "bottom":[622, 118] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 173], "bottom":[707, 204] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 130], "bottom":[707, 161] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[13, 130], "bottom":[70, 161] }, + { "bIndex":9, "keyCode":"Key_A", "top":[86, 130], "bottom":[113, 161] }, + { "bIndex":15, "keyCode":"Key_S", "top":[127, 130], "bottom":[154, 161] }, + { "bIndex":21, "keyCode":"Key_D", "top":[169, 130], "bottom":[196, 161] }, + { "bIndex":27, "keyCode":"Key_F", "top":[211, 130], "bottom":[238, 161] }, + { "bIndex":33, "keyCode":"Key_G", "top":[253, 130], "bottom":[280, 161] }, + { "bIndex":39, "keyCode":"Key_H", "top":[294, 130], "bottom":[321, 161] }, + { "bIndex":45, "keyCode":"Key_J", "top":[336, 130], "bottom":[363, 161] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 130], "bottom":[405, 161] }, + { "bIndex":57, "keyCode":"Key_L", "top":[419, 130], "bottom":[446, 161] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[461, 130], "bottom":[488, 161] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[502, 130], "bottom":[529, 161] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[13, 172], "bottom":[91, 203] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[107, 172], "bottom":[134, 203] }, + { "bIndex":16, "keyCode":"Key_X", "top":[148, 172], "bottom":[175, 203] }, + { "bIndex":22, "keyCode":"Key_C", "top":[190, 172], "bottom":[217, 203] }, + { "bIndex":28, "keyCode":"Key_V", "top":[232, 172], "bottom":[259, 203] }, + { "bIndex":34, "keyCode":"Key_B", "top":[273, 172], "bottom":[300, 203] }, + { "bIndex":40, "keyCode":"Key_N", "top":[315, 172], "bottom":[342, 203] }, + { "bIndex":46, "keyCode":"Key_M", "top":[357, 172], "bottom":[384, 203] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 172], "bottom":[425, 203] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[440, 172], "bottom":[467, 203] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[482, 172], "bottom":[509, 203] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[524, 172], "bottom":[622, 203] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[638, 172], "bottom":[665, 203] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 215], "bottom":[49, 246] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[66, 215], "bottom":[102, 246] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[118, 215], "bottom":[153, 246] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[170, 215], "bottom":[414, 246] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[433, 215], "bottom":[465, 246] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[486, 215], "bottom":[518, 246] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[539, 216], "bottom":[571, 247] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[597, 216], "bottom":[624, 247] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[638, 216], "bottom":[665, 247] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[679, 216], "bottom":[706, 247] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[545, 129], "bottom":[622, 160] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/a6.json b/keyboards/configs/a6.json new file mode 100644 index 0000000..5f0162d --- /dev/null +++ b/keyboards/configs/a6.json @@ -0,0 +1,117 @@ +{ + "pid":"a6", + "name":"RK932", + "rgb":false, + "top":[30, 25], + "bottom":[1013, 283], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[30, 25], "bottom":[64, 60] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[120, 25], "bottom":[154, 60] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[165, 25], "bottom":[199, 60] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[210, 25], "bottom":[244, 60] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[254, 25], "bottom":[288, 60] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[320, 25], "bottom":[354, 60] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[365, 25], "bottom":[399, 60] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[409, 25], "bottom":[443, 60] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[454, 25], "bottom":[488, 60] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[520, 25], "bottom":[554, 60] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[565, 25], "bottom":[599, 60] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[609, 25], "bottom":[643, 60] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[652, 25], "bottom":[686, 60] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[704, 25], "bottom":[738, 60] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[701, 71], "bottom":[735, 106] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[745, 71], "bottom":[779, 106] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[31, 71], "bottom":[65, 106] }, + { "bIndex":7, "keyCode":"Key_1", "top":[76, 71], "bottom":[110, 106] }, + { "bIndex":13, "keyCode":"Key_2", "top":[121, 71], "bottom":[155, 106] }, + { "bIndex":19, "keyCode":"Key_3", "top":[166, 71], "bottom":[200, 106] }, + { "bIndex":25, "keyCode":"Key_4", "top":[210, 71], "bottom":[244, 106] }, + { "bIndex":31, "keyCode":"Key_5", "top":[254, 71], "bottom":[288, 106] }, + { "bIndex":37, "keyCode":"Key_6", "top":[299, 71], "bottom":[333, 106] }, + { "bIndex":43, "keyCode":"Key_7", "top":[343, 71], "bottom":[377, 106] }, + { "bIndex":49, "keyCode":"Key_8", "top":[388, 71], "bottom":[422, 106] }, + { "bIndex":55, "keyCode":"Key_9", "top":[431, 71], "bottom":[465, 106] }, + { "bIndex":61, "keyCode":"Key_0", "top":[475, 71], "bottom":[509, 106] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[520, 71], "bottom":[554, 106] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[563, 71], "bottom":[597, 106] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[611, 71], "bottom":[685, 106] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[790, 71], "bottom":[824, 106] }, + { "bIndex":103, "keyCode":"Key_Num_Lock", "top":[842, 71], "bottom":[876, 106] }, + { "bIndex":109, "keyCode":"Key_Num_Divide", "top":[887, 70], "bottom":[921, 105] }, + { "bIndex":115, "keyCode":"Key_Num_Multiply", "top":[931, 70], "bottom":[965, 105] }, + { "bIndex":121, "keyCode":"Key_Num_Substract", "top":[976, 70], "bottom":[1010, 105] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[35, 114], "bottom":[87, 149] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[99, 114], "bottom":[133, 149] }, + { "bIndex":14, "keyCode":"Key_W", "top":[142, 114], "bottom":[176, 149] }, + { "bIndex":20, "keyCode":"Key_E", "top":[186, 114], "bottom":[220, 149] }, + { "bIndex":26, "keyCode":"Key_R", "top":[230, 114], "bottom":[264, 149] }, + { "bIndex":32, "keyCode":"Key_T", "top":[275, 114], "bottom":[309, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[319, 114], "bottom":[353, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 114], "bottom":[398, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[408, 114], "bottom":[442, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[453, 114], "bottom":[487, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[497, 114], "bottom":[531, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[541, 114], "bottom":[575, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[586, 114], "bottom":[620, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[632, 114], "bottom":[684, 149] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[703, 114], "bottom":[737, 149] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[792, 114], "bottom":[826, 149] }, + { "bIndex":104, "keyCode":"Key_Num_7", "top":[842, 115], "bottom":[876, 150] }, + { "bIndex":110, "keyCode":"Key_Num_8", "top":[887, 115], "bottom":[921, 150] }, + { "bIndex":116, "keyCode":"Key_Num_9", "top":[930, 115], "bottom":[964, 150] }, + { "bIndex":122, "keyCode":"Key_Num_Add", "top":[976, 114], "bottom":[1010, 193] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[35, 158], "bottom":[95, 193] }, + { "bIndex":9, "keyCode":"Key_A", "top":[111, 158], "bottom":[145, 193] }, + { "bIndex":15, "keyCode":"Key_S", "top":[156, 158], "bottom":[190, 193] }, + { "bIndex":21, "keyCode":"Key_D", "top":[197, 158], "bottom":[231, 193] }, + { "bIndex":27, "keyCode":"Key_F", "top":[243, 158], "bottom":[277, 193] }, + { "bIndex":33, "keyCode":"Key_G", "top":[286, 158], "bottom":[320, 193] }, + { "bIndex":39, "keyCode":"Key_H", "top":[331, 158], "bottom":[365, 193] }, + { "bIndex":45, "keyCode":"Key_J", "top":[375, 158], "bottom":[409, 193] }, + { "bIndex":51, "keyCode":"Key_K", "top":[418, 158], "bottom":[452, 193] }, + { "bIndex":57, "keyCode":"Key_L", "top":[463, 158], "bottom":[497, 193] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[507, 158], "bottom":[541, 193] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[551, 158], "bottom":[585, 193] }, + { "bIndex":105, "keyCode":"Key_Num_4", "top":[844, 159], "bottom":[878, 194] }, + { "bIndex":111, "keyCode":"Key_Num_5", "top":[888, 159], "bottom":[922, 194] }, + { "bIndex":117, "keyCode":"Key_Num_6", "top":[933, 158], "bottom":[967, 193] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[34, 203], "bottom":[120, 238] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[133, 203], "bottom":[167, 238] }, + { "bIndex":16, "keyCode":"Key_X", "top":[177, 203], "bottom":[211, 238] }, + { "bIndex":22, "keyCode":"Key_C", "top":[221, 203], "bottom":[255, 238] }, + { "bIndex":28, "keyCode":"Key_V", "top":[265, 203], "bottom":[299, 238] }, + { "bIndex":34, "keyCode":"Key_B", "top":[308, 203], "bottom":[342, 238] }, + { "bIndex":40, "keyCode":"Key_N", "top":[352, 203], "bottom":[386, 238] }, + { "bIndex":46, "keyCode":"Key_M", "top":[396, 203], "bottom":[430, 238] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[442, 203], "bottom":[476, 238] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[486, 203], "bottom":[520, 238] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[531, 203], "bottom":[565, 238] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[575, 202], "bottom":[685, 237] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[746, 203], "bottom":[780, 238] }, + { "bIndex":106, "keyCode":"Key_Num_1", "top":[846, 203], "bottom":[880, 238] }, + { "bIndex":112, "keyCode":"Key_Num_2", "top":[889, 203], "bottom":[923, 238] }, + { "bIndex":118, "keyCode":"Key_Num_3", "top":[934, 203], "bottom":[968, 238] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[35, 247], "bottom":[73, 282] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[90, 247], "bottom":[128, 282] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[144, 247], "bottom":[182, 282] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[202, 248], "bottom":[462, 283] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[478, 247], "bottom":[516, 282] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[533, 247], "bottom":[571, 282] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[643, 247], "bottom":[681, 282] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[701, 248], "bottom":[735, 283] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[746, 248], "bottom":[780, 283] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[792, 248], "bottom":[826, 283] }, + { "bIndex":107, "keyCode":"Key_Num_0", "top":[843, 248], "bottom":[917, 283] }, + { "bIndex":119, "keyCode":"Key_Num_Decimal_Point", "top":[932, 248], "bottom":[966, 283] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[749, 26], "bottom":[783, 61] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[795, 26], "bottom":[829, 61] }, + { "bIndex":92, "keyCode":"Key_End", "top":[748, 114], "bottom":[782, 149] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[589, 246], "bottom":[627, 281] }, + { "bIndex":88, "keyCode":"Key_Volume_Up", "top":[841, 26], "bottom":[875, 61] }, + { "bIndex":89, "keyCode":"Key_Volume_Down", "top":[886, 26], "bottom":[920, 61] }, + { "bIndex":88, "keyCode":"Key_Mute", "top":[931, 26], "bottom":[965, 61] }, + { "bIndex":88, "keyCode":"Key_Calculator", "top":[979, 26], "bottom":[1013, 61] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[598, 158], "bottom":[684, 193] }, + { "bIndex":124, "keyCode":"Key_Num_Enter", "top":[976, 202], "bottom":[1010, 280] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/a9.json b/keyboards/configs/a9.json new file mode 100644 index 0000000..a12887c --- /dev/null +++ b/keyboards/configs/a9.json @@ -0,0 +1,78 @@ +{ + "pid":"a9", + "name":"RK68ISO Return", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 56], "bottom":[709, 89] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":75, "keyCode":"Key_Back_Slash", "top":[580, 103], "bottom":[607, 136] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 150], "bottom":[709, 183] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 103], "bottom":[709, 136] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[49, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[111, 150], "bottom":[140, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[156, 150], "bottom":[185, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[200, 150], "bottom":[229, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[12, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[104, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[123, 197], "bottom":[160, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":76, "keyCode":"Key_Left_Shift_Split", "top":[66, 149], "bottom":[95, 182] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[624, 97], "bottom":[662, 130] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/aa.json b/keyboards/configs/aa.json new file mode 100644 index 0000000..094ced8 --- /dev/null +++ b/keyboards/configs/aa.json @@ -0,0 +1,109 @@ +{ + "pid":"aa", + "name":"RK750-100RGB", + "rgb":true, + "top":[21, 18], + "bottom":[826, 285], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[22, 19], "bottom":[51, 52] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[65, 19], "bottom":[94, 52] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[107, 19], "bottom":[136, 52] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[150, 19], "bottom":[179, 52] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[191, 19], "bottom":[220, 52] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[233, 19], "bottom":[262, 52] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[276, 19], "bottom":[305, 52] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[318, 19], "bottom":[347, 52] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[360, 19], "bottom":[389, 52] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[402, 19], "bottom":[431, 52] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[444, 19], "bottom":[473, 52] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[486, 19], "bottom":[515, 52] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[528, 19], "bottom":[557, 52] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[571, 19], "bottom":[600, 52] }, + { "bIndex":84, "keyCode":"Key_Delete", "top":[612, 19], "bottom":[641, 52] }, + { "bIndex":90, "keyCode":"Key_Home", "top":[671, 19], "bottom":[700, 52] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[22, 73], "bottom":[51, 106] }, + { "bIndex":7, "keyCode":"Key_1", "top":[64, 74], "bottom":[93, 107] }, + { "bIndex":13, "keyCode":"Key_2", "top":[107, 74], "bottom":[136, 107] }, + { "bIndex":19, "keyCode":"Key_3", "top":[148, 74], "bottom":[177, 107] }, + { "bIndex":25, "keyCode":"Key_4", "top":[191, 74], "bottom":[220, 107] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 74], "bottom":[262, 107] }, + { "bIndex":37, "keyCode":"Key_6", "top":[275, 75], "bottom":[304, 108] }, + { "bIndex":43, "keyCode":"Key_7", "top":[317, 74], "bottom":[346, 107] }, + { "bIndex":49, "keyCode":"Key_8", "top":[362, 74], "bottom":[391, 107] }, + { "bIndex":55, "keyCode":"Key_9", "top":[402, 74], "bottom":[431, 107] }, + { "bIndex":61, "keyCode":"Key_0", "top":[443, 74], "bottom":[472, 107] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[486, 74], "bottom":[515, 107] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[527, 74], "bottom":[556, 107] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[570, 74], "bottom":[641, 107] }, + { "bIndex":102, "keyCode":"Key_Page_Up", "top":[755, 19], "bottom":[784, 52] }, + { "bIndex":91, "keyCode":"Key_Num_Lock", "top":[671, 74], "bottom":[700, 107] }, + { "bIndex":97, "keyCode":"Key_Num_Divide", "top":[713, 73], "bottom":[742, 106] }, + { "bIndex":103, "keyCode":"Key_Num_Multiply", "top":[755, 73], "bottom":[784, 106] }, + { "bIndex":109, "keyCode":"Key_Num_Substract", "top":[797, 73], "bottom":[826, 106] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[21, 116], "bottom":[70, 149] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[85, 116], "bottom":[114, 149] }, + { "bIndex":14, "keyCode":"Key_W", "top":[128, 116], "bottom":[157, 149] }, + { "bIndex":20, "keyCode":"Key_E", "top":[169, 117], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[211, 117], "bottom":[240, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[254, 117], "bottom":[283, 150] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[296, 117], "bottom":[325, 150] }, + { "bIndex":44, "keyCode":"Key_U", "top":[338, 117], "bottom":[367, 150] }, + { "bIndex":50, "keyCode":"Key_I", "top":[380, 117], "bottom":[409, 150] }, + { "bIndex":56, "keyCode":"Key_O", "top":[422, 117], "bottom":[451, 150] }, + { "bIndex":62, "keyCode":"Key_P", "top":[466, 117], "bottom":[495, 150] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[506, 117], "bottom":[535, 150] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[548, 117], "bottom":[577, 150] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[590, 117], "bottom":[640, 150] }, + { "bIndex":96, "keyCode":"Key_Insert", "top":[714, 18], "bottom":[743, 51] }, + { "bIndex":108, "keyCode":"Key_Page_Down", "top":[796, 18], "bottom":[825, 51] }, + { "bIndex":92, "keyCode":"Key_Num_7", "top":[671, 116], "bottom":[700, 149] }, + { "bIndex":98, "keyCode":"Key_Num_8", "top":[715, 116], "bottom":[744, 149] }, + { "bIndex":104, "keyCode":"Key_Num_9", "top":[755, 116], "bottom":[784, 149] }, + { "bIndex":110, "keyCode":"Key_Num_Add", "top":[797, 116], "bottom":[826, 190] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[23, 158], "bottom":[83, 191] }, + { "bIndex":9, "keyCode":"Key_A", "top":[95, 158], "bottom":[124, 191] }, + { "bIndex":15, "keyCode":"Key_S", "top":[137, 158], "bottom":[166, 191] }, + { "bIndex":21, "keyCode":"Key_D", "top":[180, 158], "bottom":[209, 191] }, + { "bIndex":27, "keyCode":"Key_F", "top":[222, 158], "bottom":[251, 191] }, + { "bIndex":33, "keyCode":"Key_G", "top":[265, 158], "bottom":[294, 191] }, + { "bIndex":39, "keyCode":"Key_H", "top":[307, 158], "bottom":[336, 191] }, + { "bIndex":45, "keyCode":"Key_J", "top":[349, 158], "bottom":[378, 191] }, + { "bIndex":51, "keyCode":"Key_K", "top":[390, 158], "bottom":[419, 191] }, + { "bIndex":57, "keyCode":"Key_L", "top":[431, 159], "bottom":[460, 192] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[477, 159], "bottom":[506, 192] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[516, 159], "bottom":[545, 192] }, + { "bIndex":93, "keyCode":"Key_Num_4", "top":[671, 158], "bottom":[700, 191] }, + { "bIndex":99, "keyCode":"Key_Num_5", "top":[714, 158], "bottom":[743, 191] }, + { "bIndex":105, "keyCode":"Key_Num_6", "top":[755, 158], "bottom":[784, 191] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 199], "bottom":[104, 232] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[116, 200], "bottom":[145, 233] }, + { "bIndex":16, "keyCode":"Key_X", "top":[159, 200], "bottom":[188, 233] }, + { "bIndex":22, "keyCode":"Key_C", "top":[203, 200], "bottom":[232, 233] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 200], "bottom":[273, 233] }, + { "bIndex":34, "keyCode":"Key_B", "top":[286, 200], "bottom":[315, 233] }, + { "bIndex":40, "keyCode":"Key_N", "top":[328, 200], "bottom":[357, 233] }, + { "bIndex":46, "keyCode":"Key_M", "top":[370, 200], "bottom":[399, 233] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[412, 200], "bottom":[441, 233] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[454, 200], "bottom":[483, 233] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[497, 200], "bottom":[526, 233] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[538, 200], "bottom":[598, 233] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[621, 209], "bottom":[650, 242] }, + { "bIndex":94, "keyCode":"Key_Num_1", "top":[671, 200], "bottom":[700, 233] }, + { "bIndex":100, "keyCode":"Key_Num_2", "top":[713, 200], "bottom":[742, 233] }, + { "bIndex":106, "keyCode":"Key_Num_3", "top":[754, 200], "bottom":[783, 233] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[22, 242], "bottom":[62, 275] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[77, 242], "bottom":[114, 275] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[131, 242], "bottom":[168, 275] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[181, 242], "bottom":[431, 275] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[443, 242], "bottom":[472, 275] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[487, 242], "bottom":[516, 275] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[527, 243], "bottom":[556, 276] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[578, 251], "bottom":[607, 284] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[621, 252], "bottom":[650, 285] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[663, 252], "bottom":[692, 285] }, + { "bIndex":101, "keyCode":"Key_Num_0", "top":[713, 242], "bottom":[742, 275] }, + { "bIndex":107, "keyCode":"Key_Num_Decimal_Point", "top":[757, 242], "bottom":[786, 275] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[558, 159], "bottom":[640, 192] }, + { "bIndex":112, "keyCode":"Key_Num_Enter", "top":[797, 200], "bottom":[826, 274] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/b3.json b/keyboards/configs/b3.json new file mode 100644 index 0000000..c3a1711 --- /dev/null +++ b/keyboards/configs/b3.json @@ -0,0 +1,109 @@ +{ + "pid":"b3", + "name":"RK98Wired-100KRGB", + "rgb":true, + "top":[21, 18], + "bottom":[826, 285], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[22, 19], "bottom":[51, 52] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[65, 19], "bottom":[94, 52] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[107, 19], "bottom":[136, 52] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[150, 19], "bottom":[179, 52] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[191, 19], "bottom":[220, 52] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[233, 19], "bottom":[262, 52] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[276, 19], "bottom":[305, 52] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[318, 19], "bottom":[347, 52] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[360, 19], "bottom":[389, 52] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[402, 19], "bottom":[431, 52] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[444, 19], "bottom":[473, 52] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[486, 19], "bottom":[515, 52] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[528, 19], "bottom":[557, 52] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[571, 19], "bottom":[600, 52] }, + { "bIndex":84, "keyCode":"Key_Delete", "top":[612, 19], "bottom":[641, 52] }, + { "bIndex":90, "keyCode":"Key_Home", "top":[671, 19], "bottom":[700, 52] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[22, 73], "bottom":[51, 106] }, + { "bIndex":7, "keyCode":"Key_1", "top":[64, 74], "bottom":[93, 107] }, + { "bIndex":13, "keyCode":"Key_2", "top":[107, 74], "bottom":[136, 107] }, + { "bIndex":19, "keyCode":"Key_3", "top":[148, 74], "bottom":[177, 107] }, + { "bIndex":25, "keyCode":"Key_4", "top":[191, 74], "bottom":[220, 107] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 74], "bottom":[262, 107] }, + { "bIndex":37, "keyCode":"Key_6", "top":[275, 75], "bottom":[304, 108] }, + { "bIndex":43, "keyCode":"Key_7", "top":[317, 74], "bottom":[346, 107] }, + { "bIndex":49, "keyCode":"Key_8", "top":[362, 74], "bottom":[391, 107] }, + { "bIndex":55, "keyCode":"Key_9", "top":[402, 74], "bottom":[431, 107] }, + { "bIndex":61, "keyCode":"Key_0", "top":[443, 74], "bottom":[472, 107] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[486, 74], "bottom":[515, 107] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[527, 74], "bottom":[556, 107] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[570, 74], "bottom":[641, 107] }, + { "bIndex":102, "keyCode":"Key_Page_Up", "top":[755, 19], "bottom":[784, 52] }, + { "bIndex":91, "keyCode":"Key_Num_Lock", "top":[671, 74], "bottom":[700, 107] }, + { "bIndex":97, "keyCode":"Key_Num_Divide", "top":[713, 73], "bottom":[742, 106] }, + { "bIndex":103, "keyCode":"Key_Num_Multiply", "top":[755, 73], "bottom":[784, 106] }, + { "bIndex":109, "keyCode":"Key_Num_Substract", "top":[797, 73], "bottom":[826, 106] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[21, 116], "bottom":[70, 149] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[85, 116], "bottom":[114, 149] }, + { "bIndex":14, "keyCode":"Key_W", "top":[128, 116], "bottom":[157, 149] }, + { "bIndex":20, "keyCode":"Key_E", "top":[169, 117], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[211, 117], "bottom":[240, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[254, 117], "bottom":[283, 150] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[296, 117], "bottom":[325, 150] }, + { "bIndex":44, "keyCode":"Key_U", "top":[338, 117], "bottom":[367, 150] }, + { "bIndex":50, "keyCode":"Key_I", "top":[380, 117], "bottom":[409, 150] }, + { "bIndex":56, "keyCode":"Key_O", "top":[422, 117], "bottom":[451, 150] }, + { "bIndex":62, "keyCode":"Key_P", "top":[466, 117], "bottom":[495, 150] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[506, 117], "bottom":[535, 150] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[548, 117], "bottom":[577, 150] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[590, 117], "bottom":[640, 150] }, + { "bIndex":96, "keyCode":"Key_Insert", "top":[714, 18], "bottom":[743, 51] }, + { "bIndex":108, "keyCode":"Key_Page_Down", "top":[796, 18], "bottom":[825, 51] }, + { "bIndex":92, "keyCode":"Key_Num_7", "top":[671, 116], "bottom":[700, 149] }, + { "bIndex":98, "keyCode":"Key_Num_8", "top":[715, 116], "bottom":[744, 149] }, + { "bIndex":104, "keyCode":"Key_Num_9", "top":[755, 116], "bottom":[784, 149] }, + { "bIndex":110, "keyCode":"Key_Num_Add", "top":[797, 116], "bottom":[826, 190] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[23, 158], "bottom":[83, 191] }, + { "bIndex":9, "keyCode":"Key_A", "top":[95, 158], "bottom":[124, 191] }, + { "bIndex":15, "keyCode":"Key_S", "top":[137, 158], "bottom":[166, 191] }, + { "bIndex":21, "keyCode":"Key_D", "top":[180, 158], "bottom":[209, 191] }, + { "bIndex":27, "keyCode":"Key_F", "top":[222, 158], "bottom":[251, 191] }, + { "bIndex":33, "keyCode":"Key_G", "top":[265, 158], "bottom":[294, 191] }, + { "bIndex":39, "keyCode":"Key_H", "top":[307, 158], "bottom":[336, 191] }, + { "bIndex":45, "keyCode":"Key_J", "top":[349, 158], "bottom":[378, 191] }, + { "bIndex":51, "keyCode":"Key_K", "top":[390, 158], "bottom":[419, 191] }, + { "bIndex":57, "keyCode":"Key_L", "top":[431, 159], "bottom":[460, 192] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[477, 159], "bottom":[506, 192] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[516, 159], "bottom":[545, 192] }, + { "bIndex":93, "keyCode":"Key_Num_4", "top":[671, 158], "bottom":[700, 191] }, + { "bIndex":99, "keyCode":"Key_Num_5", "top":[714, 158], "bottom":[743, 191] }, + { "bIndex":105, "keyCode":"Key_Num_6", "top":[755, 158], "bottom":[784, 191] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 199], "bottom":[104, 232] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[116, 200], "bottom":[145, 233] }, + { "bIndex":16, "keyCode":"Key_X", "top":[159, 200], "bottom":[188, 233] }, + { "bIndex":22, "keyCode":"Key_C", "top":[203, 200], "bottom":[232, 233] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 200], "bottom":[273, 233] }, + { "bIndex":34, "keyCode":"Key_B", "top":[286, 200], "bottom":[315, 233] }, + { "bIndex":40, "keyCode":"Key_N", "top":[328, 200], "bottom":[357, 233] }, + { "bIndex":46, "keyCode":"Key_M", "top":[370, 200], "bottom":[399, 233] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[412, 200], "bottom":[441, 233] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[454, 200], "bottom":[483, 233] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[497, 200], "bottom":[526, 233] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[538, 200], "bottom":[598, 233] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[621, 209], "bottom":[650, 242] }, + { "bIndex":94, "keyCode":"Key_Num_1", "top":[671, 200], "bottom":[700, 233] }, + { "bIndex":100, "keyCode":"Key_Num_2", "top":[713, 200], "bottom":[742, 233] }, + { "bIndex":106, "keyCode":"Key_Num_3", "top":[754, 200], "bottom":[783, 233] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[22, 242], "bottom":[62, 275] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[77, 242], "bottom":[114, 275] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[131, 242], "bottom":[168, 275] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[181, 242], "bottom":[431, 275] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[443, 242], "bottom":[472, 275] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[487, 242], "bottom":[516, 275] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[527, 243], "bottom":[556, 276] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[578, 251], "bottom":[607, 284] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[621, 252], "bottom":[650, 285] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[663, 252], "bottom":[692, 285] }, + { "bIndex":101, "keyCode":"Key_Num_0", "top":[713, 242], "bottom":[742, 275] }, + { "bIndex":107, "keyCode":"Key_Num_Decimal_Point", "top":[757, 242], "bottom":[786, 275] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[558, 159], "bottom":[640, 192] }, + { "bIndex":112, "keyCode":"Key_Num_Enter", "top":[797, 200], "bottom":[826, 274] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/b5.json b/keyboards/configs/b5.json new file mode 100644 index 0000000..38c2877 --- /dev/null +++ b/keyboards/configs/b5.json @@ -0,0 +1,80 @@ +{ + "pid":"b5", + "name":"RK71RGB N BT", + "rgb":true, + "top":[12, 43], + "bottom":[707, 247], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[12, 44], "bottom":[39, 75] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[638, 45], "bottom":[665, 76] }, + { "bIndex":87, "keyCode":"Key_Pause", "top":[638, 130], "bottom":[665, 161] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[638, 87], "bottom":[665, 118] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 44], "bottom":[81, 75] }, + { "bIndex":13, "keyCode":"Key_2", "top":[96, 44], "bottom":[123, 75] }, + { "bIndex":19, "keyCode":"Key_3", "top":[138, 44], "bottom":[165, 75] }, + { "bIndex":25, "keyCode":"Key_4", "top":[179, 44], "bottom":[206, 75] }, + { "bIndex":31, "keyCode":"Key_5", "top":[221, 44], "bottom":[248, 75] }, + { "bIndex":37, "keyCode":"Key_6", "top":[262, 44], "bottom":[289, 75] }, + { "bIndex":43, "keyCode":"Key_7", "top":[305, 44], "bottom":[332, 75] }, + { "bIndex":49, "keyCode":"Key_8", "top":[346, 44], "bottom":[373, 75] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 44], "bottom":[415, 75] }, + { "bIndex":61, "keyCode":"Key_0", "top":[430, 44], "bottom":[457, 75] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[471, 44], "bottom":[498, 75] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[513, 44], "bottom":[540, 75] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[556, 43], "bottom":[622, 74] }, + { "bIndex":92, "keyCode":"Key_End", "top":[679, 87], "bottom":[706, 118] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[680, 44], "bottom":[707, 75] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[13, 87], "bottom":[60, 118] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[75, 87], "bottom":[102, 118] }, + { "bIndex":14, "keyCode":"Key_W", "top":[117, 87], "bottom":[144, 118] }, + { "bIndex":20, "keyCode":"Key_E", "top":[158, 87], "bottom":[185, 118] }, + { "bIndex":26, "keyCode":"Key_R", "top":[200, 87], "bottom":[227, 118] }, + { "bIndex":32, "keyCode":"Key_T", "top":[242, 87], "bottom":[269, 118] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[284, 87], "bottom":[311, 118] }, + { "bIndex":44, "keyCode":"Key_U", "top":[325, 87], "bottom":[352, 118] }, + { "bIndex":50, "keyCode":"Key_I", "top":[367, 87], "bottom":[394, 118] }, + { "bIndex":56, "keyCode":"Key_O", "top":[409, 87], "bottom":[436, 118] }, + { "bIndex":62, "keyCode":"Key_P", "top":[450, 87], "bottom":[477, 118] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[492, 87], "bottom":[519, 118] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[534, 87], "bottom":[561, 118] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[576, 87], "bottom":[622, 118] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 173], "bottom":[707, 204] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 130], "bottom":[707, 161] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[13, 130], "bottom":[70, 161] }, + { "bIndex":9, "keyCode":"Key_A", "top":[86, 130], "bottom":[113, 161] }, + { "bIndex":15, "keyCode":"Key_S", "top":[127, 130], "bottom":[154, 161] }, + { "bIndex":21, "keyCode":"Key_D", "top":[169, 130], "bottom":[196, 161] }, + { "bIndex":27, "keyCode":"Key_F", "top":[211, 130], "bottom":[238, 161] }, + { "bIndex":33, "keyCode":"Key_G", "top":[253, 130], "bottom":[280, 161] }, + { "bIndex":39, "keyCode":"Key_H", "top":[294, 130], "bottom":[321, 161] }, + { "bIndex":45, "keyCode":"Key_J", "top":[336, 130], "bottom":[363, 161] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 130], "bottom":[405, 161] }, + { "bIndex":57, "keyCode":"Key_L", "top":[419, 130], "bottom":[446, 161] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[461, 130], "bottom":[488, 161] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[502, 130], "bottom":[529, 161] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[13, 172], "bottom":[91, 203] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[107, 172], "bottom":[134, 203] }, + { "bIndex":16, "keyCode":"Key_X", "top":[148, 172], "bottom":[175, 203] }, + { "bIndex":22, "keyCode":"Key_C", "top":[190, 172], "bottom":[217, 203] }, + { "bIndex":28, "keyCode":"Key_V", "top":[232, 172], "bottom":[259, 203] }, + { "bIndex":34, "keyCode":"Key_B", "top":[273, 172], "bottom":[300, 203] }, + { "bIndex":40, "keyCode":"Key_N", "top":[315, 172], "bottom":[342, 203] }, + { "bIndex":46, "keyCode":"Key_M", "top":[357, 172], "bottom":[384, 203] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 172], "bottom":[425, 203] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[440, 172], "bottom":[467, 203] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[482, 172], "bottom":[509, 203] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[524, 172], "bottom":[622, 203] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[638, 172], "bottom":[665, 203] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 215], "bottom":[49, 246] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[66, 215], "bottom":[102, 246] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[118, 215], "bottom":[153, 246] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[170, 215], "bottom":[414, 246] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[433, 215], "bottom":[465, 246] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[486, 215], "bottom":[518, 246] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[539, 216], "bottom":[571, 247] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[597, 216], "bottom":[624, 247] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[638, 216], "bottom":[665, 247] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[679, 216], "bottom":[706, 247] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[545, 129], "bottom":[622, 160] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/b8.json b/keyboards/configs/b8.json new file mode 100644 index 0000000..9068305 --- /dev/null +++ b/keyboards/configs/b8.json @@ -0,0 +1,70 @@ +{ + "pid":"b8", + "name":"RK61 Bluetooth Dual Mode", + "rgb":false, + "top":[6, 7], + "bottom":[702, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[6, 7], "bottom":[36, 40] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[543, 198], "bottom":[583, 231] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 7], "bottom":[84, 40] }, + { "bIndex":13, "keyCode":"Key_2", "top":[102, 7], "bottom":[132, 40] }, + { "bIndex":19, "keyCode":"Key_3", "top":[149, 7], "bottom":[179, 40] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 7], "bottom":[227, 40] }, + { "bIndex":31, "keyCode":"Key_5", "top":[244, 7], "bottom":[274, 40] }, + { "bIndex":37, "keyCode":"Key_6", "top":[292, 7], "bottom":[322, 40] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 7], "bottom":[370, 40] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 8], "bottom":[417, 41] }, + { "bIndex":55, "keyCode":"Key_9", "top":[434, 8], "bottom":[464, 41] }, + { "bIndex":61, "keyCode":"Key_0", "top":[482, 8], "bottom":[512, 41] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[530, 8], "bottom":[560, 41] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[578, 8], "bottom":[608, 41] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[627, 9], "bottom":[702, 42] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[8, 55], "bottom":[60, 88] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 56], "bottom":[109, 89] }, + { "bIndex":14, "keyCode":"Key_W", "top":[125, 56], "bottom":[155, 89] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 56], "bottom":[205, 89] }, + { "bIndex":26, "keyCode":"Key_R", "top":[221, 56], "bottom":[251, 89] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 56], "bottom":[299, 89] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 56], "bottom":[347, 89] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 56], "bottom":[394, 89] }, + { "bIndex":50, "keyCode":"Key_I", "top":[411, 56], "bottom":[441, 89] }, + { "bIndex":56, "keyCode":"Key_O", "top":[459, 57], "bottom":[489, 90] }, + { "bIndex":62, "keyCode":"Key_P", "top":[507, 57], "bottom":[537, 90] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[554, 57], "bottom":[584, 90] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[602, 57], "bottom":[632, 90] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[650, 57], "bottom":[702, 90] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[9, 103], "bottom":[73, 136] }, + { "bIndex":9, "keyCode":"Key_A", "top":[91, 103], "bottom":[121, 136] }, + { "bIndex":15, "keyCode":"Key_S", "top":[138, 104], "bottom":[168, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 104], "bottom":[216, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 104], "bottom":[264, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 104], "bottom":[311, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[329, 104], "bottom":[359, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 104], "bottom":[406, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[423, 104], "bottom":[453, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[471, 104], "bottom":[501, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[519, 104], "bottom":[549, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[566, 104], "bottom":[596, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[10, 149], "bottom":[97, 182] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[114, 149], "bottom":[144, 182] }, + { "bIndex":16, "keyCode":"Key_X", "top":[162, 149], "bottom":[192, 182] }, + { "bIndex":22, "keyCode":"Key_C", "top":[210, 149], "bottom":[240, 182] }, + { "bIndex":28, "keyCode":"Key_V", "top":[257, 149], "bottom":[287, 182] }, + { "bIndex":34, "keyCode":"Key_B", "top":[304, 149], "bottom":[334, 182] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 149], "bottom":[381, 182] }, + { "bIndex":46, "keyCode":"Key_M", "top":[399, 149], "bottom":[429, 182] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[448, 150], "bottom":[478, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[495, 150], "bottom":[525, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[542, 150], "bottom":[572, 183] }, + { "bIndex":76, "keyCode":"Key_Right_Shift", "top":[590, 150], "bottom":[702, 183] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[9, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[107, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[127, 197], "bottom":[167, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 198], "bottom":[465, 231] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[484, 198], "bottom":[524, 231] }, + { "bIndex":77, "keyCode":"Key_Fn", "top":[661, 198], "bottom":[701, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[602, 199], "bottom":[642, 232] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[614, 104], "bottom":[702, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/c0.json b/keyboards/configs/c0.json new file mode 100644 index 0000000..cd4e016 --- /dev/null +++ b/keyboards/configs/c0.json @@ -0,0 +1,93 @@ +{ + "pid":"c0", + "name":"RK857 Single", + "rgb":false, + "top":[22, 17], + "bottom":[702, 271], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[22, 18], "bottom":[51, 51] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[66, 18], "bottom":[95, 51] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[109, 18], "bottom":[138, 51] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[152, 18], "bottom":[181, 51] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[195, 18], "bottom":[224, 51] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[239, 18], "bottom":[268, 51] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[282, 18], "bottom":[311, 51] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[325, 18], "bottom":[354, 51] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[369, 18], "bottom":[398, 51] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[412, 18], "bottom":[441, 51] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[455, 18], "bottom":[484, 51] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[498, 18], "bottom":[527, 51] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[541, 18], "bottom":[570, 51] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[585, 18], "bottom":[614, 51] }, + { "bIndex":84, "keyCode":"Key_Pause", "top":[627, 18], "bottom":[656, 51] }, + { "bIndex":90, "keyCode":"Key_Delete", "top":[671, 17], "bottom":[700, 50] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[22, 62], "bottom":[51, 95] }, + { "bIndex":7, "keyCode":"Key_1", "top":[66, 62], "bottom":[95, 95] }, + { "bIndex":13, "keyCode":"Key_2", "top":[109, 62], "bottom":[138, 95] }, + { "bIndex":19, "keyCode":"Key_3", "top":[152, 62], "bottom":[181, 95] }, + { "bIndex":25, "keyCode":"Key_4", "top":[195, 62], "bottom":[224, 95] }, + { "bIndex":31, "keyCode":"Key_5", "top":[238, 62], "bottom":[267, 95] }, + { "bIndex":37, "keyCode":"Key_6", "top":[282, 62], "bottom":[311, 95] }, + { "bIndex":43, "keyCode":"Key_7", "top":[325, 62], "bottom":[354, 95] }, + { "bIndex":49, "keyCode":"Key_8", "top":[368, 62], "bottom":[397, 95] }, + { "bIndex":55, "keyCode":"Key_9", "top":[410, 62], "bottom":[439, 95] }, + { "bIndex":61, "keyCode":"Key_0", "top":[454, 62], "bottom":[483, 95] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[498, 62], "bottom":[527, 95] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[540, 62], "bottom":[569, 95] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[586, 62], "bottom":[657, 95] }, + { "bIndex":92, "keyCode":"Key_End", "top":[672, 105], "bottom":[701, 138] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[671, 62], "bottom":[700, 95] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[24, 106], "bottom":[73, 139] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[88, 106], "bottom":[117, 139] }, + { "bIndex":14, "keyCode":"Key_W", "top":[130, 106], "bottom":[159, 139] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 106], "bottom":[204, 139] }, + { "bIndex":26, "keyCode":"Key_R", "top":[217, 106], "bottom":[246, 139] }, + { "bIndex":32, "keyCode":"Key_T", "top":[260, 106], "bottom":[289, 139] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[303, 106], "bottom":[332, 139] }, + { "bIndex":44, "keyCode":"Key_U", "top":[347, 106], "bottom":[376, 139] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 106], "bottom":[419, 139] }, + { "bIndex":56, "keyCode":"Key_O", "top":[433, 106], "bottom":[462, 139] }, + { "bIndex":62, "keyCode":"Key_P", "top":[477, 106], "bottom":[506, 139] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[519, 106], "bottom":[548, 139] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[562, 106], "bottom":[591, 139] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[607, 106], "bottom":[657, 139] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[672, 192], "bottom":[701, 225] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[672, 149], "bottom":[701, 182] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[23, 149], "bottom":[83, 182] }, + { "bIndex":9, "keyCode":"Key_A", "top":[98, 148], "bottom":[127, 181] }, + { "bIndex":15, "keyCode":"Key_S", "top":[142, 148], "bottom":[171, 181] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 148], "bottom":[215, 181] }, + { "bIndex":27, "keyCode":"Key_F", "top":[228, 148], "bottom":[257, 181] }, + { "bIndex":33, "keyCode":"Key_G", "top":[271, 148], "bottom":[300, 181] }, + { "bIndex":39, "keyCode":"Key_H", "top":[315, 148], "bottom":[344, 181] }, + { "bIndex":45, "keyCode":"Key_J", "top":[358, 148], "bottom":[387, 181] }, + { "bIndex":51, "keyCode":"Key_K", "top":[402, 148], "bottom":[431, 181] }, + { "bIndex":57, "keyCode":"Key_L", "top":[444, 148], "bottom":[473, 181] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[488, 148], "bottom":[517, 181] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[531, 148], "bottom":[560, 181] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 193], "bottom":[104, 226] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[120, 192], "bottom":[149, 225] }, + { "bIndex":16, "keyCode":"Key_X", "top":[163, 192], "bottom":[192, 225] }, + { "bIndex":22, "keyCode":"Key_C", "top":[207, 192], "bottom":[236, 225] }, + { "bIndex":28, "keyCode":"Key_V", "top":[251, 192], "bottom":[280, 225] }, + { "bIndex":34, "keyCode":"Key_B", "top":[294, 192], "bottom":[323, 225] }, + { "bIndex":40, "keyCode":"Key_N", "top":[337, 192], "bottom":[366, 225] }, + { "bIndex":46, "keyCode":"Key_M", "top":[380, 192], "bottom":[409, 225] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[422, 192], "bottom":[451, 225] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 192], "bottom":[495, 225] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[509, 192], "bottom":[538, 225] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[553, 192], "bottom":[613, 225] }, + { "bIndex":82, "keyCode":"Key_Up", "top":[630, 193], "bottom":[659, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[24, 237], "bottom":[61, 270] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[78, 237], "bottom":[115, 270] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[132, 237], "bottom":[169, 270] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 237], "bottom":[442, 270] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[455, 237], "bottom":[484, 270] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[499, 237], "bottom":[528, 270] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[543, 238], "bottom":[572, 271] }, + { "bIndex":71, "keyCode":"Key_Left", "top":[586, 238], "bottom":[615, 271] }, + { "bIndex":83, "keyCode":"Key_Down", "top":[630, 238], "bottom":[659, 271] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[673, 238], "bottom":[702, 271] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[575, 148], "bottom":[657, 181] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/c1.json b/keyboards/configs/c1.json new file mode 100644 index 0000000..1dbad2f --- /dev/null +++ b/keyboards/configs/c1.json @@ -0,0 +1,109 @@ +{ + "pid":"c1", + "name":"RK98-100KRGB N", + "rgb":true, + "top":[21, 18], + "bottom":[826, 285], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[22, 19], "bottom":[51, 52] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[65, 19], "bottom":[94, 52] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[107, 19], "bottom":[136, 52] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[150, 19], "bottom":[179, 52] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[191, 19], "bottom":[220, 52] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[233, 19], "bottom":[262, 52] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[276, 19], "bottom":[305, 52] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[318, 19], "bottom":[347, 52] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[360, 19], "bottom":[389, 52] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[402, 19], "bottom":[431, 52] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[444, 19], "bottom":[473, 52] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[486, 19], "bottom":[515, 52] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[528, 19], "bottom":[557, 52] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[571, 19], "bottom":[600, 52] }, + { "bIndex":84, "keyCode":"Key_Delete", "top":[612, 19], "bottom":[641, 52] }, + { "bIndex":90, "keyCode":"Key_Home", "top":[671, 19], "bottom":[700, 52] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[22, 73], "bottom":[51, 106] }, + { "bIndex":7, "keyCode":"Key_1", "top":[64, 74], "bottom":[93, 107] }, + { "bIndex":13, "keyCode":"Key_2", "top":[107, 74], "bottom":[136, 107] }, + { "bIndex":19, "keyCode":"Key_3", "top":[148, 74], "bottom":[177, 107] }, + { "bIndex":25, "keyCode":"Key_4", "top":[191, 74], "bottom":[220, 107] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 74], "bottom":[262, 107] }, + { "bIndex":37, "keyCode":"Key_6", "top":[275, 75], "bottom":[304, 108] }, + { "bIndex":43, "keyCode":"Key_7", "top":[317, 74], "bottom":[346, 107] }, + { "bIndex":49, "keyCode":"Key_8", "top":[362, 74], "bottom":[391, 107] }, + { "bIndex":55, "keyCode":"Key_9", "top":[402, 74], "bottom":[431, 107] }, + { "bIndex":61, "keyCode":"Key_0", "top":[443, 74], "bottom":[472, 107] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[486, 74], "bottom":[515, 107] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[527, 74], "bottom":[556, 107] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[570, 74], "bottom":[641, 107] }, + { "bIndex":102, "keyCode":"Key_Page_Up", "top":[755, 19], "bottom":[784, 52] }, + { "bIndex":91, "keyCode":"Key_Num_Lock", "top":[671, 74], "bottom":[700, 107] }, + { "bIndex":97, "keyCode":"Key_Num_Divide", "top":[713, 73], "bottom":[742, 106] }, + { "bIndex":103, "keyCode":"Key_Num_Multiply", "top":[755, 73], "bottom":[784, 106] }, + { "bIndex":109, "keyCode":"Key_Num_Substract", "top":[797, 73], "bottom":[826, 106] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[21, 116], "bottom":[70, 149] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[85, 116], "bottom":[114, 149] }, + { "bIndex":14, "keyCode":"Key_W", "top":[128, 116], "bottom":[157, 149] }, + { "bIndex":20, "keyCode":"Key_E", "top":[169, 117], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[211, 117], "bottom":[240, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[254, 117], "bottom":[283, 150] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[296, 117], "bottom":[325, 150] }, + { "bIndex":44, "keyCode":"Key_U", "top":[338, 117], "bottom":[367, 150] }, + { "bIndex":50, "keyCode":"Key_I", "top":[380, 117], "bottom":[409, 150] }, + { "bIndex":56, "keyCode":"Key_O", "top":[422, 117], "bottom":[451, 150] }, + { "bIndex":62, "keyCode":"Key_P", "top":[466, 117], "bottom":[495, 150] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[506, 117], "bottom":[535, 150] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[548, 117], "bottom":[577, 150] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[590, 117], "bottom":[640, 150] }, + { "bIndex":96, "keyCode":"Key_Insert", "top":[714, 18], "bottom":[743, 51] }, + { "bIndex":108, "keyCode":"Key_Page_Down", "top":[796, 18], "bottom":[825, 51] }, + { "bIndex":92, "keyCode":"Key_Num_7", "top":[671, 116], "bottom":[700, 149] }, + { "bIndex":98, "keyCode":"Key_Num_8", "top":[715, 116], "bottom":[744, 149] }, + { "bIndex":104, "keyCode":"Key_Num_9", "top":[755, 116], "bottom":[784, 149] }, + { "bIndex":110, "keyCode":"Key_Num_Add", "top":[797, 116], "bottom":[826, 190] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[23, 158], "bottom":[83, 191] }, + { "bIndex":9, "keyCode":"Key_A", "top":[95, 158], "bottom":[124, 191] }, + { "bIndex":15, "keyCode":"Key_S", "top":[137, 158], "bottom":[166, 191] }, + { "bIndex":21, "keyCode":"Key_D", "top":[180, 158], "bottom":[209, 191] }, + { "bIndex":27, "keyCode":"Key_F", "top":[222, 158], "bottom":[251, 191] }, + { "bIndex":33, "keyCode":"Key_G", "top":[265, 158], "bottom":[294, 191] }, + { "bIndex":39, "keyCode":"Key_H", "top":[307, 158], "bottom":[336, 191] }, + { "bIndex":45, "keyCode":"Key_J", "top":[349, 158], "bottom":[378, 191] }, + { "bIndex":51, "keyCode":"Key_K", "top":[390, 158], "bottom":[419, 191] }, + { "bIndex":57, "keyCode":"Key_L", "top":[431, 159], "bottom":[460, 192] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[477, 159], "bottom":[506, 192] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[516, 159], "bottom":[545, 192] }, + { "bIndex":93, "keyCode":"Key_Num_4", "top":[671, 158], "bottom":[700, 191] }, + { "bIndex":99, "keyCode":"Key_Num_5", "top":[714, 158], "bottom":[743, 191] }, + { "bIndex":105, "keyCode":"Key_Num_6", "top":[755, 158], "bottom":[784, 191] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 199], "bottom":[104, 232] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[116, 200], "bottom":[145, 233] }, + { "bIndex":16, "keyCode":"Key_X", "top":[159, 200], "bottom":[188, 233] }, + { "bIndex":22, "keyCode":"Key_C", "top":[203, 200], "bottom":[232, 233] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 200], "bottom":[273, 233] }, + { "bIndex":34, "keyCode":"Key_B", "top":[286, 200], "bottom":[315, 233] }, + { "bIndex":40, "keyCode":"Key_N", "top":[328, 200], "bottom":[357, 233] }, + { "bIndex":46, "keyCode":"Key_M", "top":[370, 200], "bottom":[399, 233] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[412, 200], "bottom":[441, 233] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[454, 200], "bottom":[483, 233] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[497, 200], "bottom":[526, 233] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[538, 200], "bottom":[598, 233] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[621, 209], "bottom":[650, 242] }, + { "bIndex":94, "keyCode":"Key_Num_1", "top":[671, 200], "bottom":[700, 233] }, + { "bIndex":100, "keyCode":"Key_Num_2", "top":[713, 200], "bottom":[742, 233] }, + { "bIndex":106, "keyCode":"Key_Num_3", "top":[754, 200], "bottom":[783, 233] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[22, 242], "bottom":[62, 275] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[77, 242], "bottom":[114, 275] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[131, 242], "bottom":[168, 275] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[181, 242], "bottom":[431, 275] }, + { "bIndex":59, "keyCode":"Key_Right_Alt", "top":[443, 242], "bottom":[472, 275] }, + { "bIndex":65, "keyCode":"Key_Fn", "top":[487, 242], "bottom":[516, 275] }, + { "bIndex":77, "keyCode":"Key_Right_Control", "top":[527, 243], "bottom":[556, 276] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[578, 251], "bottom":[607, 284] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[621, 252], "bottom":[650, 285] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[663, 252], "bottom":[692, 285] }, + { "bIndex":101, "keyCode":"Key_Num_0", "top":[713, 242], "bottom":[742, 275] }, + { "bIndex":107, "keyCode":"Key_Num_Decimal_Point", "top":[757, 242], "bottom":[786, 275] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[558, 159], "bottom":[640, 192] }, + { "bIndex":112, "keyCode":"Key_Num_Enter", "top":[797, 200], "bottom":[826, 274] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/c3.json b/keyboards/configs/c3.json new file mode 100644 index 0000000..3543a95 --- /dev/null +++ b/keyboards/configs/c3.json @@ -0,0 +1,96 @@ +{ + "pid":"c3", + "name":"K87RGB N", + "rgb":true, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/c4.json b/keyboards/configs/c4.json new file mode 100644 index 0000000..7d7992a --- /dev/null +++ b/keyboards/configs/c4.json @@ -0,0 +1,96 @@ +{ + "pid":"c4", + "name":"RK87RGB N Wired", + "rgb":true, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/c6.json b/keyboards/configs/c6.json new file mode 100644 index 0000000..9624f9d --- /dev/null +++ b/keyboards/configs/c6.json @@ -0,0 +1,70 @@ +{ + "pid":"c6", + "name":"RK858 (61)", + "rgb":true, + "top":[18, 16], + "bottom":[694, 236], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[18, 16], "bottom":[52, 51] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[537, 200], "bottom":[579, 235] }, + { "bIndex":7, "keyCode":"Key_1", "top":[65, 16], "bottom":[99, 51] }, + { "bIndex":13, "keyCode":"Key_2", "top":[111, 16], "bottom":[145, 51] }, + { "bIndex":19, "keyCode":"Key_3", "top":[156, 16], "bottom":[190, 51] }, + { "bIndex":25, "keyCode":"Key_4", "top":[202, 16], "bottom":[236, 51] }, + { "bIndex":31, "keyCode":"Key_5", "top":[248, 16], "bottom":[282, 51] }, + { "bIndex":37, "keyCode":"Key_6", "top":[294, 16], "bottom":[328, 51] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 16], "bottom":[374, 51] }, + { "bIndex":49, "keyCode":"Key_8", "top":[385, 17], "bottom":[419, 52] }, + { "bIndex":55, "keyCode":"Key_9", "top":[431, 17], "bottom":[465, 52] }, + { "bIndex":61, "keyCode":"Key_0", "top":[477, 17], "bottom":[511, 52] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[523, 17], "bottom":[557, 52] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[568, 17], "bottom":[602, 52] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[619, 16], "bottom":[693, 51] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[22, 62], "bottom":[74, 97] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[87, 63], "bottom":[121, 98] }, + { "bIndex":14, "keyCode":"Key_W", "top":[133, 63], "bottom":[167, 98] }, + { "bIndex":20, "keyCode":"Key_E", "top":[179, 63], "bottom":[213, 98] }, + { "bIndex":26, "keyCode":"Key_R", "top":[225, 63], "bottom":[259, 98] }, + { "bIndex":32, "keyCode":"Key_T", "top":[271, 63], "bottom":[305, 98] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 63], "bottom":[351, 98] }, + { "bIndex":44, "keyCode":"Key_U", "top":[362, 63], "bottom":[396, 98] }, + { "bIndex":50, "keyCode":"Key_I", "top":[408, 63], "bottom":[442, 98] }, + { "bIndex":56, "keyCode":"Key_O", "top":[453, 63], "bottom":[487, 98] }, + { "bIndex":62, "keyCode":"Key_P", "top":[499, 63], "bottom":[533, 98] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[546, 62], "bottom":[580, 97] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[591, 62], "bottom":[625, 97] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[641, 62], "bottom":[694, 97] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[22, 108], "bottom":[85, 143] }, + { "bIndex":9, "keyCode":"Key_A", "top":[99, 108], "bottom":[133, 143] }, + { "bIndex":15, "keyCode":"Key_S", "top":[144, 108], "bottom":[178, 143] }, + { "bIndex":21, "keyCode":"Key_D", "top":[190, 108], "bottom":[224, 143] }, + { "bIndex":27, "keyCode":"Key_F", "top":[236, 108], "bottom":[270, 143] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 108], "bottom":[315, 143] }, + { "bIndex":39, "keyCode":"Key_H", "top":[328, 108], "bottom":[362, 143] }, + { "bIndex":45, "keyCode":"Key_J", "top":[373, 108], "bottom":[407, 143] }, + { "bIndex":51, "keyCode":"Key_K", "top":[419, 108], "bottom":[453, 143] }, + { "bIndex":57, "keyCode":"Key_L", "top":[465, 108], "bottom":[499, 143] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[512, 108], "bottom":[546, 143] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[556, 108], "bottom":[590, 143] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[21, 153], "bottom":[108, 188] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[121, 153], "bottom":[155, 188] }, + { "bIndex":16, "keyCode":"Key_X", "top":[167, 153], "bottom":[201, 188] }, + { "bIndex":22, "keyCode":"Key_C", "top":[213, 153], "bottom":[247, 188] }, + { "bIndex":28, "keyCode":"Key_V", "top":[259, 153], "bottom":[293, 188] }, + { "bIndex":34, "keyCode":"Key_B", "top":[305, 153], "bottom":[339, 188] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 153], "bottom":[385, 188] }, + { "bIndex":46, "keyCode":"Key_M", "top":[397, 153], "bottom":[431, 188] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[442, 154], "bottom":[476, 189] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[489, 154], "bottom":[523, 189] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[534, 154], "bottom":[568, 189] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[585, 153], "bottom":[694, 188] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[21, 200], "bottom":[63, 235] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[79, 200], "bottom":[121, 235] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 200], "bottom":[179, 235] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[191, 199], "bottom":[465, 234] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[480, 200], "bottom":[522, 235] }, + { "bIndex":83, "keyCode":"Key_Fn", "top":[652, 200], "bottom":[694, 235] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[595, 201], "bottom":[637, 236] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[604, 108], "bottom":[693, 143] } + ] +} diff --git a/keyboards/configs/c8.json b/keyboards/configs/c8.json new file mode 100644 index 0000000..c538f24 --- /dev/null +++ b/keyboards/configs/c8.json @@ -0,0 +1,93 @@ +{ + "pid":"c8", + "name":"RK84N RGB", + "rgb":true, + "top":[22, 17], + "bottom":[702, 271], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[22, 18], "bottom":[51, 51] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[66, 18], "bottom":[95, 51] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[109, 18], "bottom":[138, 51] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[152, 18], "bottom":[181, 51] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[195, 18], "bottom":[224, 51] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[239, 18], "bottom":[268, 51] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[282, 18], "bottom":[311, 51] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[325, 18], "bottom":[354, 51] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[369, 18], "bottom":[398, 51] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[412, 18], "bottom":[441, 51] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[455, 18], "bottom":[484, 51] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[498, 18], "bottom":[527, 51] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[541, 18], "bottom":[570, 51] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[585, 18], "bottom":[614, 51] }, + { "bIndex":84, "keyCode":"Key_Pause", "top":[627, 18], "bottom":[656, 51] }, + { "bIndex":90, "keyCode":"Key_Delete", "top":[671, 17], "bottom":[700, 50] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[22, 62], "bottom":[51, 95] }, + { "bIndex":7, "keyCode":"Key_1", "top":[66, 62], "bottom":[95, 95] }, + { "bIndex":13, "keyCode":"Key_2", "top":[109, 62], "bottom":[138, 95] }, + { "bIndex":19, "keyCode":"Key_3", "top":[152, 62], "bottom":[181, 95] }, + { "bIndex":25, "keyCode":"Key_4", "top":[195, 62], "bottom":[224, 95] }, + { "bIndex":31, "keyCode":"Key_5", "top":[238, 62], "bottom":[267, 95] }, + { "bIndex":37, "keyCode":"Key_6", "top":[282, 62], "bottom":[311, 95] }, + { "bIndex":43, "keyCode":"Key_7", "top":[325, 62], "bottom":[354, 95] }, + { "bIndex":49, "keyCode":"Key_8", "top":[368, 62], "bottom":[397, 95] }, + { "bIndex":55, "keyCode":"Key_9", "top":[410, 62], "bottom":[439, 95] }, + { "bIndex":61, "keyCode":"Key_0", "top":[454, 62], "bottom":[483, 95] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[498, 62], "bottom":[527, 95] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[540, 62], "bottom":[569, 95] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[586, 62], "bottom":[657, 95] }, + { "bIndex":92, "keyCode":"Key_End", "top":[672, 105], "bottom":[701, 138] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[671, 62], "bottom":[700, 95] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[24, 106], "bottom":[73, 139] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[88, 106], "bottom":[117, 139] }, + { "bIndex":14, "keyCode":"Key_W", "top":[130, 106], "bottom":[159, 139] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 106], "bottom":[204, 139] }, + { "bIndex":26, "keyCode":"Key_R", "top":[217, 106], "bottom":[246, 139] }, + { "bIndex":32, "keyCode":"Key_T", "top":[260, 106], "bottom":[289, 139] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[303, 106], "bottom":[332, 139] }, + { "bIndex":44, "keyCode":"Key_U", "top":[347, 106], "bottom":[376, 139] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 106], "bottom":[419, 139] }, + { "bIndex":56, "keyCode":"Key_O", "top":[433, 106], "bottom":[462, 139] }, + { "bIndex":62, "keyCode":"Key_P", "top":[477, 106], "bottom":[506, 139] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[519, 106], "bottom":[548, 139] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[562, 106], "bottom":[591, 139] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[607, 106], "bottom":[657, 139] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[672, 192], "bottom":[701, 225] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[672, 149], "bottom":[701, 182] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[23, 149], "bottom":[83, 182] }, + { "bIndex":9, "keyCode":"Key_A", "top":[98, 148], "bottom":[127, 181] }, + { "bIndex":15, "keyCode":"Key_S", "top":[142, 148], "bottom":[171, 181] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 148], "bottom":[215, 181] }, + { "bIndex":27, "keyCode":"Key_F", "top":[228, 148], "bottom":[257, 181] }, + { "bIndex":33, "keyCode":"Key_G", "top":[271, 148], "bottom":[300, 181] }, + { "bIndex":39, "keyCode":"Key_H", "top":[315, 148], "bottom":[344, 181] }, + { "bIndex":45, "keyCode":"Key_J", "top":[358, 148], "bottom":[387, 181] }, + { "bIndex":51, "keyCode":"Key_K", "top":[402, 148], "bottom":[431, 181] }, + { "bIndex":57, "keyCode":"Key_L", "top":[444, 148], "bottom":[473, 181] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[488, 148], "bottom":[517, 181] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[531, 148], "bottom":[560, 181] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 193], "bottom":[104, 226] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[120, 192], "bottom":[149, 225] }, + { "bIndex":16, "keyCode":"Key_X", "top":[163, 192], "bottom":[192, 225] }, + { "bIndex":22, "keyCode":"Key_C", "top":[207, 192], "bottom":[236, 225] }, + { "bIndex":28, "keyCode":"Key_V", "top":[251, 192], "bottom":[280, 225] }, + { "bIndex":34, "keyCode":"Key_B", "top":[294, 192], "bottom":[323, 225] }, + { "bIndex":40, "keyCode":"Key_N", "top":[337, 192], "bottom":[366, 225] }, + { "bIndex":46, "keyCode":"Key_M", "top":[380, 192], "bottom":[409, 225] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[422, 192], "bottom":[451, 225] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 192], "bottom":[495, 225] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[509, 192], "bottom":[538, 225] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[553, 192], "bottom":[613, 225] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[630, 193], "bottom":[659, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[24, 237], "bottom":[61, 270] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[78, 237], "bottom":[115, 270] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[132, 237], "bottom":[169, 270] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 237], "bottom":[442, 270] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[455, 237], "bottom":[484, 270] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[499, 237], "bottom":[528, 270] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[543, 238], "bottom":[572, 271] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[586, 238], "bottom":[615, 271] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[630, 238], "bottom":[659, 271] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[673, 238], "bottom":[702, 271] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[575, 148], "bottom":[657, 181] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/c9.json b/keyboards/configs/c9.json new file mode 100644 index 0000000..aac8c7f --- /dev/null +++ b/keyboards/configs/c9.json @@ -0,0 +1,70 @@ +{ + "pid":"c9", + "name":"RK61 N RGB Bluetooth Dual Mode", + "rgb":true, + "top":[6, 7], + "bottom":[702, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[6, 7], "bottom":[36, 40] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[543, 198], "bottom":[583, 231] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 7], "bottom":[84, 40] }, + { "bIndex":13, "keyCode":"Key_2", "top":[102, 7], "bottom":[132, 40] }, + { "bIndex":19, "keyCode":"Key_3", "top":[149, 7], "bottom":[179, 40] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 7], "bottom":[227, 40] }, + { "bIndex":31, "keyCode":"Key_5", "top":[244, 7], "bottom":[274, 40] }, + { "bIndex":37, "keyCode":"Key_6", "top":[292, 7], "bottom":[322, 40] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 7], "bottom":[370, 40] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 8], "bottom":[417, 41] }, + { "bIndex":55, "keyCode":"Key_9", "top":[434, 8], "bottom":[464, 41] }, + { "bIndex":61, "keyCode":"Key_0", "top":[482, 8], "bottom":[512, 41] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[530, 8], "bottom":[560, 41] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[578, 8], "bottom":[608, 41] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[627, 9], "bottom":[702, 42] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[8, 55], "bottom":[60, 88] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 56], "bottom":[109, 89] }, + { "bIndex":14, "keyCode":"Key_W", "top":[125, 56], "bottom":[155, 89] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 56], "bottom":[205, 89] }, + { "bIndex":26, "keyCode":"Key_R", "top":[221, 56], "bottom":[251, 89] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 56], "bottom":[299, 89] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 56], "bottom":[347, 89] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 56], "bottom":[394, 89] }, + { "bIndex":50, "keyCode":"Key_I", "top":[411, 56], "bottom":[441, 89] }, + { "bIndex":56, "keyCode":"Key_O", "top":[459, 57], "bottom":[489, 90] }, + { "bIndex":62, "keyCode":"Key_P", "top":[507, 57], "bottom":[537, 90] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[554, 57], "bottom":[584, 90] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[602, 57], "bottom":[632, 90] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[650, 57], "bottom":[702, 90] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[9, 103], "bottom":[73, 136] }, + { "bIndex":9, "keyCode":"Key_A", "top":[91, 103], "bottom":[121, 136] }, + { "bIndex":15, "keyCode":"Key_S", "top":[138, 104], "bottom":[168, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 104], "bottom":[216, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 104], "bottom":[264, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 104], "bottom":[311, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[329, 104], "bottom":[359, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 104], "bottom":[406, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[423, 104], "bottom":[453, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[471, 104], "bottom":[501, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[519, 104], "bottom":[549, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[566, 104], "bottom":[596, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[10, 149], "bottom":[97, 182] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[114, 149], "bottom":[144, 182] }, + { "bIndex":16, "keyCode":"Key_X", "top":[162, 149], "bottom":[192, 182] }, + { "bIndex":22, "keyCode":"Key_C", "top":[210, 149], "bottom":[240, 182] }, + { "bIndex":28, "keyCode":"Key_V", "top":[257, 149], "bottom":[287, 182] }, + { "bIndex":34, "keyCode":"Key_B", "top":[304, 149], "bottom":[334, 182] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 149], "bottom":[381, 182] }, + { "bIndex":46, "keyCode":"Key_M", "top":[399, 149], "bottom":[429, 182] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[448, 150], "bottom":[478, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[495, 150], "bottom":[525, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[542, 150], "bottom":[572, 183] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[590, 150], "bottom":[702, 183] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[9, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[107, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[127, 197], "bottom":[167, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 198], "bottom":[465, 231] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[484, 198], "bottom":[524, 231] }, + { "bIndex":83, "keyCode":"Key_Fn", "top":[661, 198], "bottom":[701, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[602, 199], "bottom":[642, 232] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[614, 104], "bottom":[702, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/cd.json b/keyboards/configs/cd.json new file mode 100644 index 0000000..8542153 --- /dev/null +++ b/keyboards/configs/cd.json @@ -0,0 +1,98 @@ +{ + "pid":"cd", + "name":"RK89", + "rgb":false, + "top":[24, 19], + "bottom":[838, 298], + "keys":[ + { "bIndex":6, "keyCode":"Key_Escape", "top":[24, 19], "bottom":[53, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[115, 19], "bottom":[144, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[161, 19], "bottom":[190, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[206, 19], "bottom":[235, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[252, 19], "bottom":[281, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[319, 19], "bottom":[348, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[364, 19], "bottom":[393, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[409, 19], "bottom":[438, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[455, 19], "bottom":[484, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[523, 19], "bottom":[552, 53] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[568, 19], "bottom":[597, 53] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[613, 19], "bottom":[642, 53] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[659, 19], "bottom":[688, 53] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[25, 82], "bottom":[54, 116] }, + { "bIndex":7, "keyCode":"Key_1", "top":[70, 82], "bottom":[99, 116] }, + { "bIndex":13, "keyCode":"Key_2", "top":[115, 82], "bottom":[144, 116] }, + { "bIndex":19, "keyCode":"Key_3", "top":[161, 82], "bottom":[190, 116] }, + { "bIndex":25, "keyCode":"Key_4", "top":[205, 82], "bottom":[234, 116] }, + { "bIndex":31, "keyCode":"Key_5", "top":[251, 82], "bottom":[280, 116] }, + { "bIndex":37, "keyCode":"Key_6", "top":[297, 82], "bottom":[326, 116] }, + { "bIndex":43, "keyCode":"Key_7", "top":[342, 82], "bottom":[371, 116] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 82], "bottom":[416, 116] }, + { "bIndex":55, "keyCode":"Key_9", "top":[433, 82], "bottom":[462, 116] }, + { "bIndex":61, "keyCode":"Key_0", "top":[477, 82], "bottom":[506, 116] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[523, 82], "bottom":[552, 116] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[25, 126], "bottom":[77, 160] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[93, 128], "bottom":[122, 162] }, + { "bIndex":14, "keyCode":"Key_W", "top":[139, 127], "bottom":[168, 161] }, + { "bIndex":20, "keyCode":"Key_E", "top":[183, 127], "bottom":[212, 161] }, + { "bIndex":26, "keyCode":"Key_R", "top":[229, 128], "bottom":[258, 162] }, + { "bIndex":32, "keyCode":"Key_T", "top":[273, 128], "bottom":[302, 162] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[319, 128], "bottom":[348, 162] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 128], "bottom":[393, 162] }, + { "bIndex":50, "keyCode":"Key_I", "top":[410, 128], "bottom":[439, 162] }, + { "bIndex":56, "keyCode":"Key_O", "top":[455, 128], "bottom":[484, 162] }, + { "bIndex":62, "keyCode":"Key_P", "top":[499, 128], "bottom":[528, 162] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[545, 128], "bottom":[574, 162] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[590, 128], "bottom":[619, 162] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[635, 128], "bottom":[687, 162] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[568, 83], "bottom":[597, 117] }, + { "bIndex":103, "keyCode":"Key_Num_7", "top":[716, 82], "bottom":[745, 116] }, + { "bIndex":109, "keyCode":"Key_Num_8", "top":[762, 82], "bottom":[791, 116] }, + { "bIndex":115, "keyCode":"Key_Num_9", "top":[807, 82], "bottom":[836, 116] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[25, 170], "bottom":[87, 204] }, + { "bIndex":9, "keyCode":"Key_A", "top":[104, 173], "bottom":[133, 207] }, + { "bIndex":15, "keyCode":"Key_S", "top":[149, 173], "bottom":[178, 207] }, + { "bIndex":21, "keyCode":"Key_D", "top":[195, 173], "bottom":[224, 207] }, + { "bIndex":27, "keyCode":"Key_F", "top":[241, 173], "bottom":[270, 207] }, + { "bIndex":33, "keyCode":"Key_G", "top":[285, 173], "bottom":[314, 207] }, + { "bIndex":39, "keyCode":"Key_H", "top":[331, 173], "bottom":[360, 207] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 173], "bottom":[405, 207] }, + { "bIndex":51, "keyCode":"Key_K", "top":[421, 173], "bottom":[450, 207] }, + { "bIndex":57, "keyCode":"Key_L", "top":[466, 173], "bottom":[495, 207] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[512, 173], "bottom":[541, 207] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[557, 173], "bottom":[586, 207] }, + { "bIndex":104, "keyCode":"Key_Num_4", "top":[717, 126], "bottom":[746, 160] }, + { "bIndex":110, "keyCode":"Key_Num_5", "top":[762, 127], "bottom":[791, 161] }, + { "bIndex":116, "keyCode":"Key_Num_6", "top":[808, 127], "bottom":[837, 161] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[25, 215], "bottom":[111, 249] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[127, 217], "bottom":[156, 251] }, + { "bIndex":16, "keyCode":"Key_X", "top":[171, 218], "bottom":[200, 252] }, + { "bIndex":22, "keyCode":"Key_C", "top":[217, 218], "bottom":[246, 252] }, + { "bIndex":28, "keyCode":"Key_V", "top":[262, 218], "bottom":[291, 252] }, + { "bIndex":34, "keyCode":"Key_B", "top":[308, 217], "bottom":[337, 251] }, + { "bIndex":40, "keyCode":"Key_N", "top":[352, 217], "bottom":[381, 251] }, + { "bIndex":46, "keyCode":"Key_M", "top":[398, 217], "bottom":[427, 251] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[444, 217], "bottom":[473, 251] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[488, 217], "bottom":[517, 251] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[533, 217], "bottom":[562, 251] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[577, 216], "bottom":[687, 250] }, + { "bIndex":112, "keyCode":"Key_Up", "top":[763, 219], "bottom":[792, 253] }, + { "bIndex":105, "keyCode":"Key_Num_1", "top":[716, 173], "bottom":[745, 207] }, + { "bIndex":111, "keyCode":"Key_Num_2", "top":[763, 173], "bottom":[792, 207] }, + { "bIndex":117, "keyCode":"Key_Num_3", "top":[808, 173], "bottom":[837, 207] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[27, 262], "bottom":[65, 296] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[83, 261], "bottom":[121, 295] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 261], "bottom":[177, 295] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[195, 262], "bottom":[463, 296] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[478, 262], "bottom":[518, 296] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[534, 262], "bottom":[574, 296] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[649, 262], "bottom":[689, 296] }, + { "bIndex":107, "keyCode":"Key_Left", "top":[718, 264], "bottom":[747, 298] }, + { "bIndex":113, "keyCode":"Key_Down", "top":[763, 264], "bottom":[792, 298] }, + { "bIndex":119, "keyCode":"Key_Right", "top":[809, 264], "bottom":[838, 298] }, + { "bIndex":106, "keyCode":"Key_Num_0", "top":[716, 218], "bottom":[745, 252] }, + { "bIndex":118, "keyCode":"Key_Num_Decimal_Point", "top":[808, 218], "bottom":[837, 252] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[613, 83], "bottom":[687, 117] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[590, 261], "bottom":[630, 295] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[604, 173], "bottom":[688, 207] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/d6.json b/keyboards/configs/d6.json new file mode 100644 index 0000000..44fb5c7 --- /dev/null +++ b/keyboards/configs/d6.json @@ -0,0 +1,82 @@ +{ + "pid":"d6", + "name":"RK838 RGB", + "rgb":true, + "top":[61, 90], + "bottom":[800, 312], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[61, 90], "bottom":[102, 131] }, + { "bIndex":7, "keyCode":"Key_1", "top":[106, 90], "bottom":[147, 131] }, + { "bIndex":13, "keyCode":"Key_2", "top":[152, 90], "bottom":[193, 131] }, + { "bIndex":19, "keyCode":"Key_3", "top":[198, 90], "bottom":[239, 131] }, + { "bIndex":25, "keyCode":"Key_4", "top":[243, 90], "bottom":[284, 131] }, + { "bIndex":31, "keyCode":"Key_5", "top":[288, 90], "bottom":[329, 131] }, + { "bIndex":37, "keyCode":"Key_6", "top":[334, 90], "bottom":[375, 131] }, + { "bIndex":43, "keyCode":"Key_7", "top":[379, 90], "bottom":[420, 131] }, + { "bIndex":49, "keyCode":"Key_8", "top":[425, 90], "bottom":[466, 131] }, + { "bIndex":55, "keyCode":"Key_9", "top":[470, 90], "bottom":[511, 131] }, + { "bIndex":61, "keyCode":"Key_0", "top":[516, 90], "bottom":[557, 131] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[561, 90], "bottom":[602, 131] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[607, 90], "bottom":[648, 131] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[652, 90], "bottom":[740, 131] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[743, 90], "bottom":[784, 131] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[630, 136], "bottom":[671, 177] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[51, 135], "bottom":[125, 176] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[129, 135], "bottom":[170, 176] }, + { "bIndex":14, "keyCode":"Key_W", "top":[175, 135], "bottom":[216, 176] }, + { "bIndex":20, "keyCode":"Key_E", "top":[220, 135], "bottom":[261, 176] }, + { "bIndex":26, "keyCode":"Key_R", "top":[265, 135], "bottom":[306, 176] }, + { "bIndex":32, "keyCode":"Key_T", "top":[312, 135], "bottom":[353, 176] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[357, 135], "bottom":[398, 176] }, + { "bIndex":44, "keyCode":"Key_U", "top":[403, 135], "bottom":[444, 176] }, + { "bIndex":50, "keyCode":"Key_I", "top":[448, 135], "bottom":[489, 176] }, + { "bIndex":56, "keyCode":"Key_O", "top":[493, 135], "bottom":[534, 176] }, + { "bIndex":62, "keyCode":"Key_P", "top":[539, 135], "bottom":[580, 176] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[585, 135], "bottom":[626, 176] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[674, 135], "bottom":[738, 176] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[742, 134], "bottom":[796, 175] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[743, 180], "bottom":[807, 221] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[38, 179], "bottom":[136, 220] }, + { "bIndex":9, "keyCode":"Key_A", "top":[141, 179], "bottom":[182, 220] }, + { "bIndex":15, "keyCode":"Key_S", "top":[186, 180], "bottom":[227, 221] }, + { "bIndex":21, "keyCode":"Key_D", "top":[232, 180], "bottom":[273, 221] }, + { "bIndex":27, "keyCode":"Key_F", "top":[277, 180], "bottom":[318, 221] }, + { "bIndex":33, "keyCode":"Key_G", "top":[323, 180], "bottom":[364, 221] }, + { "bIndex":39, "keyCode":"Key_H", "top":[367, 180], "bottom":[408, 221] }, + { "bIndex":45, "keyCode":"Key_J", "top":[414, 180], "bottom":[455, 221] }, + { "bIndex":51, "keyCode":"Key_K", "top":[459, 180], "bottom":[500, 221] }, + { "bIndex":57, "keyCode":"Key_L", "top":[505, 180], "bottom":[546, 221] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[550, 180], "bottom":[591, 221] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[595, 180], "bottom":[636, 221] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[50, 225], "bottom":[158, 266] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[163, 226], "bottom":[204, 267] }, + { "bIndex":16, "keyCode":"Key_X", "top":[208, 226], "bottom":[249, 267] }, + { "bIndex":22, "keyCode":"Key_C", "top":[254, 226], "bottom":[295, 267] }, + { "bIndex":28, "keyCode":"Key_V", "top":[300, 226], "bottom":[341, 267] }, + { "bIndex":34, "keyCode":"Key_B", "top":[345, 226], "bottom":[386, 267] }, + { "bIndex":40, "keyCode":"Key_N", "top":[391, 226], "bottom":[432, 267] }, + { "bIndex":46, "keyCode":"Key_M", "top":[436, 227], "bottom":[477, 268] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[482, 227], "bottom":[523, 268] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[527, 227], "bottom":[568, 268] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[573, 227], "bottom":[614, 268] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[619, 225], "bottom":[695, 266] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[698, 227], "bottom":[739, 268] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[742, 225], "bottom":[796, 266] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[61, 271], "bottom":[115, 312] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[118, 271], "bottom":[172, 312] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[174, 272], "bottom":[228, 313] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[233, 272], "bottom":[513, 313] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[516, 270], "bottom":[557, 311] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[562, 269], "bottom":[603, 310] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[606, 269], "bottom":[647, 310] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[653, 269], "bottom":[694, 310] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[697, 271], "bottom":[738, 312] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[743, 271], "bottom":[784, 312] }, + { "bIndex":42, "keyCode":"Key_Right", "top":[427, 28], "bottom":[468, 48] }, + { "bIndex":48, "keyCode":"Key_Right", "top":[478, 28], "bottom":[519, 50] }, + { "bIndex":54, "keyCode":"Key_Right", "top":[529, 27], "bottom":[570, 50] }, + { "bIndex":60, "keyCode":"Key_Right", "top":[580, 29], "bottom":[621, 49] }, + { "bIndex":66, "keyCode":"Key_Right", "top":[637, 29], "bottom":[678, 50] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[642, 180], "bottom":[740, 221] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/d8.json b/keyboards/configs/d8.json new file mode 100644 index 0000000..c81b74e --- /dev/null +++ b/keyboards/configs/d8.json @@ -0,0 +1,109 @@ +{ + "pid":"d8", + "name":"RK98Wired-100K N RGB", + "rgb":true, + "top":[21, 18], + "bottom":[826, 285], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[22, 19], "bottom":[51, 52] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[65, 19], "bottom":[94, 52] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[107, 19], "bottom":[136, 52] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[150, 19], "bottom":[179, 52] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[191, 19], "bottom":[220, 52] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[233, 19], "bottom":[262, 52] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[276, 19], "bottom":[305, 52] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[318, 19], "bottom":[347, 52] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[360, 19], "bottom":[389, 52] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[402, 19], "bottom":[431, 52] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[444, 19], "bottom":[473, 52] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[486, 19], "bottom":[515, 52] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[528, 19], "bottom":[557, 52] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[571, 19], "bottom":[600, 52] }, + { "bIndex":84, "keyCode":"Key_Delete", "top":[612, 19], "bottom":[641, 52] }, + { "bIndex":90, "keyCode":"Key_Home", "top":[671, 19], "bottom":[700, 52] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[22, 73], "bottom":[51, 106] }, + { "bIndex":7, "keyCode":"Key_1", "top":[64, 74], "bottom":[93, 107] }, + { "bIndex":13, "keyCode":"Key_2", "top":[107, 74], "bottom":[136, 107] }, + { "bIndex":19, "keyCode":"Key_3", "top":[148, 74], "bottom":[177, 107] }, + { "bIndex":25, "keyCode":"Key_4", "top":[191, 74], "bottom":[220, 107] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 74], "bottom":[262, 107] }, + { "bIndex":37, "keyCode":"Key_6", "top":[275, 75], "bottom":[304, 108] }, + { "bIndex":43, "keyCode":"Key_7", "top":[317, 74], "bottom":[346, 107] }, + { "bIndex":49, "keyCode":"Key_8", "top":[362, 74], "bottom":[391, 107] }, + { "bIndex":55, "keyCode":"Key_9", "top":[402, 74], "bottom":[431, 107] }, + { "bIndex":61, "keyCode":"Key_0", "top":[443, 74], "bottom":[472, 107] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[486, 74], "bottom":[515, 107] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[527, 74], "bottom":[556, 107] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[570, 74], "bottom":[641, 107] }, + { "bIndex":102, "keyCode":"Key_Page_Up", "top":[755, 19], "bottom":[784, 52] }, + { "bIndex":91, "keyCode":"Key_Num_Lock", "top":[671, 74], "bottom":[700, 107] }, + { "bIndex":97, "keyCode":"Key_Num_Divide", "top":[713, 73], "bottom":[742, 106] }, + { "bIndex":103, "keyCode":"Key_Num_Multiply", "top":[755, 73], "bottom":[784, 106] }, + { "bIndex":109, "keyCode":"Key_Num_Substract", "top":[797, 73], "bottom":[826, 106] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[21, 116], "bottom":[70, 149] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[85, 116], "bottom":[114, 149] }, + { "bIndex":14, "keyCode":"Key_W", "top":[128, 116], "bottom":[157, 149] }, + { "bIndex":20, "keyCode":"Key_E", "top":[169, 117], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[211, 117], "bottom":[240, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[254, 117], "bottom":[283, 150] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[296, 117], "bottom":[325, 150] }, + { "bIndex":44, "keyCode":"Key_U", "top":[338, 117], "bottom":[367, 150] }, + { "bIndex":50, "keyCode":"Key_I", "top":[380, 117], "bottom":[409, 150] }, + { "bIndex":56, "keyCode":"Key_O", "top":[422, 117], "bottom":[451, 150] }, + { "bIndex":62, "keyCode":"Key_P", "top":[466, 117], "bottom":[495, 150] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[506, 117], "bottom":[535, 150] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[548, 117], "bottom":[577, 150] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[590, 117], "bottom":[640, 150] }, + { "bIndex":96, "keyCode":"Key_Insert", "top":[714, 18], "bottom":[743, 51] }, + { "bIndex":108, "keyCode":"Key_Page_Down", "top":[796, 18], "bottom":[825, 51] }, + { "bIndex":92, "keyCode":"Key_Num_7", "top":[671, 116], "bottom":[700, 149] }, + { "bIndex":98, "keyCode":"Key_Num_8", "top":[715, 116], "bottom":[744, 149] }, + { "bIndex":104, "keyCode":"Key_Num_9", "top":[755, 116], "bottom":[784, 149] }, + { "bIndex":110, "keyCode":"Key_Num_Add", "top":[797, 116], "bottom":[826, 190] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[23, 158], "bottom":[83, 191] }, + { "bIndex":9, "keyCode":"Key_A", "top":[95, 158], "bottom":[124, 191] }, + { "bIndex":15, "keyCode":"Key_S", "top":[137, 158], "bottom":[166, 191] }, + { "bIndex":21, "keyCode":"Key_D", "top":[180, 158], "bottom":[209, 191] }, + { "bIndex":27, "keyCode":"Key_F", "top":[222, 158], "bottom":[251, 191] }, + { "bIndex":33, "keyCode":"Key_G", "top":[265, 158], "bottom":[294, 191] }, + { "bIndex":39, "keyCode":"Key_H", "top":[307, 158], "bottom":[336, 191] }, + { "bIndex":45, "keyCode":"Key_J", "top":[349, 158], "bottom":[378, 191] }, + { "bIndex":51, "keyCode":"Key_K", "top":[390, 158], "bottom":[419, 191] }, + { "bIndex":57, "keyCode":"Key_L", "top":[431, 159], "bottom":[460, 192] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[477, 159], "bottom":[506, 192] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[516, 159], "bottom":[545, 192] }, + { "bIndex":93, "keyCode":"Key_Num_4", "top":[671, 158], "bottom":[700, 191] }, + { "bIndex":99, "keyCode":"Key_Num_5", "top":[714, 158], "bottom":[743, 191] }, + { "bIndex":105, "keyCode":"Key_Num_6", "top":[755, 158], "bottom":[784, 191] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 199], "bottom":[104, 232] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[116, 200], "bottom":[145, 233] }, + { "bIndex":16, "keyCode":"Key_X", "top":[159, 200], "bottom":[188, 233] }, + { "bIndex":22, "keyCode":"Key_C", "top":[203, 200], "bottom":[232, 233] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 200], "bottom":[273, 233] }, + { "bIndex":34, "keyCode":"Key_B", "top":[286, 200], "bottom":[315, 233] }, + { "bIndex":40, "keyCode":"Key_N", "top":[328, 200], "bottom":[357, 233] }, + { "bIndex":46, "keyCode":"Key_M", "top":[370, 200], "bottom":[399, 233] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[412, 200], "bottom":[441, 233] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[454, 200], "bottom":[483, 233] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[497, 200], "bottom":[526, 233] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[538, 200], "bottom":[598, 233] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[621, 209], "bottom":[650, 242] }, + { "bIndex":94, "keyCode":"Key_Num_1", "top":[671, 200], "bottom":[700, 233] }, + { "bIndex":100, "keyCode":"Key_Num_2", "top":[713, 200], "bottom":[742, 233] }, + { "bIndex":106, "keyCode":"Key_Num_3", "top":[754, 200], "bottom":[783, 233] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[22, 242], "bottom":[62, 275] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[77, 242], "bottom":[114, 275] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[131, 242], "bottom":[168, 275] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[181, 242], "bottom":[431, 275] }, + { "bIndex":59, "keyCode":"Key_Right_Alt", "top":[443, 242], "bottom":[472, 275] }, + { "bIndex":65, "keyCode":"Key_Fn", "top":[487, 242], "bottom":[516, 275] }, + { "bIndex":77, "keyCode":"Key_Right_Control", "top":[527, 243], "bottom":[556, 276] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[578, 251], "bottom":[607, 284] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[621, 252], "bottom":[650, 285] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[663, 252], "bottom":[692, 285] }, + { "bIndex":101, "keyCode":"Key_Num_0", "top":[713, 242], "bottom":[742, 275] }, + { "bIndex":107, "keyCode":"Key_Num_Decimal_Point", "top":[757, 242], "bottom":[786, 275] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[558, 159], "bottom":[640, 192] }, + { "bIndex":112, "keyCode":"Key_Num_Enter", "top":[797, 200], "bottom":[826, 274] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/da.json b/keyboards/configs/da.json new file mode 100644 index 0000000..186ca4b --- /dev/null +++ b/keyboards/configs/da.json @@ -0,0 +1,78 @@ +{ + "pid":"da", + "name":"RK61plus RGB N", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 56], "bottom":[709, 89] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":75, "keyCode":"Key_Back_Slash", "top":[580, 103], "bottom":[607, 136] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 150], "bottom":[709, 183] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 103], "bottom":[709, 136] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[49, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[111, 150], "bottom":[140, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[156, 150], "bottom":[185, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[200, 150], "bottom":[229, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[12, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[104, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[123, 197], "bottom":[160, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":76, "keyCode":"Key_Left_Shift_Split", "top":[66, 149], "bottom":[95, 182] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[624, 97], "bottom":[662, 130] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/de.json b/keyboards/configs/de.json new file mode 100644 index 0000000..b9e9c0e --- /dev/null +++ b/keyboards/configs/de.json @@ -0,0 +1,96 @@ +{ + "pid":"de", + "name":"RK883RGB N Wired", + "rgb":true, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/e0.json b/keyboards/configs/e0.json new file mode 100644 index 0000000..6a080bc --- /dev/null +++ b/keyboards/configs/e0.json @@ -0,0 +1,109 @@ +{ + "pid":"e0", + "name":"RK100RGB N", + "rgb":true, + "top":[11, 9], + "bottom":[838, 265], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[13, 10], "bottom":[42, 43] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[56, 10], "bottom":[85, 43] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[101, 10], "bottom":[130, 43] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[145, 10], "bottom":[174, 43] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[189, 10], "bottom":[218, 43] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[233, 10], "bottom":[262, 43] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[277, 10], "bottom":[306, 43] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[320, 10], "bottom":[349, 43] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[366, 10], "bottom":[395, 43] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[409, 10], "bottom":[438, 43] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[455, 10], "bottom":[484, 43] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[499, 10], "bottom":[528, 43] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[544, 10], "bottom":[573, 43] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[587, 10], "bottom":[616, 43] }, + { "bIndex":84, "keyCode":"Key_Delete", "top":[631, 10], "bottom":[660, 43] }, + { "bIndex":90, "keyCode":"Key_Home", "top":[675, 10], "bottom":[704, 43] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[11, 54], "bottom":[40, 87] }, + { "bIndex":7, "keyCode":"Key_1", "top":[56, 54], "bottom":[85, 87] }, + { "bIndex":13, "keyCode":"Key_2", "top":[100, 54], "bottom":[129, 87] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 54], "bottom":[173, 87] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 54], "bottom":[217, 87] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 54], "bottom":[261, 87] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 54], "bottom":[306, 87] }, + { "bIndex":43, "keyCode":"Key_7", "top":[321, 54], "bottom":[350, 87] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 54], "bottom":[395, 87] }, + { "bIndex":55, "keyCode":"Key_9", "top":[409, 54], "bottom":[438, 87] }, + { "bIndex":61, "keyCode":"Key_0", "top":[455, 54], "bottom":[484, 87] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[500, 54], "bottom":[529, 87] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[543, 54], "bottom":[572, 87] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[590, 54], "bottom":[661, 87] }, + { "bIndex":102, "keyCode":"Key_Page_Up", "top":[763, 10], "bottom":[792, 43] }, + { "bIndex":91, "keyCode":"Key_Num_Lock", "top":[676, 55], "bottom":[705, 88] }, + { "bIndex":97, "keyCode":"Key_Num_Divide", "top":[719, 55], "bottom":[748, 88] }, + { "bIndex":103, "keyCode":"Key_Num_Multiply", "top":[763, 55], "bottom":[792, 88] }, + { "bIndex":109, "keyCode":"Key_Num_Substract", "top":[808, 55], "bottom":[837, 88] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[12, 98], "bottom":[61, 131] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 98], "bottom":[108, 131] }, + { "bIndex":14, "keyCode":"Key_W", "top":[123, 98], "bottom":[152, 131] }, + { "bIndex":20, "keyCode":"Key_E", "top":[166, 98], "bottom":[195, 131] }, + { "bIndex":26, "keyCode":"Key_R", "top":[210, 98], "bottom":[239, 131] }, + { "bIndex":32, "keyCode":"Key_T", "top":[255, 98], "bottom":[284, 131] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[299, 98], "bottom":[328, 131] }, + { "bIndex":44, "keyCode":"Key_U", "top":[344, 98], "bottom":[373, 131] }, + { "bIndex":50, "keyCode":"Key_I", "top":[388, 98], "bottom":[417, 131] }, + { "bIndex":56, "keyCode":"Key_O", "top":[433, 98], "bottom":[462, 131] }, + { "bIndex":62, "keyCode":"Key_P", "top":[477, 98], "bottom":[506, 131] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[521, 98], "bottom":[550, 131] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[564, 98], "bottom":[593, 131] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[608, 98], "bottom":[658, 131] }, + { "bIndex":96, "keyCode":"Key_Insert", "top":[717, 9], "bottom":[746, 42] }, + { "bIndex":108, "keyCode":"Key_Page_Down", "top":[808, 9], "bottom":[837, 42] }, + { "bIndex":92, "keyCode":"Key_Num_7", "top":[676, 99], "bottom":[705, 132] }, + { "bIndex":98, "keyCode":"Key_Num_8", "top":[721, 99], "bottom":[750, 132] }, + { "bIndex":104, "keyCode":"Key_Num_9", "top":[764, 99], "bottom":[793, 132] }, + { "bIndex":110, "keyCode":"Key_Num_Add", "top":[809, 101], "bottom":[838, 175] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[11, 143], "bottom":[71, 176] }, + { "bIndex":9, "keyCode":"Key_A", "top":[88, 142], "bottom":[117, 175] }, + { "bIndex":15, "keyCode":"Key_S", "top":[133, 142], "bottom":[162, 175] }, + { "bIndex":21, "keyCode":"Key_D", "top":[177, 142], "bottom":[206, 175] }, + { "bIndex":27, "keyCode":"Key_F", "top":[222, 142], "bottom":[251, 175] }, + { "bIndex":33, "keyCode":"Key_G", "top":[266, 142], "bottom":[295, 175] }, + { "bIndex":39, "keyCode":"Key_H", "top":[312, 142], "bottom":[341, 175] }, + { "bIndex":45, "keyCode":"Key_J", "top":[355, 142], "bottom":[384, 175] }, + { "bIndex":51, "keyCode":"Key_K", "top":[399, 142], "bottom":[428, 175] }, + { "bIndex":57, "keyCode":"Key_L", "top":[443, 142], "bottom":[472, 175] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[489, 142], "bottom":[518, 175] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[533, 142], "bottom":[562, 175] }, + { "bIndex":93, "keyCode":"Key_Num_4", "top":[674, 144], "bottom":[703, 177] }, + { "bIndex":99, "keyCode":"Key_Num_5", "top":[719, 144], "bottom":[748, 177] }, + { "bIndex":105, "keyCode":"Key_Num_6", "top":[763, 144], "bottom":[792, 177] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[12, 185], "bottom":[94, 218] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[110, 186], "bottom":[139, 219] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 186], "bottom":[184, 219] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 186], "bottom":[228, 219] }, + { "bIndex":28, "keyCode":"Key_V", "top":[243, 186], "bottom":[272, 219] }, + { "bIndex":34, "keyCode":"Key_B", "top":[287, 186], "bottom":[316, 219] }, + { "bIndex":40, "keyCode":"Key_N", "top":[332, 186], "bottom":[361, 219] }, + { "bIndex":46, "keyCode":"Key_M", "top":[377, 186], "bottom":[406, 219] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[421, 186], "bottom":[450, 219] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 186], "bottom":[495, 219] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[510, 186], "bottom":[539, 219] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[556, 186], "bottom":[616, 219] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[632, 187], "bottom":[661, 220] }, + { "bIndex":94, "keyCode":"Key_Num_1", "top":[674, 187], "bottom":[703, 220] }, + { "bIndex":100, "keyCode":"Key_Num_2", "top":[719, 187], "bottom":[748, 220] }, + { "bIndex":106, "keyCode":"Key_Num_3", "top":[763, 187], "bottom":[792, 220] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 231], "bottom":[50, 264] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[69, 231], "bottom":[106, 264] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[124, 231], "bottom":[161, 264] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[177, 231], "bottom":[438, 264] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[455, 231], "bottom":[484, 264] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[499, 231], "bottom":[528, 264] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[543, 232], "bottom":[572, 265] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[588, 232], "bottom":[617, 265] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[632, 232], "bottom":[661, 265] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[676, 232], "bottom":[705, 265] }, + { "bIndex":101, "keyCode":"Key_Num_0", "top":[720, 231], "bottom":[749, 264] }, + { "bIndex":107, "keyCode":"Key_Num_Decimal_Point", "top":[763, 231], "bottom":[792, 264] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[576, 142], "bottom":[658, 175] }, + { "bIndex":112, "keyCode":"Key_Num_Enter", "top":[808, 189], "bottom":[837, 263] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/e1.json b/keyboards/configs/e1.json new file mode 100644 index 0000000..5ee44d2 --- /dev/null +++ b/keyboards/configs/e1.json @@ -0,0 +1,70 @@ +{ + "pid":"e1", + "name":"RK61RGB N", + "rgb":true, + "top":[6, 7], + "bottom":[702, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[6, 7], "bottom":[36, 40] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[543, 198], "bottom":[583, 231] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 7], "bottom":[84, 40] }, + { "bIndex":13, "keyCode":"Key_2", "top":[102, 7], "bottom":[132, 40] }, + { "bIndex":19, "keyCode":"Key_3", "top":[149, 7], "bottom":[179, 40] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 7], "bottom":[227, 40] }, + { "bIndex":31, "keyCode":"Key_5", "top":[244, 7], "bottom":[274, 40] }, + { "bIndex":37, "keyCode":"Key_6", "top":[292, 7], "bottom":[322, 40] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 7], "bottom":[370, 40] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 8], "bottom":[417, 41] }, + { "bIndex":55, "keyCode":"Key_9", "top":[434, 8], "bottom":[464, 41] }, + { "bIndex":61, "keyCode":"Key_0", "top":[482, 8], "bottom":[512, 41] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[530, 8], "bottom":[560, 41] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[578, 8], "bottom":[608, 41] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[627, 9], "bottom":[702, 42] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[8, 55], "bottom":[60, 88] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 56], "bottom":[109, 89] }, + { "bIndex":14, "keyCode":"Key_W", "top":[125, 56], "bottom":[155, 89] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 56], "bottom":[205, 89] }, + { "bIndex":26, "keyCode":"Key_R", "top":[221, 56], "bottom":[251, 89] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 56], "bottom":[299, 89] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 56], "bottom":[347, 89] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 56], "bottom":[394, 89] }, + { "bIndex":50, "keyCode":"Key_I", "top":[411, 56], "bottom":[441, 89] }, + { "bIndex":56, "keyCode":"Key_O", "top":[459, 57], "bottom":[489, 90] }, + { "bIndex":62, "keyCode":"Key_P", "top":[507, 57], "bottom":[537, 90] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[554, 57], "bottom":[584, 90] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[602, 57], "bottom":[632, 90] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[650, 57], "bottom":[702, 90] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[9, 103], "bottom":[73, 136] }, + { "bIndex":9, "keyCode":"Key_A", "top":[91, 103], "bottom":[121, 136] }, + { "bIndex":15, "keyCode":"Key_S", "top":[138, 104], "bottom":[168, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 104], "bottom":[216, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 104], "bottom":[264, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 104], "bottom":[311, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[329, 104], "bottom":[359, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 104], "bottom":[406, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[423, 104], "bottom":[453, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[471, 104], "bottom":[501, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[519, 104], "bottom":[549, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[566, 104], "bottom":[596, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[10, 149], "bottom":[97, 182] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[114, 149], "bottom":[144, 182] }, + { "bIndex":16, "keyCode":"Key_X", "top":[162, 149], "bottom":[192, 182] }, + { "bIndex":22, "keyCode":"Key_C", "top":[210, 149], "bottom":[240, 182] }, + { "bIndex":28, "keyCode":"Key_V", "top":[257, 149], "bottom":[287, 182] }, + { "bIndex":34, "keyCode":"Key_B", "top":[304, 149], "bottom":[334, 182] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 149], "bottom":[381, 182] }, + { "bIndex":46, "keyCode":"Key_M", "top":[399, 149], "bottom":[429, 182] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[448, 150], "bottom":[478, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[495, 150], "bottom":[525, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[542, 150], "bottom":[572, 183] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[590, 150], "bottom":[702, 183] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[9, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[107, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[127, 197], "bottom":[167, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 198], "bottom":[465, 231] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[484, 198], "bottom":[524, 231] }, + { "bIndex":83, "keyCode":"Key_Fn", "top":[661, 198], "bottom":[701, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[602, 199], "bottom":[642, 232] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[614, 104], "bottom":[702, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/e7.json b/keyboards/configs/e7.json new file mode 100644 index 0000000..1549204 --- /dev/null +++ b/keyboards/configs/e7.json @@ -0,0 +1,77 @@ +{ + "pid":"e7", + "name":"RKG68RGB N", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 58], "bottom":[709, 91] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[613, 57], "bottom":[663, 90] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 151], "bottom":[709, 184] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 105], "bottom":[709, 138] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[93, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 150], "bottom":[138, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 150], "bottom":[184, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 150], "bottom":[228, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[10, 197], "bottom":[47, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[65, 197], "bottom":[102, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[121, 197], "bottom":[158, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[580, 104], "bottom":[662, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/ea.json b/keyboards/configs/ea.json new file mode 100644 index 0000000..a41eb46 --- /dev/null +++ b/keyboards/configs/ea.json @@ -0,0 +1,80 @@ +{ + "pid":"ea", + "name":"RK71RGB N Wired", + "rgb":true, + "top":[12, 43], + "bottom":[707, 247], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[12, 44], "bottom":[39, 75] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[638, 45], "bottom":[665, 76] }, + { "bIndex":87, "keyCode":"Key_Pause", "top":[638, 130], "bottom":[665, 161] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[638, 87], "bottom":[665, 118] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 44], "bottom":[81, 75] }, + { "bIndex":13, "keyCode":"Key_2", "top":[96, 44], "bottom":[123, 75] }, + { "bIndex":19, "keyCode":"Key_3", "top":[138, 44], "bottom":[165, 75] }, + { "bIndex":25, "keyCode":"Key_4", "top":[179, 44], "bottom":[206, 75] }, + { "bIndex":31, "keyCode":"Key_5", "top":[221, 44], "bottom":[248, 75] }, + { "bIndex":37, "keyCode":"Key_6", "top":[262, 44], "bottom":[289, 75] }, + { "bIndex":43, "keyCode":"Key_7", "top":[305, 44], "bottom":[332, 75] }, + { "bIndex":49, "keyCode":"Key_8", "top":[346, 44], "bottom":[373, 75] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 44], "bottom":[415, 75] }, + { "bIndex":61, "keyCode":"Key_0", "top":[430, 44], "bottom":[457, 75] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[471, 44], "bottom":[498, 75] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[513, 44], "bottom":[540, 75] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[556, 43], "bottom":[622, 74] }, + { "bIndex":92, "keyCode":"Key_End", "top":[679, 87], "bottom":[706, 118] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[680, 44], "bottom":[707, 75] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[13, 87], "bottom":[60, 118] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[75, 87], "bottom":[102, 118] }, + { "bIndex":14, "keyCode":"Key_W", "top":[117, 87], "bottom":[144, 118] }, + { "bIndex":20, "keyCode":"Key_E", "top":[158, 87], "bottom":[185, 118] }, + { "bIndex":26, "keyCode":"Key_R", "top":[200, 87], "bottom":[227, 118] }, + { "bIndex":32, "keyCode":"Key_T", "top":[242, 87], "bottom":[269, 118] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[284, 87], "bottom":[311, 118] }, + { "bIndex":44, "keyCode":"Key_U", "top":[325, 87], "bottom":[352, 118] }, + { "bIndex":50, "keyCode":"Key_I", "top":[367, 87], "bottom":[394, 118] }, + { "bIndex":56, "keyCode":"Key_O", "top":[409, 87], "bottom":[436, 118] }, + { "bIndex":62, "keyCode":"Key_P", "top":[450, 87], "bottom":[477, 118] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[492, 87], "bottom":[519, 118] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[534, 87], "bottom":[561, 118] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[576, 87], "bottom":[622, 118] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 173], "bottom":[707, 204] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 130], "bottom":[707, 161] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[13, 130], "bottom":[70, 161] }, + { "bIndex":9, "keyCode":"Key_A", "top":[86, 130], "bottom":[113, 161] }, + { "bIndex":15, "keyCode":"Key_S", "top":[127, 130], "bottom":[154, 161] }, + { "bIndex":21, "keyCode":"Key_D", "top":[169, 130], "bottom":[196, 161] }, + { "bIndex":27, "keyCode":"Key_F", "top":[211, 130], "bottom":[238, 161] }, + { "bIndex":33, "keyCode":"Key_G", "top":[253, 130], "bottom":[280, 161] }, + { "bIndex":39, "keyCode":"Key_H", "top":[294, 130], "bottom":[321, 161] }, + { "bIndex":45, "keyCode":"Key_J", "top":[336, 130], "bottom":[363, 161] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 130], "bottom":[405, 161] }, + { "bIndex":57, "keyCode":"Key_L", "top":[419, 130], "bottom":[446, 161] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[461, 130], "bottom":[488, 161] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[502, 130], "bottom":[529, 161] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[13, 172], "bottom":[91, 203] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[107, 172], "bottom":[134, 203] }, + { "bIndex":16, "keyCode":"Key_X", "top":[148, 172], "bottom":[175, 203] }, + { "bIndex":22, "keyCode":"Key_C", "top":[190, 172], "bottom":[217, 203] }, + { "bIndex":28, "keyCode":"Key_V", "top":[232, 172], "bottom":[259, 203] }, + { "bIndex":34, "keyCode":"Key_B", "top":[273, 172], "bottom":[300, 203] }, + { "bIndex":40, "keyCode":"Key_N", "top":[315, 172], "bottom":[342, 203] }, + { "bIndex":46, "keyCode":"Key_M", "top":[357, 172], "bottom":[384, 203] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 172], "bottom":[425, 203] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[440, 172], "bottom":[467, 203] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[482, 172], "bottom":[509, 203] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[524, 172], "bottom":[622, 203] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[638, 172], "bottom":[665, 203] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[13, 215], "bottom":[49, 246] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[66, 215], "bottom":[102, 246] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[118, 215], "bottom":[153, 246] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[170, 215], "bottom":[414, 246] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[433, 215], "bottom":[465, 246] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[486, 215], "bottom":[518, 246] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[539, 216], "bottom":[571, 247] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[597, 216], "bottom":[624, 247] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[638, 216], "bottom":[665, 247] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[679, 216], "bottom":[706, 247] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[545, 129], "bottom":[622, 160] } + ] +} diff --git a/keyboards/configs/ec.json b/keyboards/configs/ec.json new file mode 100644 index 0000000..64c7815 --- /dev/null +++ b/keyboards/configs/ec.json @@ -0,0 +1,71 @@ +{ + "pid":"ec", + "name":"RK61RGB N ISO Return", + "rgb":true, + "top":[6, 7], + "bottom":[702, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[6, 7], "bottom":[36, 40] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[543, 198], "bottom":[583, 231] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 7], "bottom":[84, 40] }, + { "bIndex":13, "keyCode":"Key_2", "top":[102, 7], "bottom":[132, 40] }, + { "bIndex":19, "keyCode":"Key_3", "top":[149, 7], "bottom":[179, 40] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 7], "bottom":[227, 40] }, + { "bIndex":31, "keyCode":"Key_5", "top":[244, 7], "bottom":[274, 40] }, + { "bIndex":37, "keyCode":"Key_6", "top":[292, 7], "bottom":[322, 40] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 7], "bottom":[370, 40] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 8], "bottom":[417, 41] }, + { "bIndex":55, "keyCode":"Key_9", "top":[434, 8], "bottom":[464, 41] }, + { "bIndex":61, "keyCode":"Key_0", "top":[482, 8], "bottom":[512, 41] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[530, 8], "bottom":[560, 41] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[578, 8], "bottom":[608, 41] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[627, 9], "bottom":[702, 42] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[8, 55], "bottom":[60, 88] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 56], "bottom":[109, 89] }, + { "bIndex":14, "keyCode":"Key_W", "top":[125, 56], "bottom":[155, 89] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 56], "bottom":[205, 89] }, + { "bIndex":26, "keyCode":"Key_R", "top":[221, 56], "bottom":[251, 89] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 56], "bottom":[299, 89] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 56], "bottom":[347, 89] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 56], "bottom":[394, 89] }, + { "bIndex":50, "keyCode":"Key_I", "top":[411, 56], "bottom":[441, 89] }, + { "bIndex":56, "keyCode":"Key_O", "top":[459, 57], "bottom":[489, 90] }, + { "bIndex":62, "keyCode":"Key_P", "top":[507, 57], "bottom":[537, 90] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[554, 57], "bottom":[584, 90] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[602, 57], "bottom":[632, 90] }, + { "bIndex":75, "keyCode":"Key_Back_Slash", "top":[613, 103], "bottom":[643, 136] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[9, 103], "bottom":[73, 136] }, + { "bIndex":9, "keyCode":"Key_A", "top":[91, 103], "bottom":[121, 136] }, + { "bIndex":15, "keyCode":"Key_S", "top":[138, 104], "bottom":[168, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 104], "bottom":[216, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 104], "bottom":[264, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 104], "bottom":[311, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[329, 104], "bottom":[359, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 104], "bottom":[406, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[423, 104], "bottom":[453, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[471, 104], "bottom":[501, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[519, 104], "bottom":[549, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[566, 104], "bottom":[596, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[10, 149], "bottom":[47, 182] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[114, 149], "bottom":[144, 182] }, + { "bIndex":16, "keyCode":"Key_X", "top":[162, 149], "bottom":[192, 182] }, + { "bIndex":22, "keyCode":"Key_C", "top":[210, 149], "bottom":[240, 182] }, + { "bIndex":28, "keyCode":"Key_V", "top":[257, 149], "bottom":[287, 182] }, + { "bIndex":34, "keyCode":"Key_B", "top":[304, 149], "bottom":[334, 182] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 149], "bottom":[381, 182] }, + { "bIndex":46, "keyCode":"Key_M", "top":[399, 149], "bottom":[429, 182] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[448, 150], "bottom":[478, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[495, 150], "bottom":[525, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[542, 150], "bottom":[572, 183] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[590, 150], "bottom":[702, 183] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[9, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[107, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[127, 197], "bottom":[167, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 198], "bottom":[465, 231] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[484, 198], "bottom":[524, 231] }, + { "bIndex":83, "keyCode":"Key_Fn", "top":[661, 198], "bottom":[701, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[602, 199], "bottom":[642, 232] }, + { "bIndex":76, "keyCode":"Key_Left_Shift_Split", "top":[68, 150], "bottom":[98, 183] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[664, 104], "bottom":[694, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/ed.json b/keyboards/configs/ed.json new file mode 100644 index 0000000..31f5bb9 --- /dev/null +++ b/keyboards/configs/ed.json @@ -0,0 +1,70 @@ +{ + "pid":"ed", + "name":"RK61 N RGB Bluetooth Dual Mode", + "rgb":true, + "top":[6, 7], + "bottom":[702, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[6, 7], "bottom":[36, 40] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[543, 198], "bottom":[583, 231] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 7], "bottom":[84, 40] }, + { "bIndex":13, "keyCode":"Key_2", "top":[102, 7], "bottom":[132, 40] }, + { "bIndex":19, "keyCode":"Key_3", "top":[149, 7], "bottom":[179, 40] }, + { "bIndex":25, "keyCode":"Key_4", "top":[197, 7], "bottom":[227, 40] }, + { "bIndex":31, "keyCode":"Key_5", "top":[244, 7], "bottom":[274, 40] }, + { "bIndex":37, "keyCode":"Key_6", "top":[292, 7], "bottom":[322, 40] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 7], "bottom":[370, 40] }, + { "bIndex":49, "keyCode":"Key_8", "top":[387, 8], "bottom":[417, 41] }, + { "bIndex":55, "keyCode":"Key_9", "top":[434, 8], "bottom":[464, 41] }, + { "bIndex":61, "keyCode":"Key_0", "top":[482, 8], "bottom":[512, 41] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[530, 8], "bottom":[560, 41] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[578, 8], "bottom":[608, 41] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[627, 9], "bottom":[702, 42] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[8, 55], "bottom":[60, 88] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[79, 56], "bottom":[109, 89] }, + { "bIndex":14, "keyCode":"Key_W", "top":[125, 56], "bottom":[155, 89] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 56], "bottom":[205, 89] }, + { "bIndex":26, "keyCode":"Key_R", "top":[221, 56], "bottom":[251, 89] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 56], "bottom":[299, 89] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 56], "bottom":[347, 89] }, + { "bIndex":44, "keyCode":"Key_U", "top":[364, 56], "bottom":[394, 89] }, + { "bIndex":50, "keyCode":"Key_I", "top":[411, 56], "bottom":[441, 89] }, + { "bIndex":56, "keyCode":"Key_O", "top":[459, 57], "bottom":[489, 90] }, + { "bIndex":62, "keyCode":"Key_P", "top":[507, 57], "bottom":[537, 90] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[554, 57], "bottom":[584, 90] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[602, 57], "bottom":[632, 90] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[650, 57], "bottom":[702, 90] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[9, 103], "bottom":[73, 136] }, + { "bIndex":9, "keyCode":"Key_A", "top":[91, 103], "bottom":[121, 136] }, + { "bIndex":15, "keyCode":"Key_S", "top":[138, 104], "bottom":[168, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 104], "bottom":[216, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[234, 104], "bottom":[264, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 104], "bottom":[311, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[329, 104], "bottom":[359, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[376, 104], "bottom":[406, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[423, 104], "bottom":[453, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[471, 104], "bottom":[501, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[519, 104], "bottom":[549, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[566, 104], "bottom":[596, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[10, 149], "bottom":[97, 182] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[114, 149], "bottom":[144, 182] }, + { "bIndex":16, "keyCode":"Key_X", "top":[162, 149], "bottom":[192, 182] }, + { "bIndex":22, "keyCode":"Key_C", "top":[210, 149], "bottom":[240, 182] }, + { "bIndex":28, "keyCode":"Key_V", "top":[257, 149], "bottom":[287, 182] }, + { "bIndex":34, "keyCode":"Key_B", "top":[304, 149], "bottom":[334, 182] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 149], "bottom":[381, 182] }, + { "bIndex":46, "keyCode":"Key_M", "top":[399, 149], "bottom":[429, 182] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[448, 150], "bottom":[478, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[495, 150], "bottom":[525, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[542, 150], "bottom":[572, 183] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[590, 150], "bottom":[702, 183] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[9, 197], "bottom":[49, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[67, 197], "bottom":[107, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[127, 197], "bottom":[167, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 198], "bottom":[465, 231] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[484, 198], "bottom":[524, 231] }, + { "bIndex":83, "keyCode":"Key_Fn", "top":[661, 198], "bottom":[701, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[602, 199], "bottom":[642, 232] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[614, 104], "bottom":[702, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/ef.json b/keyboards/configs/ef.json new file mode 100644 index 0000000..0bd4908 --- /dev/null +++ b/keyboards/configs/ef.json @@ -0,0 +1,96 @@ +{ + "pid":"ef", + "name":"RK-H87RGB", + "rgb":true, + "top":[20, 78], + "bottom":[826, 350], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[21, 78], "bottom":[52, 110] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[112, 78], "bottom":[143, 110] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[157, 78], "bottom":[188, 110] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[201, 78], "bottom":[232, 110] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[246, 78], "bottom":[277, 110] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[313, 78], "bottom":[344, 110] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[358, 78], "bottom":[389, 110] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[404, 78], "bottom":[435, 110] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[448, 78], "bottom":[479, 110] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[514, 78], "bottom":[545, 110] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[560, 78], "bottom":[591, 110] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[604, 78], "bottom":[635, 110] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[649, 78], "bottom":[680, 110] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[706, 78], "bottom":[737, 110] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[750, 78], "bottom":[781, 110] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[795, 78], "bottom":[826, 110] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[22, 139], "bottom":[53, 171] }, + { "bIndex":7, "keyCode":"Key_1", "top":[67, 139], "bottom":[98, 171] }, + { "bIndex":13, "keyCode":"Key_2", "top":[112, 139], "bottom":[143, 171] }, + { "bIndex":19, "keyCode":"Key_3", "top":[157, 139], "bottom":[188, 171] }, + { "bIndex":25, "keyCode":"Key_4", "top":[201, 140], "bottom":[232, 172] }, + { "bIndex":31, "keyCode":"Key_5", "top":[246, 139], "bottom":[277, 171] }, + { "bIndex":37, "keyCode":"Key_6", "top":[291, 139], "bottom":[322, 171] }, + { "bIndex":43, "keyCode":"Key_7", "top":[336, 139], "bottom":[367, 171] }, + { "bIndex":49, "keyCode":"Key_8", "top":[381, 139], "bottom":[412, 171] }, + { "bIndex":55, "keyCode":"Key_9", "top":[425, 139], "bottom":[456, 171] }, + { "bIndex":61, "keyCode":"Key_0", "top":[469, 139], "bottom":[500, 171] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[515, 139], "bottom":[546, 171] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[559, 139], "bottom":[590, 171] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[605, 139], "bottom":[679, 171] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[705, 139], "bottom":[736, 171] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[750, 139], "bottom":[781, 171] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[795, 139], "bottom":[826, 171] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[20, 184], "bottom":[76, 216] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[89, 184], "bottom":[120, 216] }, + { "bIndex":14, "keyCode":"Key_W", "top":[134, 184], "bottom":[165, 216] }, + { "bIndex":20, "keyCode":"Key_E", "top":[180, 184], "bottom":[211, 216] }, + { "bIndex":26, "keyCode":"Key_R", "top":[224, 184], "bottom":[255, 216] }, + { "bIndex":32, "keyCode":"Key_T", "top":[269, 184], "bottom":[300, 216] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[314, 184], "bottom":[345, 216] }, + { "bIndex":44, "keyCode":"Key_U", "top":[358, 184], "bottom":[389, 216] }, + { "bIndex":50, "keyCode":"Key_I", "top":[402, 184], "bottom":[433, 216] }, + { "bIndex":56, "keyCode":"Key_O", "top":[447, 183], "bottom":[478, 215] }, + { "bIndex":62, "keyCode":"Key_P", "top":[492, 183], "bottom":[523, 215] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[538, 183], "bottom":[569, 215] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[581, 183], "bottom":[612, 215] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[625, 183], "bottom":[681, 215] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[705, 184], "bottom":[736, 216] }, + { "bIndex":92, "keyCode":"Key_End", "top":[750, 184], "bottom":[781, 216] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[794, 184], "bottom":[825, 216] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[21, 229], "bottom":[87, 261] }, + { "bIndex":9, "keyCode":"Key_A", "top":[101, 228], "bottom":[132, 260] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 228], "bottom":[176, 260] }, + { "bIndex":21, "keyCode":"Key_D", "top":[190, 228], "bottom":[221, 260] }, + { "bIndex":27, "keyCode":"Key_F", "top":[235, 228], "bottom":[266, 260] }, + { "bIndex":33, "keyCode":"Key_G", "top":[280, 228], "bottom":[311, 260] }, + { "bIndex":39, "keyCode":"Key_H", "top":[324, 228], "bottom":[355, 260] }, + { "bIndex":45, "keyCode":"Key_J", "top":[369, 228], "bottom":[400, 260] }, + { "bIndex":51, "keyCode":"Key_K", "top":[413, 228], "bottom":[444, 260] }, + { "bIndex":57, "keyCode":"Key_L", "top":[459, 228], "bottom":[490, 260] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[503, 228], "bottom":[534, 260] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[549, 228], "bottom":[580, 260] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[21, 273], "bottom":[109, 305] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[123, 272], "bottom":[154, 304] }, + { "bIndex":16, "keyCode":"Key_X", "top":[168, 273], "bottom":[199, 305] }, + { "bIndex":22, "keyCode":"Key_C", "top":[213, 273], "bottom":[244, 305] }, + { "bIndex":28, "keyCode":"Key_V", "top":[258, 273], "bottom":[289, 305] }, + { "bIndex":34, "keyCode":"Key_B", "top":[303, 273], "bottom":[334, 305] }, + { "bIndex":40, "keyCode":"Key_N", "top":[347, 273], "bottom":[378, 305] }, + { "bIndex":46, "keyCode":"Key_M", "top":[391, 273], "bottom":[422, 305] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[436, 273], "bottom":[467, 305] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[481, 273], "bottom":[512, 305] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[525, 272], "bottom":[556, 304] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[571, 272], "bottom":[679, 304] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[750, 273], "bottom":[781, 305] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[26, 317], "bottom":[66, 349] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[80, 317], "bottom":[120, 349] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[134, 317], "bottom":[176, 349] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[191, 316], "bottom":[457, 348] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[471, 317], "bottom":[511, 349] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[527, 317], "bottom":[567, 349] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[582, 317], "bottom":[624, 349] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[640, 317], "bottom":[680, 349] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[705, 318], "bottom":[736, 350] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[750, 317], "bottom":[781, 349] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[794, 317], "bottom":[825, 349] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[593, 228], "bottom":[679, 260] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/f3.json b/keyboards/configs/f3.json new file mode 100644 index 0000000..711bbec --- /dev/null +++ b/keyboards/configs/f3.json @@ -0,0 +1,93 @@ +{ + "pid":"f3", + "name":"RK84Pro N RGB", + "rgb":true, + "top":[22, 17], + "bottom":[702, 271], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[22, 18], "bottom":[51, 51] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[66, 18], "bottom":[95, 51] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[109, 18], "bottom":[138, 51] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[152, 18], "bottom":[181, 51] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[195, 18], "bottom":[224, 51] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[239, 18], "bottom":[268, 51] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[282, 18], "bottom":[311, 51] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[325, 18], "bottom":[354, 51] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[369, 18], "bottom":[398, 51] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[412, 18], "bottom":[441, 51] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[455, 18], "bottom":[484, 51] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[498, 18], "bottom":[527, 51] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[541, 18], "bottom":[570, 51] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[585, 18], "bottom":[614, 51] }, + { "bIndex":84, "keyCode":"Key_Pause", "top":[627, 18], "bottom":[656, 51] }, + { "bIndex":90, "keyCode":"Key_Delete", "top":[671, 17], "bottom":[700, 50] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[22, 62], "bottom":[51, 95] }, + { "bIndex":7, "keyCode":"Key_1", "top":[66, 62], "bottom":[95, 95] }, + { "bIndex":13, "keyCode":"Key_2", "top":[109, 62], "bottom":[138, 95] }, + { "bIndex":19, "keyCode":"Key_3", "top":[152, 62], "bottom":[181, 95] }, + { "bIndex":25, "keyCode":"Key_4", "top":[195, 62], "bottom":[224, 95] }, + { "bIndex":31, "keyCode":"Key_5", "top":[238, 62], "bottom":[267, 95] }, + { "bIndex":37, "keyCode":"Key_6", "top":[282, 62], "bottom":[311, 95] }, + { "bIndex":43, "keyCode":"Key_7", "top":[325, 62], "bottom":[354, 95] }, + { "bIndex":49, "keyCode":"Key_8", "top":[368, 62], "bottom":[397, 95] }, + { "bIndex":55, "keyCode":"Key_9", "top":[410, 62], "bottom":[439, 95] }, + { "bIndex":61, "keyCode":"Key_0", "top":[454, 62], "bottom":[483, 95] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[498, 62], "bottom":[527, 95] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[540, 62], "bottom":[569, 95] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[586, 62], "bottom":[657, 95] }, + { "bIndex":92, "keyCode":"Key_End", "top":[672, 105], "bottom":[701, 138] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[671, 62], "bottom":[700, 95] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[24, 106], "bottom":[73, 139] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[88, 106], "bottom":[117, 139] }, + { "bIndex":14, "keyCode":"Key_W", "top":[130, 106], "bottom":[159, 139] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 106], "bottom":[204, 139] }, + { "bIndex":26, "keyCode":"Key_R", "top":[217, 106], "bottom":[246, 139] }, + { "bIndex":32, "keyCode":"Key_T", "top":[260, 106], "bottom":[289, 139] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[303, 106], "bottom":[332, 139] }, + { "bIndex":44, "keyCode":"Key_U", "top":[347, 106], "bottom":[376, 139] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 106], "bottom":[419, 139] }, + { "bIndex":56, "keyCode":"Key_O", "top":[433, 106], "bottom":[462, 139] }, + { "bIndex":62, "keyCode":"Key_P", "top":[477, 106], "bottom":[506, 139] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[519, 106], "bottom":[548, 139] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[562, 106], "bottom":[591, 139] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[607, 106], "bottom":[657, 139] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[672, 192], "bottom":[701, 225] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[672, 149], "bottom":[701, 182] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[23, 149], "bottom":[83, 182] }, + { "bIndex":9, "keyCode":"Key_A", "top":[98, 148], "bottom":[127, 181] }, + { "bIndex":15, "keyCode":"Key_S", "top":[142, 148], "bottom":[171, 181] }, + { "bIndex":21, "keyCode":"Key_D", "top":[186, 148], "bottom":[215, 181] }, + { "bIndex":27, "keyCode":"Key_F", "top":[228, 148], "bottom":[257, 181] }, + { "bIndex":33, "keyCode":"Key_G", "top":[271, 148], "bottom":[300, 181] }, + { "bIndex":39, "keyCode":"Key_H", "top":[315, 148], "bottom":[344, 181] }, + { "bIndex":45, "keyCode":"Key_J", "top":[358, 148], "bottom":[387, 181] }, + { "bIndex":51, "keyCode":"Key_K", "top":[402, 148], "bottom":[431, 181] }, + { "bIndex":57, "keyCode":"Key_L", "top":[444, 148], "bottom":[473, 181] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[488, 148], "bottom":[517, 181] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[531, 148], "bottom":[560, 181] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[22, 193], "bottom":[104, 226] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[120, 192], "bottom":[149, 225] }, + { "bIndex":16, "keyCode":"Key_X", "top":[163, 192], "bottom":[192, 225] }, + { "bIndex":22, "keyCode":"Key_C", "top":[207, 192], "bottom":[236, 225] }, + { "bIndex":28, "keyCode":"Key_V", "top":[251, 192], "bottom":[280, 225] }, + { "bIndex":34, "keyCode":"Key_B", "top":[294, 192], "bottom":[323, 225] }, + { "bIndex":40, "keyCode":"Key_N", "top":[337, 192], "bottom":[366, 225] }, + { "bIndex":46, "keyCode":"Key_M", "top":[380, 192], "bottom":[409, 225] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[422, 192], "bottom":[451, 225] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 192], "bottom":[495, 225] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[509, 192], "bottom":[538, 225] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[553, 192], "bottom":[613, 225] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[630, 193], "bottom":[659, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[24, 237], "bottom":[61, 270] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[78, 237], "bottom":[115, 270] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[132, 237], "bottom":[169, 270] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 237], "bottom":[442, 270] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[455, 237], "bottom":[484, 270] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[499, 237], "bottom":[528, 270] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[543, 238], "bottom":[572, 271] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[586, 238], "bottom":[615, 271] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[630, 238], "bottom":[659, 271] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[673, 238], "bottom":[702, 271] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[575, 148], "bottom":[657, 181] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/f4.json b/keyboards/configs/f4.json new file mode 100644 index 0000000..d2ad71a --- /dev/null +++ b/keyboards/configs/f4.json @@ -0,0 +1,94 @@ +{ + "pid":"f4", + "name":"RK84 RGB ISO Return", + "rgb":true, + "top":[28, 19], + "bottom":[701, 270], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[28, 20], "bottom":[57, 53] }, + { "bIndex":6, "keyCode":"Key_F1", "top":[72, 19], "bottom":[101, 52] }, + { "bIndex":12, "keyCode":"Key_F2", "top":[115, 19], "bottom":[144, 52] }, + { "bIndex":18, "keyCode":"Key_F3", "top":[158, 19], "bottom":[187, 52] }, + { "bIndex":24, "keyCode":"Key_F4", "top":[201, 19], "bottom":[230, 52] }, + { "bIndex":30, "keyCode":"Key_F5", "top":[244, 19], "bottom":[273, 52] }, + { "bIndex":36, "keyCode":"Key_F6", "top":[287, 19], "bottom":[316, 52] }, + { "bIndex":42, "keyCode":"Key_F7", "top":[330, 19], "bottom":[359, 52] }, + { "bIndex":48, "keyCode":"Key_F8", "top":[373, 19], "bottom":[402, 52] }, + { "bIndex":54, "keyCode":"Key_F9", "top":[416, 19], "bottom":[445, 52] }, + { "bIndex":60, "keyCode":"Key_F10", "top":[459, 19], "bottom":[488, 52] }, + { "bIndex":66, "keyCode":"Key_F11", "top":[502, 19], "bottom":[531, 52] }, + { "bIndex":72, "keyCode":"Key_F12", "top":[542, 19], "bottom":[571, 52] }, + { "bIndex":78, "keyCode":"Key_Print_Screen", "top":[586, 19], "bottom":[615, 52] }, + { "bIndex":84, "keyCode":"Key_Pause", "top":[628, 19], "bottom":[657, 52] }, + { "bIndex":90, "keyCode":"Key_Delete", "top":[670, 19], "bottom":[699, 52] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[28, 63], "bottom":[57, 96] }, + { "bIndex":7, "keyCode":"Key_1", "top":[72, 62], "bottom":[101, 95] }, + { "bIndex":13, "keyCode":"Key_2", "top":[114, 63], "bottom":[143, 96] }, + { "bIndex":19, "keyCode":"Key_3", "top":[157, 63], "bottom":[186, 96] }, + { "bIndex":25, "keyCode":"Key_4", "top":[200, 63], "bottom":[229, 96] }, + { "bIndex":31, "keyCode":"Key_5", "top":[242, 63], "bottom":[271, 96] }, + { "bIndex":37, "keyCode":"Key_6", "top":[285, 63], "bottom":[314, 96] }, + { "bIndex":43, "keyCode":"Key_7", "top":[328, 63], "bottom":[357, 96] }, + { "bIndex":49, "keyCode":"Key_8", "top":[371, 63], "bottom":[400, 96] }, + { "bIndex":55, "keyCode":"Key_9", "top":[413, 63], "bottom":[442, 96] }, + { "bIndex":61, "keyCode":"Key_0", "top":[455, 63], "bottom":[484, 96] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[499, 63], "bottom":[528, 96] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[541, 63], "bottom":[570, 96] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[585, 63], "bottom":[656, 96] }, + { "bIndex":92, "keyCode":"Key_End", "top":[671, 106], "bottom":[700, 139] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[670, 63], "bottom":[699, 96] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[30, 107], "bottom":[79, 140] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[94, 106], "bottom":[123, 139] }, + { "bIndex":14, "keyCode":"Key_W", "top":[135, 107], "bottom":[164, 140] }, + { "bIndex":20, "keyCode":"Key_E", "top":[180, 107], "bottom":[209, 140] }, + { "bIndex":26, "keyCode":"Key_R", "top":[222, 107], "bottom":[251, 140] }, + { "bIndex":32, "keyCode":"Key_T", "top":[265, 107], "bottom":[294, 140] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[308, 107], "bottom":[337, 140] }, + { "bIndex":44, "keyCode":"Key_U", "top":[352, 107], "bottom":[381, 140] }, + { "bIndex":50, "keyCode":"Key_I", "top":[393, 107], "bottom":[422, 140] }, + { "bIndex":56, "keyCode":"Key_O", "top":[436, 107], "bottom":[465, 140] }, + { "bIndex":62, "keyCode":"Key_P", "top":[479, 107], "bottom":[508, 140] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[521, 107], "bottom":[550, 140] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[561, 107], "bottom":[590, 140] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[671, 191], "bottom":[700, 224] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[671, 148], "bottom":[700, 181] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[29, 150], "bottom":[89, 183] }, + { "bIndex":9, "keyCode":"Key_A", "top":[105, 148], "bottom":[134, 181] }, + { "bIndex":15, "keyCode":"Key_S", "top":[147, 149], "bottom":[176, 182] }, + { "bIndex":21, "keyCode":"Key_D", "top":[191, 149], "bottom":[220, 182] }, + { "bIndex":27, "keyCode":"Key_F", "top":[233, 149], "bottom":[262, 182] }, + { "bIndex":33, "keyCode":"Key_G", "top":[276, 149], "bottom":[305, 182] }, + { "bIndex":39, "keyCode":"Key_H", "top":[320, 149], "bottom":[349, 182] }, + { "bIndex":45, "keyCode":"Key_J", "top":[363, 149], "bottom":[392, 182] }, + { "bIndex":51, "keyCode":"Key_K", "top":[404, 149], "bottom":[433, 182] }, + { "bIndex":57, "keyCode":"Key_L", "top":[446, 149], "bottom":[475, 182] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 149], "bottom":[519, 182] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[533, 149], "bottom":[562, 182] }, + { "bIndex":75, "keyCode":"Key_Back_Slash", "top":[574, 149], "bottom":[602, 182] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[29, 192], "bottom":[69, 225] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[125, 192], "bottom":[154, 225] }, + { "bIndex":16, "keyCode":"Key_X", "top":[168, 192], "bottom":[197, 225] }, + { "bIndex":22, "keyCode":"Key_C", "top":[212, 192], "bottom":[241, 225] }, + { "bIndex":28, "keyCode":"Key_V", "top":[256, 192], "bottom":[285, 225] }, + { "bIndex":34, "keyCode":"Key_B", "top":[299, 192], "bottom":[328, 225] }, + { "bIndex":40, "keyCode":"Key_N", "top":[339, 192], "bottom":[368, 225] }, + { "bIndex":46, "keyCode":"Key_M", "top":[382, 191], "bottom":[411, 224] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[424, 191], "bottom":[453, 224] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[466, 191], "bottom":[495, 224] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[509, 191], "bottom":[538, 224] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[553, 191], "bottom":[613, 224] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[628, 192], "bottom":[657, 225] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[30, 235], "bottom":[67, 268] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[84, 235], "bottom":[121, 268] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[138, 235], "bottom":[175, 268] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[189, 235], "bottom":[445, 268] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 236], "bottom":[487, 269] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[501, 236], "bottom":[530, 269] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[544, 237], "bottom":[573, 270] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[587, 237], "bottom":[616, 270] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[629, 237], "bottom":[658, 270] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[672, 237], "bottom":[701, 270] }, + { "bIndex":76, "keyCode":"Key_Left_Shift_Split", "top":[82, 192], "bottom":[111, 225] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[606, 107], "bottom":[656, 140] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/f6.json b/keyboards/configs/f6.json new file mode 100644 index 0000000..53a3e78 --- /dev/null +++ b/keyboards/configs/f6.json @@ -0,0 +1,96 @@ +{ + "pid":"f6", + "name":"RK-R87RGB Wired", + "rgb":true, + "top":[38, 23], + "bottom":[731, 266], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 24], "bottom":[62, 50] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[117, 24], "bottom":[140, 50] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[156, 24], "bottom":[179, 50] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[195, 24], "bottom":[218, 50] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[233, 24], "bottom":[256, 50] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[290, 24], "bottom":[313, 50] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[329, 24], "bottom":[352, 50] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[368, 24], "bottom":[391, 50] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[406, 24], "bottom":[429, 50] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[465, 23], "bottom":[488, 49] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[504, 23], "bottom":[527, 49] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[542, 23], "bottom":[565, 49] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[581, 23], "bottom":[604, 49] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[630, 24], "bottom":[653, 50] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[668, 24], "bottom":[691, 50] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[707, 24], "bottom":[730, 50] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 79], "bottom":[61, 105] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 78], "bottom":[100, 104] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 78], "bottom":[139, 104] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 79], "bottom":[178, 105] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 79], "bottom":[217, 105] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 79], "bottom":[256, 105] }, + { "bIndex":37, "keyCode":"Key_6", "top":[271, 79], "bottom":[294, 105] }, + { "bIndex":43, "keyCode":"Key_7", "top":[309, 79], "bottom":[332, 105] }, + { "bIndex":49, "keyCode":"Key_8", "top":[348, 79], "bottom":[371, 105] }, + { "bIndex":55, "keyCode":"Key_9", "top":[387, 78], "bottom":[410, 104] }, + { "bIndex":61, "keyCode":"Key_0", "top":[425, 78], "bottom":[448, 104] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[464, 79], "bottom":[487, 105] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[502, 79], "bottom":[525, 105] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[541, 78], "bottom":[602, 104] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[629, 83], "bottom":[652, 109] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[667, 83], "bottom":[690, 109] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[706, 83], "bottom":[729, 109] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 119], "bottom":[80, 145] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 119], "bottom":[120, 145] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 119], "bottom":[159, 145] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 119], "bottom":[198, 145] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 119], "bottom":[236, 145] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 118], "bottom":[275, 144] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 118], "bottom":[313, 144] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 118], "bottom":[352, 144] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 118], "bottom":[391, 144] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 119], "bottom":[429, 145] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 119], "bottom":[468, 145] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[484, 119], "bottom":[507, 145] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[522, 119], "bottom":[545, 145] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[562, 119], "bottom":[603, 145] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[628, 123], "bottom":[651, 149] }, + { "bIndex":92, "keyCode":"Key_End", "top":[667, 123], "bottom":[690, 149] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[706, 123], "bottom":[729, 149] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[38, 159], "bottom":[89, 185] }, + { "bIndex":9, "keyCode":"Key_A", "top":[106, 159], "bottom":[129, 185] }, + { "bIndex":15, "keyCode":"Key_S", "top":[144, 159], "bottom":[167, 185] }, + { "bIndex":21, "keyCode":"Key_D", "top":[183, 159], "bottom":[206, 185] }, + { "bIndex":27, "keyCode":"Key_F", "top":[222, 159], "bottom":[245, 185] }, + { "bIndex":33, "keyCode":"Key_G", "top":[261, 159], "bottom":[284, 185] }, + { "bIndex":39, "keyCode":"Key_H", "top":[300, 158], "bottom":[323, 184] }, + { "bIndex":45, "keyCode":"Key_J", "top":[338, 158], "bottom":[361, 184] }, + { "bIndex":51, "keyCode":"Key_K", "top":[377, 159], "bottom":[400, 185] }, + { "bIndex":57, "keyCode":"Key_L", "top":[416, 159], "bottom":[439, 185] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[455, 159], "bottom":[478, 185] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[493, 159], "bottom":[516, 185] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[38, 199], "bottom":[108, 225] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 199], "bottom":[149, 225] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 199], "bottom":[188, 225] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 199], "bottom":[227, 225] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 199], "bottom":[265, 225] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 199], "bottom":[304, 225] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 199], "bottom":[343, 225] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 199], "bottom":[381, 225] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 199], "bottom":[421, 225] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 199], "bottom":[459, 225] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[474, 199], "bottom":[497, 225] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[513, 199], "bottom":[602, 225] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[669, 199], "bottom":[692, 225] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[38, 239], "bottom":[70, 265] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[87, 239], "bottom":[119, 265] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[135, 239], "bottom":[167, 265] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[184, 239], "bottom":[409, 265] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[427, 239], "bottom":[459, 265] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[475, 239], "bottom":[507, 265] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[524, 239], "bottom":[556, 265] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[572, 239], "bottom":[604, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[630, 240], "bottom":[653, 266] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[669, 239], "bottom":[692, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[708, 240], "bottom":[731, 266] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[534, 159], "bottom":[603, 185] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/f7.json b/keyboards/configs/f7.json new file mode 100644 index 0000000..2ae66d3 --- /dev/null +++ b/keyboards/configs/f7.json @@ -0,0 +1,96 @@ +{ + "pid":"f7", + "name":"RK-R87 Wired", + "rgb":false, + "top":[37, 23], + "bottom":[730, 266], + "keys":[ + { "bIndex":6, "keyCode":"Key_Escape", "top":[40, 24], "bottom":[63, 50] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[117, 24], "bottom":[140, 50] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[156, 24], "bottom":[179, 50] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[195, 24], "bottom":[218, 50] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[233, 24], "bottom":[256, 50] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[290, 24], "bottom":[313, 50] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[329, 24], "bottom":[352, 50] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[368, 24], "bottom":[391, 50] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[406, 24], "bottom":[429, 50] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[465, 23], "bottom":[488, 49] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[504, 23], "bottom":[527, 49] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[542, 23], "bottom":[565, 49] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[581, 23], "bottom":[604, 49] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[630, 24], "bottom":[653, 50] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[668, 24], "bottom":[691, 50] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[707, 24], "bottom":[730, 50] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 79], "bottom":[61, 105] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 79], "bottom":[100, 105] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 79], "bottom":[139, 105] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 79], "bottom":[178, 105] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 79], "bottom":[217, 105] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 79], "bottom":[256, 105] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 79], "bottom":[295, 105] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 79], "bottom":[333, 105] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 79], "bottom":[372, 105] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 78], "bottom":[411, 104] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 78], "bottom":[449, 104] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[464, 79], "bottom":[487, 105] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[502, 79], "bottom":[525, 105] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[541, 78], "bottom":[602, 104] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[629, 79], "bottom":[652, 105] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[667, 79], "bottom":[690, 105] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[706, 79], "bottom":[729, 105] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[38, 119], "bottom":[79, 145] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 119], "bottom":[120, 145] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 119], "bottom":[159, 145] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 119], "bottom":[198, 145] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 119], "bottom":[236, 145] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 118], "bottom":[275, 144] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 118], "bottom":[313, 144] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 118], "bottom":[352, 144] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 118], "bottom":[391, 144] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 119], "bottom":[429, 145] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 119], "bottom":[468, 145] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[484, 119], "bottom":[507, 145] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[522, 119], "bottom":[545, 145] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[561, 118], "bottom":[602, 144] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[628, 119], "bottom":[651, 145] }, + { "bIndex":92, "keyCode":"Key_End", "top":[667, 119], "bottom":[690, 145] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[706, 119], "bottom":[729, 145] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[38, 159], "bottom":[89, 185] }, + { "bIndex":9, "keyCode":"Key_A", "top":[106, 159], "bottom":[129, 185] }, + { "bIndex":15, "keyCode":"Key_S", "top":[144, 159], "bottom":[167, 185] }, + { "bIndex":21, "keyCode":"Key_D", "top":[183, 159], "bottom":[206, 185] }, + { "bIndex":27, "keyCode":"Key_F", "top":[222, 159], "bottom":[245, 185] }, + { "bIndex":33, "keyCode":"Key_G", "top":[261, 159], "bottom":[284, 185] }, + { "bIndex":39, "keyCode":"Key_H", "top":[300, 158], "bottom":[323, 184] }, + { "bIndex":45, "keyCode":"Key_J", "top":[338, 158], "bottom":[361, 184] }, + { "bIndex":51, "keyCode":"Key_K", "top":[377, 158], "bottom":[400, 184] }, + { "bIndex":57, "keyCode":"Key_L", "top":[416, 158], "bottom":[439, 184] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[455, 158], "bottom":[478, 184] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[493, 158], "bottom":[516, 184] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[38, 198], "bottom":[108, 224] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[124, 199], "bottom":[147, 225] }, + { "bIndex":16, "keyCode":"Key_X", "top":[163, 198], "bottom":[186, 224] }, + { "bIndex":22, "keyCode":"Key_C", "top":[202, 198], "bottom":[225, 224] }, + { "bIndex":28, "keyCode":"Key_V", "top":[240, 198], "bottom":[263, 224] }, + { "bIndex":34, "keyCode":"Key_B", "top":[280, 198], "bottom":[303, 224] }, + { "bIndex":40, "keyCode":"Key_N", "top":[319, 198], "bottom":[342, 224] }, + { "bIndex":46, "keyCode":"Key_M", "top":[357, 198], "bottom":[380, 224] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[397, 198], "bottom":[420, 224] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[435, 198], "bottom":[458, 224] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[474, 198], "bottom":[497, 224] }, + { "bIndex":76, "keyCode":"Key_Right_Shift", "top":[513, 199], "bottom":[602, 225] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[668, 199], "bottom":[691, 225] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[37, 239], "bottom":[69, 265] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[87, 239], "bottom":[119, 265] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[135, 239], "bottom":[167, 265] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[184, 238], "bottom":[409, 264] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[426, 239], "bottom":[458, 265] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[474, 239], "bottom":[506, 265] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[523, 239], "bottom":[555, 265] }, + { "bIndex":77, "keyCode":"Key_Right_Control", "top":[571, 238], "bottom":[603, 264] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[630, 240], "bottom":[653, 266] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[669, 239], "bottom":[692, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[707, 240], "bottom":[730, 266] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[533, 159], "bottom":[602, 185] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/f8.json b/keyboards/configs/f8.json new file mode 100644 index 0000000..1eabcf8 --- /dev/null +++ b/keyboards/configs/f8.json @@ -0,0 +1,70 @@ +{ + "pid":"f8", + "name":"RK61plus RGB", + "rgb":true, + "top":[18, 16], + "bottom":[694, 236], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[18, 16], "bottom":[52, 51] }, + { "bIndex":59, "keyCode":"Key_Menu", "top":[537, 200], "bottom":[579, 235] }, + { "bIndex":7, "keyCode":"Key_1", "top":[65, 16], "bottom":[99, 51] }, + { "bIndex":13, "keyCode":"Key_2", "top":[111, 16], "bottom":[145, 51] }, + { "bIndex":19, "keyCode":"Key_3", "top":[156, 16], "bottom":[190, 51] }, + { "bIndex":25, "keyCode":"Key_4", "top":[202, 16], "bottom":[236, 51] }, + { "bIndex":31, "keyCode":"Key_5", "top":[248, 16], "bottom":[282, 51] }, + { "bIndex":37, "keyCode":"Key_6", "top":[294, 16], "bottom":[328, 51] }, + { "bIndex":43, "keyCode":"Key_7", "top":[340, 16], "bottom":[374, 51] }, + { "bIndex":49, "keyCode":"Key_8", "top":[385, 17], "bottom":[419, 52] }, + { "bIndex":55, "keyCode":"Key_9", "top":[431, 17], "bottom":[465, 52] }, + { "bIndex":61, "keyCode":"Key_0", "top":[477, 17], "bottom":[511, 52] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[523, 17], "bottom":[557, 52] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[568, 17], "bottom":[602, 52] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[619, 16], "bottom":[693, 51] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[22, 62], "bottom":[74, 97] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[87, 63], "bottom":[121, 98] }, + { "bIndex":14, "keyCode":"Key_W", "top":[133, 63], "bottom":[167, 98] }, + { "bIndex":20, "keyCode":"Key_E", "top":[179, 63], "bottom":[213, 98] }, + { "bIndex":26, "keyCode":"Key_R", "top":[225, 63], "bottom":[259, 98] }, + { "bIndex":32, "keyCode":"Key_T", "top":[271, 63], "bottom":[305, 98] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[317, 63], "bottom":[351, 98] }, + { "bIndex":44, "keyCode":"Key_U", "top":[362, 63], "bottom":[396, 98] }, + { "bIndex":50, "keyCode":"Key_I", "top":[408, 63], "bottom":[442, 98] }, + { "bIndex":56, "keyCode":"Key_O", "top":[453, 63], "bottom":[487, 98] }, + { "bIndex":62, "keyCode":"Key_P", "top":[499, 63], "bottom":[533, 98] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[546, 62], "bottom":[580, 97] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[591, 62], "bottom":[625, 97] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[641, 62], "bottom":[694, 97] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[22, 108], "bottom":[85, 143] }, + { "bIndex":9, "keyCode":"Key_A", "top":[99, 108], "bottom":[133, 143] }, + { "bIndex":15, "keyCode":"Key_S", "top":[144, 108], "bottom":[178, 143] }, + { "bIndex":21, "keyCode":"Key_D", "top":[190, 108], "bottom":[224, 143] }, + { "bIndex":27, "keyCode":"Key_F", "top":[236, 108], "bottom":[270, 143] }, + { "bIndex":33, "keyCode":"Key_G", "top":[281, 108], "bottom":[315, 143] }, + { "bIndex":39, "keyCode":"Key_H", "top":[328, 108], "bottom":[362, 143] }, + { "bIndex":45, "keyCode":"Key_J", "top":[373, 108], "bottom":[407, 143] }, + { "bIndex":51, "keyCode":"Key_K", "top":[419, 108], "bottom":[453, 143] }, + { "bIndex":57, "keyCode":"Key_L", "top":[465, 108], "bottom":[499, 143] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[512, 108], "bottom":[546, 143] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[556, 108], "bottom":[590, 143] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[21, 153], "bottom":[108, 188] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[121, 153], "bottom":[155, 188] }, + { "bIndex":16, "keyCode":"Key_X", "top":[167, 153], "bottom":[201, 188] }, + { "bIndex":22, "keyCode":"Key_C", "top":[213, 153], "bottom":[247, 188] }, + { "bIndex":28, "keyCode":"Key_V", "top":[259, 153], "bottom":[293, 188] }, + { "bIndex":34, "keyCode":"Key_B", "top":[305, 153], "bottom":[339, 188] }, + { "bIndex":40, "keyCode":"Key_N", "top":[351, 153], "bottom":[385, 188] }, + { "bIndex":46, "keyCode":"Key_M", "top":[397, 153], "bottom":[431, 188] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[442, 154], "bottom":[476, 189] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[489, 154], "bottom":[523, 189] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[534, 154], "bottom":[568, 189] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[585, 153], "bottom":[694, 188] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[21, 200], "bottom":[63, 235] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[79, 200], "bottom":[121, 235] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 200], "bottom":[179, 235] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[191, 199], "bottom":[465, 234] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[480, 200], "bottom":[522, 235] }, + { "bIndex":83, "keyCode":"Key_Fn", "top":[652, 200], "bottom":[694, 235] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[595, 201], "bottom":[637, 236] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[604, 108], "bottom":[693, 143] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/f9.json b/keyboards/configs/f9.json new file mode 100644 index 0000000..1e18cc9 --- /dev/null +++ b/keyboards/configs/f9.json @@ -0,0 +1,96 @@ +{ + "pid":"f9", + "name":"RK987RGB N ", + "rgb":true, + "top":[38, 25], + "bottom":[732, 267], + "keys":[ + { "bIndex":0, "keyCode":"Key_Escape", "top":[39, 27], "bottom":[62, 53] }, + { "bIndex":12, "keyCode":"Key_F1", "top":[116, 27], "bottom":[139, 53] }, + { "bIndex":18, "keyCode":"Key_F2", "top":[155, 27], "bottom":[178, 53] }, + { "bIndex":24, "keyCode":"Key_F3", "top":[194, 27], "bottom":[217, 53] }, + { "bIndex":30, "keyCode":"Key_F4", "top":[232, 27], "bottom":[255, 53] }, + { "bIndex":36, "keyCode":"Key_F5", "top":[291, 27], "bottom":[314, 53] }, + { "bIndex":42, "keyCode":"Key_F6", "top":[330, 27], "bottom":[353, 53] }, + { "bIndex":48, "keyCode":"Key_F7", "top":[369, 27], "bottom":[392, 53] }, + { "bIndex":54, "keyCode":"Key_F8", "top":[407, 27], "bottom":[430, 53] }, + { "bIndex":60, "keyCode":"Key_F9", "top":[466, 26], "bottom":[489, 52] }, + { "bIndex":66, "keyCode":"Key_F10", "top":[505, 26], "bottom":[528, 52] }, + { "bIndex":72, "keyCode":"Key_F11", "top":[543, 26], "bottom":[566, 52] }, + { "bIndex":78, "keyCode":"Key_F12", "top":[582, 26], "bottom":[605, 52] }, + { "bIndex":84, "keyCode":"Key_Print_Screen", "top":[631, 25], "bottom":[654, 51] }, + { "bIndex":90, "keyCode":"Key_Scroll_Lock", "top":[669, 25], "bottom":[692, 51] }, + { "bIndex":96, "keyCode":"Key_Pause", "top":[708, 25], "bottom":[731, 51] }, + { "bIndex":1, "keyCode":"Key_Back_Quote", "top":[38, 85], "bottom":[61, 111] }, + { "bIndex":7, "keyCode":"Key_1", "top":[77, 84], "bottom":[100, 110] }, + { "bIndex":13, "keyCode":"Key_2", "top":[116, 84], "bottom":[139, 110] }, + { "bIndex":19, "keyCode":"Key_3", "top":[155, 84], "bottom":[178, 110] }, + { "bIndex":25, "keyCode":"Key_4", "top":[194, 84], "bottom":[217, 110] }, + { "bIndex":31, "keyCode":"Key_5", "top":[233, 84], "bottom":[256, 110] }, + { "bIndex":37, "keyCode":"Key_6", "top":[272, 84], "bottom":[295, 110] }, + { "bIndex":43, "keyCode":"Key_7", "top":[310, 84], "bottom":[333, 110] }, + { "bIndex":49, "keyCode":"Key_8", "top":[349, 84], "bottom":[372, 110] }, + { "bIndex":55, "keyCode":"Key_9", "top":[388, 83], "bottom":[411, 109] }, + { "bIndex":61, "keyCode":"Key_0", "top":[426, 83], "bottom":[449, 109] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[466, 83], "bottom":[489, 109] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[504, 83], "bottom":[527, 109] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[543, 82], "bottom":[604, 108] }, + { "bIndex":85, "keyCode":"Key_Insert", "top":[631, 82], "bottom":[654, 108] }, + { "bIndex":91, "keyCode":"Key_Home", "top":[669, 82], "bottom":[692, 108] }, + { "bIndex":97, "keyCode":"Key_Page_Up", "top":[708, 82], "bottom":[731, 108] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[39, 124], "bottom":[80, 150] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[97, 124], "bottom":[120, 150] }, + { "bIndex":14, "keyCode":"Key_W", "top":[136, 124], "bottom":[159, 150] }, + { "bIndex":20, "keyCode":"Key_E", "top":[175, 124], "bottom":[198, 150] }, + { "bIndex":26, "keyCode":"Key_R", "top":[213, 124], "bottom":[236, 150] }, + { "bIndex":32, "keyCode":"Key_T", "top":[252, 123], "bottom":[275, 149] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[290, 123], "bottom":[313, 149] }, + { "bIndex":44, "keyCode":"Key_U", "top":[329, 123], "bottom":[352, 149] }, + { "bIndex":50, "keyCode":"Key_I", "top":[368, 123], "bottom":[391, 149] }, + { "bIndex":56, "keyCode":"Key_O", "top":[406, 123], "bottom":[429, 149] }, + { "bIndex":62, "keyCode":"Key_P", "top":[445, 123], "bottom":[468, 149] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[485, 123], "bottom":[508, 149] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[523, 123], "bottom":[546, 149] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[563, 122], "bottom":[604, 148] }, + { "bIndex":86, "keyCode":"Key_Delete", "top":[630, 122], "bottom":[653, 148] }, + { "bIndex":92, "keyCode":"Key_End", "top":[669, 122], "bottom":[692, 148] }, + { "bIndex":98, "keyCode":"Key_Page_Down", "top":[708, 122], "bottom":[731, 148] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[39, 163], "bottom":[90, 189] }, + { "bIndex":9, "keyCode":"Key_A", "top":[107, 163], "bottom":[130, 189] }, + { "bIndex":15, "keyCode":"Key_S", "top":[145, 163], "bottom":[168, 189] }, + { "bIndex":21, "keyCode":"Key_D", "top":[184, 163], "bottom":[207, 189] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 163], "bottom":[246, 189] }, + { "bIndex":33, "keyCode":"Key_G", "top":[262, 163], "bottom":[285, 189] }, + { "bIndex":39, "keyCode":"Key_H", "top":[301, 162], "bottom":[324, 188] }, + { "bIndex":45, "keyCode":"Key_J", "top":[339, 162], "bottom":[362, 188] }, + { "bIndex":51, "keyCode":"Key_K", "top":[378, 162], "bottom":[401, 188] }, + { "bIndex":57, "keyCode":"Key_L", "top":[417, 162], "bottom":[440, 188] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[456, 162], "bottom":[479, 188] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[495, 161], "bottom":[518, 187] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[40, 201], "bottom":[110, 227] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[126, 202], "bottom":[149, 228] }, + { "bIndex":16, "keyCode":"Key_X", "top":[165, 201], "bottom":[188, 227] }, + { "bIndex":22, "keyCode":"Key_C", "top":[204, 201], "bottom":[227, 227] }, + { "bIndex":28, "keyCode":"Key_V", "top":[242, 201], "bottom":[265, 227] }, + { "bIndex":34, "keyCode":"Key_B", "top":[281, 201], "bottom":[304, 227] }, + { "bIndex":40, "keyCode":"Key_N", "top":[320, 201], "bottom":[343, 227] }, + { "bIndex":46, "keyCode":"Key_M", "top":[358, 201], "bottom":[381, 227] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[398, 201], "bottom":[421, 227] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[436, 201], "bottom":[459, 227] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[475, 201], "bottom":[498, 227] }, + { "bIndex":82, "keyCode":"Key_Right_Shift", "top":[515, 200], "bottom":[604, 226] }, + { "bIndex":94, "keyCode":"Key_Up", "top":[670, 200], "bottom":[693, 226] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[39, 241], "bottom":[71, 267] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[89, 241], "bottom":[121, 267] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[137, 241], "bottom":[169, 267] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[186, 240], "bottom":[411, 266] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[428, 240], "bottom":[460, 266] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[476, 240], "bottom":[508, 266] }, + { "bIndex":65, "keyCode":"Key_Menu", "top":[525, 240], "bottom":[557, 266] }, + { "bIndex":83, "keyCode":"Key_Right_Control", "top":[573, 239], "bottom":[605, 265] }, + { "bIndex":89, "keyCode":"Key_Left", "top":[631, 239], "bottom":[654, 265] }, + { "bIndex":95, "keyCode":"Key_Down", "top":[670, 239], "bottom":[693, 265] }, + { "bIndex":101, "keyCode":"Key_Right", "top":[709, 239], "bottom":[732, 265] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[535, 161], "bottom":[604, 187] } + ] +} \ No newline at end of file diff --git a/keyboards/configs/ff.json b/keyboards/configs/ff.json new file mode 100644 index 0000000..2729b18 --- /dev/null +++ b/keyboards/configs/ff.json @@ -0,0 +1,77 @@ +{ + "pid":"ff", + "name":"RK68RGB N Bluetooth Dual Mode", + "rgb":true, + "top":[10, 11], + "bottom":[710, 232], + "keys":[ + { "bIndex":1, "keyCode":"Key_Escape", "top":[10, 11], "bottom":[39, 44] }, + { "bIndex":92, "keyCode":"Key_Delete", "top":[680, 58], "bottom":[709, 91] }, + { "bIndex":91, "keyCode":"Key_Back_Quote", "top":[680, 11], "bottom":[709, 44] }, + { "bIndex":7, "keyCode":"Key_1", "top":[54, 11], "bottom":[83, 44] }, + { "bIndex":13, "keyCode":"Key_2", "top":[98, 11], "bottom":[127, 44] }, + { "bIndex":19, "keyCode":"Key_3", "top":[144, 11], "bottom":[173, 44] }, + { "bIndex":25, "keyCode":"Key_4", "top":[188, 11], "bottom":[217, 44] }, + { "bIndex":31, "keyCode":"Key_5", "top":[232, 11], "bottom":[261, 44] }, + { "bIndex":37, "keyCode":"Key_6", "top":[277, 11], "bottom":[306, 44] }, + { "bIndex":43, "keyCode":"Key_7", "top":[322, 11], "bottom":[351, 44] }, + { "bIndex":49, "keyCode":"Key_8", "top":[366, 11], "bottom":[395, 44] }, + { "bIndex":55, "keyCode":"Key_9", "top":[411, 11], "bottom":[440, 44] }, + { "bIndex":61, "keyCode":"Key_0", "top":[456, 11], "bottom":[485, 44] }, + { "bIndex":67, "keyCode":"Key_Hyphen", "top":[501, 11], "bottom":[530, 44] }, + { "bIndex":73, "keyCode":"Key_Equals", "top":[547, 11], "bottom":[576, 44] }, + { "bIndex":79, "keyCode":"Key_Backspace", "top":[592, 11], "bottom":[663, 44] }, + { "bIndex":2, "keyCode":"Key_Tab", "top":[11, 58], "bottom":[60, 91] }, + { "bIndex":8, "keyCode":"Key_Q", "top":[78, 58], "bottom":[107, 91] }, + { "bIndex":14, "keyCode":"Key_W", "top":[124, 58], "bottom":[153, 91] }, + { "bIndex":20, "keyCode":"Key_E", "top":[168, 58], "bottom":[197, 91] }, + { "bIndex":26, "keyCode":"Key_R", "top":[212, 58], "bottom":[241, 91] }, + { "bIndex":32, "keyCode":"Key_T", "top":[257, 58], "bottom":[286, 91] }, + { "bIndex":38, "keyCode":"Key_Y", "top":[301, 58], "bottom":[330, 91] }, + { "bIndex":44, "keyCode":"Key_U", "top":[345, 58], "bottom":[374, 91] }, + { "bIndex":50, "keyCode":"Key_I", "top":[390, 58], "bottom":[419, 91] }, + { "bIndex":56, "keyCode":"Key_O", "top":[435, 58], "bottom":[464, 91] }, + { "bIndex":62, "keyCode":"Key_P", "top":[480, 58], "bottom":[509, 91] }, + { "bIndex":68, "keyCode":"Key_Left_Bracket", "top":[524, 58], "bottom":[553, 91] }, + { "bIndex":74, "keyCode":"Key_Right_Bracket", "top":[569, 58], "bottom":[598, 91] }, + { "bIndex":80, "keyCode":"Key_Back_Slash", "top":[613, 57], "bottom":[663, 90] }, + { "bIndex":94, "keyCode":"Key_Page_Down", "top":[680, 151], "bottom":[709, 184] }, + { "bIndex":93, "keyCode":"Key_Page_Up", "top":[680, 105], "bottom":[709, 138] }, + { "bIndex":3, "keyCode":"Key_Caps_Lock", "top":[12, 104], "bottom":[72, 137] }, + { "bIndex":9, "keyCode":"Key_A", "top":[87, 104], "bottom":[116, 137] }, + { "bIndex":15, "keyCode":"Key_S", "top":[134, 104], "bottom":[163, 137] }, + { "bIndex":21, "keyCode":"Key_D", "top":[178, 104], "bottom":[207, 137] }, + { "bIndex":27, "keyCode":"Key_F", "top":[223, 104], "bottom":[252, 137] }, + { "bIndex":33, "keyCode":"Key_G", "top":[267, 104], "bottom":[296, 137] }, + { "bIndex":39, "keyCode":"Key_H", "top":[311, 104], "bottom":[340, 137] }, + { "bIndex":45, "keyCode":"Key_J", "top":[356, 104], "bottom":[385, 137] }, + { "bIndex":51, "keyCode":"Key_K", "top":[400, 104], "bottom":[429, 137] }, + { "bIndex":57, "keyCode":"Key_L", "top":[445, 104], "bottom":[474, 137] }, + { "bIndex":63, "keyCode":"Key_Semi_Colon", "top":[490, 104], "bottom":[519, 137] }, + { "bIndex":69, "keyCode":"Key_Quote", "top":[534, 104], "bottom":[563, 137] }, + { "bIndex":4, "keyCode":"Key_Left_Shift", "top":[11, 150], "bottom":[93, 183] }, + { "bIndex":10, "keyCode":"Key_Z", "top":[109, 150], "bottom":[138, 183] }, + { "bIndex":16, "keyCode":"Key_X", "top":[155, 150], "bottom":[184, 183] }, + { "bIndex":22, "keyCode":"Key_C", "top":[199, 150], "bottom":[228, 183] }, + { "bIndex":28, "keyCode":"Key_V", "top":[244, 150], "bottom":[273, 183] }, + { "bIndex":34, "keyCode":"Key_B", "top":[289, 150], "bottom":[318, 183] }, + { "bIndex":40, "keyCode":"Key_N", "top":[334, 150], "bottom":[363, 183] }, + { "bIndex":46, "keyCode":"Key_M", "top":[378, 150], "bottom":[407, 183] }, + { "bIndex":52, "keyCode":"Key_Comma", "top":[423, 150], "bottom":[452, 183] }, + { "bIndex":58, "keyCode":"Key_Dot", "top":[468, 150], "bottom":[497, 183] }, + { "bIndex":64, "keyCode":"Key_Slash", "top":[514, 150], "bottom":[543, 183] }, + { "bIndex":70, "keyCode":"Key_Right_Shift", "top":[557, 150], "bottom":[617, 183] }, + { "bIndex":88, "keyCode":"Key_Up", "top":[635, 151], "bottom":[664, 184] }, + { "bIndex":5, "keyCode":"Key_Left_Control", "top":[10, 197], "bottom":[47, 230] }, + { "bIndex":11, "keyCode":"Key_Left_Super", "top":[65, 197], "bottom":[102, 230] }, + { "bIndex":17, "keyCode":"Key_Left_Alt", "top":[121, 197], "bottom":[158, 230] }, + { "bIndex":35, "keyCode":"Key_Space", "top":[176, 197], "bottom":[440, 230] }, + { "bIndex":53, "keyCode":"Key_Right_Alt", "top":[458, 198], "bottom":[487, 231] }, + { "bIndex":59, "keyCode":"Key_Fn", "top":[502, 198], "bottom":[531, 231] }, + { "bIndex":65, "keyCode":"Key_Right_Control", "top":[547, 199], "bottom":[576, 232] }, + { "bIndex":83, "keyCode":"Key_Left", "top":[591, 198], "bottom":[620, 231] }, + { "bIndex":89, "keyCode":"Key_Down", "top":[636, 198], "bottom":[665, 231] }, + { "bIndex":95, "keyCode":"Key_Right", "top":[681, 198], "bottom":[710, 231] }, + { "bIndex":81, "keyCode":"Key_Enter", "top":[580, 104], "bottom":[662, 137] } + ] +} \ No newline at end of file diff --git a/keyboards/images/102.png b/keyboards/images/102.png new file mode 100644 index 0000000..cd5614b Binary files /dev/null and b/keyboards/images/102.png differ diff --git a/keyboards/images/103.png b/keyboards/images/103.png new file mode 100644 index 0000000..f3306ff Binary files /dev/null and b/keyboards/images/103.png differ diff --git a/keyboards/images/10a.png b/keyboards/images/10a.png new file mode 100644 index 0000000..dce5f56 Binary files /dev/null and b/keyboards/images/10a.png differ diff --git a/keyboards/images/10d.png b/keyboards/images/10d.png new file mode 100644 index 0000000..2c8e14d Binary files /dev/null and b/keyboards/images/10d.png differ diff --git a/keyboards/images/1ff.png b/keyboards/images/1ff.png new file mode 100644 index 0000000..64fa7f0 Binary files /dev/null and b/keyboards/images/1ff.png differ diff --git a/keyboards/images/2a.png b/keyboards/images/2a.png new file mode 100644 index 0000000..410e1bc Binary files /dev/null and b/keyboards/images/2a.png differ diff --git a/keyboards/images/48.png b/keyboards/images/48.png new file mode 100644 index 0000000..d96d46b Binary files /dev/null and b/keyboards/images/48.png differ diff --git a/keyboards/images/49.png b/keyboards/images/49.png new file mode 100644 index 0000000..dce5f56 Binary files /dev/null and b/keyboards/images/49.png differ diff --git a/keyboards/images/4a.png b/keyboards/images/4a.png new file mode 100644 index 0000000..fb6d015 Binary files /dev/null and b/keyboards/images/4a.png differ diff --git a/keyboards/images/4b.png b/keyboards/images/4b.png new file mode 100644 index 0000000..410e1bc Binary files /dev/null and b/keyboards/images/4b.png differ diff --git a/keyboards/images/4c.png b/keyboards/images/4c.png new file mode 100644 index 0000000..64fa7f0 Binary files /dev/null and b/keyboards/images/4c.png differ diff --git a/keyboards/images/4d.png b/keyboards/images/4d.png new file mode 100644 index 0000000..c7f22df Binary files /dev/null and b/keyboards/images/4d.png differ diff --git a/keyboards/images/4e.png b/keyboards/images/4e.png new file mode 100644 index 0000000..c7f22df Binary files /dev/null and b/keyboards/images/4e.png differ diff --git a/keyboards/images/4f.png b/keyboards/images/4f.png new file mode 100644 index 0000000..64fa7f0 Binary files /dev/null and b/keyboards/images/4f.png differ diff --git a/keyboards/images/52.png b/keyboards/images/52.png new file mode 100644 index 0000000..4d288e2 Binary files /dev/null and b/keyboards/images/52.png differ diff --git a/keyboards/images/53.png b/keyboards/images/53.png new file mode 100644 index 0000000..9af73ea Binary files /dev/null and b/keyboards/images/53.png differ diff --git a/keyboards/images/54.png b/keyboards/images/54.png new file mode 100644 index 0000000..64fa7f0 Binary files /dev/null and b/keyboards/images/54.png differ diff --git a/keyboards/images/55.png b/keyboards/images/55.png new file mode 100644 index 0000000..fb6d015 Binary files /dev/null and b/keyboards/images/55.png differ diff --git a/keyboards/images/56.png b/keyboards/images/56.png new file mode 100644 index 0000000..410e1bc Binary files /dev/null and b/keyboards/images/56.png differ diff --git a/keyboards/images/57.png b/keyboards/images/57.png new file mode 100644 index 0000000..2c8e14d Binary files /dev/null and b/keyboards/images/57.png differ diff --git a/keyboards/images/58.png b/keyboards/images/58.png new file mode 100644 index 0000000..0493834 Binary files /dev/null and b/keyboards/images/58.png differ diff --git a/keyboards/images/59.png b/keyboards/images/59.png new file mode 100644 index 0000000..92891b8 Binary files /dev/null and b/keyboards/images/59.png differ diff --git a/keyboards/images/5a.png b/keyboards/images/5a.png new file mode 100644 index 0000000..c7f22df Binary files /dev/null and b/keyboards/images/5a.png differ diff --git a/keyboards/images/5b.png b/keyboards/images/5b.png new file mode 100644 index 0000000..64fa7f0 Binary files /dev/null and b/keyboards/images/5b.png differ diff --git a/keyboards/images/5c.png b/keyboards/images/5c.png new file mode 100644 index 0000000..a7aa5e6 Binary files /dev/null and b/keyboards/images/5c.png differ diff --git a/keyboards/images/5d.png b/keyboards/images/5d.png new file mode 100644 index 0000000..2c8e14d Binary files /dev/null and b/keyboards/images/5d.png differ diff --git a/keyboards/images/5e.png b/keyboards/images/5e.png new file mode 100644 index 0000000..dce5f56 Binary files /dev/null and b/keyboards/images/5e.png differ diff --git a/keyboards/images/60.png b/keyboards/images/60.png new file mode 100644 index 0000000..fb6d015 Binary files /dev/null and b/keyboards/images/60.png differ diff --git a/keyboards/images/64.png b/keyboards/images/64.png new file mode 100644 index 0000000..1b89d6a Binary files /dev/null and b/keyboards/images/64.png differ diff --git a/keyboards/images/65.png b/keyboards/images/65.png new file mode 100644 index 0000000..e4f6d96 Binary files /dev/null and b/keyboards/images/65.png differ diff --git a/keyboards/images/66.png b/keyboards/images/66.png new file mode 100644 index 0000000..13a7549 Binary files /dev/null and b/keyboards/images/66.png differ diff --git a/keyboards/images/67.png b/keyboards/images/67.png new file mode 100644 index 0000000..ad433ef Binary files /dev/null and b/keyboards/images/67.png differ diff --git a/keyboards/images/68.png b/keyboards/images/68.png new file mode 100644 index 0000000..b9c706e Binary files /dev/null and b/keyboards/images/68.png differ diff --git a/keyboards/images/69.png b/keyboards/images/69.png new file mode 100644 index 0000000..07caa03 Binary files /dev/null and b/keyboards/images/69.png differ diff --git a/keyboards/images/6a.png b/keyboards/images/6a.png new file mode 100644 index 0000000..c7f22df Binary files /dev/null and b/keyboards/images/6a.png differ diff --git a/keyboards/images/6b.png b/keyboards/images/6b.png new file mode 100644 index 0000000..64fa7f0 Binary files /dev/null and b/keyboards/images/6b.png differ diff --git a/keyboards/images/6f.png b/keyboards/images/6f.png new file mode 100644 index 0000000..d96d46b Binary files /dev/null and b/keyboards/images/6f.png differ diff --git a/keyboards/images/70.png b/keyboards/images/70.png new file mode 100644 index 0000000..8dac465 Binary files /dev/null and b/keyboards/images/70.png differ diff --git a/keyboards/images/74.png b/keyboards/images/74.png new file mode 100644 index 0000000..640370e Binary files /dev/null and b/keyboards/images/74.png differ diff --git a/keyboards/images/75.png b/keyboards/images/75.png new file mode 100644 index 0000000..504a1b2 Binary files /dev/null and b/keyboards/images/75.png differ diff --git a/keyboards/images/78.png b/keyboards/images/78.png new file mode 100644 index 0000000..af47d9d Binary files /dev/null and b/keyboards/images/78.png differ diff --git a/keyboards/images/79.png b/keyboards/images/79.png new file mode 100644 index 0000000..0fd3421 Binary files /dev/null and b/keyboards/images/79.png differ diff --git a/keyboards/images/7a.png b/keyboards/images/7a.png new file mode 100644 index 0000000..fb6d015 Binary files /dev/null and b/keyboards/images/7a.png differ diff --git a/keyboards/images/7b.png b/keyboards/images/7b.png new file mode 100644 index 0000000..73759eb Binary files /dev/null and b/keyboards/images/7b.png differ diff --git a/keyboards/images/7c.png b/keyboards/images/7c.png new file mode 100644 index 0000000..dce5f56 Binary files /dev/null and b/keyboards/images/7c.png differ diff --git a/keyboards/images/7d.png b/keyboards/images/7d.png new file mode 100644 index 0000000..8ec9e52 Binary files /dev/null and b/keyboards/images/7d.png differ diff --git a/keyboards/images/89.png b/keyboards/images/89.png new file mode 100644 index 0000000..6e22a9c Binary files /dev/null and b/keyboards/images/89.png differ diff --git a/keyboards/images/8b.png b/keyboards/images/8b.png new file mode 100644 index 0000000..4d288e2 Binary files /dev/null and b/keyboards/images/8b.png differ diff --git a/keyboards/images/8c.png b/keyboards/images/8c.png new file mode 100644 index 0000000..26e8ac0 Binary files /dev/null and b/keyboards/images/8c.png differ diff --git a/keyboards/images/8e.png b/keyboards/images/8e.png new file mode 100644 index 0000000..dce5f56 Binary files /dev/null and b/keyboards/images/8e.png differ diff --git a/keyboards/images/8f.png b/keyboards/images/8f.png new file mode 100644 index 0000000..4689e9f Binary files /dev/null and b/keyboards/images/8f.png differ diff --git a/keyboards/images/9c.png b/keyboards/images/9c.png new file mode 100644 index 0000000..6317c2b Binary files /dev/null and b/keyboards/images/9c.png differ diff --git a/keyboards/images/9e.png b/keyboards/images/9e.png new file mode 100644 index 0000000..e93e8e8 Binary files /dev/null and b/keyboards/images/9e.png differ diff --git a/keyboards/images/a2.png b/keyboards/images/a2.png new file mode 100644 index 0000000..618134d Binary files /dev/null and b/keyboards/images/a2.png differ diff --git a/keyboards/images/a4.png b/keyboards/images/a4.png new file mode 100644 index 0000000..98c1db7 Binary files /dev/null and b/keyboards/images/a4.png differ diff --git a/keyboards/images/a5.png b/keyboards/images/a5.png new file mode 100644 index 0000000..fbc5760 Binary files /dev/null and b/keyboards/images/a5.png differ diff --git a/keyboards/images/a6.png b/keyboards/images/a6.png new file mode 100644 index 0000000..8b60518 Binary files /dev/null and b/keyboards/images/a6.png differ diff --git a/keyboards/images/a9.png b/keyboards/images/a9.png new file mode 100644 index 0000000..aea3220 Binary files /dev/null and b/keyboards/images/a9.png differ diff --git a/keyboards/images/aa.png b/keyboards/images/aa.png new file mode 100644 index 0000000..9a0d0a0 Binary files /dev/null and b/keyboards/images/aa.png differ diff --git a/keyboards/images/b3.png b/keyboards/images/b3.png new file mode 100644 index 0000000..ff533c4 Binary files /dev/null and b/keyboards/images/b3.png differ diff --git a/keyboards/images/b5.png b/keyboards/images/b5.png new file mode 100644 index 0000000..ebb6c07 Binary files /dev/null and b/keyboards/images/b5.png differ diff --git a/keyboards/images/b8.png b/keyboards/images/b8.png new file mode 100644 index 0000000..f04d4b4 Binary files /dev/null and b/keyboards/images/b8.png differ diff --git a/keyboards/images/c0.png b/keyboards/images/c0.png new file mode 100644 index 0000000..0e526b3 Binary files /dev/null and b/keyboards/images/c0.png differ diff --git a/keyboards/images/c1.png b/keyboards/images/c1.png new file mode 100644 index 0000000..9bd0ec7 Binary files /dev/null and b/keyboards/images/c1.png differ diff --git a/keyboards/images/c3.png b/keyboards/images/c3.png new file mode 100644 index 0000000..189073f Binary files /dev/null and b/keyboards/images/c3.png differ diff --git a/keyboards/images/c4.png b/keyboards/images/c4.png new file mode 100644 index 0000000..88a4efc Binary files /dev/null and b/keyboards/images/c4.png differ diff --git a/keyboards/images/c6.png b/keyboards/images/c6.png new file mode 100644 index 0000000..f11d58e Binary files /dev/null and b/keyboards/images/c6.png differ diff --git a/keyboards/images/c8.png b/keyboards/images/c8.png new file mode 100644 index 0000000..5432b9f Binary files /dev/null and b/keyboards/images/c8.png differ diff --git a/keyboards/images/c9.png b/keyboards/images/c9.png new file mode 100644 index 0000000..1dc79fd Binary files /dev/null and b/keyboards/images/c9.png differ diff --git a/keyboards/images/cd.png b/keyboards/images/cd.png new file mode 100644 index 0000000..ae4138f Binary files /dev/null and b/keyboards/images/cd.png differ diff --git a/keyboards/images/d6.png b/keyboards/images/d6.png new file mode 100644 index 0000000..b4369ab Binary files /dev/null and b/keyboards/images/d6.png differ diff --git a/keyboards/images/d8.png b/keyboards/images/d8.png new file mode 100644 index 0000000..d5e6968 Binary files /dev/null and b/keyboards/images/d8.png differ diff --git a/keyboards/images/da.png b/keyboards/images/da.png new file mode 100644 index 0000000..c092acb Binary files /dev/null and b/keyboards/images/da.png differ diff --git a/keyboards/images/de.png b/keyboards/images/de.png new file mode 100644 index 0000000..be8e921 Binary files /dev/null and b/keyboards/images/de.png differ diff --git a/keyboards/images/e0.png b/keyboards/images/e0.png new file mode 100644 index 0000000..e5a7098 Binary files /dev/null and b/keyboards/images/e0.png differ diff --git a/keyboards/images/e1.png b/keyboards/images/e1.png new file mode 100644 index 0000000..78ab13d Binary files /dev/null and b/keyboards/images/e1.png differ diff --git a/keyboards/images/e7.png b/keyboards/images/e7.png new file mode 100644 index 0000000..750a183 Binary files /dev/null and b/keyboards/images/e7.png differ diff --git a/keyboards/images/ea.png b/keyboards/images/ea.png new file mode 100644 index 0000000..c1df74b Binary files /dev/null and b/keyboards/images/ea.png differ diff --git a/keyboards/images/ec.png b/keyboards/images/ec.png new file mode 100644 index 0000000..829778c Binary files /dev/null and b/keyboards/images/ec.png differ diff --git a/keyboards/images/ed.png b/keyboards/images/ed.png new file mode 100644 index 0000000..5e0bfaa Binary files /dev/null and b/keyboards/images/ed.png differ diff --git a/keyboards/images/ef.png b/keyboards/images/ef.png new file mode 100644 index 0000000..73a0038 Binary files /dev/null and b/keyboards/images/ef.png differ diff --git a/keyboards/images/f3.png b/keyboards/images/f3.png new file mode 100644 index 0000000..80139ca Binary files /dev/null and b/keyboards/images/f3.png differ diff --git a/keyboards/images/f4.png b/keyboards/images/f4.png new file mode 100644 index 0000000..33f8d35 Binary files /dev/null and b/keyboards/images/f4.png differ diff --git a/keyboards/images/f6.png b/keyboards/images/f6.png new file mode 100644 index 0000000..7028f1e Binary files /dev/null and b/keyboards/images/f6.png differ diff --git a/keyboards/images/f7.png b/keyboards/images/f7.png new file mode 100644 index 0000000..a6d8c3a Binary files /dev/null and b/keyboards/images/f7.png differ diff --git a/keyboards/images/f8.png b/keyboards/images/f8.png new file mode 100644 index 0000000..dc5dd4c Binary files /dev/null and b/keyboards/images/f8.png differ diff --git a/keyboards/images/f9.png b/keyboards/images/f9.png new file mode 100644 index 0000000..c993a35 Binary files /dev/null and b/keyboards/images/f9.png differ diff --git a/keyboards/images/ff.png b/keyboards/images/ff.png new file mode 100644 index 0000000..ad83122 Binary files /dev/null and b/keyboards/images/ff.png differ diff --git a/keyboards/list.json b/keyboards/list.json new file mode 100644 index 0000000..708fc91 --- /dev/null +++ b/keyboards/list.json @@ -0,0 +1,93 @@ +{ + "vid":"258a", + "pids": [ + "49", + "55", + "56", + "59", + "5d", + "5e", + "5a", + "6f", + "69", + "4a", + "4b", + "4d", + "4c", + "5b", + "68", + "65", + "5c", + "64", + "75", + "7a", + "67", + "70", + "a2", + "4f", + "7c", + "7d", + "89", + "78", + "8c", + "79", + "a9", + "aa", + "7b", + "c1", + "c3", + "c4", + "8f", + "c6", + "b3", + "d8", + "e1", + "c8", + "e0", + "ec", + "ea", + "de", + "b5", + "52", + "60", + "2a", + "57", + "8b", + "4e", + "6a", + "48", + "54", + "a4", + "58", + "b8", + "53", + "66", + "6b", + "74", + "a6", + "8e", + "cd", + "c0", + "9e", + "9c", + "f3", + "ed", + "d6", + "ef", + "f4", + "f8", + "c9", + "f6", + "f7", + "f9", + "e7", + "da", + "ff", + "103", + "a5", + "102", + "10d", + "10a", + "1ff" + ] +} diff --git a/screenshots/README.md b/screenshots/README.md new file mode 100644 index 0000000..ee7b19b --- /dev/null +++ b/screenshots/README.md @@ -0,0 +1,33 @@ +# Screenshots + +These screenshots were taken in Light theme with the default accent colour. + +### Home + +![home.png](https://raw.githubusercontent.com/rnayabed/rangoli/master/screenshots/home.png) + +### LED mode with Custom Mode selected + +![led-custom.png](https://raw.githubusercontent.com/rnayabed/rangoli/master/screenshots/led-custom.png) + +### LED mode with Custom Mode selected + +![led-flash-away.png](https://raw.githubusercontent.com/rnayabed/rangoli/master/screenshots/led-flash-away.png) + +### Key Map Mode + +![key-map.png](https://raw.githubusercontent.com/rnayabed/rangoli/master/screenshots/key-map.png) + +### Key Map Mode with configuration prompt + +![key-map-configure.png](https://raw.githubusercontent.com/rnayabed/rangoli/master/screenshots/key-map-configure.png) + +### Colour Picker + +![colour-picker.png](https://raw.githubusercontent.com/rnayabed/rangoli/master/screenshots/colour-picker.png) + +### Settings + +![settings.png](https://raw.githubusercontent.com/rnayabed/rangoli/master/screenshots/settings.png) + + diff --git a/screenshots/colour-picker.png b/screenshots/colour-picker.png new file mode 100644 index 0000000..259266c Binary files /dev/null and b/screenshots/colour-picker.png differ diff --git a/screenshots/home.png b/screenshots/home.png new file mode 100644 index 0000000..e234e6e Binary files /dev/null and b/screenshots/home.png differ diff --git a/screenshots/key-map-configure.png b/screenshots/key-map-configure.png new file mode 100644 index 0000000..676dfb9 Binary files /dev/null and b/screenshots/key-map-configure.png differ diff --git a/screenshots/key-map.png b/screenshots/key-map.png new file mode 100644 index 0000000..e8237bd Binary files /dev/null and b/screenshots/key-map.png differ diff --git a/screenshots/led-custom.png b/screenshots/led-custom.png new file mode 100644 index 0000000..a5afa5e Binary files /dev/null and b/screenshots/led-custom.png differ diff --git a/screenshots/led-flash-away.png b/screenshots/led-flash-away.png new file mode 100644 index 0000000..01f2b2d Binary files /dev/null and b/screenshots/led-flash-away.png differ diff --git a/screenshots/main.png b/screenshots/main.png new file mode 100644 index 0000000..057109b Binary files /dev/null and b/screenshots/main.png differ diff --git a/screenshots/settings.png b/screenshots/settings.png new file mode 100644 index 0000000..d9e5e22 Binary files /dev/null and b/screenshots/settings.png differ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..d7087a8 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,108 @@ +#[[ +Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + +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 3 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. +]] + +set(SOURCE_LIST + main.cpp + resources.qrc + key.h key.cpp + keyboard.h keyboard.cpp + profile.h profile.cpp + mode.h mode.cpp + hidconnection.h hidconnection.cpp + hidconnectionworker.h hidconnectionworker.cpp + keycode.h + enhanceddialog.h enhanceddialog.cpp + icons.h icons.cpp + mainwindowcontroller.h mainwindowcontroller.cpp + keyboardmodel.h keyboardmodel.cpp + keyboardconfiguratorcontroller.h keyboardconfiguratorcontroller.cpp + customlightmodekeys.h customlightmodekeys.cpp + modemodel.h modemodel.cpp + profilemodel.h profilemodel.cpp + settingscontroller.h settingscontroller.cpp + customcolours.h customcolours.cpp + custommappedkeys.h custommappedkeys.cpp + keycodemodel.h keycodemodel.cpp + keycodemodelproxy.h keycodemodelproxy.cpp + startatboot.h startatboot.cpp +) + +if (WIN32) + list(APPEND SOURCE_LIST icon_windows.rc) +endif() + +qt_add_executable(rangoli ${SOURCE_LIST}) + +qt_add_qml_module(rangoli + URI Rangoli + VERSION 1.0 + QML_FILES + Main.qml + EnhancedDialog.qml + KeyboardMenuButton.qml + KeyboardConfigurator.qml + Settings.qml + Hyperlink.qml +) + +set_target_properties(rangoli PROPERTIES + MACOSX_BUNDLE_GUI_IDENTIFIER io.github.rnayabed.rangoli + MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} + MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} + MACOSX_BUNDLE TRUE + WIN32_EXECUTABLE TRUE +) + +if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + target_compile_options(rangoli PRIVATE -Wpessimizing-move -Wpedantic) +endif() + +target_compile_options(rangoli PRIVATE -Wall -Wextra -Werror) + +target_link_libraries(rangoli + PRIVATE Qt6::Quick + PRIVATE hidapi::hidapi) + +install(TARGETS rangoli + BUNDLE DESTINATION . + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + +add_custom_command( + TARGET rangoli POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory + "${CMAKE_SOURCE_DIR}/keyboards" + "${CMAKE_CURRENT_BINARY_DIR}/keyboards") + +install(DIRECTORY "${CMAKE_SOURCE_DIR}/keyboards" + DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") + +if (UNIX AND NOT APPLE) + add_custom_command( + TARGET rangoli POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy + "${CMAKE_CURRENT_SOURCE_DIR}/${LINUX_UDEV_RULE_WRITER_NAME}" + "${CMAKE_CURRENT_BINARY_DIR}") + + install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/${LINUX_UDEV_RULE_WRITER_NAME}" + DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") +endif() + +if (WIN32 OR APPLE) + qt_generate_deploy_qml_app_script( + TARGET rangoli + FILENAME_VARIABLE deploy_script + NO_UNSUPPORTED_PLATFORM_ERROR + ) + + install(SCRIPT ${deploy_script}) +endif() diff --git a/src/EnhancedDialog.qml b/src/EnhancedDialog.qml new file mode 100644 index 0000000..beb0416 --- /dev/null +++ b/src/EnhancedDialog.qml @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +import QtQuick +import QtQuick.Controls +import QtQuick.Dialogs + +import Rangoli + +Dialog +{ + id: dialog + property var controller + + Component.onCompleted: { + switch (controller.buttonsType) { + case 0: + dialog.standardButtons = Dialog.Ok + break + case 1: + dialog.standardButtons = Dialog.Yes | Dialog.No + break + } + + open() + } + + anchors.centerIn: parent + margins: 10 + modal: true + closePolicy: Popup.NoAutoClose + title: controller.title + + Label { + anchors.fill: parent + wrapMode: Label.Wrap + text: controller.text + } + + onClosed: { + controller.onClosed() + } + + onAccepted: { + controller.onAccepted() + } + + onRejected: { + controller.onRejected() + } +} diff --git a/src/Hyperlink.qml b/src/Hyperlink.qml new file mode 100644 index 0000000..d413bba --- /dev/null +++ b/src/Hyperlink.qml @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +import QtQuick +import QtQuick.Controls + +Label { + property alias mouseArea: mouseArea + + font.underline: true + color: Material.accent + + MouseArea { + id: mouseArea + anchors.fill: parent + cursorShape: Qt.PointingHandCursor + } +} diff --git a/src/KeyboardConfigurator.qml b/src/KeyboardConfigurator.qml new file mode 100644 index 0000000..afbfb4f --- /dev/null +++ b/src/KeyboardConfigurator.qml @@ -0,0 +1,1497 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +import QtQuick +import QtQuick.Controls +import QtQuick.Dialogs +import QtQuick.Layouts +import QtQuick.Controls.Material +import QtQuick.Controls.Material.impl + +import Rangoli + +Item { + id: kbConfigurator + + Connections { + target: keyboardConfiguratorController + + function onLoadName(name) + { + kbName.text = name + } + + function onLoadImage(source) + { + kbCanvas.loadImageSource(source) + } + + function onCustomLightModeKeysChanged() + { + kbCanvas.requestPaint() + } + + function onIsCustomLightModeSelectedChanged() + { + kbCanvas.requestPaint() + } + + function onSelectedModeChanged() + { + kbCanvas.requestPaint() + } + + function onSelectedColourChanged() + { + if (!keyboardConfiguratorController.isCustomLightModeSelected) + { + kbCanvas.requestPaint() + } + } + + function onRandomColoursChanged() + { + kbCanvas.requestPaint() + } + + function onOpenConfigureKeyMapPopup() + { + configureKeyMapPopup.open() + keyMapClickKeyToEditPrompt.opacity = 0 + } + + function onRequestKbCanvasPaint() + { + kbCanvas.requestPaint() + } + } + + signal returnToHome() + signal openSettings() + + readonly property int animationDuration: 200 + + Popup { + id: profileNameEditorPopup + + anchors.centerIn: parent + margins: 10 + modal: true + + property int index: -1 + + function showNew() + { + show(-1, null) + } + + function show(index, name) + { + this.index = index + + if (this.index > -1) + { + profileNameTextField.text = name + } + + open() + } + + Column { + anchors.fill: parent + + spacing: 10 + + Label { + text: (profileNameEditorPopup.index === -1) ? qsTr("New Profile") : qsTr("Edit Profile") + font.bold: true + font.pixelSize: 15 + bottomPadding: 10 + } + + Label { + text: qsTr("Name"); + } + + TextField { + id: profileNameTextField + } + + Row { + anchors { + right: parent.right + } + + spacing: 10 + + Button { + text: qsTr("Save") + flat: true + highlighted: true + + enabled: profileNameTextField.text.length > 0 + + onClicked: { + profileNameEditorPopup.close() + + if (profileNameEditorPopup.index == -1) + { + keyboardConfiguratorController.createAndSelectNewProfile(profileNameTextField.text) + editProfilesPopup.close() + } + else + { + keyboardConfiguratorController.setProfileName( + profileNameEditorPopup.index, + profileNameTextField.text) + } + + } + } + + Button { + text: qsTr("Close") + flat: true + highlighted: true + + onClicked: profileNameEditorPopup.close() + } + } + } + } + + Popup { + id: editProfilesPopup + + anchors.centerIn: parent + margins: 10 + modal: true + + Column { + spacing: 10 + + Item { + width: parent.width + height: Math.max(editProfilesLabel.implicitHeight, newProfileButton.implicitHeight) + + Label { + id: editProfilesLabel + + anchors { + left: parent.left + verticalCenter: parent.verticalCenter + } + + text: qsTr("Edit Profiles") + font.bold: true + font.pixelSize: 15 + } + + RoundButton { + id: newProfileButton + + anchors { + right: parent.right + verticalCenter: parent.verticalCenter + } + + flat: true + icon.source: Icons.get(Icons.Add) + + onClicked: profileNameEditorPopup.showNew() + + ToolTip.visible: hovered + ToolTip.text: qsTr("Add new profile") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + } + + ListView { + + id: editProfilesListView + + clip: true + + height: 200 + width: 300 + + model: keyboardConfiguratorController.profiles + + ScrollBar.vertical: ScrollBar { + policy: ScrollBar.AsNeeded + } + + delegate: Row { + + Label { + text: model.name + + width: editProfilesListView.width - profileEditButton.width - profileDeleteButton.width - + editProfilesListView.ScrollBar.vertical.width + + elide: Text.ElideRight + + anchors.verticalCenter: parent.verticalCenter + } + + RoundButton { + id: profileEditButton + + flat: true + icon.source: Icons.get(Icons.Edit) + + onClicked: profileNameEditorPopup.show(model.index, model.name) + } + + RoundButton { + id: profileDeleteButton + + flat: true + Material.foreground: Material.Red + icon.source: Icons.get(Icons.Delete) + + enabled: ( model.index !== keyboardConfiguratorController.selectedProfileIndex ) && ( model.index !== keyboardConfiguratorController.profiles.defaultProfileIndex) + + onClicked: keyboardConfiguratorController.deleteProfile(model.index) + } + } + } + + Button { + anchors.right: parent.right + + text: qsTr("Close") + flat: true + highlighted: true + + onClicked: editProfilesPopup.close() + } + } + } + + Popup { + id: configureKeyMapPopup + + anchors.centerIn: parent + margins: 10 + modal: true + + Item { + anchors.fill: parent + + id: configureKeyMapPopupItem + + implicitHeight: configureKeyMapPopupTitle.implicitHeight + + configureKeyMapPopupScrollView.anchors.topMargin + + configureKeyMapPopupScrollView.contentHeight + + configureKeyMapPopupButtons.anchors.topMargin + + configureKeyMapPopupButtons.implicitHeight + + implicitWidth: configureKeyMapPopupScrollView.implicitWidth + + Label { + id: configureKeyMapPopupTitle + + anchors { + top: parent.top + left: parent.left + } + + text: qsTr("Configure Key Map") + font.bold: true + font.pixelSize: 15 + } + + ScrollView { + id: configureKeyMapPopupScrollView + + anchors { + top: configureKeyMapPopupTitle.bottom + topMargin: 10 + left: parent.left + } + + contentHeight: configureKeyMapPopupColumn.height + contentWidth: configureKeyMapPopupColumn.width + + configureKeyMapPopupColumn.anchors.leftMargin + + configureKeyMapPopupColumn.anchors.rightMargin + + ScrollBar.vertical.width + + height: configureKeyMapPopupItem.height - + anchors.topMargin - + configureKeyMapPopupTitle.height - + configureKeyMapPopupButtons.anchors.topMargin - + configureKeyMapPopupButtons.height + + ScrollBar.vertical.policy: ScrollBar.AsNeeded + + clip : true + + Column { + id: configureKeyMapPopupColumn + spacing: 10 + + anchors { + left: parent.left + leftMargin: 5 + rightMargin: 10 + } + + width: 300 + + TextField { + width: parent.width + placeholderText: qsTr("Search for a key ...") + + onTextEdited: keyboardConfiguratorController.setKeyCodeModelFilter(text) + } + + ComboBox { + id: keyCodeModelFilterComboBox + + width: 140 + + model: [ + qsTr("All"), + qsTr("Keyboard Keys"), + qsTr("Combination Keys"), + qsTr("Multimedia"), + qsTr("Shortcut") + ] + + onCurrentIndexChanged: keyboardConfiguratorController.keyCodesProxy.setCurrentFilter(currentIndex) + } + + Row { + spacing: 10 + + Column { + spacing: 10 + + Label { + text: qsTr("Keys") + font.bold: true + } + + ListView { + id: configureKeyMapKeyCodesListView + + clip: true + + height: 200 + width: 150 + + model: keyboardConfiguratorController.keyCodesProxy + + ScrollBar.vertical: ScrollBar { + policy: ScrollBar.AsNeeded + } + + delegate: Row { + Button { + flat: true + + width: configureKeyMapKeyCodesListView.width - + configureKeyMapKeyCodesListView.ScrollBar.vertical.width - 5 + + contentItem: Label { + anchors { + left: parent.left + leftMargin: 10 + verticalCenter: parent.verticalCenter + } + + text: model.name + } + + onClicked: { + keyboardConfiguratorController.unsavedChanges = true + keyboardConfiguratorController.customMappedKeys.add(model.code) + } + } + } + } + } + + Column { + spacing: 10 + + Label { + text: qsTr("Custom Keys") + font.bold: true + } + + ListView { + id: configureKeyMapSelectedKeysListView + + clip: true + + height: 200 + width: 150 + + model: keyboardConfiguratorController.customMappedKeys + + ScrollBar.vertical: ScrollBar { + policy: ScrollBar.AsNeeded + } + + delegate: Row { + + Label { + text: model.name + + width: configureKeyMapKeyCodesListView.width - + configureKeyMapKeyCodesListView.ScrollBar.vertical.width - keyDeleteButton.implicitWidth + + elide: Text.ElideRight + + anchors.verticalCenter: parent.verticalCenter + } + + RoundButton { + id: keyDeleteButton + + flat: true + Material.foreground: Material.Red + icon.source: Icons.get(Icons.Delete) + + onClicked: { + keyboardConfiguratorController.unsavedChanges = true + keyboardConfiguratorController.customMappedKeys.remove(model.index) + } + } + } + } + } + } + } + } + + Row { + id: configureKeyMapPopupButtons + + anchors { + top: configureKeyMapPopupScrollView.bottom + topMargin: 10 + right: parent.right + } + + spacing: 10 + + Button { + text: qsTr("Reset to default") + flat: true + highlighted: true + + onClicked: { + keyboardConfiguratorController.unsavedChanges = true + keyboardConfiguratorController.customMappedKeys.clear() + configureKeyMapPopup.close() + kbCanvas.requestPaint() + } + } + + Button { + text: qsTr("Close") + flat: true + highlighted: true + + onClicked: { + configureKeyMapPopup.close() + kbCanvas.requestPaint() + } + } + } + } + } + + Popup { + id: keyMapNotSupportedPopup + + anchors.centerIn: parent + margins: 10 + modal: true + + width: Math.min(kbConfigurator.width - (margins * 2), 400) + + Column { + spacing: 10 + + width: parent.width + + Label { + text: qsTr("Unsupported ... for now") + font.bold: true + font.pixelSize: 15 + } + + Label { + width: parent.width - 20 + wrapMode: Text.Wrap + text: qsTr("Your keyboard has Scroll Lock/Calculator/Left Shift Split key. +Since I do not own an RK Keyboard with any of these keys, I was not able to determine the codes for them. +You can create an issue on GitHub, and I can guide you through the steps to accquire them."); + } + + Row { + anchors.right: parent.right + + spacing: 10 + + Button { + text: qsTr("Report Issue") + flat: true + highlighted: true + + onClicked: settingsController.reportIssue() + } + + Button { + text: qsTr("Close") + flat: true + highlighted: true + + onClicked: keyMapNotSupportedPopup.close() + } + } + } + } + + + Rectangle { + id: modeMenu + + anchors { + top: parent.top + left: parent.left + bottom: parent.bottom + } + + width: 50 + + color: (Material.theme == Material.Light) ? "#e6e6e6" : "#444444" + + + Button { + id: lightModeButton + anchors.top: parent.top + width: parent.width + + topInset: 0 + bottomInset: 0 + background.implicitHeight: 50 + + flat: true + + display: AbstractButton.TextUnderIcon + text: qsTr("LED") + font.bold: false + font.pixelSize: 12 + font.capitalization: Font.MixedCase + + icon.source: Icons.get(Icons.Light) + + onClicked: keyboardConfiguratorController.selectedMode = KeyboardConfiguratorController.Light + + Material.foreground: (keyboardConfiguratorController.selectedMode === KeyboardConfiguratorController.Light) + ? Material.accentColor : ((Material.theme == Material.Light) ? "#000000" : "#ffffff") + + ToolTip.visible: hovered + ToolTip.text: qsTr("Configure Lights") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + + Button { + id: keyRemapModeButton + anchors.top: lightModeButton.bottom + width: parent.width + + topInset: 0 + bottomInset: 0 + background.implicitHeight: 50 + + flat: true + + display: AbstractButton.TextUnderIcon + text: qsTr("Edit") + font.bold: false + font.pixelSize: 12 + font.capitalization: Font.MixedCase + + icon.source: Icons.get(Icons.Keyboard) + + onClicked: keyboardConfiguratorController.selectedMode = KeyboardConfiguratorController.KeyMap + + Material.foreground: (keyboardConfiguratorController.selectedMode === KeyboardConfiguratorController.KeyMap) + ? Material.accentColor : ((Material.theme == Material.Light) ? "#000000" : "#ffffff") + + ToolTip.visible: hovered + ToolTip.text: qsTr("Configure Key Map") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + + Button { + id: homeButton + anchors.bottom: settingsButton.top + width: parent.width + + topInset: 0 + bottomInset: 0 + background.implicitHeight: 50 + + flat: true + + icon.source: Icons.get(Icons.Home) + + onClicked: { + kbCanvas.unloadImageSource() + kbConfigurator.returnToHome() + } + + ToolTip.visible: hovered + ToolTip.text: qsTr("Return to Home") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + + Button { + id: settingsButton + anchors.bottom: parent.bottom + width: parent.width + + topInset: 0 + bottomInset: 0 + background.implicitHeight: 50 + + flat: true + + icon.source: Icons.get(Icons.Settings) + + onClicked: kbConfigurator.openSettings() + + ToolTip.visible: hovered + ToolTip.text: qsTr("Settings") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + } + + Rectangle { + id: lightModeMenu + anchors { + top: parent.top + left: modeMenu.right + bottom: parent.bottom + } + + Behavior on width { + SmoothedAnimation { duration: animationDuration } + } + + clip: true + + color: (Material.theme == Material.Light) ? "#f0f0f0" : "#3a3a3a" + + width: (keyboardConfiguratorController.selectedMode === KeyboardConfiguratorController.Light) ? + implicitWidth : 0 + + implicitWidth: 200 + + ListView { + id: lightModeMenuList + + anchors { + fill: parent + } + + model: keyboardConfiguratorController.modes + + ScrollBar.vertical: ScrollBar { + policy: ScrollBar.AsNeeded + } + + delegate: Button { + id: lightModeMenuOption + + topInset: 0 + bottomInset: 0 + background.implicitHeight: 50 + + flat: true + + width: lightModeMenu.width + + contentItem: Item { + Label { + text: model.name + color: (keyboardConfiguratorController.selectedLightModeIndex === model.index) + ? Material.accentColor : ((Material.theme == Material.Light) ? "#000000" : "#ffffff") + font.pixelSize: 14 + anchors { + left: parent.left + leftMargin: 10 + verticalCenter: parent.verticalCenter + } + } + } + + onClicked: { + if (keyboardConfiguratorController.selectedLightModeIndex !== model.index) + { + keyboardConfiguratorController.unsavedChanges = true + keyboardConfiguratorController.selectedLightModeIndex = model.index + } + } + } + } + } + + Item { + id: header + + anchors { + top: parent.top + left: lightModeMenu.right + right: parent.right + } + + height: 60 + + Label { + id: kbName + + anchors { + left: parent.left + leftMargin: 20 + verticalCenter: parent.verticalCenter + } + + width: parent.width - anchors.leftMargin - headerButtons.width - headerButtons.anchors.rightMargin + + font.pixelSize: 20 + elide: Text.ElideRight + } + + Row { + id: headerButtons + + spacing: 10 + + anchors { + right: parent.right + rightMargin: 20 + verticalCenter: parent.verticalCenter + } + + RoundButton { + id: resetButton + + flat: true + icon.source: Icons.get(Icons.Reset) + + onClicked: keyboardConfiguratorController.reset() + + enabled: keyboardConfiguratorController.unsavedChanges + + ToolTip.visible: hovered + ToolTip.text: qsTr("Discard unsaved settings") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + + RoundButton { + id: saveButton + + flat: ! keyboardConfiguratorController.unsavedChanges + + highlighted: keyboardConfiguratorController.unsavedChanges + enabled: ! keyboardConfiguratorController.savingChanges + + icon.source: Icons.get(Icons.Save) + + onClicked: keyboardConfiguratorController.save() + + ToolTip.visible: hovered + ToolTip.text: qsTr("Save and apply changes to keyboard") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + } + } + + ScrollView { + id: sv + anchors { + top: header.bottom + left: lightModeMenu.right + right: parent.right + bottom: parent.bottom + } + + + Item { + id: svItem + + implicitHeight: selectedProfileComboBoxContainer.implicitHeight + + (kbCanvas.height * kbCanvasScale.yScale) + + (keyboardConfiguratorController.selectedMode === KeyboardConfiguratorController.Light + ? lightModeControls.implicitHeight : keyMapModeControls.implicitHeight) + + (margin * 2) + + readonly property int margin: 20 + + implicitWidth: lightModeControls.implicitWidth + (margin * 2) + + width: Math.max(sv.width, implicitWidth) + height: Math.max(sv.height, implicitHeight) + + Column { + id: selectedProfileComboBoxContainer + + anchors { + top: parent.top + left: parent.left + leftMargin: 20 + } + + Label { + text: qsTr("Current profile") + } + + Row { + ComboBox { + anchors.verticalCenter: parent.verticalCenter + + width: 150 + + model: keyboardConfiguratorController.profiles + currentIndex : keyboardConfiguratorController.selectedProfileIndex + onCurrentIndexChanged: { + keyboardConfiguratorController.selectedProfileIndex = currentIndex + ToolTip.text = keyboardConfiguratorController.profiles.profileName(currentIndex) + } + + textRole: "name" + + ToolTip.visible: hovered + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + + RoundButton { + anchors.verticalCenter: parent.verticalCenter + + flat:true + icon.source: Icons.get(Icons.Edit) + + onClicked: editProfilesPopup.open() + + ToolTip.visible: hovered + ToolTip.text: qsTr("Edit Profiles") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + } + } + + Canvas { + id: kbCanvas + + anchors { + top: selectedProfileComboBoxContainer.bottom + topMargin: Math.max((svItem.height - kbCanvas.height - lightModeControlsRightColumn.implicitHeight) / 4, 0) + leftMargin: Math.abs((svItem.width - (kbCanvas.width * kbCanvasScale.xScale)) / 2) + left: parent.left + } + + MouseArea { + anchors.fill: parent + + enabled: keyboardConfiguratorController.isCustomLightModeSelected || + (keyboardConfiguratorController.selectedMode === KeyboardConfiguratorController.KeyMap) + + onClicked: (mouse) => { + var l = mapToItem(kbCanvas, + mouse.x, + mouse.y) + + keyboardConfiguratorController.clickKey(l.x, l.y) + } + } + + Timer { + id: requestPaintWithDelay + repeat: false + running: false + onTriggered: parent.requestPaint() + interval: 5 + } + + readonly property real minScale: 0.6 + property string imageSource: "" + + function loadImageSource(source) + { + imageSource = source + loadImage(imageSource) + } + + function unloadImageSource() + { + unloadImage(imageSource) + } + + transform : Scale { + id: kbCanvasScale + xScale: Math.max(Math.min(sv.width - svItem.margin , kbCanvas.width) / kbCanvas.width, kbCanvas.minScale) + yScale: xScale + } + + function loadImgDetails() + { + var imgData = getContext("2d").createImageData(imageSource) + + width = imgData.width + height = imgData.height + } + + height: 1 + width: 1 + + onImageLoaded: requestPaint() + + + onPaint: { + + if (height === 1) { + loadImgDetails() + requestPaintWithDelay.running = true + return + } + + var ctx = getContext("2d"); + + ctx.save() + + ctx.clearRect(0, 0, width, height) + + if (keyboardConfiguratorController.isCustomLightModeSelected || + keyboardConfiguratorController.selectedMode === KeyboardConfiguratorController.KeyMap) + { + ctx.fillStyle = "#949292" + } + else if (keyboardConfiguratorController.randomColours) + { + var gradient = ctx.createLinearGradient(keyboardConfiguratorController.topLeftX, + keyboardConfiguratorController.topLeftY, + keyboardConfiguratorController.bottomRightX, + keyboardConfiguratorController.bottomRightY) + gradient.addColorStop(0, "red") + gradient.addColorStop(0.5, "green") + gradient.addColorStop(1, "blue") + ctx.fillStyle = gradient + } + else + { + ctx.fillStyle = keyboardConfiguratorController.selectedColour + } + + ctx.fillRect(keyboardConfiguratorController.topLeftX, + keyboardConfiguratorController.topLeftY, + (keyboardConfiguratorController.bottomRightX - keyboardConfiguratorController.topLeftX), + (keyboardConfiguratorController.bottomRightY - keyboardConfiguratorController.topLeftY)) + + var i; + + if (keyboardConfiguratorController.isCustomLightModeSelected && + keyboardConfiguratorController.selectedMode === KeyboardConfiguratorController.Light) + { + var acSize = keyboardConfiguratorController.customLightModeKeys.rowCount() + var key; + + for (i = 0; i < acSize; i++) + { + key = keyboardConfiguratorController.getKeyByCustomLightModeKeysIndex(i) + ctx.fillStyle = keyboardConfiguratorController.customLightModeKeys.getColour(i) + ctx.fillRect(key.topX, + key.topY, + (key.bottomX - key.topX), + (key.bottomY - key.topY)) + } + } + else if(keyboardConfiguratorController.selectedMode === KeyboardConfiguratorController.KeyMap) + { + var kmSize = keyboardConfiguratorController.customMappedKeys.keysCount() + var kmKey; + + for (i = 0; i < kmSize; i++) + { + kmKey = keyboardConfiguratorController.getKeyByCustomMappedKeysIndex(i) + ctx.fillStyle = Material.accent + ctx.fillRect(kmKey.topX, + kmKey.topY, + (kmKey.bottomX - kmKey.topX), + (kmKey.bottomY - kmKey.topY)) + } + } + + ctx.drawImage(imageSource, 0, 0, width, height) + + if (keyboardConfiguratorController.isCustomLightModeSelected && + keyboardConfiguratorController.selectedMode === KeyboardConfiguratorController.Light) + { + for (i = 0; i < acSize; i++) + { + key = keyboardConfiguratorController.getKeyByCustomLightModeKeysIndex(i) + ctx.strokeStyle = "#fc9d03" + ctx.strokeRect(key.topX, + key.topY, + (key.bottomX - key.topX), + (key.bottomY - key.topY)) + } + } + else if(keyboardConfiguratorController.selectedMode === KeyboardConfiguratorController.KeyMap) + { + for (i = 0; i < kmSize; i++) + { + kmKey = keyboardConfiguratorController.getKeyByCustomMappedKeysIndex(i) + ctx.strokeStyle = "#fc9d03" + ctx.strokeRect(kmKey.topX, + kmKey.topY, + (kmKey.bottomX - kmKey.topX), + (kmKey.bottomY - kmKey.topY)) + } + } + + ctx.restore() + } + + } + + Item { + id: lightModeControls + + implicitHeight: lightModeControlsRightColumn.implicitHeight + implicitWidth: lightModeControlsLeftColumn.implicitWidth + lightModeControlsRightColumn.implicitWidth + + visible: keyboardConfiguratorController.selectedMode === KeyboardConfiguratorController.Light + + anchors { + top: kbCanvas.bottom + topMargin: ((kbCanvas.height * kbCanvasScale.yScale) - kbCanvas.height ) + + kbCanvas.anchors.topMargin + bottom: parent.bottom + left: parent.left + right: parent.right + } + + Item { + anchors { + top: parent.top + bottom: parent.bottom + left: parent.left + right: keyboardConfiguratorController.showColoursColumn + ? parent.horizontalCenter : parent.right + } + + Column { + id: lightModeControlsLeftColumn + + anchors.centerIn: parent + + Row { + anchors.horizontalCenter: parent.horizontalCenter + + spacing: 10 + + visible: keyboardConfiguratorController.isCustomLightModeSelected + + Button { + text: qsTr("Select all") + + onClicked: keyboardConfiguratorController.selectAllKeysForCustomMode() + } + + Button { + text: qsTr("Unselect all") + + onClicked: keyboardConfiguratorController.unselectAllKeysForCustomMode() + } + } + + Grid { + + rows: 3 + columns: 3 + + + verticalItemAlignment: Grid.AlignVCenter + horizontalItemAlignment: Grid.AlignHCenter + + columnSpacing: 10 + + Label { + id: test1 + text: qsTr("Brightness") + } + + Slider { + id: brightnessSlider + from : 0 + to: 5 + stepSize: 1.0 + snapMode: Slider.SnapAlways + + width: 100 + + property var texts : [qsTr("Off"), qsTr("Very Low"), qsTr("Low"), + qsTr("Medium"), qsTr("High"), qsTr("Full")] + + value: keyboardConfiguratorController.brightness + + onValueChanged: brightnessSliderText.text = texts[value] + + onMoved: { + keyboardConfiguratorController.brightness = value + keyboardConfiguratorController.unsavedChanges = true + } + } + + Label { + id: brightnessSliderText + elide: Text.ElideRight + width: 80 + } + + Label { + text: qsTr("Animation") + + visible: ! keyboardConfiguratorController.isCustomLightModeSelected + } + + Slider { + id: animationSlider + from : 1 + to: 5 + stepSize: 1.0 + snapMode: Slider.SnapAlways + + visible: ! keyboardConfiguratorController.isCustomLightModeSelected + + width: 100 + + property var texts : [qsTr("Very Slow"), qsTr("Slow"), qsTr("Normal"), + qsTr("Fast"), qsTr("Very Fast")] + + value: keyboardConfiguratorController.animation + + onValueChanged: animationSliderText.text = texts[value - 1] + + onMoved: { + keyboardConfiguratorController.animation = value + keyboardConfiguratorController.unsavedChanges = true + } + } + + + Label { + id: animationSliderText + elide: Text.ElideRight + width: 80 + + visible: ! keyboardConfiguratorController.isCustomLightModeSelected + } + + Label { + text: qsTr("Sleep") + } + + Slider { + id: sleepSlider + from : 1 + to: 5 + stepSize: 1.0 + snapMode: Slider.SnapAlways + + width: 100 + + property var texts : [qsTr("5 min"), qsTr("10 min"), qsTr("20 min"), + qsTr("30 min"), qsTr("Off")] + + value: keyboardConfiguratorController.sleep + + onValueChanged: sleepSliderText.text = texts[value - 1] + + onMoved: { + keyboardConfiguratorController.sleep = value + keyboardConfiguratorController.unsavedChanges = true + } + } + + Label { + id: sleepSliderText + elide: Text.ElideRight + width: 80 + } + } + + + } + } + + Item { + anchors { + top: parent.top + bottom: parent.bottom + left: parent.horizontalCenter + right: parent.right + } + + Column { + id: lightModeControlsRightColumn + + anchors.centerIn: parent + + spacing: 10 + + visible: keyboardConfiguratorController.showColoursColumn + + CheckBox { + id: cm + anchors.horizontalCenter: parent.horizontalCenter + text: qsTr("Random Colours") + + visible: ! keyboardConfiguratorController.isCustomLightModeSelected + + checked: keyboardConfiguratorController.randomColours + + onToggled: { + keyboardConfiguratorController.randomColours = checked + keyboardConfiguratorController.unsavedChanges = true + } + } + + Label { + text: qsTr("Custom Colours:") + } + + Row { + spacing: 5 + + Repeater { + model: keyboardConfiguratorController.customColours + + delegate: Rectangle { + width: 30 + height: 30 + + radius: 3 + + border.width: 1 + border.color: "#979797" + + color: model.colour + + MouseArea { + anchors.fill: parent + + acceptedButtons: Qt.LeftButton | Qt.RightButton + + onClicked: customColourOptions.openIfNotVisible() + + hoverEnabled: true + ToolTip.visible: containsMouse + ToolTip.text: qsTr("Click to open menu, Double click to select colour") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + + + Menu { + id: customColourOptions + + width: 130 + + function openIfNotVisible() + { + if (!customColourOptions.visible) + { + customColourOptions.open() + } + } + + Action { + text: qsTr("Select") + icon.source: Icons.get(Icons.Done) + onTriggered: { + keyboardConfiguratorController.unsavedChanges = true + keyboardConfiguratorController.selectedColour = model.colour // keyboardConfiguratorController.customColours[model.index] + keyboardConfiguratorController.randomColours = false + } + } + + Action { + text: qsTr("Edit") + icon.source: Icons.get(Icons.Edit) + onTriggered: colorDialog.show(model) + } + } + } + } + } + + Row { + + spacing: 10 + + Label { + text: qsTr("Current Colour:") + anchors.verticalCenter: parent.verticalCenter + } + + Rectangle { + width: 100 + height: 30 + + radius: 3 + + color: keyboardConfiguratorController.selectedColour + + border.width: 1 + border.color: "#979797" + } + } + + Button { + id: pickColourButton + + text: qsTr("Pick Colour") + + onClicked: colorDialog.showAlone() + } + + ColorDialog { + id : colorDialog + + property var model: null + + function showAlone() + { + show(null) + } + + function show(m) + { + model = m + + if (model !== null) + { + selectedColor = model.colour + } + + open() + } + + options: ColorDialog.DontUseNativeDialog + + onAccepted: { + if (model === null) + { + keyboardConfiguratorController.selectedColour = selectedColor + keyboardConfiguratorController.randomColours = false + } + else + { + model.colour = selectedColor + } + + keyboardConfiguratorController.unsavedChanges = true + + model = null + } + } + } + } + } + + + Item { + id: keyMapModeControls + + visible: keyboardConfiguratorController.selectedMode === KeyboardConfiguratorController.KeyMap + + implicitWidth: keyboardConfiguratorController.keyMapEnabled + ? keyMapModeControlsCol.implicitWidth : keyMapNotSupportedLabel.implicitWidth + + implicitHeight: keyboardConfiguratorController.keyMapEnabled + ? keyMapModeControlsCol.implicitHeight : keyMapNotSupportedLabel.implicitHeight + + anchors { + top: kbCanvas.bottom + topMargin: ((kbCanvas.height * kbCanvasScale.yScale) - kbCanvas.height ) + + kbCanvas.anchors.topMargin + bottom: parent.bottom + left: parent.left + right: parent.right + } + + Column { + id: keyMapModeControlsCol + + visible: keyboardConfiguratorController.keyMapEnabled + + anchors.centerIn: parent + spacing: 20 + + Label { + id: keyMapClickKeyToEditPrompt + + anchors.horizontalCenter: parent.horizontalCenter + + text: qsTr("Click a key to edit") + } + + Button { + text: qsTr("Reset to default") + + onClicked: { + keyboardConfiguratorController.unsavedChanges = true + keyboardConfiguratorController.customMappedKeys.clearAll() + kbCanvas.requestPaint() + } + } + } + + Row { + id: keyMapNotSupportedLabel + + anchors.centerIn: parent + + visible: !keyboardConfiguratorController.keyMapEnabled + + Label { + text: qsTr("Custom Key Maps are not supported on your keyboard yet. ") + } + + Hyperlink { + text: "Learn more" + mouseArea.onClicked: keyMapNotSupportedPopup.open() + } + } + } + } + } +} diff --git a/src/KeyboardMenuButton.qml b/src/KeyboardMenuButton.qml new file mode 100644 index 0000000..e6cf59b --- /dev/null +++ b/src/KeyboardMenuButton.qml @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +import QtQuick +import QtQuick.Controls +import QtQuick.Controls.Material +import QtQuick.Controls.Material.impl + +Item { + property alias kbName: kbName.text + property alias kbImage: kbImage.source + + property alias button: button + + implicitWidth: 300 + implicitHeight: 150 + + Button + { + id: button + + topInset: 0 + bottomInset: 0 + + anchors { + fill: parent + margins: 5 + } + + Material.background: (Material.theme == Material.Light) ? "#ffffff" : "#444444" + + contentItem: Item { + anchors { + fill: parent + } + + Image { + id: kbImage + + anchors { + top: parent.top + topMargin: 10 + horizontalCenter: parent.horizontalCenter + } + + sourceSize.width: 230 + + fillMode: Image.PreserveAspectFit + } + + Label { + id: kbName + + anchors { + bottom: parent.bottom + bottomMargin: 10 + horizontalCenter: parent.horizontalCenter + } + } + } + + ToolTip.visible: hovered + ToolTip.text: qsTr("Click to configure the %1 connected to your PC.").arg(kbName.text) + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } +} + diff --git a/src/Main.qml b/src/Main.qml new file mode 100644 index 0000000..eb807b7 --- /dev/null +++ b/src/Main.qml @@ -0,0 +1,548 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +import QtQuick +import QtQuick.Controls +import QtQuick.Controls.Material +import QtQuick.Controls.Material.impl +import Qt.labs.platform +import QtQml.Models + +import Rangoli + +ApplicationWindow { + visible: true + + width: 900 + height: 700 + + minimumWidth: 500 + minimumHeight: 300 + + id: window + + Connections { + target: mainWindowController + + function onAdjustOptionsSize(length) + { + options.adjustSize(length) + } + + function onLoadEnhancedDialog(dialogController) + { + Qt.createComponent("EnhancedDialog.qml") + .createObject(window, {controller: dialogController}) + } + + function onShow() + { + show() + } + + function onHide() + { + hide() + if (mainWindowController.startToSystemTrayIcon) systemTrayIcon.visible = true + } + + function onClose() + { + Qt.quit() + } + + function onSetSystemTheme() + { + window.Material.theme = Material.System + } + + function onSetLightTheme() + { + window.Material.theme = Material.Light + } + + function onSetDarkTheme() + { + window.Material.theme = Material.Dark + } + + function onSetAccentColour(accentColour) + { + window.Material.accent = accentColour + } + + function onAlwaysShowSystemTrayIconChanged() + { + systemTrayIcon.visible = mainWindowController.alwaysShowSystemTrayIcon + } + + function onOpenLinuxUdevPopup() + { + linuxUdevPopup.open() + } + + function onCloseLinuxUdevPopup() + { + linuxUdevPopup.close(); + } + } + + Component.onCompleted: mainWindowController.init() + + onClosing: (close) => { + if (mainWindowController.closeToSystemTrayIcon) + { + close.accepted = false + systemTrayIcon.visible = true + window.hide() + sv.pop(null) + return + } + + close.accepted = !mainWindowController.interruptClose + if (mainWindowController.interruptClose) + { + window.show() + window.raise() + window.requestActivate() + mainWindowController.closeInterrupted() + } + } + + SystemTrayIcon { + id: systemTrayIcon + + tooltip: qsTr("Rangoli") + + icon.source: Icons.get(Icons.Rangoli) + + onActivated: (reason) => { + if (reason === SystemTrayIcon.Context) + { + systemTrayMenu.open(); + } + else if (reason === SystemTrayIcon.Trigger) + { + if (!mainWindowController.alwaysShowSystemTrayIcon) systemTrayIcon.visible = false + + window.show() + window.raise() + window.requestActivate() + } + } + + menu: Menu { + id: systemTrayMenu + + Instantiator { + model: mainWindowController.connectedKeyboards + + delegate: Menu { + title: model.name + + id: kbMenuDel + + property int index: model.index + + Instantiator { + model: keyboardConfiguratorController.profiles + + delegate: MenuItem { + text: model.name + onTriggered: { + mainWindowController.loadKeyboard(kbMenuDel.index) + keyboardConfiguratorController.selectedProfileIndex = model.index + } + } + + onObjectAdded: (index, object) => kbMenuDel.insertItem(index, object) + onObjectRemoved: (index, object) => kbMenuDel.removeItem(object) + } + } + + onObjectAdded: (index, object) => systemTrayMenu.insertMenu(index, object) + onObjectRemoved: (index, object) => systemTrayMenu.removeMenu(object) + } + + MenuSeparator {} + + MenuItem { + text: qsTr("Quit") + + onTriggered: { + mainWindowController.closeToSystemTrayIcon = false + mainWindowController.interruptClose = false + Qt.quit() + } + } + } + } + + Timer { + id: delayedGC + repeat: false + interval: 10000 + onTriggered: gc() + } + + Item { + id: mainScreen + + Image { + id: appIcon + + anchors { + bottom: parent.bottom + bottomMargin: - (height / 2) + horizontalCenter: parent.horizontalCenter + } + + source: Icons.get(Icons.Rangoli) + + sourceSize.width: 750 + sourceSize.height: 750 + + opacity: 0.4 + } + + Label { + id: appTitle + + anchors { + top: parent.top + topMargin: 50 + horizontalCenter: parent.horizontalCenter + } + + text: qsTr("Rangoli") + font.pixelSize: 50 + } + + RoundButton { + id: settingsBtn + + anchors { + top: parent.top + topMargin: 10 + right: parent.right + rightMargin: 10 + } + + flat: true + icon.source: Icons.get(Icons.Settings) + + onClicked: { + delayedGC.stop() + sv.push(settings) + } + + ToolTip.visible: hovered + ToolTip.text: qsTr("Settings") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + + Row + { + id: connectAKeyboardPrompt + + visible: options.count === 0 && ! mainWindowController.keyboardsScanning + + anchors { + top: appTitle.bottom + topMargin: 50 + horizontalCenter: parent.horizontalCenter + } + + spacing: 5 + + Label { + anchors.verticalCenter: parent.verticalCenter + + text: qsTr("Connect a Royal Kludge Keyboard to get started!"); + + font.pixelSize: 15 + } + + RoundButton { + flat: true + + icon.source: Icons.get(Icons.Help) + + onClicked: getStartedPopup.open() + + ToolTip.visible: hovered + ToolTip.text: qsTr("Know More") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + } + + + + GridView { + id: options + + clip: true + + anchors { + top: appTitle.bottom + topMargin: 30 + horizontalCenter: parent.horizontalCenter + bottom: refreshBtn.top + bottomMargin: 30 + } + + model: mainWindowController.connectedKeyboards + + width: (parent.width > implicitWidth) ? implicitWidth : parent.width - 20 + + function adjustSize(length) + { + options.implicitWidth = length * 300 + } + + cellWidth: 300 + cellHeight: 150 + + ScrollBar.vertical: ScrollBar { + policy: ScrollBar.AsNeeded + } + + delegate: KeyboardMenuButton { + opacity: 1 + kbName: model.name + kbImage: model.imgPath + + button.onClicked: { + delayedGC.stop() + sv.push(keyboardConfigurator) + mainWindowController.loadKeyboard(model.index) + } + } + } + + RoundButton { + id: refreshBtn + + anchors { + bottom: parent.bottom + bottomMargin: 10 + horizontalCenter: parent.horizontalCenter + } + + highlighted: true + icon.source: Icons.get(Icons.Refresh) + + onClicked: mainWindowController.refreshKeyboards() + + ToolTip.visible: hovered + ToolTip.text: qsTr("Refresh") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + } + + Component { + id: keyboardConfigurator + + KeyboardConfigurator { + onReturnToHome: { + delayedGC.restart() + sv.pop() + } + + onOpenSettings: { + delayedGC.stop() + sv.push(settings) + } + } + } + + Component { + id: settings + + Settings { + onReturnToHome: { + delayedGC.restart() + sv.pop() + } + } + } + + StackView { + id: sv + + anchors { + fill: parent + } + + initialItem: mainScreen + } + + Popup { + id: getStartedPopup + + anchors.centerIn: parent + margins: 10 + modal: true + + Column { + spacing: 10 + + Label { + text: qsTr("Connect a supported keyboard") + font.bold: true + font.pixelSize: 15 + bottomPadding: 10 + } + + Label { + text: qsTr("If Rangoli is unable to detect your keyboard, check if it is supported yet. +Please report an issue if your keyboard is unsupported, or is supported but undetected.") + width: parent.width + wrapMode: Text.Wrap + } + + Row { + anchors.right: parent.right + + spacing: 10 + + Button { + text: qsTr("Open Supported Keyboards List") + + flat: true + highlighted: true + + onClicked: mainWindowController.openSupportedKeyboardsList() + } + + Button { + text: qsTr("Report Issue") + + flat: true + highlighted: true + + onClicked: settingsController.reportIssue() + } + + Button { + text: qsTr("OK") + + flat: true + highlighted: true + + onClicked: getStartedPopup.close() + } + } + } + } + + + + Popup { + id: linuxUdevPopup + + anchors.centerIn: parent + margins: 10 + modal: true + + closePolicy: Popup.NoAutoClose + + Item { + anchors.fill: parent + + id: linuxUdevPopupItem + + implicitHeight: linuxUdevPopupTitle.implicitHeight + + linuxUdevPopupScrollView.anchors.topMargin + + linuxUdevPopupScrollView.contentHeight + + linuxUdevPopupProceedButton.anchors.topMargin + + linuxUdevPopupProceedButton.implicitHeight + + implicitWidth: 400 + + Label { + id: linuxUdevPopupTitle + + anchors { + top: parent.top + left: parent.left + } + + text: qsTr("Note") + font.bold: true + font.pixelSize: 15 + } + + ScrollView { + id: linuxUdevPopupScrollView + + anchors { + top: linuxUdevPopupTitle.bottom + topMargin: 20 + left: parent.left + } + + contentHeight: linuxUdevPopupLabel.implicitHeight + contentWidth: parent.width + + height: linuxUdevPopupItem.height - + anchors.topMargin - + linuxUdevPopupTitle.height - + linuxUdevPopupProceedButton.anchors.topMargin - + linuxUdevPopupProceedButton.height + + width: parent.width + + ScrollBar.vertical.policy: ScrollBar.AsNeeded + + clip : true + + Label { + id: linuxUdevPopupLabel + + text: qsTr("Rangoli uses the HIDRAW driver of the Linux kernel to send information to your keyboard. +However, for safety purposes it requires permissions to do so. In order to accquire these permissions, additional rules has to be written in '%1'. + +You will be asked for sudo password. +This action will only be performed on first run, after an update or when Rangoli detects that it does not have sufficient permissions.").arg(mainWindowController.linuxUdevRulesPath) + + rightPadding: linuxUdevPopupScrollView.ScrollBar.vertical.width + width: parent.width - rightPadding + wrapMode: Text.Wrap + } + } + + Button { + id: linuxUdevPopupProceedButton + + anchors { + top: linuxUdevPopupScrollView.bottom + topMargin: 10 + right: parent.right + } + + text: qsTr("Proceed") + + enabled: mainWindowController.linuxUdevPopupProceedButtonEnabled + + flat: true + highlighted: true + + onClicked: mainWindowController.launchLinuxUdevWriter() + } + } + } +} diff --git a/src/Settings.qml b/src/Settings.qml new file mode 100644 index 0000000..62aa9a4 --- /dev/null +++ b/src/Settings.qml @@ -0,0 +1,571 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +import QtQuick +import QtQuick.Controls +import QtQuick.Controls.Material +import QtQuick.Controls.Material.impl +import QtQuick.Dialogs + +import Rangoli + +Item { + + id: settings + + signal returnToHome() + + Component.onCompleted: { + if (settingsController.unsavedChanges) settingsController.load() + + donateButton.configureText() + } + + onWidthChanged: donateButton.configureText() + + Rectangle { + + color: (Material.theme == Material.Light) ? "#e6e6e6" : "#444444" + + id: header + + anchors { + top: parent.top + left: parent.left + right: parent.right + } + + height: returnButton.implicitHeight + 5 + + layer.enabled: true + layer.effect: ElevationEffect { + elevation: 1 + } + + RoundButton { + id: returnButton + + anchors { + left: parent.left + leftMargin: 10 + verticalCenter: parent.verticalCenter + } + + flat: true + icon.source: Icons.get(Icons.ArrowBack) + onClicked: settings.returnToHome() + + ToolTip.visible: hovered + ToolTip.text: qsTr("Return") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + + Label { + id: title + + anchors { + left: returnButton.right + leftMargin: 10 + verticalCenter: parent.verticalCenter + } + + text: qsTr("Settings") + + font.pixelSize: 20 + } + + Button { + id: donateButton + + anchors { + right: websiteButton.left + rightMargin: 10 + verticalCenter: parent.verticalCenter + } + + readonly property int minWidthRequiredForDonateText: 600 + + function configureText() + { + if (text.length === 0 && settings.width > minWidthRequiredForDonateText) + { + text = qsTr("Donate") + } + else if (text.length > 0 && settings.width < minWidthRequiredForDonateText) + { + text = "" + } + } + + highlighted: true + icon.source: Icons.get(Icons.Donate) + + onClicked: { + if (donateButton.text.length > 0) + { + text = qsTr("Thank you so much!") + } + settingsController.openAuthorKoFi() + } + } + + + RoundButton { + id: websiteButton + + anchors { + right: reportIssueButton.left + rightMargin: 10 + verticalCenter: parent.verticalCenter + } + + flat: true + icon.source: Icons.get(Icons.Website) + + onClicked: settingsController.openWebsite() + + ToolTip.visible: hovered + ToolTip.text: qsTr("Open Website") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + + RoundButton { + id: reportIssueButton + + anchors { + right: resetButton.left + rightMargin: 10 + verticalCenter: parent.verticalCenter + } + + flat: true + icon.source: Icons.get(Icons.BugReport) + + onClicked: settingsController.reportIssue() + + ToolTip.visible: hovered + ToolTip.text: qsTr("Report an Issue") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + + RoundButton { + id: resetButton + + anchors { + right: saveButton.left + rightMargin: 10 + verticalCenter: parent.verticalCenter + } + + flat: true + icon.source: Icons.get(Icons.Reset) + + onClicked: settingsController.load() + + ToolTip.visible: hovered + ToolTip.text: qsTr("Discard unsaved changes") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + + RoundButton { + id: saveButton + + anchors { + right: parent.right + rightMargin: 10 + verticalCenter: parent.verticalCenter + } + + flat: ! settingsController.unsavedChanges + highlighted: settingsController.unsavedChanges + enabled: ! settingsController.savingChanges + + icon.source: Icons.get(Icons.Save) + + onClicked: settingsController.save() + + ToolTip.visible: hovered + ToolTip.text: qsTr("Apply changes") + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + } + + ScrollView { + id: sv + + anchors { + top: header.bottom + bottom: parent.bottom + horizontalCenter: parent.horizontalCenter + } + + width: Math.min(parent.width, 500) + + Item { + anchors { + top: parent.top + left: parent.left + right: parent.right + margins: 10 + rightMargin: sv.ScrollBar.vertical.width + anchors.margins + bottomMargin: 50 + } + + implicitHeight: settingsCol.implicitHeight + (anchors.margins * 2) + anchors.bottomMargin + + Column { + spacing: 5 + + anchors.fill: parent + + id: settingsCol + + + ComboBoxSetting { + displayText: qsTr("Theme") + + comboBox { + model: settingsController.themes + + currentIndex: settingsController.selectedThemeIndex + onCurrentIndexChanged: { + settingsController.selectedThemeIndex = comboBox.currentIndex + settingsController.unsavedChanges = true + } + } + } + + ColourDialogSetting { + displayText: qsTr("Accent Colour") + + colourBox.color: settingsController.accentColour + + colourDialog { + onAccepted: { + settingsController.accentColour = colourDialog.selectedColor + settingsController.unsavedChanges = true + } + } + } + + ComboBoxSetting { + displayText: qsTr("Default Profile") + + comboBox { + model: settingsController.profiles + textRole: "name" + currentIndex: settingsController.selectedDefaultProfileIndex + width: 150 + onCurrentIndexChanged: { + settingsController.selectedDefaultProfileIndex = comboBox.currentIndex + settingsController.unsavedChanges = true + comboBox.ToolTip.text = keyboardConfiguratorController.profiles.profileName(comboBox.currentIndex) + } + + ToolTip.visible: comboBox.hovered + ToolTip.delay: mainWindowController.toolTipDelay + ToolTip.timeout: mainWindowController.toolTipTimeout + } + } + + SwitchSetting { + displayText: qsTr("Start on system boot") + + visible: settingsController.startOnBootSupported + + switchControl { + checked: settingsController.startOnBoot + onCheckedChanged: { + settingsController.startOnBoot = switchControl.checked + settingsController.unsavedChanges = true + } + } + } + + SwitchSetting { + displayText: qsTr("Apply default profile when Rangoli starts") + + switchControl { + checked: settingsController.applyDefaultProfileOnStartup + onCheckedChanged: { + settingsController.applyDefaultProfileOnStartup = switchControl.checked + settingsController.unsavedChanges = true + } + } + } + + SwitchSetting { + displayText: qsTr("Always show tray icon") + + switchControl { + checked: settingsController.alwaysShowSystemTrayIcon + onCheckedChanged: { + settingsController.alwaysShowSystemTrayIcon = switchControl.checked + settingsController.unsavedChanges = true + } + } + } + + SwitchSetting { + displayText: qsTr("Close to tray icon") + + switchControl { + checked: settingsController.closeToSystemTrayIcon + onCheckedChanged: { + settingsController.closeToSystemTrayIcon = switchControl.checked + settingsController.unsavedChanges = true + } + } + } + + SubHeading { + text: qsTr("About") + } + + Item { + implicitWidth: parent.width + implicitHeight: checkForUpdatesButton.implicitHeight + 10 + + Label { + anchors { + left: parent.left + verticalCenter: checkForUpdatesButton.verticalCenter + } + + text: qsTr("Rangoli Version %1").arg(settingsController.version) + } + + Button { + id: checkForUpdatesButton + + anchors { + right: parent.right + top: parent.top + } + + text: qsTr("Check for Updates"); + highlighted: true + + enabled: settingsController.checkForUpdatesButtonEnabled + + onClicked: settingsController.checkForUpdates() + } + } + + Row + { + Label { + text: qsTr("Developed by ") + } + + Hyperlink { + text: "Debayan Sutradhar" + mouseArea.onClicked: settingsController.openAuthorWebsite() + } + + Label { + text: qsTr(". Copyright 2023.") + } + } + + Row + { + Label { + text: qsTr("Mail: ") + } + + Hyperlink { + text: settingsController.authorEmail + mouseArea.onClicked: settingsController.emailAuthor() + } + } + + Row { + Label { + text: qsTr("Rangoli is licensed under the ") + } + + Hyperlink { + text: "GNU General Public License v3.0" + mouseArea.onClicked: settingsController.openLicense() + } + } + + Row { + Hyperlink { + text: "Source Code Repository" + mouseArea.onClicked: settingsController.openGitRepository() + } + + Label { + text: qsTr(" - Consider gifting a star ^^") + } + } + + SubHeading { + text: qsTr("Donate") + } + + Label { + width: parent.width + wrapMode: Text.Wrap + text: qsTr("It takes a lot of time and effort to build quality software. Anything will be highly appreciated <3") + } + + Label { + text: "UPI: " + settingsController.authorUPI + } + + Hyperlink { + text: "Ko-Fi" + mouseArea.onClicked: settingsController.openAuthorKoFi() + } + } + } + } + + component SubHeading: Column { + + property alias text: shLabel.text + + width: parent.width + height: implicitHeight + 10 + + Label { + id: shLabel + topPadding: 20 + bottomPadding: 10 + font.pixelSize: 15 + } + + Rectangle { + color: "grey" + height: 1 + width: parent.width + } + } + + + component ComboBoxSetting: Item { + width: parent.width + height: Math.max(cbsLabel.implicitHeight, cbsComboBox.implicitHeight) + + property alias displayText: cbsLabel.text + property alias comboBox: cbsComboBox + + Label { + id: cbsLabel + + anchors { + left: parent.left + verticalCenter: parent.verticalCenter + } + } + + ComboBox { + id: cbsComboBox + + anchors { + right: parent.right + verticalCenter: parent.verticalCenter + } + } + } + + component ColourDialogSetting: Item { + width: parent.width + height: Math.max(cdsColourBox.implicitHeight, cdsPickButton.height) + + property alias displayText: cdsLabel.text + property alias colourBox: cdsColourBox + property alias pickButton: cdsPickButton + property alias colourDialog: cdsColourDialog + + Label { + id: cdsLabel + + anchors { + left: parent.left + verticalCenter: parent.verticalCenter + } + } + + Rectangle { + id: cdsColourBox + + anchors { + right: cdsPickButton.left + rightMargin: 10 + verticalCenter: parent.verticalCenter + } + + height: 30 + width: 30 + + radius: 3 + border.width: 1 + border.color: "#979797" + } + + Button { + id: cdsPickButton + + anchors { + right: parent.right + verticalCenter: parent.verticalCenter + } + + text: qsTr("Pick") + + onClicked: cdsColourDialog.open() + } + + ColorDialog { + id: cdsColourDialog + + options: ColorDialog.DontUseNativeDialog + } + } + + component SwitchSetting: Item { + width: parent.width + height: Math.max(ssLabel.implicitHeight, ssSwitch.implicitHeight) + + property alias displayText: ssLabel.text + property alias switchControl: ssSwitch + + Label { + id: ssLabel + + anchors { + left: parent.left + verticalCenter: parent.verticalCenter + } + } + + Switch { + id: ssSwitch + + anchors { + right: parent.right + verticalCenter: parent.verticalCenter + } + } + } + +} diff --git a/src/customcolours.cpp b/src/customcolours.cpp new file mode 100644 index 0000000..008e212 --- /dev/null +++ b/src/customcolours.cpp @@ -0,0 +1,83 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "customcolours.h" + +#include + +CustomColours::CustomColours(QObject *parent) + : QAbstractListModel{parent} +{} + +int CustomColours::defaultRowCount() +{ + return 8; +} + +int CustomColours::rowCount(const QModelIndex &parent) const +{ + Q_UNUSED(parent) + + return m_colours.size(); +} + +QVariant CustomColours::data(const QModelIndex &index, int role) const +{ + if (role <= Qt::UserRole || index.row() >= m_colours.size()) + { + return QVariant(); + } + + if (role == ColourRole) + { + return m_colours.at(index.row()); + } + + return QVariant(); +} + +bool CustomColours::setData(const QModelIndex &index, const QVariant &value, int role) +{ + if (!hasIndex(index.row(), index.column(), index.parent())) + return false; + + if (role == ColourRole) + m_colours.replace(index.row(), value.value()); + else + return false; + + emit dataChanged(index, index); + + return true; +} + +QHash CustomColours::roleNames() const +{ + QHash roles; + + roles[ColourRole] = "colour"; + + return roles; +} + +void CustomColours::setColours(const QList colours) +{ + beginResetModel(); + m_colours = colours; + endResetModel(); +} + +const QList &CustomColours::colours() +{ + return m_colours; +} diff --git a/src/customcolours.h b/src/customcolours.h new file mode 100644 index 0000000..230a905 --- /dev/null +++ b/src/customcolours.h @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef CUSTOMCOLOURS_H +#define CUSTOMCOLOURS_H + +#include + +class CustomColours : public QAbstractListModel +{ + Q_OBJECT + +public: + explicit CustomColours(QObject *parent = nullptr); + + enum Roles { + ColourRole = Qt::UserRole +1 + }; + + int defaultRowCount(); + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + + bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; + + QHash roleNames() const override; + + void setColours(const QList colours); + + const QList& colours(); + +private: + QList m_colours; + +}; + +#endif // CUSTOMCOLOURS_H diff --git a/src/customlightmodekeys.cpp b/src/customlightmodekeys.cpp new file mode 100644 index 0000000..b991e5e --- /dev/null +++ b/src/customlightmodekeys.cpp @@ -0,0 +1,114 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "customlightmodekeys.h" +#include + +CustomLightModeKeys::CustomLightModeKeys(QObject *parent) + : QAbstractListModel{parent} +{ + +} + +CustomLightModeKeys::~CustomLightModeKeys() +{ + +} + +int CustomLightModeKeys::rowCount(const QModelIndex &parent) const +{ + Q_UNUSED(parent); + + return m_keys.size(); +} + +QVariant CustomLightModeKeys::data(const QModelIndex &index, int role) const +{ + if (role <= Qt::UserRole || index.row() >= m_keys.size()) + { + return QVariant(); + } + + if (role == ColourRole) + { + return m_keys[m_keyIndexes.at(index.row())]; + } + + return QVariant(); +} + +QHash CustomLightModeKeys::roleNames() const +{ + QHash roles; + roles[ColourRole] = "colour"; + return roles; +} + +void CustomLightModeKeys::add(const int &keyIndex, const QColor &colour) +{ + beginResetModel(); + m_keys[keyIndex] = colour; + m_keyIndexes << keyIndex; +} + +void CustomLightModeKeys::addIfNotExists(const int &keyIndex, const QColor &colour) +{ + if (!m_keys.contains(keyIndex)) + { + add(keyIndex, colour); + } +} + +void CustomLightModeKeys::toggle(const int& keyIndex, const QColor &colour) +{ + if (m_keys.contains(keyIndex)) + { + beginResetModel(); + m_keys.remove(keyIndex); + m_keyIndexes.removeOne(keyIndex); + endResetModel(); + } + else + { + add(keyIndex, colour); + } +} + +void CustomLightModeKeys::toggle(const int& keyIndex) +{ + toggle(keyIndex, QColor(Qt::white)); +} + +const QList &CustomLightModeKeys::keyIndexes() +{ + return m_keyIndexes; +} + +const QHash &CustomLightModeKeys::keys() +{ + return m_keys; +} + +void CustomLightModeKeys::clear() +{ + beginResetModel(); + m_keys.clear(); + m_keyIndexes.clear(); + endResetModel(); +} + +QColor CustomLightModeKeys::getColour(const int &index) +{ + return data(this->index(index), + CustomLightModeKeys::ColourRole).value(); +} diff --git a/src/customlightmodekeys.h b/src/customlightmodekeys.h new file mode 100644 index 0000000..45f7eb7 --- /dev/null +++ b/src/customlightmodekeys.h @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef CUSTOMLIGHTMODEKEYS_H +#define CUSTOMLIGHTMODEKEYS_H + +#include +#include +#include +#include +#include + +struct CustomLightModeKey +{ + int keyIndex; + QColor colour; +}; + +class CustomLightModeKeys : public QAbstractListModel +{ + Q_OBJECT + +public: + CustomLightModeKeys(QObject* parent = nullptr); + ~CustomLightModeKeys(); + + enum Roles { + ColourRole = Qt::UserRole + 1 + }; + + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + + QHash roleNames() const override; + + void add(const int& keyIndex, const QColor &colour); + void addIfNotExists(const int& keyIndex, const QColor &colour); + void toggle(const int& keyIndex, const QColor &colour); + void toggle(const int& keyIndex); + + const QList& keyIndexes(); + const QHash& keys(); + void clear(); + + Q_INVOKABLE QColor getColour(const int& index); + +private: + QHash m_keys; + QList m_keyIndexes; +}; + +#endif // CUSTOMLIGHTMODEKEYS_H + diff --git a/src/custommappedkeys.cpp b/src/custommappedkeys.cpp new file mode 100644 index 0000000..48ed8af --- /dev/null +++ b/src/custommappedkeys.cpp @@ -0,0 +1,141 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "custommappedkeys.h" + +CustomMappedKeys::CustomMappedKeys(QObject *parent) + : QAbstractListModel{parent}, m_selectedKeyIndex{-1} +{ + +} + +int CustomMappedKeys::rowCount(const QModelIndex &parent) const +{ + Q_UNUSED(parent) + + return m_keys.contains(m_selectedKeyIndex) ? m_keys[m_selectedKeyIndex].size() : 0; +} + +QVariant CustomMappedKeys::data(const QModelIndex &index, int role) const +{ + if (m_selectedKeyIndex == -1) return QVariant(); + + if (role <= Qt::UserRole || + index.row() >= m_keys[m_selectedKeyIndex].size()) + return QVariant(); + + if (role == NameRole) + { + return KeyCode::Names[m_keys[m_selectedKeyIndex].at(index.row())]; + } + + return QVariant(); +} + +QHash CustomMappedKeys::roleNames() const +{ + QHash roles; + roles[NameRole] = "name"; + return roles; +} + +void CustomMappedKeys::addKeys(const int &keyIndex, const QList &keys) +{ + bool resetModel = m_selectedKeyIndex == keyIndex; + + if (resetModel) beginResetModel(); + m_keys[keyIndex] = keys; + m_keyIndexes << keyIndex; + if (resetModel) endResetModel(); +} + +const QList &CustomMappedKeys::keyIndexes() +{ + return m_keyIndexes; +} + +const QHash > &CustomMappedKeys::keys() +{ + return m_keys; +} + +int CustomMappedKeys::keysCount() +{ + return m_keyIndexes.size(); +} + +void CustomMappedKeys::setSelectedKeyIndex(const int &keyIndex) +{ + if (keyIndex == m_selectedKeyIndex) return; + + beginResetModel(); + m_selectedKeyIndex = keyIndex; + endResetModel(); +} + +void CustomMappedKeys::add(const KeyCode::Code &code) +{ + beginResetModel(); + if (m_keys.contains(m_selectedKeyIndex)) + { + if (!m_keys[m_selectedKeyIndex].contains(code)) + { + if (!KeyCode::isCombination(code)) + { + m_keys[m_selectedKeyIndex].removeIf([](const KeyCode::Code& i){ + return !KeyCode::isCombination(i); + }); + } + + m_keys[m_selectedKeyIndex] << code; + } + } + else + { + m_keys[m_selectedKeyIndex] = {code}; + m_keyIndexes << m_selectedKeyIndex; + } + + endResetModel(); +} + +void CustomMappedKeys::remove(const int& index) +{ + beginResetModel(); + + m_keys[m_selectedKeyIndex].removeAt(index); + + if (m_keys[m_selectedKeyIndex].size() == 0) { + m_keys.remove(m_selectedKeyIndex); + m_keyIndexes.removeOne(m_selectedKeyIndex); + } + + endResetModel(); +} + +void CustomMappedKeys::clear() +{ + beginResetModel(); + m_keys.remove(m_selectedKeyIndex); + m_keyIndexes.removeOne(m_selectedKeyIndex); + endResetModel(); +} + +void CustomMappedKeys::clearAll() +{ + beginResetModel(); + m_keys.clear(); + m_keyIndexes.clear(); + endResetModel(); +} + diff --git a/src/custommappedkeys.h b/src/custommappedkeys.h new file mode 100644 index 0000000..68fb03b --- /dev/null +++ b/src/custommappedkeys.h @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef CUSTOMMAPPEDKEYS_H +#define CUSTOMMAPPEDKEYS_H + +#include +#include + +#include "keycode.h" + +class CustomMappedKeys : public QAbstractListModel +{ + Q_OBJECT + +public: + enum Roles { + NameRole = Qt::UserRole + 1 + }; + + explicit CustomMappedKeys(QObject *parent = nullptr); + + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + + QHash roleNames() const override; + + void addKeys(const int& keyIndex, const QList& keys); + + const QList& keyIndexes(); + const QHash>& keys(); + + Q_INVOKABLE int keysCount(); + +public slots: + void setSelectedKeyIndex(const int& keyIndex); + + void add(const KeyCode::Code& code); + void remove(const int& index); + void clear(); + void clearAll(); + +private: + QHash> m_keys; + QList m_keyIndexes; + int m_selectedKeyIndex; +}; + +#endif // CUSTOMMAPPEDKEYS_H diff --git a/src/enhanceddialog.cpp b/src/enhanceddialog.cpp new file mode 100644 index 0000000..fa4a158 --- /dev/null +++ b/src/enhanceddialog.cpp @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "enhanceddialog.h" + + +EnhancedDialog::EnhancedDialog(const QString &title, const QString &text) + : EnhancedDialog(title, text, ButtonsType::OK) +{ + +} + +EnhancedDialog::EnhancedDialog(const QString &title, const QString &text, const ButtonsType &buttonsType) + : m_title(title), m_text(text), m_buttonsType(buttonsType) +{ + +} + +QString &EnhancedDialog::title() +{ + return m_title; +} + +QString &EnhancedDialog::text() +{ + return m_text; +} + +int &EnhancedDialog::buttonsType() +{ + return m_buttonsType; +} + +void EnhancedDialog::setOnClosed(std::function onClosed) +{ + m_onClosed = onClosed; +} + +void EnhancedDialog::setOnAccepted(std::function onAccepted) +{ + m_onAccepted = onAccepted; +} + +void EnhancedDialog::setOnRejected(std::function onRejected) +{ + m_onRejected = onRejected; +} + +void EnhancedDialog::setButtonsType(const ButtonsType &buttonsType) +{ + m_buttonsType = buttonsType; +} + +void EnhancedDialog::wait() +{ + //m_eventLoop.exec(); +} + +void EnhancedDialog::onClosed() +{ + if(m_onClosed) + m_onClosed(); + + //m_eventLoop.exit(); +} + +void EnhancedDialog::onAccepted() +{ + if(m_onAccepted) + m_onAccepted(); + + //m_eventLoop.exit(); +} + +void EnhancedDialog::onRejected() +{ + if(m_onRejected) + m_onRejected(); + + //m_eventLoop.exit(); +} + diff --git a/src/enhanceddialog.h b/src/enhanceddialog.h new file mode 100644 index 0000000..61fff06 --- /dev/null +++ b/src/enhanceddialog.h @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef ENHANCEDDIALOG_H +#define ENHANCEDDIALOG_H + +#include +#include +#include + +class EnhancedDialog +{ + Q_GADGET + Q_PROPERTY(QString title READ title CONSTANT) + Q_PROPERTY(QString text READ text CONSTANT) + Q_PROPERTY(int buttonsType READ buttonsType CONSTANT) + +public: + EnhancedDialog() = default; + explicit EnhancedDialog(const QString& title, const QString& text); + + enum ButtonsType { // FIXME: Make non caps + OK = 0, + YES_NO = 1 + }; + + explicit EnhancedDialog(const QString& title, const QString& text, const EnhancedDialog::ButtonsType& buttonsType); + + QString& title(); + QString& text(); + int& buttonsType(); + ~EnhancedDialog() = default; + + void setOnClosed(std::function onClosed); + void setOnAccepted(std::function onAccepted); + void setOnRejected(std::function onRejected); + void setButtonsType(const EnhancedDialog::ButtonsType& buttonsType); + void wait(); + +public slots: + void onClosed(); + void onAccepted(); + void onRejected(); + +private: + QString m_title; + QString m_text; + int m_buttonsType; + std::function m_onClosed; + std::function m_onAccepted; + std::function m_onRejected; +}; + +#endif // ENHANCEDDIALOG_H diff --git a/src/hidconnection.cpp b/src/hidconnection.cpp new file mode 100644 index 0000000..2fc72ed --- /dev/null +++ b/src/hidconnection.cpp @@ -0,0 +1,85 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "hidconnection.h" + +HIDConnection::HIDConnection(QObject *parent) + : QObject{parent}, m_worker{new HIDConnectionWorker()} +{ + m_worker->moveToThread(&m_thread); + + connect(&m_thread, &QThread::started, m_worker, &HIDConnectionWorker::init); + + connect(m_worker, &HIDConnectionWorker::initDone, this, [this](const bool& success){ + emit initDone(success); + }); + + connect(this, &HIDConnection::refreshKeyboards, + m_worker, &HIDConnectionWorker::refreshKeyboards); + + connect(m_worker, &HIDConnectionWorker::keyboardConnected, + this, [this](const Keyboard& keyboard){ + emit keyboardConnected(keyboard); + }); + + connect(m_worker, &HIDConnectionWorker::keyboardDisconnected, + this, [this](const int& pid){ + emit keyboardDisconnected(pid); + }); + + connect(m_worker, &HIDConnectionWorker::keyboardsScanComplete, + this, [this](){ + emit keyboardsScanComplete(); + }); + + connect(this, &HIDConnection::sendData, + m_worker, &HIDConnectionWorker::sendData); + + connect(m_worker, &HIDConnectionWorker::dataSentSuccessfully, + this, [this](){ + emit dataSentSuccessfully(); + }); + + connect(m_worker, &HIDConnectionWorker::failedToSendData, + this, [this](const QString& message){ + emit failedToSendData(message); + }); + + connect(m_worker, &HIDConnectionWorker::fatalErrorOccured, + this, [this](const QString& message){ + emit fatalErrorOccured(message); + }); +} + +HIDConnection &HIDConnection::getInstance() +{ + static HIDConnection instance; + return instance; +} + +void HIDConnection::start() +{ + m_thread.start(); +} + +void HIDConnection::stop() +{ + if (m_thread.isRunning()) + { + m_thread.quit(); + m_thread.wait(); + delete m_worker; + } +} + + diff --git a/src/hidconnection.h b/src/hidconnection.h new file mode 100644 index 0000000..20059f5 --- /dev/null +++ b/src/hidconnection.h @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef HIDCONNECTION_H +#define HIDCONNECTION_H + +#include +#include +#include + +#include +#include "keyboard.h" +#include "keyboardmodel.h" +#include "hidconnectionworker.h" + +class HIDConnection : public QObject +{ + Q_OBJECT +public: + explicit HIDConnection(QObject *parent = nullptr); + static HIDConnection& getInstance(); + +private: + QThread m_thread; + QPointer m_worker; + +signals: + void initDone(const bool& success); + + void refreshKeyboards(QPointer connectedKeyboards); + + void keyboardConnected(const Keyboard& keyboard); + void keyboardDisconnected(const quint16& pid); + + void keyboardsScanComplete(); + + void sendData(const QString& path, unsigned char** buffers, int bufferLength); + + void dataSentSuccessfully(); + void failedToSendData(const QString& message); + + void fatalErrorOccured(const QString& message); + +public slots: + void start(); + void stop(); +}; + +#endif // HIDCONNECTION_H diff --git a/src/hidconnectionworker.cpp b/src/hidconnectionworker.cpp new file mode 100644 index 0000000..c4b5c90 --- /dev/null +++ b/src/hidconnectionworker.cpp @@ -0,0 +1,225 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "hidconnectionworker.h" + +#include +#include + +#include +#include +#include + +using namespace Qt::Literals::StringLiterals; + +HIDConnectionWorker::HIDConnectionWorker(QObject *parent) + : QObject{parent} +{ +} + +HIDConnectionWorker::~HIDConnectionWorker() +{ + if (m_HIDInitSuccessful) + { + hid_exit(); + } +} + +void HIDConnectionWorker::init() +{ + m_HIDInitSuccessful = ! hid_init(); + + if (m_HIDInitSuccessful) + { + registerAllKeyboards(); + } + + emit initDone(m_HIDInitSuccessful); +} + +void HIDConnectionWorker::refreshKeyboards(QPointer connectedKeyboards) +{ + struct hid_device_info* devs = hid_enumerate(0x258A, 0x0); + + struct hid_device_info* devIterator = devs; + + QList disconnectedHIDPIDs = connectedKeyboards->keyboardPIDs(); + QList connectedHIDPIDs; + + while (devIterator) + { + if (m_allKeyboardsVID==devIterator->vendor_id && m_allKeyboardsPIDs.contains(devIterator->product_id) + #ifdef Q_OS_WIN + && QString(devIterator->path).contains(u"&Col05"_s, Qt::CaseInsensitive) + #else + && devIterator->usage == 0x0080 && devIterator->usage_page == 0x0001 + #endif + && !connectedHIDPIDs.contains(devIterator->product_id)) + { + connectedHIDPIDs << devIterator->product_id; + + if (disconnectedHIDPIDs.contains(devIterator->product_id)) + { + disconnectedHIDPIDs.removeAll(devIterator->product_id); + continue; + } + + QFile configFile{QStringLiteral("keyboards/configs/%1.json") + .arg(QString::number(devIterator->product_id, 16))}; + + if (!configFile.open(QIODevice::ReadOnly)) + { + emit fatalErrorOccured(QString(tr("Unable to open configuration file for keyboard with pid '%1'.")) + .arg(QString::number(devIterator->product_id, 16))); + + return; + } + + if (!QFile(QStringLiteral("keyboards/images/%1.png") + .arg(QString::number(devIterator->product_id, 16))).exists()) + { + emit fatalErrorOccured(QString(tr("Cannot find image for keyboard with pid '%1'.")) + .arg(QString::number(devIterator->product_id, 16))); + + return; + } + + QJsonDocument configDocument{QJsonDocument::fromJson(configFile.readAll())}; + + QJsonObject configObj = configDocument.object(); + + QString name = configObj["name"].toString(); + + QJsonArray topObj = configObj["top"].toArray(); + + QJsonArray bottomObj = configObj["bottom"].toArray(); + + QList keys; + bool keyMapEnabled = true; + + QJsonArray keyObjs = configObj["keys"].toArray(); + + for (auto&& keyObjRef : keyObjs) + { + QJsonObject keyObj = keyObjRef.toObject(); + + QJsonArray keyTopObj = keyObj["top"].toArray(); + QJsonArray keyBottomObj = keyObj["bottom"].toArray(); + + auto keyCodeStr = keyObj["keyCode"].toString(); + auto bufferIndex = keyObj["bIndex"].toInt(); + + KeyCode::Code keyCode = KeyCode::CodeStrings[keyCodeStr]; + + if (keyCode == KeyCode::Code::Key_Invalid) + { + qDebug() << "Ignoring invalid key code" << keyCodeStr + << "with buffer index" << bufferIndex + << "in keyboard" << name; + continue; + } + + if (KeyCode::isUnknownKey(keyCode)) + { + keyMapEnabled = false; + } + + Key ll{bufferIndex, + keyCode, + keyTopObj[0].toInt(), keyTopObj[1].toInt(), + keyBottomObj[0].toInt(), keyBottomObj[1].toInt()}; + + keys << ll; + } + + + emit keyboardConnected( + Keyboard { devIterator->product_id, + QString(devIterator->path), name, + keys, configObj["rgb"].toBool(), keyMapEnabled, + topObj[0].toInt(), topObj[1].toInt(), + bottomObj[0].toInt(), bottomObj[1].toInt() }); + + configFile.close(); + } + + devIterator = devIterator->next; + } + + hid_free_enumeration(devs); + + for (auto keyboard : disconnectedHIDPIDs) + { + emit keyboardDisconnected(keyboard); + } + + emit keyboardsScanComplete(); +} + +void HIDConnectionWorker::sendData(const QString &path, unsigned char** buffers, int bufferLength) +{ + hid_device* handle = hid_open_path(qPrintable(path)); + + if (!handle) + { + emit failedToSendData(tr("Failed to open keyboard device.")); + return; + } + + for(int i = 0; i < bufferLength; i++) + { + if (hid_send_feature_report(handle, buffers[i], KeyboardConfiguratorController::BufferSize) + != KeyboardConfiguratorController::BufferSize) + { + emit failedToSendData(tr("Failed to send feature report to keyboard.")); + return; + } + + delete [] buffers[i]; + } + + delete [] buffers; + + emit dataSentSuccessfully(); + + hid_close(handle); +} + +void HIDConnectionWorker::registerAllKeyboards() +{ + m_allKeyboardsPIDs.clear(); + + QFile listFile{"keyboards/list.json"}; + + if (!listFile.open(QIODevice::ReadOnly)) + { + emit fatalErrorOccured(tr("Unable to open keyboards list.")); + + return; + } + + QByteArray lfBytes = listFile.readAll(); + + QJsonDocument listDocument{QJsonDocument::fromJson(lfBytes)}; + + QJsonObject listObj = listDocument.object(); + + m_allKeyboardsVID = listObj["vid"].toString().toInt(nullptr, 16); + + for (auto&& keyboardObj : listObj["pids"].toArray()) + { + m_allKeyboardsPIDs << keyboardObj.toString().toInt(nullptr, 16); + } + + listFile.close(); +} diff --git a/src/hidconnectionworker.h b/src/hidconnectionworker.h new file mode 100644 index 0000000..032ee70 --- /dev/null +++ b/src/hidconnectionworker.h @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef HIDCONNECTIONWORKER_H +#define HIDCONNECTIONWORKER_H + +#include +#include +#include +#include +#include +#include + +#include + +#include "keyboard.h" +#include "keyboardmodel.h" +#include "mainwindowcontroller.h" + +class HIDConnectionWorker : public QObject +{ + Q_OBJECT +public: + explicit HIDConnectionWorker(QObject *parent = nullptr); + ~HIDConnectionWorker(); + +signals: + void initDone(const bool& success); + void keyboardConnected(const Keyboard& keyboard); + void keyboardDisconnected(const quint16& pid); + void keyboardsScanComplete(); + void dataSentSuccessfully(); + void failedToSendData(const QString& message); + void fatalErrorOccured(const QString& message); + +public slots: + void init(); + + void refreshKeyboards(QPointer connectedKeyboards); + + void sendData(const QString& path, unsigned char** buffers, int bufferLength); + +private: + bool m_HIDInitSuccessful; + qint16 m_allKeyboardsVID; + QList m_allKeyboardsPIDs; + + void registerAllKeyboards(); +}; + +#endif // HIDCONNECTIONWORKER_H diff --git a/src/icon_windows.rc b/src/icon_windows.rc new file mode 100755 index 0000000..1bd9359 --- /dev/null +++ b/src/icon_windows.rc @@ -0,0 +1 @@ +IDI_ICON1 ICON "../icons/rangoli.ico" diff --git a/src/icons.cpp b/src/icons.cpp new file mode 100644 index 0000000..dfbf47c --- /dev/null +++ b/src/icons.cpp @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include +#include "icons.h" + +using namespace Qt::Literals::StringLiterals; + +QString Icons::get(const int &icon) +{ + switch (icon) + { + case Icon::Add: + return u"qrc:/icons/add.svg"_s; + case Icon::ArrowBack: + return u"qrc:/icons/arrow_back.svg"_s; + case Icon::BugReport: + return u"qrc:/icons/bug_report.svg"_s; + case Icon::Delete: + return u"qrc:/icons/delete.svg"_s; + case Icon::Donate: + return u"qrc:/icons/donate.svg"_s; + case Icon::Done: + return u"qrc:/icons/done.svg"_s; + case Icon::Edit: + return u"qrc:/icons/edit.svg"_s; + case Icon::Git: + return u"qrc:/icons/git.svg"_s; + case Icon::Help: + return u"qrc:/icons/help.svg"_s; + case Icon::Home: + return u"qrc:/icons/home.svg"_s; + case Icon::Keyboard: + return u"qrc:/icons/keyboard.svg"_s; + case Icon::Light: + return u"qrc:/icons/light.svg"_s; + case Icon::Rangoli: + return u"qrc:/icons/rangoli.svg"_s; + case Icon::Refresh: + return u"qrc:/icons/refresh.svg"_s; + case Icon::Reset: + return u"qrc:/icons/reset.svg"_s; + case Icon::Save: + return u"qrc:/icons/save.svg"_s; + case Icon::Settings: + return u"qrc:/icons/settings.svg"_s; + case Icon::Website: + return u"qrc:/icons/website.svg"_s; + } + + return QString(); +} diff --git a/src/icons.h b/src/icons.h new file mode 100644 index 0000000..78abc83 --- /dev/null +++ b/src/icons.h @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef ICONS_H +#define ICONS_H + +#include +#include +#include +#include + +class Icons : public QObject +{ + Q_OBJECT + QML_ELEMENT + QML_SINGLETON + +public: + enum Icon { + Add, + ArrowBack, + BugReport, + Delete, + Donate, + Done, + Edit, + Git, + Help, + Home, + Keyboard, + Light, + Rangoli, + Refresh, + Reset, + Save, + Settings, + Website + }; + + Q_ENUM(Icon) + + Q_INVOKABLE static QString get(const int& icon); +}; + +#endif // ICONS_H diff --git a/src/key.cpp b/src/key.cpp new file mode 100644 index 0000000..712b5d4 --- /dev/null +++ b/src/key.cpp @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "key.h" + +#include + +Key::Key() +{} + +Key::Key(const int &bufferIndex, const KeyCode::Code& keyCode, + const int& topX, const int& topY, + const int& bottomX, const int& bottomY) : + bufferIndex{bufferIndex}, keyCode{keyCode}, + topX{topX}, topY{topY}, + bottomX{bottomX}, bottomY{bottomY} +{} + +Key::~Key() +{} diff --git a/src/key.h b/src/key.h new file mode 100644 index 0000000..7c2bb3d --- /dev/null +++ b/src/key.h @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef KEY_H +#define KEY_H + +#include +#include +#include +#include + +#include "keycode.h" + +class Key +{ + Q_GADGET + Q_PROPERTY(int bufferIndex MEMBER bufferIndex) + + Q_PROPERTY(int topX MEMBER topX) + Q_PROPERTY(int topY MEMBER topY) + Q_PROPERTY(int bottomX MEMBER bottomX) + Q_PROPERTY(int bottomY MEMBER bottomY) + +public: + + Key(); + + Key(const int& bufferIndex, const KeyCode::Code& keyCode, + const int& topX, const int& topY, + const int& bottomX, const int& bottomY); + ~Key(); + + int bufferIndex; + KeyCode::Code keyCode; + int topX; + int topY; + int bottomX; + int bottomY; + +}; + + +#endif // KEY_H diff --git a/src/keyboard.cpp b/src/keyboard.cpp new file mode 100644 index 0000000..845b6d3 --- /dev/null +++ b/src/keyboard.cpp @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "keyboard.h" + +#include + +Keyboard::Keyboard(const unsigned short &pid, + const QString &path, const QString &name, + const QList& keys, const bool& rgb, const bool& keyMapEnabled, + const int& topLeftX, const int& topLeftY, + const int& bottomRightX, const int& bottomRightY) + : imagePath{QStringLiteral("file:keyboards/images/%1.png").arg(QString::number(pid, 16))}, + pid{pid}, + path{path}, name{name}, + keys{keys}, rgb{rgb}, keyMapEnabled{keyMapEnabled}, + topLeftX{topLeftX}, topLeftY{topLeftY}, + bottomRightX{bottomRightX}, bottomRightY{bottomRightY} +{} + +Keyboard::~Keyboard() +{} diff --git a/src/keyboard.h b/src/keyboard.h new file mode 100644 index 0000000..fa60457 --- /dev/null +++ b/src/keyboard.h @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef KEYBOARD_H +#define KEYBOARD_H + +#include +#include +#include +#include + +#include "key.h" + +struct Keyboard +{ + Keyboard(const unsigned short& pid, + const QString& path, const QString& name, + const QList& keys, const bool& rgb, const bool& keyMapEnabled, + const int& topLeftX, const int& topLeftY, + const int& bottomRightX, const int& bottomRightY); + ~Keyboard(); + + QString imagePath; + unsigned short pid; + QString path; + QString name; + QList keys; + + bool rgb; + bool keyMapEnabled; + + int topLeftX; + int topLeftY; + int bottomRightX; + int bottomRightY; +}; + +#endif // KEYBOARD_H diff --git a/src/keyboardconfiguratorcontroller.cpp b/src/keyboardconfiguratorcontroller.cpp new file mode 100644 index 0000000..a23e2df --- /dev/null +++ b/src/keyboardconfiguratorcontroller.cpp @@ -0,0 +1,768 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "keyboardconfiguratorcontroller.h" + +#include +#include + +#include "mainwindowcontroller.h" +#include "enhanceddialog.h" +#include "hidconnection.h" + +using namespace Qt::Literals::StringLiterals; + +KeyboardConfiguratorController::KeyboardConfiguratorController(QObject *parent) + : QObject{parent}, m_selectedKeyboardIndex{-1}, m_randomColours{true}, + m_customColours{new CustomColours{this}}, + m_customLightModeKeys{new CustomLightModeKeys{this}}, + m_unsavedChanges{false}, m_savingChanges{false}, + m_selectedMode{Mode::Light}, m_selectedLightModeIndex{0}, + m_modes{new ModeModel{this}}, m_selectedProfileIndex{-1}, + m_brightness{5}, m_animation{5}, m_sleep{5}, + m_keyCodes{new KeyCodeModel{this}}, + m_keyCodesProxy{new KeyCodeModelProxy{this}}, + m_customMappedKeys{new CustomMappedKeys{this}} +{ + m_keyCodesProxy->setSourceModel(m_keyCodes); + m_keyCodesProxy->setSortRole(KeyCodeModel::KeyRoles::NameRole); + m_keyCodesProxy->sort(0); +} + +const bool &KeyboardConfiguratorController::randomColours() +{ + return m_randomColours; +} + +const QColor &KeyboardConfiguratorController::selectedColour() +{ + return m_selectedColour; +} + +CustomColours* KeyboardConfiguratorController::customColours() +{ + return m_customColours.get(); +} + +CustomLightModeKeys *KeyboardConfiguratorController::customLightModeKeys() +{ + return m_customLightModeKeys; +} + +const bool &KeyboardConfiguratorController::unsavedChanges() +{ + return m_unsavedChanges; +} + +const bool &KeyboardConfiguratorController::savingChanges() +{ + return m_savingChanges; +} + +bool KeyboardConfiguratorController::keyMapEnabled() +{ + if (m_selectedKeyboardIndex == -1) return true; + + return selectedKeyboard().keyMapEnabled; +} + +const int &KeyboardConfiguratorController::brightness() +{ + return m_brightness; +} + +const int &KeyboardConfiguratorController::animation() +{ + return m_animation; +} + +const int &KeyboardConfiguratorController::sleep() +{ + return m_sleep; +} + +ModeModel *KeyboardConfiguratorController::modes() +{ + return m_modes.get(); +} + +const KeyboardConfiguratorController::Mode &KeyboardConfiguratorController::selectedMode() +{ + return m_selectedMode; +} + +const int &KeyboardConfiguratorController::selectedLightModeIndex() +{ + return m_selectedLightModeIndex; +} + +bool KeyboardConfiguratorController::isCustomLightModeSelected() +{ + return m_modes->isCustomMode(m_selectedLightModeIndex); +} + +bool KeyboardConfiguratorController::showColoursColumn() +{ + if (m_selectedKeyboardIndex == -1) return true; + + return selectedKeyboard().rgb + ? m_modes->getModeBit(m_selectedLightModeIndex) != static_cast(ModeModel::RGBModes::Neon) + : false; +} + +ProfileModel *KeyboardConfiguratorController::profiles() +{ + return m_profiles.get(); +} + +const int &KeyboardConfiguratorController::selectedProfileIndex() +{ + return m_selectedProfileIndex; +} + +QSortFilterProxyModel *KeyboardConfiguratorController::keyCodesProxy() +{ + return m_keyCodesProxy.get(); +} + +CustomMappedKeys *KeyboardConfiguratorController::customMappedKeys() +{ + return m_customMappedKeys.get(); +} + +const int &KeyboardConfiguratorController::topLeftX() +{ + return selectedKeyboard().topLeftX; +} + +const int &KeyboardConfiguratorController::topLeftY() +{ + return selectedKeyboard().topLeftY; +} + +const int &KeyboardConfiguratorController::bottomRightX() +{ + return selectedKeyboard().bottomRightX; +} + +const int &KeyboardConfiguratorController::bottomRightY() +{ + return selectedKeyboard().bottomRightY; +} + +Key KeyboardConfiguratorController::getKeyByCustomLightModeKeysIndex(int index) +{ + return selectedKeyboard().keys.at(m_customLightModeKeys->keyIndexes().at(index)); +} + +Key KeyboardConfiguratorController::getKeyByCustomMappedKeysIndex(int index) +{ + return selectedKeyboard().keys.at(m_customMappedKeys->keyIndexes().at(index)); +} + +void KeyboardConfiguratorController::init() +{ + auto mainWindowController = qvariant_cast(qmlEngine(this) + ->rootContext() + ->contextProperty("mainWindowController")); + m_profiles = mainWindowController->profiles(); + + m_connectedKeyboards = mainWindowController->connectedKeyboards(); + + HIDConnection& connection = HIDConnection::getInstance(); + + connect(&connection, &HIDConnection::dataSentSuccessfully, this, [this](){ + setSavingChanges(false); + }); + + connect(&connection, &HIDConnection::failedToSendData, this, [this](const QString& message){ + setSavingChanges(false); + + MainWindowController::showEnhancedDialog(this, EnhancedDialog( + tr("Error"), + message)); + }); +} + +void KeyboardConfiguratorController::load(const int &keyboardIndex) +{ + m_selectedKeyboardIndex = keyboardIndex; + + emit loadName(selectedKeyboard().name); + emit loadImage(selectedKeyboard().imagePath); + + emit keyMapEnabledChanged(); + + m_modes->setRGB(selectedKeyboard().rgb); +} + +void KeyboardConfiguratorController::applyDefaultProfile() +{ + setSelectedProfileIndex(m_profiles->defaultProfileIndex()); +} + +void KeyboardConfiguratorController::save() +{ + saveProfile(); + saveToKeyboard(); +} + +void KeyboardConfiguratorController::reset() +{ + loadProfileSettings(); +} + +void KeyboardConfiguratorController::setRandomColours(const bool &randomColours) +{ + if (m_randomColours == randomColours) return; + + m_randomColours = randomColours; + emit randomColoursChanged(); +} + +void KeyboardConfiguratorController::setSelectedColour(const QColor &colour) +{ + if (m_selectedColour == colour) return; + + m_selectedColour = colour; + emit selectedColourChanged(); +} + +void KeyboardConfiguratorController::setUnsavedChanges(const bool &unsavedChanges) +{ + if (m_unsavedChanges == unsavedChanges) return; + + m_unsavedChanges = unsavedChanges; + emit unsavedChangesChanged(); +} + +void KeyboardConfiguratorController::setSavingChanges(const bool &savingChanges) +{ + if (m_savingChanges == savingChanges) return; + + m_savingChanges = savingChanges; + emit savingChangesChanged(); +} + +void KeyboardConfiguratorController::setBrightness(const int &brightness) +{ + if (m_brightness == brightness) return; + + m_brightness = brightness; + emit brightnessChanged(); +} + +void KeyboardConfiguratorController::setAnimation(const int &animation) +{ + if (m_animation == animation) return; + + m_animation = animation; + emit animationChanged(); +} + +void KeyboardConfiguratorController::setSleep(const int &sleep) +{ + if (m_sleep == sleep) return; + + m_sleep = sleep; + emit sleepChanged(); +} + +void KeyboardConfiguratorController::setSelectedMode(const KeyboardConfiguratorController::Mode& selectedMode) +{ + if (m_selectedMode == selectedMode) return; + + m_selectedMode = selectedMode; + + emit selectedModeChanged(); +} + +void KeyboardConfiguratorController::setSelectedLightModeIndex(const int &selectedLightModeIndex) +{ + if (m_selectedLightModeIndex == selectedLightModeIndex) return; + + bool customModeChanged = isCustomLightModeSelected() || m_modes->isCustomMode(selectedLightModeIndex); + + m_selectedLightModeIndex = selectedLightModeIndex; + emit selectedLightModeIndexChanged(); + + if (customModeChanged) + { + emit isCustomLightModeSelectedChanged(); + } + + emit showColoursColumnChanged(); +} + +void KeyboardConfiguratorController::setSelectedProfileIndex(const int &selectedProfileIndex) +{ + if (m_selectedProfileIndex == selectedProfileIndex) return; + + m_selectedProfileIndex = selectedProfileIndex; + emit selectedProfileIndexChanged(); + + loadProfileCustomColours(); + loadProfileSettings(); + + saveToKeyboard(); +} + +void KeyboardConfiguratorController::clickKey(const int &x, const int &y) +{ + int index = getKeyIndexAtLocation(x, y); + if (index == -1) return; + + if (m_selectedMode == Mode::Light) + { + if (selectedKeyboard().rgb) + { + m_customLightModeKeys->toggle(index, m_selectedColour); + } + else + { + m_customLightModeKeys->toggle(index); + } + + setUnsavedChanges(true); + emit customLightModeKeysChanged(); + } + else if (selectedKeyboard().keyMapEnabled) + { + m_customMappedKeys->setSelectedKeyIndex(index); + emit openConfigureKeyMapPopup(); + } +} + +void KeyboardConfiguratorController::selectAllKeysForCustomMode() +{ + for (int i = 0; i < selectedKeyboard().keys.size(); i++) + { + m_customLightModeKeys->addIfNotExists(i, m_selectedColour); + } + + setUnsavedChanges(true); + emit customLightModeKeysChanged(); +} + +void KeyboardConfiguratorController::unselectAllKeysForCustomMode() +{ + m_customLightModeKeys->clear(); + + setUnsavedChanges(true); + emit customLightModeKeysChanged(); +} + +void KeyboardConfiguratorController::createAndSelectNewProfile(const QString &name) +{ + setSelectedProfileIndex(m_profiles->createNewProfile(name)); +} + +void KeyboardConfiguratorController::setProfileName(const int &row, const QString &name) +{ + m_profiles->setProfileName(row, name); +} + +void KeyboardConfiguratorController::deleteProfile(const int &row) +{ + m_profiles->deleteProfile(row); + + if (m_selectedProfileIndex >= row) + { + m_selectedProfileIndex--; + emit selectedProfileIndexChanged(); + } +} + +void KeyboardConfiguratorController::setKeyCodeModelFilter(const QString &filter) +{ + m_keyCodesProxy->setFilterFixedString(filter); +} + +QByteArray KeyboardConfiguratorController::getStandardLightBuffer() +{ + QByteArray buffer(BufferSize, 0x00); + + buffer[0] = 0x0a; + buffer[1] = 0x01; + buffer[2] = 0x01; + buffer[3] = 0x02; + buffer[4] = 0x29; + buffer[5] = m_modes->getModeBit(m_selectedLightModeIndex); + buffer[7] = m_animation; + buffer[8] = m_brightness; + + if (! m_randomColours) + { + buffer[9] = m_selectedColour.red(); + buffer[10] = m_selectedColour.green(); + buffer[11] = m_selectedColour.blue(); + } + + buffer[12] = m_randomColours ? 0x01 : 0x00; + buffer[13] = m_sleep; + + return buffer; +} + +void KeyboardConfiguratorController::setStandardLightBufferBetter(unsigned char* buffer) +{ + std::fill_n(buffer, BufferSize, 0x00); + + buffer[0] = 0x0a; + buffer[1] = 0x01; + buffer[2] = 0x01; + buffer[3] = 0x02; + buffer[4] = 0x29; + buffer[5] = m_modes->getModeBit(m_selectedLightModeIndex); + buffer[7] = m_animation; + buffer[8] = m_brightness; + + if (! m_randomColours) + { + buffer[9] = m_selectedColour.red(); + buffer[10] = m_selectedColour.green(); + buffer[11] = m_selectedColour.blue(); + } + + buffer[12] = m_randomColours ? 0x01 : 0x00; + buffer[13] = m_sleep; +} + +void KeyboardConfiguratorController::setBufferKey(unsigned char *buffer, const int &keyCode) +{ + if (keyCode >= 0x01000000) + { + buffer[0] = (keyCode >> 24) & 0xff; + buffer[1] = (keyCode >> 16) & 0xff; + buffer[2] = (keyCode >> 8) & 0xff; + buffer[3] = (keyCode) & 0xff; + } + else if (keyCode >= 0x010000) + { + buffer[0] = 0x00; + buffer[1] = (keyCode >> 16) & 0xff; + buffer[2] = (keyCode >> 8) & 0xff; + buffer[3] = (keyCode) & 0xff; + } + else if (keyCode >= 0x0100) + { + buffer[0] = 0x00; + buffer[1] = 0x00; + buffer[2] = (keyCode >> 8) & 0xff; + buffer[3] = (keyCode) & 0xff; + } + else if (keyCode >= 0x10) + { + buffer[0] = 0x00; + buffer[1] = 0x00; + buffer[2] = 0x00; + buffer[3] = (keyCode) & 0xff; + } +} + +void KeyboardConfiguratorController::saveProfile() +{ + QSettings settings; + + settings.beginGroup(QStringLiteral("profiles/%1").arg(getProfileID())); + + settings.beginGroup(u"custom_colours"_s); + + for (int i = 0; i < m_customColours->defaultRowCount(); i++) + { + settings.setValue(QString::number(i), m_customColours->colours().value(i)); + } + + settings.endGroup(); + + settings.beginGroup(QString::number(selectedKeyboard().pid)); + + settings.setValue(u"brightness"_s, m_brightness); + settings.setValue(u"animation"_s, m_animation); + settings.setValue(u"sleep"_s, m_sleep); + settings.setValue(u"mode"_s, m_selectedLightModeIndex); + + settings.setValue(u"random_colour"_s, m_randomColours); + settings.setValue(u"selected_colour"_s, m_selectedColour); + + settings.remove(u"custom_light_mode_keys"_s); + + settings.beginGroup(u"custom_light_mode_keys"_s); + + for (int i = 0; i < m_customLightModeKeys->keyIndexes().size(); i++) + { + auto keyIndex = m_customLightModeKeys->keyIndexes().at(i); + settings.setValue(QString::number(selectedKeyboard().keys.at(keyIndex).bufferIndex), + m_customLightModeKeys->keys()[keyIndex]); + } + + settings.endGroup(); + + settings.remove(u"custom_mapped_keys"_s); + + settings.beginGroup(u"custom_mapped_keys"_s); + + for (int i = 0; i < m_customMappedKeys->keyIndexes().size(); i++) + { + auto index = m_customMappedKeys->keyIndexes().at(i); + + settings.beginWriteArray(QString::number(selectedKeyboard().keys.at(index).bufferIndex)); + + const QList keyCodes = m_customMappedKeys->keys()[index]; + + for (int j = 0; j < keyCodes.size(); j++) + { + settings.setArrayIndex(j); + settings.setValue(u"key_code"_s, QString::number(keyCodes.at(j))); + } + + settings.endArray(); + } + + settings.endGroup(); + + settings.endGroup(); + + settings.endGroup(); +} + +void KeyboardConfiguratorController::saveToKeyboard() +{ + setSavingChanges(true); + + unsigned char** buffers = new unsigned char* [1 + CustomLightModeBuffersSize + KeyMapBuffersSize]; + int buffersIndex = 0; + + unsigned char* buffer = new unsigned char[BufferSize]; + setStandardLightBufferBetter(buffer); + buffers[buffersIndex++] = buffer; + + if (isCustomLightModeSelected()) + { + unsigned char ledFullBuffer[CustomLightModeBuffersSize * BufferSize]; + std::fill_n(ledFullBuffer, CustomLightModeBuffersSize * BufferSize, 0x00); + + for (int i = 0; i < m_customLightModeKeys->keyIndexes().size(); i++) + { + auto keyIndex = m_customLightModeKeys->keyIndexes().at(i); + const Key& key = selectedKeyboard().keys.at(keyIndex); + const QColor& colour = m_customLightModeKeys->keys()[keyIndex]; + + int lbi = key.bufferIndex * 3; + ledFullBuffer[lbi] = colour.red(); + ledFullBuffer[lbi + 1] = colour.green(); + ledFullBuffer[lbi + 2] = colour.blue(); + } + + int ledBufferIndex = 0; + + for (int i = 0; i < CustomLightModeBuffersSize; i++) + { + unsigned char* buffer = new unsigned char[BufferSize]; + std::fill_n(buffer, BufferSize, 0x00); + + buffer[0] = 0x0a; + buffer[1] = CustomLightModeBuffersSize; + buffer[2] = i + 1; + + if (i == 0) + { + buffer[3] = 0x03; + buffer[4] = 0x7e; + buffer[5] = 0x01; + } + + for (int bufferIndex = ((i == 0) ? 6 : 3 ); bufferIndex < BufferSize; bufferIndex++) + { + buffer[bufferIndex] = ledFullBuffer[ledBufferIndex]; + ledBufferIndex++; + } + + buffers[buffersIndex++] = buffer; + } + } + + if (selectedKeyboard().keyMapEnabled) + { + unsigned char mapFullBuffer[KeyMapBuffersSize * BufferSize]; + std::fill_n(mapFullBuffer, KeyMapBuffersSize * BufferSize, 0x00); + + for (int i = 0; i < selectedKeyboard().keys.size(); i++) + { + setBufferKey(mapFullBuffer + (selectedKeyboard().keys.at(i).bufferIndex * 4), + selectedKeyboard().keys.at(i).keyCode); + } + + for (int i = 0; i < m_customMappedKeys->keyIndexes().size(); i++) + { + int keyIndex = m_customMappedKeys->keyIndexes().at(i); + + int bufferIndex = selectedKeyboard().keys.at(keyIndex).bufferIndex; + + int finalKey = 0; + + for (auto&& eachMappedKey : m_customMappedKeys->keys()[keyIndex]) + { + finalKey |= eachMappedKey; + } + + setBufferKey((mapFullBuffer + (bufferIndex * 4)), finalKey); + } + + int mapBufferIndex = 0; + + for (int i = 0; i < KeyMapBuffersSize; i++) + { + unsigned char* buffer = new unsigned char[BufferSize]; + std::fill_n(buffer, BufferSize, 0x00); + + buffer[0] = 0x0a; + buffer[1] = KeyMapBuffersSize; + buffer[2] = i + 1; + + if (i == 0) + { + buffer[3] = 0x01; + buffer[4] = 0xf8; + } + + for (int bufferIndex = ((i == 0) ? 5 : 3 ); bufferIndex < BufferSize; bufferIndex++) + { + buffer[bufferIndex] = mapFullBuffer[mapBufferIndex]; + mapBufferIndex++; + } + + buffers[buffersIndex++] = buffer; + } + } + + emit HIDConnection::getInstance().sendData(selectedKeyboard().path, buffers, buffersIndex); + + setUnsavedChanges(false); +} + +void KeyboardConfiguratorController::loadProfileSettings() +{ + QSettings settings; + + settings.beginGroup(QStringLiteral("profiles/%1/%2").arg(getProfileID(), QString::number(selectedKeyboard().pid))); + + setBrightness(settings.value(u"brightness"_s, 5).toUInt()); + setAnimation(settings.value(u"animation"_s, 3).toUInt()); + setSleep(settings.value(u"sleep"_s, 5).toUInt()); + setSelectedLightModeIndex(settings.value(u"mode"_s, m_modes->neonStreamIndex()).toUInt()); + + setRandomColours(settings.value(u"random_colour"_s, true).toBool()); + setSelectedColour(settings.value(u"selected_colour"_s, QColor(Qt::white)).value()); + + settings.beginGroup(u"custom_light_mode_keys"_s); + m_customLightModeKeys->clear(); + QStringList customLightModeKeysBufferIndexes = settings.childKeys(); + for (auto&& bufferIndex : customLightModeKeysBufferIndexes) + { + for(int i = 0; i < selectedKeyboard().keys.size(); i++) + { + const Key& key = selectedKeyboard().keys.at(i); + + if (bufferIndex == QString::number(key.bufferIndex)) + { + m_customLightModeKeys->add(i, settings.value(bufferIndex).value()); + break; + } + } + } + emit customLightModeKeysChanged(); + settings.endGroup(); + + settings.beginGroup(u"custom_mapped_keys"_s); + m_customMappedKeys->clearAll(); + QStringList customMappedKeysBufferIndexes = settings.childGroups(); + for (auto&& bufferIndex : customMappedKeysBufferIndexes) + { + int size = settings.beginReadArray(bufferIndex); + + QList codes; + + for (int i = 0; i < size; i++) + { + settings.setArrayIndex(i); + + codes << static_cast(settings.value(u"key_code"_s).toInt()); + } + + settings.endArray(); + + for(int i = 0; i < selectedKeyboard().keys.size(); i++) + { + const Key& key = selectedKeyboard().keys.at(i); + + if (bufferIndex == QString::number(key.bufferIndex)) + { + m_customMappedKeys->addKeys(i, codes); + break; + } + } + } + settings.endGroup(); + + settings.endGroup(); +} + +void KeyboardConfiguratorController::loadProfileCustomColours() +{ + QSettings settings; + + QList newColours; + + settings.beginGroup(QStringLiteral("profiles/%1").arg(getProfileID())); + + settings.beginGroup(u"custom_colours"_s); + + for (int i = 0; i < m_customColours->defaultRowCount(); i++) + { + newColours << settings.value(QString::number(i), QColor(Qt::white)).value(); + } + + m_customColours->setColours(std::move(newColours)); + + settings.endGroup(); + + settings.endGroup(); +} + +QString KeyboardConfiguratorController::getProfileID() +{ + return m_profiles->data(m_profiles->index(m_selectedProfileIndex, 0), ProfileModel::ProfileModelRoles::IDRole).toString(); +} + +int KeyboardConfiguratorController::getKeyIndexAtLocation(const int &x, const int &y) +{ + for(int i = 0; i < selectedKeyboard().keys.size(); i++) + { + const Key& key = selectedKeyboard().keys.at(i); + + if (x >= key.topX && y >= key.topY + && x <= key.bottomX && y <= key.bottomY) + { + return i; + } + } + + return -1; +} + +const Keyboard &KeyboardConfiguratorController::selectedKeyboard() +{ + return m_connectedKeyboards->keyboards().at(m_selectedKeyboardIndex); +} + diff --git a/src/keyboardconfiguratorcontroller.h b/src/keyboardconfiguratorcontroller.h new file mode 100644 index 0000000..780a12c --- /dev/null +++ b/src/keyboardconfiguratorcontroller.h @@ -0,0 +1,210 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef KEYBOARDCONFIGURATORCONTROLLER_H +#define KEYBOARDCONFIGURATORCONTROLLER_H + +#include +#include +#include +#include +#include +#include + +#include "customlightmodekeys.h" +#include "modemodel.h" +#include "key.h" +#include "keyboard.h" +#include "keyboardmodel.h" +#include "profilemodel.h" +#include "customcolours.h" +#include "keycodemodel.h" +#include "keycodemodelproxy.h" +#include "custommappedkeys.h" + + +class KeyboardConfiguratorController : public QObject +{ + Q_OBJECT + QML_ELEMENT + Q_PROPERTY(bool randomColours READ randomColours WRITE setRandomColours NOTIFY randomColoursChanged) + Q_PROPERTY(QColor selectedColour READ selectedColour WRITE setSelectedColour NOTIFY selectedColourChanged) + Q_PROPERTY(CustomColours* customColours READ customColours CONSTANT) + Q_PROPERTY(CustomLightModeKeys* customLightModeKeys READ customLightModeKeys CONSTANT) + Q_PROPERTY(bool unsavedChanges READ unsavedChanges WRITE setUnsavedChanges NOTIFY unsavedChangesChanged) + Q_PROPERTY(bool savingChanges READ savingChanges WRITE setSavingChanges NOTIFY savingChangesChanged) + Q_PROPERTY(bool keyMapEnabled READ keyMapEnabled NOTIFY keyMapEnabledChanged) + + Q_PROPERTY(int brightness READ brightness WRITE setBrightness NOTIFY brightnessChanged) + Q_PROPERTY(int animation READ animation WRITE setAnimation NOTIFY animationChanged) + Q_PROPERTY(int sleep READ sleep WRITE setSleep NOTIFY sleepChanged) + + Q_PROPERTY(ModeModel* modes READ modes CONSTANT) + Q_PROPERTY(KeyboardConfiguratorController::Mode selectedMode READ selectedMode WRITE setSelectedMode NOTIFY selectedModeChanged) + Q_PROPERTY(int selectedLightModeIndex READ selectedLightModeIndex WRITE setSelectedLightModeIndex NOTIFY selectedLightModeIndexChanged) + Q_PROPERTY(bool isCustomLightModeSelected READ isCustomLightModeSelected NOTIFY isCustomLightModeSelectedChanged) + Q_PROPERTY(bool showColoursColumn READ showColoursColumn NOTIFY showColoursColumnChanged) + + Q_PROPERTY(ProfileModel* profiles READ profiles CONSTANT) + Q_PROPERTY(int selectedProfileIndex READ selectedProfileIndex WRITE setSelectedProfileIndex NOTIFY selectedProfileIndexChanged) + + Q_PROPERTY(QSortFilterProxyModel* keyCodesProxy READ keyCodesProxy CONSTANT) + + Q_PROPERTY(CustomMappedKeys* customMappedKeys READ customMappedKeys CONSTANT) + + Q_PROPERTY(int topLeftX READ topLeftX CONSTANT) + Q_PROPERTY(int topLeftY READ topLeftY CONSTANT) + Q_PROPERTY(int bottomRightX READ bottomRightX CONSTANT) + Q_PROPERTY(int bottomRightY READ bottomRightY CONSTANT) + +public: + + enum Mode { + Light, + KeyMap + }; + + Q_ENUM(Mode) + + explicit KeyboardConfiguratorController(QObject *parent = nullptr); + + static constexpr int BufferSize = 65; + + const bool& randomColours(); + const QColor& selectedColour(); + CustomColours* customColours(); + CustomLightModeKeys* customLightModeKeys(); + const bool& unsavedChanges(); + const bool& savingChanges(); + bool keyMapEnabled(); + + const int& brightness(); + const int& animation(); + const int& sleep(); + + ModeModel* modes(); + + const KeyboardConfiguratorController::Mode& selectedMode(); + const int& selectedLightModeIndex(); + bool isCustomLightModeSelected(); + bool showColoursColumn(); + + ProfileModel* profiles(); + const int& selectedProfileIndex(); + + QSortFilterProxyModel* keyCodesProxy(); + CustomMappedKeys* customMappedKeys(); + + const int& topLeftX(); + const int& topLeftY(); + const int& bottomRightX(); + const int& bottomRightY(); + + Q_INVOKABLE Key getKeyByCustomLightModeKeysIndex(int index); + Q_INVOKABLE Key getKeyByCustomMappedKeysIndex(int index); + +signals: + void loadName(const QString& name); + void loadImage(const QString& imagePath); + void randomColoursChanged(); + void selectedColourChanged(); + void customLightModeKeysChanged(); + void unsavedChangesChanged(); + void savingChangesChanged(); + void keyMapEnabledChanged(); + void brightnessChanged(); + void animationChanged(); + void sleepChanged(); + void selectedModeChanged(); + void selectedLightModeIndexChanged(); + void isCustomLightModeSelectedChanged(); + void showColoursColumnChanged(); + void selectedProfileIndexChanged(); + void openConfigureKeyMapPopup(); + void requestKbCanvasPaint(); + +public slots: + void init(); + void load(const int& keyboardIndex); + void applyDefaultProfile(); + void save(); + void reset(); + void setRandomColours(const bool& randomColours); + void setSelectedColour(const QColor& colour); + void setUnsavedChanges(const bool& unsavedChanges); + void setSavingChanges(const bool& savingChanges); + void setBrightness(const int& brightness); + void setAnimation(const int& animation); + void setSleep(const int& sleep); + void setSelectedMode(const KeyboardConfiguratorController::Mode& selectedMode); + void setSelectedLightModeIndex(const int& selectedLightModeIndex); + void setSelectedProfileIndex(const int& selectedProfileIndex); + void clickKey(const int& x, const int& y); + void selectAllKeysForCustomMode(); + void unselectAllKeysForCustomMode(); + + void createAndSelectNewProfile(const QString& name); + void setProfileName(const int& row, const QString& name); + void deleteProfile(const int& row); + + void setKeyCodeModelFilter(const QString& filter); + +private: + QPointer m_connectedKeyboards; + int m_selectedKeyboardIndex; + + bool m_randomColours; + QColor m_selectedColour; + QPointer m_customColours; + QPointer m_customLightModeKeys; + bool m_unsavedChanges; + bool m_savingChanges; + + KeyboardConfiguratorController::Mode m_selectedMode; + int m_selectedLightModeIndex; + QPointer m_modes; + + QPointer m_profiles; + int m_selectedProfileIndex; + + int m_brightness; + int m_animation; + int m_sleep; + + QPointer m_keyCodes; + QPointer m_keyCodesProxy; + QPointer m_customMappedKeys; + + static constexpr int KeyMapBuffersSize = 9; + static constexpr int CustomLightModeBuffersSize = 7; + + QByteArray getStandardLightBuffer(); + void setStandardLightBufferBetter(unsigned char* buffer); + + void setBufferKey(unsigned char* buffer, const int& keyCode); + + void saveProfile(); + void saveToKeyboard(); + + void loadProfileSettings(); + void loadProfileCustomColours(); + + QString getProfileID(); + + int getKeyIndexAtLocation(const int& x, const int& y); + + const Keyboard& selectedKeyboard(); + +}; + +#endif // KEYBOARDCONFIGURATORCONTROLLER_H diff --git a/src/keyboardmodel.cpp b/src/keyboardmodel.cpp new file mode 100644 index 0000000..dcdac2a --- /dev/null +++ b/src/keyboardmodel.cpp @@ -0,0 +1,80 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "keyboardmodel.h" + + +KeyboardModel::KeyboardModel(QObject *parent) + : QAbstractListModel(parent) +{} + +void KeyboardModel::append(const quint16& pid, const Keyboard& keyboard) +{ + beginInsertRows(QModelIndex(), m_keyboards.size(), m_keyboards.size()); + m_keyboardPIDs << pid; + m_keyboards << keyboard; + endInsertRows(); +} + +void KeyboardModel::remove(const quint16& pid) +{ + auto index = m_keyboardPIDs.indexOf(pid); + beginRemoveRows(QModelIndex(), index, index); + m_keyboardPIDs.removeAt(index); + m_keyboards.removeAt(index); + endRemoveRows(); +} + +int KeyboardModel::rowCount(const QModelIndex &parent) const +{ + Q_UNUSED(parent) + + return m_keyboards.size(); +} + +QVariant KeyboardModel::data(const QModelIndex &index, int role) const +{ + if (role <= Qt::UserRole || index.row() >= m_keyboards.size()) + { + return QVariant(); + } + + if (role == NameRole) + { + return m_keyboards.at(index.row()).name; + } + else if (role == ImagePathRole) + { + return m_keyboards.at(index.row()).imagePath; + } + + return QVariant(); +} + +QHash KeyboardModel::roleNames() const +{ + QHash roles; + roles[NameRole] = "name"; + roles[ImagePathRole] = "imgPath"; + return roles; +} + +const QList &KeyboardModel::keyboardPIDs() +{ + return m_keyboardPIDs; +} + +const QList &KeyboardModel::keyboards() +{ + return m_keyboards; +} diff --git a/src/keyboardmodel.h b/src/keyboardmodel.h new file mode 100644 index 0000000..ff94455 --- /dev/null +++ b/src/keyboardmodel.h @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef KEYBOARDMODEL_H +#define KEYBOARDMODEL_H + +#include + +#include "keyboard.h" + +class KeyboardModel : public QAbstractListModel +{ + Q_OBJECT + +public: + enum KeyboardRoles { + NameRole = Qt::UserRole + 1, + ImagePathRole + }; + + explicit KeyboardModel(QObject* parent = nullptr); + + void append(const quint16& pid, const Keyboard& keyboard); + void remove(const quint16& pid); + + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + + QHash roleNames() const override; + + const QList& keyboardPIDs(); + const QList& keyboards(); + +private: + QList m_keyboardPIDs; + QList m_keyboards; +}; + +#endif // KEYBOARDMODEL_H diff --git a/src/keycode.h b/src/keycode.h new file mode 100644 index 0000000..0a747d2 --- /dev/null +++ b/src/keycode.h @@ -0,0 +1,463 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef KEYCODE_H +#define KEYCODE_H + +#include +#include + +using namespace Qt::Literals::StringLiterals; + +class KeyCode { + +public: + enum Code { + Key_1 = 0x1e00, + Key_2 = 0x1f00, + Key_3 = 0x2000, + Key_4 = 0x2100, + Key_5 = 0x2200, + Key_6 = 0x2300, + Key_7 = 0x2400, + Key_8 = 0x2500, + Key_9 = 0x2600, + Key_0 = 0x2700, + + Key_A = 0x0400, + Key_B = 0x0500, + Key_C = 0x0600, + Key_D = 0x0700, + Key_E = 0x0800, + Key_F = 0x0900, + Key_G = 0x0a00, + Key_H = 0x0b00, + Key_I = 0x0c00, + Key_J = 0x0d00, + Key_K = 0x0e00, + Key_L = 0x0f00, + Key_M = 0x1000, + Key_N = 0x1100, + Key_O = 0x1200, + Key_P = 0x1300, + Key_Q = 0x1400, + Key_R = 0x1500, + Key_S = 0x1600, + Key_T = 0x1700, + Key_U = 0x1800, + Key_V = 0x1900, + Key_W = 0x1a00, + Key_X = 0x1b00, + Key_Y = 0x1c00, + Key_Z = 0x1d00, + + Key_Hyphen = 0x2d00, + Key_Equals = 0x2e00, + Key_Left_Bracket = 0x2f00, + Key_Right_Bracket = 0x3000, + Key_Back_Slash = 0x3100, + Key_Semi_Colon = 0x3300, + Key_Quote = 0x3400, + Key_Back_Quote = 0x3500, + Key_Comma = 0x3600, + Key_Dot = 0x3700, + Key_Slash = 0x3800, + + Key_Left_Control = 0x010000, + Key_Left_Shift = 0x020000, + Key_Left_Alt = 0x040000, + + Key_Right_Control = 0x100000, + Key_Right_Shift = 0x200000, + Key_Right_Alt = 0x400000, + + Key_Left_Super = 0x080000, + Key_Right_Super = 0x800000, + + Key_Right = 0x4f00, + Key_Left = 0x5000, + Key_Down = 0x5100, + Key_Up = 0x5200, + + Key_F1 = 0x3a00, + Key_F2 = 0x3b00, + Key_F3 = 0x3c00, + Key_F4 = 0x3d00, + Key_F5 = 0x3e00, + Key_F6 = 0x3f00, + Key_F7 = 0x4000, + Key_F8 = 0x4100, + Key_F9 = 0x4200, + Key_F10 = 0x4300, + Key_F11 = 0x4400, + Key_F12 = 0x4500, + + Key_Escape = 0x2900, + Key_Tab = 0x2b00, + Key_Enter = 0x2800, + Key_Menu = 0x6500, + Key_Insert = 0x4900, + Key_Pause = 0x4800, + Key_Space = 0x2c00, + Key_Home = 0x4a00, + Key_End = 0x4d00, + Key_Delete = 0x4c00, + Key_Page_Down = 0x4e00, + Key_Page_Up = 0x4b00, + Key_Caps_Lock = 0x3900, + Key_Backspace = 0x2a00, + Key_Print_Screen = 0x4600, + + Key_Num_1 = 0x5900, + Key_Num_2 = 0x5a00, + Key_Num_3 = 0x5b00, + Key_Num_4 = 0x5c00, + Key_Num_5 = 0x5d00, + Key_Num_6 = 0x5e00, + Key_Num_7 = 0x5f00, + Key_Num_8 = 0x6000, + Key_Num_9 = 0x6100, + Key_Num_0 = 0x6200, + Key_Num_Add = 0x5700, + Key_Num_Substract = 0x5600, + Key_Num_Multiply = 0x5500, + Key_Num_Divide = 0x5400, + Key_Num_Decimal_Point = 0x6300, + Key_Num_Lock = 0x5300, + Key_Num_Enter = 0x5800, + + Key_Fn = 0xb000, + + Shortcut_Explorer = 0x01000194, + Shortcut_Cut = 0x011b00, + Shortcut_Copy = 0x010600, + Shortcut_Paste = 0x011900, + Shortcut_Save = 0x011600, + Shortcut_Show_Desktop = 0x080700, + Shortcut_Lock = 0x080f00, + Shortcut_Switch_Window = 0x042b00, + Shortcut_Close_Window = 0x043d00, + + Multimedia_Play_Pause = 0x010000cd, + Multimedia_Stop = 0x010000b7, + Multimedia_Previous = 0x010000b6, + Multimedia_Next = 0x010000b5, + Multimedia_Volume_Up = 0x010000e9, + Multimedia_Volume_Down = 0x010000ea, + Multimedia_Mute = 0x010000e2, + + Key_Invalid = 0, + Key_Scroll_Lock = -1, + Key_Left_Shift_Split = -2, + Key_Calculator = -3 + }; + + static const inline QHash Names{ + {Key_1, u"1"_s}, + {Key_2, u"2"_s}, + {Key_3, u"3"_s}, + {Key_4, u"4"_s}, + {Key_5, u"5"_s}, + {Key_6, u"6"_s}, + {Key_7, u"7"_s}, + {Key_8, u"8"_s}, + {Key_9, u"9"_s}, + {Key_0, u"0"_s}, + {Key_A, u"A"_s}, + {Key_B, u"B"_s}, + {Key_C, u"C"_s}, + {Key_D, u"D"_s}, + {Key_E, u"E"_s}, + {Key_F, u"F"_s}, + {Key_G, u"G"_s}, + {Key_H, u"H"_s}, + {Key_I, u"I"_s}, + {Key_J, u"J"_s}, + {Key_K, u"K"_s}, + {Key_L, u"L"_s}, + {Key_M, u"M"_s}, + {Key_N, u"N"_s}, + {Key_O, u"O"_s}, + {Key_P, u"P"_s}, + {Key_Q, u"Q"_s}, + {Key_R, u"R"_s}, + {Key_S, u"S"_s}, + {Key_T, u"T"_s}, + {Key_U, u"U"_s}, + {Key_V, u"V"_s}, + {Key_W, u"W"_s}, + {Key_X, u"X"_s}, + {Key_Y, u"Y"_s}, + {Key_Z, u"Z"_s}, + {Key_Hyphen, u"-"_s}, + {Key_Equals, u"="_s}, + {Key_Left_Bracket, u"["_s}, + {Key_Right_Bracket, u"]"_s}, + {Key_Back_Slash, u"\\"_s}, + {Key_Semi_Colon, u";"_s}, + {Key_Quote, u"'"_s}, + {Key_Back_Quote, u"`"_s}, + {Key_Comma, u","_s}, + {Key_Dot, u"."_s}, + {Key_Slash, u"/"_s}, + {Key_Left_Control, u"Left Control"_s}, + {Key_Left_Shift, u"Left Shift"_s}, + {Key_Left_Alt, u"Left Alt"_s}, + {Key_Right_Control, u"Right Control"_s}, + {Key_Right_Shift, u"Right Shift"_s}, + {Key_Right_Alt, u"Right Alt"_s}, +#ifdef Q_OS_LINUX + {Key_Left_Super, u"Left Super"_s}, + {Key_Right_Super, u"Right Super"_s}, +#else + {Key_Left_Super, u"Left Win"_s}, + {Key_Right_Super, u"Right Win"_s}, +#endif + {Key_Right, u"Right"_s}, + {Key_Left, u"Left"_s}, + {Key_Down, u"Down"_s}, + {Key_Up, u"Up"_s}, + {Key_F1, u"F1"_s}, + {Key_F2, u"F2"_s}, + {Key_F3, u"F3"_s}, + {Key_F4, u"F4"_s}, + {Key_F5, u"F5"_s}, + {Key_F6, u"F6"_s}, + {Key_F7, u"F7"_s}, + {Key_F8, u"F8"_s}, + {Key_F9, u"F9"_s}, + {Key_F10, u"F10"_s}, + {Key_F11, u"F11"_s}, + {Key_F12, u"F12"_s}, + {Key_Escape, u"Esc"_s}, + {Key_Tab, u"Tab"_s}, + {Key_Enter, u"Enter"_s}, + {Key_Menu, u"Menu"_s}, + {Key_Insert, u"Insert"_s}, + {Key_Pause, u"Pause"_s}, + {Key_Space, u"Space"_s}, + {Key_Home, u"Home"_s}, + {Key_End, u"End"_s}, + {Key_Delete, u"Delete"_s}, + {Key_Page_Down, u"Page Down"_s}, + {Key_Page_Up, u"Page Up"_s}, + {Key_Caps_Lock, u"Caps Lock"_s}, + {Key_Backspace, u"Backspace"_s}, + {Key_Print_Screen, u"Print Screen"_s}, + {Key_Num_1, u"Numpad 1"_s}, + {Key_Num_2, u"Numpad 2"_s}, + {Key_Num_3, u"Numpad 3"_s}, + {Key_Num_4, u"Numpad 4"_s}, + {Key_Num_5, u"Numpad 5"_s}, + {Key_Num_6, u"Numpad 6"_s}, + {Key_Num_7, u"Numpad 7"_s}, + {Key_Num_8, u"Numpad 8"_s}, + {Key_Num_9, u"Numpad 9"_s}, + {Key_Num_0, u"Numpad 0"_s}, + {Key_Num_Add, u"Numpad +"_s}, + {Key_Num_Substract, u"Numpad -"_s}, + {Key_Num_Multiply, u"Numpad *"_s}, + {Key_Num_Divide, u"Numpad /"_s}, + {Key_Num_Decimal_Point, u"Numpad ."_s}, + {Key_Num_Lock, u"Num Lock"_s}, + {Key_Num_Enter, u"Numpad Enter"_s}, + {Key_Fn, u"Fn"_s}, + {Shortcut_Explorer, u"Open Explorer"_s}, + {Shortcut_Cut, u"Cut"_s}, + {Shortcut_Copy, u"Copy"_s}, + {Shortcut_Paste, u"Paste"_s}, + {Shortcut_Save, u"Save"_s}, + {Shortcut_Show_Desktop, u"Show Desktop"_s}, + {Shortcut_Lock, u"Lock System"_s}, + {Shortcut_Switch_Window, u"Switch Window"_s}, + {Shortcut_Close_Window, u"Close Window"_s}, + {Multimedia_Play_Pause, u"Play / Pause"_s}, + {Multimedia_Stop, u"Stop"_s}, + {Multimedia_Previous, u"Previous"_s}, + {Multimedia_Next, u"Next"_s}, + {Multimedia_Volume_Up, u"Volume Up"_s}, + {Multimedia_Volume_Down, u"Volume Down"_s}, + {Multimedia_Mute, u"Multimedia Mute"_s}, + {Key_Scroll_Lock, u"Scroll Lock"_s}, + {Key_Left_Shift_Split, u">< (Left Shift Split)"_s}, + {Key_Calculator, u"Calculator"_s} + }; + + static const inline QHash CodeStrings { + {u"Key_1"_s, Key_1}, + {u"Key_2"_s, Key_2}, + {u"Key_3"_s, Key_3}, + {u"Key_4"_s, Key_4}, + {u"Key_5"_s, Key_5}, + {u"Key_6"_s, Key_6}, + {u"Key_7"_s, Key_7}, + {u"Key_8"_s, Key_8}, + {u"Key_9"_s, Key_9}, + {u"Key_0"_s, Key_0}, + {u"Key_A"_s, Key_A}, + {u"Key_B"_s, Key_B}, + {u"Key_C"_s, Key_C}, + {u"Key_D"_s, Key_D}, + {u"Key_E"_s, Key_E}, + {u"Key_F"_s, Key_F}, + {u"Key_G"_s, Key_G}, + {u"Key_H"_s, Key_H}, + {u"Key_I"_s, Key_I}, + {u"Key_J"_s, Key_J}, + {u"Key_K"_s, Key_K}, + {u"Key_L"_s, Key_L}, + {u"Key_M"_s, Key_M}, + {u"Key_N"_s, Key_N}, + {u"Key_O"_s, Key_O}, + {u"Key_P"_s, Key_P}, + {u"Key_Q"_s, Key_Q}, + {u"Key_R"_s, Key_R}, + {u"Key_S"_s, Key_S}, + {u"Key_T"_s, Key_T}, + {u"Key_U"_s, Key_U}, + {u"Key_V"_s, Key_V}, + {u"Key_W"_s, Key_W}, + {u"Key_X"_s, Key_X}, + {u"Key_Y"_s, Key_Y}, + {u"Key_Z"_s, Key_Z}, + {u"Key_Hyphen"_s, Key_Hyphen}, + {u"Key_Equals"_s, Key_Equals}, + {u"Key_Left_Bracket"_s, Key_Left_Bracket}, + {u"Key_Right_Bracket"_s, Key_Right_Bracket}, + {u"Key_Back_Slash"_s, Key_Back_Slash}, + {u"Key_Semi_Colon"_s, Key_Semi_Colon}, + {u"Key_Quote"_s, Key_Quote}, + {u"Key_Back_Quote"_s, Key_Back_Quote}, + {u"Key_Comma"_s, Key_Comma}, + {u"Key_Dot"_s, Key_Dot}, + {u"Key_Slash"_s, Key_Slash}, + {u"Key_Left_Control"_s, Key_Left_Control}, + {u"Key_Left_Shift"_s, Key_Left_Shift}, + {u"Key_Left_Alt"_s, Key_Left_Alt}, + {u"Key_Right_Control"_s, Key_Right_Control}, + {u"Key_Right_Shift"_s, Key_Right_Shift}, + {u"Key_Right_Alt"_s, Key_Right_Alt}, + {u"Key_Left_Super"_s, Key_Left_Super}, + {u"Key_Right_Super"_s, Key_Right_Super}, + {u"Key_Right"_s, Key_Right}, + {u"Key_Left"_s, Key_Left}, + {u"Key_Down"_s, Key_Down}, + {u"Key_Up"_s, Key_Up}, + {u"Key_F1"_s, Key_F1}, + {u"Key_F2"_s, Key_F2}, + {u"Key_F3"_s, Key_F3}, + {u"Key_F4"_s, Key_F4}, + {u"Key_F5"_s, Key_F5}, + {u"Key_F6"_s, Key_F6}, + {u"Key_F7"_s, Key_F7}, + {u"Key_F8"_s, Key_F8}, + {u"Key_F9"_s, Key_F9}, + {u"Key_F10"_s, Key_F10}, + {u"Key_F11"_s, Key_F11}, + {u"Key_F12"_s, Key_F12}, + {u"Key_Escape"_s, Key_Escape}, + {u"Key_Tab"_s, Key_Tab}, + {u"Key_Enter"_s, Key_Enter}, + {u"Key_Menu"_s, Key_Menu}, + {u"Key_Insert"_s, Key_Insert}, + {u"Key_Pause"_s, Key_Pause}, + {u"Key_Space"_s, Key_Space}, + {u"Key_Home"_s, Key_Home}, + {u"Key_End"_s, Key_End}, + {u"Key_Delete"_s, Key_Delete}, + {u"Key_Page_Down"_s, Key_Page_Down}, + {u"Key_Page_Up"_s, Key_Page_Up}, + {u"Key_Caps_Lock"_s, Key_Caps_Lock}, + {u"Key_Backspace"_s, Key_Backspace}, + {u"Key_Print_Screen"_s, Key_Print_Screen}, + {u"Key_Num_1"_s, Key_Num_1}, + {u"Key_Num_2"_s, Key_Num_2}, + {u"Key_Num_3"_s, Key_Num_3}, + {u"Key_Num_4"_s, Key_Num_4}, + {u"Key_Num_5"_s, Key_Num_5}, + {u"Key_Num_6"_s, Key_Num_6}, + {u"Key_Num_7"_s, Key_Num_7}, + {u"Key_Num_8"_s, Key_Num_8}, + {u"Key_Num_9"_s, Key_Num_9}, + {u"Key_Num_0"_s, Key_Num_0}, + {u"Key_Num_Add"_s, Key_Num_Add}, + {u"Key_Num_Substract"_s, Key_Num_Substract}, + {u"Key_Num_Multiply"_s, Key_Num_Multiply}, + {u"Key_Num_Divide"_s, Key_Num_Divide}, + {u"Key_Num_Decimal_Point"_s, Key_Num_Decimal_Point}, + {u"Key_Num_Lock"_s, Key_Num_Lock}, + {u"Key_Num_Enter"_s, Key_Num_Enter}, + {u"Key_Fn"_s, Key_Fn}, + {u"Shortcut_Explorer"_s, Shortcut_Explorer}, + {u"Shortcut_Cut"_s, Shortcut_Cut}, + {u"Shortcut_Copy"_s, Shortcut_Copy}, + {u"Shortcut_Paste"_s, Shortcut_Paste}, + {u"Shortcut_Save"_s, Shortcut_Save}, + {u"Shortcut_Show_Desktop"_s, Shortcut_Show_Desktop}, + {u"Shortcut_Lock"_s, Shortcut_Lock}, + {u"Shortcut_Switch_Window"_s, Shortcut_Switch_Window}, + {u"Shortcut_Close_Window"_s, Shortcut_Close_Window}, + {u"Multimedia_Play_Pause"_s, Multimedia_Play_Pause}, + {u"Multimedia_Stop"_s, Multimedia_Stop}, + {u"Multimedia_Previous"_s, Multimedia_Previous}, + {u"Multimedia_Next"_s, Multimedia_Next}, + {u"Multimedia_Volume_Up"_s, Multimedia_Volume_Up}, + {u"Multimedia_Volume_Down"_s, Multimedia_Volume_Down}, + {u"Multimedia_Mute"_s, Multimedia_Mute}, + {u"Key_Scroll_Lock"_s, Key_Scroll_Lock}, + {u"Key_Left_Shift_Split"_s, Key_Left_Shift_Split}, + {u"Key_Calculator"_s, Key_Calculator} + }; + + static bool isCombination(const int& keyCode) + { + return keyCode == Key_Left_Control || + keyCode == Key_Left_Shift || + keyCode == Key_Left_Alt || + keyCode == Key_Left_Super; + } + + static bool isMultimediaKey(const int& keyCode) + { + return keyCode == Multimedia_Play_Pause || + keyCode == Multimedia_Stop || + keyCode == Multimedia_Previous || + keyCode == Multimedia_Next || + keyCode == Multimedia_Volume_Up || + keyCode == Multimedia_Volume_Down || + keyCode == Multimedia_Mute; + } + + static bool isUnknownKey(const int& keyCode) + { + return keyCode == Key_Scroll_Lock || + keyCode == Key_Left_Shift_Split || + keyCode == Key_Calculator; + } + + static bool isShortcutKey(const int& keyCode) + { + return keyCode == Shortcut_Explorer || + keyCode == Shortcut_Cut || + keyCode == Shortcut_Copy || + keyCode == Shortcut_Paste || + keyCode == Shortcut_Save || + keyCode == Shortcut_Show_Desktop || + keyCode == Shortcut_Lock || + keyCode == Shortcut_Switch_Window || + keyCode == Shortcut_Close_Window; + } + +}; + +#endif // KEYCODE_H diff --git a/src/keycodemodel.cpp b/src/keycodemodel.cpp new file mode 100644 index 0000000..8f9eb1a --- /dev/null +++ b/src/keycodemodel.cpp @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "keycodemodel.h" + +using namespace Qt::Literals::StringLiterals; + +KeyCodeModel::KeyCodeModel(QObject *parent) + : QAbstractListModel{parent}, + m_codes{KeyCode::Names.keys()} +{} + +int KeyCodeModel::rowCount(const QModelIndex &parent) const +{ + Q_UNUSED(parent) + + return m_codes.size(); +} + +QVariant KeyCodeModel::data(const QModelIndex &index, int role) const +{ + if (role <= Qt::UserRole || index.row() >= m_codes.size()) + { + return QVariant(); + } + + if (role == NameRole) + { + return KeyCode::Names[m_codes.at(index.row())]; + } + else if (role == CodeRole) + { + return m_codes.at(index.row()); + } + + return QVariant(); +} + +QHash KeyCodeModel::roleNames() const +{ + QHash roles; + + roles[NameRole] = "name"; + roles[CodeRole] = "code"; + + return roles; +} diff --git a/src/keycodemodel.h b/src/keycodemodel.h new file mode 100644 index 0000000..c94f00f --- /dev/null +++ b/src/keycodemodel.h @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef KEYCODEMODEL_H +#define KEYCODEMODEL_H + +#include +#include + +#include "keycode.h" + +class KeyCodeModel : public QAbstractListModel +{ + Q_OBJECT + +public: + //FIXME: refactor + + enum KeyRoles { + NameRole = Qt::UserRole + 1, + CodeRole + }; + + explicit KeyCodeModel(QObject *parent = nullptr); + + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + + QHash roleNames() const override; + +private: + // FIXME: refactor? + + QList m_codes; + +}; + +#endif // KEYCODEMODEL_H diff --git a/src/keycodemodelproxy.cpp b/src/keycodemodelproxy.cpp new file mode 100644 index 0000000..9cffbb6 --- /dev/null +++ b/src/keycodemodelproxy.cpp @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "keycodemodelproxy.h" + +#include "keycodemodel.h" + +KeyCodeModelProxy::KeyCodeModelProxy(QObject *parent) + : QSortFilterProxyModel{parent}, m_currentFilter{Filter::All} +{ + setFilterCaseSensitivity(Qt::CaseInsensitive); + setFilterKeyColumn(0); + setFilterRole(KeyCodeModel::KeyRoles::CodeRole); +} + +bool KeyCodeModelProxy::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const +{ + int keyCode = sourceModel()->data(sourceModel()->index(source_row, 0, source_parent), KeyCodeModel::CodeRole).toInt(); + + if (KeyCode::isUnknownKey(keyCode)) + { + return false; + } + +#ifndef Q_OS_WINDOWS + if (keyCode == KeyCode::Code::Shortcut_Explorer) + { + return false; + } +#endif + + const QString searchStr = sourceModel() + ->data(sourceModel()->index(source_row, 0, source_parent), KeyCodeModel::NameRole).toString(); + + if (!searchStr.contains(filterRegularExpression())) + { + return false; + } + + if (m_currentFilter == Filter::All) + { + return true; + } + if(m_currentFilter == Filter::Keyboard_Keys) + { + return !KeyCode::isMultimediaKey(keyCode) + && !KeyCode::isShortcutKey(keyCode); + } + else if(m_currentFilter == Filter::Combination_Keys) + { + return KeyCode::isCombination(keyCode); + } + else if(m_currentFilter == Filter::Multimedia) + { + return KeyCode::isMultimediaKey(keyCode); + } + else if(m_currentFilter == Filter::Shortcut) + { + return KeyCode::isShortcutKey(keyCode); + } + + return false; +} + +void KeyCodeModelProxy::setCurrentFilter(const KeyCodeModelProxy::Filter &filter) +{ + if (m_currentFilter == filter) return; + + beginResetModel(); + m_currentFilter = filter; + endResetModel(); +} diff --git a/src/keycodemodelproxy.h b/src/keycodemodelproxy.h new file mode 100644 index 0000000..f966165 --- /dev/null +++ b/src/keycodemodelproxy.h @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef KEYCODEMODELPROXY_H +#define KEYCODEMODELPROXY_H + +#include + +class KeyCodeModelProxy : public QSortFilterProxyModel +{ + Q_OBJECT + + enum Filter { + All, + Keyboard_Keys, + Combination_Keys, + Multimedia, + Shortcut + }; + +public: + explicit KeyCodeModelProxy(QObject *parent = nullptr); + + bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override; + +public slots: + void setCurrentFilter(const KeyCodeModelProxy::Filter& filter); + +private: + Filter m_currentFilter; + +}; + +#endif // KEYCODEMODELPROXY_H diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..d6afd58 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include "keyboardconfiguratorcontroller.h" +#include "mainwindowcontroller.h" +#include "settingscontroller.h" +#include "icons.h" + +using namespace Qt::Literals::StringLiterals; + +int main(int argc, char *argv[]) +{ + MainWindowController mainWindowController; + KeyboardConfiguratorController keyboardConfiguratorController; + SettingsController settingsController; + + QGuiApplication app(argc, argv); + + app.setOrganizationName(u"rnayabed"_s); + app.setOrganizationDomain(u"rnayabed.github.io"_s); + app.setApplicationName(u"rangoli"_s); + app.setApplicationDisplayName(u"Rangoli"_s); + app.setApplicationVersion(QString::number(VERSION)); + + app.setWindowIcon(QIcon(Icons::get(Icons::Rangoli).remove(0,3))); + + QDir::setCurrent(app.applicationDirPath()); + + QQmlApplicationEngine engine; + + engine.setContextForObject(&mainWindowController, engine.rootContext()); + engine.rootContext()->setContextProperty(u"mainWindowController"_s, &mainWindowController); + + engine.setContextForObject(&keyboardConfiguratorController, engine.rootContext()); + engine.rootContext()->setContextProperty(u"keyboardConfiguratorController"_s, &keyboardConfiguratorController); + + engine.setContextForObject(&settingsController, engine.rootContext()); + engine.rootContext()->setContextProperty(u"settingsController"_s, &settingsController); + + engine.load(u"qrc:/Rangoli/Main.qml"_s); + + return app.exec(); +} diff --git a/src/mainwindowcontroller.cpp b/src/mainwindowcontroller.cpp new file mode 100644 index 0000000..2fc8a73 --- /dev/null +++ b/src/mainwindowcontroller.cpp @@ -0,0 +1,462 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "mainwindowcontroller.h" +#include "settingscontroller.h" +#include "hidconnection.h" +#include +#include +#include + +using namespace Qt::Literals::StringLiterals; + +MainWindowController::MainWindowController(QObject *parent) + : QObject{parent}, m_connectedKeyboards{new KeyboardModel{this}}, m_profiles{new ProfileModel{this}}, + m_interruptClose{true}, m_confirmQuitDialogVisible{false}, m_alwaysShowSystemTrayIcon{false}, + m_closeToSystemTrayIcon{false}, m_startToSystemTrayIcon{false}, m_keyboardsScanning{true}, + m_toolTipDelay{1000}, m_toolTipTimeout{15000}, m_linuxUdevPopupProceedButtonEnabled{true} +{} + +MainWindowController::~MainWindowController() +{ + HIDConnection::getInstance().stop(); + m_connectedKeyboards.clear(); +} + +void MainWindowController::showEnhancedDialog(QObject* object, const EnhancedDialog &dialog) +{ + emit qvariant_cast + (qmlEngine(object) + ->rootContext() + ->contextProperty(u"mainWindowController"_s))->loadEnhancedDialog(dialog); +} + +const bool &MainWindowController::interruptClose() +{ + return m_interruptClose; +} + +const int &MainWindowController::toolTipDelay() +{ + return m_toolTipDelay; +} + +const int &MainWindowController::toolTipTimeout() +{ + return m_toolTipTimeout; +} + +QPointer MainWindowController::connectedKeyboards() +{ + return m_connectedKeyboards; +} + +KeyboardModel *MainWindowController::connectedKeyboardsRaw() +{ + return m_connectedKeyboards.get(); +} + +bool &MainWindowController::alwaysShowSystemTrayIcon() +{ + return m_alwaysShowSystemTrayIcon; +} + +bool &MainWindowController::closeToSystemTrayIcon() +{ + return m_closeToSystemTrayIcon; +} + +bool &MainWindowController::startToSystemTrayIcon() +{ + return m_startToSystemTrayIcon; +} + +bool &MainWindowController::keyboardsScanning() +{ + return m_keyboardsScanning; +} + +bool &MainWindowController::linuxUdevPopupProceedButtonEnabled() +{ + return m_linuxUdevPopupProceedButtonEnabled; +} + +bool MainWindowController::isWindows() +{ +#ifdef Q_OS_WINDOWS + return true; +#else + return false; +#endif +} + +QString MainWindowController::linuxUdevRulesPath() +{ + return QStringLiteral(LINUX_UDEV_RULES_PATH); +} + +QPointer MainWindowController::profiles() +{ + return m_profiles; +} + +void MainWindowController::init() +{ + m_startToSystemTrayIcon = QCoreApplication::arguments().contains(u"start_to_system_tray_icon"_s); + + if (m_startToSystemTrayIcon) + emit hide(); + else + emit show(); + + m_profiles->registerProfiles(); + + m_keyboardConfiguratorController = qvariant_cast + (qmlEngine(this) + ->rootContext() + ->contextProperty(u"keyboardConfiguratorController"_s)); + + QPointer m_settingsController = qvariant_cast + (qmlEngine(this) + ->rootContext() + ->contextProperty(u"settingsController"_s)); + + m_settingsController->init(); + m_keyboardConfiguratorController->init(); + + HIDConnection& connection = HIDConnection::getInstance(); + + connect(&connection, &HIDConnection::initDone, this, [this](const bool& success){ + if (success) + { + refreshKeyboards(); + } + else + { + showFatalError(tr("Unable to initialise HID API. " + "Please check if you have permissions and restart Rangoli. " + "The program will now exit.")); + } + }, Qt::SingleShotConnection); + + connect(&connection, &HIDConnection::fatalErrorOccured, this, &MainWindowController::showFatalError); + + connect(&connection, &HIDConnection::keyboardConnected, + this, [this](const Keyboard& keyboard){ + m_connectedKeyboards->append(keyboard.pid, keyboard); + emit adjustOptionsSize(m_connectedKeyboards->rowCount()); + }); + + connect(&connection, &HIDConnection::keyboardDisconnected, + this, [this](const quint16& pid){ + m_connectedKeyboards->remove(pid); + emit adjustOptionsSize(m_connectedKeyboards->rowCount()); + }); + + connect(&connection, &HIDConnection::keyboardsScanComplete, + this, [this](){ + m_keyboardsScanning = false; + emit keyboardsScanningChanged(); + }); + + if (m_settingsController->applyDefaultProfileOnStartup()) + { + connect(&connection, &HIDConnection::keyboardsScanComplete, + this, [this](){ + QSettings settings; + + for (int i = 0 ; i < m_connectedKeyboards->keyboards().size(); i++) + { + m_keyboardConfiguratorController->load(i); + m_keyboardConfiguratorController->applyDefaultProfile(); + } + }, Qt::SingleShotConnection); + } + + connection.start(); + + +#ifdef Q_OS_LINUX + QSettings settings; + + bool udevRulesWritten = settings + .value(QStringLiteral("udev_rules_written/%1") + .arg(QString::number(VERSION)),false).toBool(); + + if (!QFile::exists(QStringLiteral(LINUX_UDEV_RULES_PATH)) || !udevRulesWritten) + { + emit openLinuxUdevPopup(); + } +#endif + +} + +void MainWindowController::quit() +{ + setInterruptClose(false); + emit close(); +} + +void MainWindowController::refreshKeyboards() +{ + m_keyboardsScanning = true; + emit keyboardsScanningChanged(); + + emit HIDConnection::getInstance().refreshKeyboards(m_connectedKeyboards); +} + +void MainWindowController::loadKeyboard(const int &index) +{ + m_keyboardConfiguratorController->load(index); + + if (m_keyboardConfiguratorController->selectedProfileIndex() == -1) + { + m_keyboardConfiguratorController->applyDefaultProfile(); + } +} + +void MainWindowController::setInterruptClose(const bool &interruptClose) +{ + if (m_interruptClose == interruptClose) return; + + m_interruptClose = interruptClose; + emit interruptCloseChanged(); +} + +void MainWindowController::closeInterrupted() +{ + if (!m_keyboardConfiguratorController->unsavedChanges()) + { + quit(); + return; + } + + if (!m_confirmQuitDialogVisible) + { + m_confirmQuitDialogVisible = true; + + EnhancedDialog d(tr("Warning"), + tr("There are unsaved changes. Are you sure you want to quit?"), + EnhancedDialog::ButtonsType::YES_NO); + + d.setOnAccepted([this](){quit();}); + d.setOnRejected([this](){m_confirmQuitDialogVisible = false;}); + + emit loadEnhancedDialog(d); + } +} + +void MainWindowController::setTheme(const int& theme) +{ + if (theme == Theme::System) + { + emit setSystemTheme(); + } + else if (theme == Theme::Light) + { + emit setLightTheme(); + } + else if (theme == Theme::Dark) + { + emit setDarkTheme(); + } +} + +void MainWindowController::setAlwaysShowSystemTrayIcon(const bool &alwaysShowSystemTrayIcon) +{ + if(m_alwaysShowSystemTrayIcon == alwaysShowSystemTrayIcon) return; + + m_alwaysShowSystemTrayIcon = alwaysShowSystemTrayIcon; + emit alwaysShowSystemTrayIconChanged(); +} + +void MainWindowController::setCloseToSystemTrayIcon(const bool &closeToSystemTrayIcon) +{ + if(m_closeToSystemTrayIcon == closeToSystemTrayIcon) return; + + m_closeToSystemTrayIcon = closeToSystemTrayIcon; + emit closeToSystemTrayIconChanged(); +} + +void MainWindowController::launchLinuxUdevWriter() +{ + setLinuxUdevPopupProceedButtonEnabled(false); + + if (!QFile::exists(QStringLiteral(LINUX_UDEV_RULE_WRITER_NAME))) + { + emit loadEnhancedDialog(EnhancedDialog { + tr("Error"), + tr("Unable to find udev rule writer.") + }); + + setLinuxUdevPopupProceedButtonEnabled(true); + return; + } + + QString exitOK{u"0"_s}; + QString exitKeyboardReadFailed{u"1"_s}; + QString exitRuleWriteFailed{u"2"_s}; + + QString oldID; + QString exitFile{QStringLiteral("%1_OUTPUT").arg(QStringLiteral(LINUX_UDEV_RULE_WRITER_NAME))}; + QFile oldOutput{exitFile}; + + if (oldOutput.exists()) + { + if (!oldOutput.open(QIODevice::ReadOnly)) + { + emit loadEnhancedDialog(EnhancedDialog { + tr("Error"), + tr("Unable to read old ID.") + }); + + setLinuxUdevPopupProceedButtonEnabled(true); + return; + } + + oldID = oldOutput.readAll().split(':').at(0); + } + + QPointer udevWriter{new QProcess{this}}; + connect(udevWriter, &QProcess::finished, this, + [this, exitFile, exitOK, exitKeyboardReadFailed, exitRuleWriteFailed, oldID] + (int exitCode, QProcess::ExitStatus exitStatus) { + Q_UNUSED(exitStatus) + Q_UNUSED(exitCode) + + setLinuxUdevPopupProceedButtonEnabled(true); + + QFile output{exitFile}; + + if (!output.open(QIODevice::ReadOnly)) + { + emit loadEnhancedDialog(EnhancedDialog { + tr("Error"), + tr("The udev rules writer failed to run. Did you provide incorrect password?") + }); + return; + } + + QList outputs{output.readAll().split(':')}; + + QString newID = outputs.at(0); + + if (newID == oldID) + { + emit loadEnhancedDialog(EnhancedDialog { + tr("Error"), + tr("The udev rules writer failed to run. Did you provide incorrect password?") + }); + return; + } + + if (outputs.length() != 2) + { + emit loadEnhancedDialog(EnhancedDialog { + tr("Error"), + tr("Malformed output from udev writer.") + }); + return; + } + + QString newExitCode = outputs.at(1); + + if (newExitCode == exitOK) + { + emit closeLinuxUdevPopup(); + + emit loadEnhancedDialog(EnhancedDialog { + tr("Successful"), + tr("udev rules have been applied and reloaded! Enjoy Rangoli!") + }); + + QSettings settings; + settings.remove(u"udev_rules_written"_s); + settings.setValue(QStringLiteral("udev_rules_written/%1").arg(QString::number(VERSION)), true); + } + else if (newExitCode == exitKeyboardReadFailed) + { + emit loadEnhancedDialog(EnhancedDialog { + tr("Error"), + tr("Malformed output from udev writer.") + }); + } + else if (newExitCode == exitRuleWriteFailed) + { + emit loadEnhancedDialog(EnhancedDialog { + tr("Error"), + tr("Malformed output from udev writer.") + }); + } + else + { + emit loadEnhancedDialog(EnhancedDialog { + tr("Error"), + tr("Malformed exit code from udev writer.") + }); + } + }); + + connect(udevWriter, &QProcess::errorOccurred, this, + [this](QProcess::ProcessError error){ + + setLinuxUdevPopupProceedButtonEnabled(true); + + if (error == QProcess::FailedToStart) + { + emit loadEnhancedDialog(EnhancedDialog{ + tr("Unable to start udev rules writer"), + tr("You need to have '%1' installed!").arg(LINUX_TERMINAL) + }); + } + else + { + emit loadEnhancedDialog(EnhancedDialog{ + tr("Unable to start udev rules writer."), + tr("Error Code: %1").arg(QString::number(error)) + }); + } + }); + + udevWriter->start(QStringLiteral(LINUX_TERMINAL), QStringList() << u"-e"_s << + QStringLiteral("echo -n \"\\033]0;%1\\007\" && sudo ./%2 %3 %4 %5 %6 %7 %8") + .arg(tr("Rangoli - Create udev Rules"), + QStringLiteral(LINUX_UDEV_RULE_WRITER_NAME), + QStringLiteral(KEYBOARDS_LIST_PATH), + QStringLiteral(LINUX_UDEV_RULES_PATH), + exitFile, exitOK, exitKeyboardReadFailed, exitRuleWriteFailed)); +} + +void MainWindowController::setLinuxUdevPopupProceedButtonEnabled(const bool &linuxUdevPopupProceedButtonEnabled) +{ + if (m_linuxUdevPopupProceedButtonEnabled == linuxUdevPopupProceedButtonEnabled) return; + + m_linuxUdevPopupProceedButtonEnabled = linuxUdevPopupProceedButtonEnabled; + emit linuxUdevPopupProceedButtonEnabledChanged(); +} + +void MainWindowController::openSupportedKeyboardsList() +{ + QDesktopServices::openUrl(QUrl(QStringLiteral(SUPPORTED_KEYBOARDS))); +} + +void MainWindowController::showFatalError(const QString &message) +{ + EnhancedDialog d{tr("Fatal error occurred"), message}; + d.setOnAccepted([this](){ + setCloseToSystemTrayIcon(false); + quit(); + }); + + emit loadEnhancedDialog(d); +} diff --git a/src/mainwindowcontroller.h b/src/mainwindowcontroller.h new file mode 100644 index 0000000..1557c63 --- /dev/null +++ b/src/mainwindowcontroller.h @@ -0,0 +1,147 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef MAINWINDOWCONTROLLER_H +#define MAINWINDOWCONTROLLER_H + +#include +#include +#include +#include +#include + +#include + +#include +#include +#include + +#include "enhanceddialog.h" +#include "keyboardmodel.h" +#include "keyboardconfiguratorcontroller.h" + +class MainWindowController : public QObject +{ + Q_OBJECT + QML_ELEMENT + + Q_PROPERTY(bool interruptClose READ interruptClose WRITE setInterruptClose NOTIFY interruptCloseChanged) + Q_PROPERTY(int toolTipDelay READ toolTipDelay CONSTANT) + Q_PROPERTY(int toolTipTimeout READ toolTipTimeout CONSTANT) + Q_PROPERTY(KeyboardModel* connectedKeyboards READ connectedKeyboardsRaw CONSTANT) + Q_PROPERTY(bool alwaysShowSystemTrayIcon READ alwaysShowSystemTrayIcon WRITE setAlwaysShowSystemTrayIcon NOTIFY alwaysShowSystemTrayIconChanged) + Q_PROPERTY(bool closeToSystemTrayIcon READ closeToSystemTrayIcon WRITE setCloseToSystemTrayIcon NOTIFY closeToSystemTrayIconChanged) + Q_PROPERTY(bool startToSystemTrayIcon READ startToSystemTrayIcon CONSTANT) + Q_PROPERTY(bool keyboardsScanning READ keyboardsScanning NOTIFY keyboardsScanningChanged) + Q_PROPERTY(QString linuxUdevRulesPath READ linuxUdevRulesPath CONSTANT) + Q_PROPERTY(bool linuxUdevPopupProceedButtonEnabled READ linuxUdevPopupProceedButtonEnabled WRITE setLinuxUdevPopupProceedButtonEnabled NOTIFY linuxUdevPopupProceedButtonEnabledChanged) + Q_PROPERTY(bool isWindows READ isWindows CONSTANT) + +public: + explicit MainWindowController(QObject *parent = nullptr); + ~MainWindowController(); + + static void showEnhancedDialog(QObject* object, const EnhancedDialog &dialog); + + enum Theme: int { + System, + Light, + Dark + }; + + const bool& interruptClose(); + + const int& toolTipDelay(); + const int& toolTipTimeout(); + + KeyboardModel* connectedKeyboardsRaw(); + QPointer connectedKeyboards(); + + bool& alwaysShowSystemTrayIcon(); + bool& closeToSystemTrayIcon(); + bool& startToSystemTrayIcon(); + + bool& keyboardsScanning(); + bool& linuxUdevPopupProceedButtonEnabled(); + + bool isWindows(); + + QString linuxUdevRulesPath(); + + QPointer profiles(); + +signals: + void show(); + void hide(); + void close(); + void interruptCloseChanged(); + void adjustOptionsSize(const int& length); + void loadEnhancedDialog(const EnhancedDialog& dialog); + + void setSystemTheme(); + void setLightTheme(); + void setDarkTheme(); + + void setAccentColour(const QColor& accentColour); + + void alwaysShowSystemTrayIconChanged(); + void closeToSystemTrayIconChanged(); + + void keyboardsScanningChanged(); + + void openLinuxUdevPopup(); + void closeLinuxUdevPopup(); + + void linuxUdevPopupProceedButtonEnabledChanged(); + +public slots: + void init(); + void quit(); + void refreshKeyboards(); + void loadKeyboard(const int& index); + void setInterruptClose(const bool& interruptClose); + void closeInterrupted(); + void setTheme(const int& theme); + void setAlwaysShowSystemTrayIcon(const bool& alwaysShowSystemTrayIcon); + void setCloseToSystemTrayIcon(const bool& closeToSystemTrayIcon); + + void launchLinuxUdevWriter(); + + void setLinuxUdevPopupProceedButtonEnabled(const bool& linuxUdevPopupProceedButtonEnabled); + + void openSupportedKeyboardsList(); + +private slots: + void showFatalError(const QString& message); + +private: + QPointer m_connectedKeyboards; + QPointer m_profiles; + bool m_interruptClose; + bool m_confirmQuitDialogVisible; + QPointer m_keyboardConfiguratorController; + + bool m_alwaysShowSystemTrayIcon; + bool m_closeToSystemTrayIcon; + bool m_startToSystemTrayIcon; + + bool m_keyboardsScanning; + + const int m_toolTipDelay; + const int m_toolTipTimeout; + + bool m_linuxUdevPopupProceedButtonEnabled; + +}; + +#endif // MAINWINDOWCONTROLLER_H diff --git a/src/mode.cpp b/src/mode.cpp new file mode 100644 index 0000000..dd6e273 --- /dev/null +++ b/src/mode.cpp @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "mode.h" + + +Mode::Mode(const QString &name, const int &modeBit) + : name{name}, modeBit{modeBit} +{} diff --git a/src/mode.h b/src/mode.h new file mode 100644 index 0000000..2b31030 --- /dev/null +++ b/src/mode.h @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef MODE_H +#define MODE_H + +#include +#include + +struct Mode +{ + Mode(const QString& name, const int& modeBit); + + QString name; + int modeBit; +}; + +#endif // MODE_H diff --git a/src/modemodel.cpp b/src/modemodel.cpp new file mode 100644 index 0000000..06a4533 --- /dev/null +++ b/src/modemodel.cpp @@ -0,0 +1,130 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "modemodel.h" + + +ModeModel::ModeModel(QObject *parent) + : QAbstractListModel(parent), m_rgb{true} +{ + m_rgbModes << Mode(tr("Custom"), static_cast(RGBModes::Custom)) + << Mode(tr("Ambilight"), static_cast(RGBModes::Ambilight)) + << Mode(tr("Breathing"), static_cast(RGBModes::Breathing)) + << Mode(tr("Diagonal Transformation"), static_cast(RGBModes::DiagonalTransformation)) + << Mode(tr("Flash Away"), static_cast(RGBModes::FlashAway)) + << Mode(tr("Layer Upon Layer"), static_cast(RGBModes::LayerUponLayer)) + << Mode(tr("Marquee Effect"), static_cast(RGBModes::MarqueeEffect)) + << Mode(tr("Neon"), static_cast(RGBModes::Neon)) + << Mode(tr("Neon Stream"), static_cast(RGBModes::NeonStream)) + << Mode(tr("Rainbow Roulette"), static_cast(RGBModes::RainbowRoulette)) + << Mode(tr("Retro Snake"), static_cast(RGBModes::RetroSnake)) + << Mode(tr("Rich And Honored"), static_cast(RGBModes::RichAndHonored)) + << Mode(tr("Ripples Shining"), static_cast(RGBModes::RipplesShining)) + << Mode(tr("Rotating Storm"), static_cast(RGBModes::RotatingStorm)) + << Mode(tr("Rotating Windmill"), static_cast(RGBModes::RotatingWindmill)) + << Mode(tr("Serpentine Horse Race"), static_cast(RGBModes::SerpentineHorseRace)) + << Mode(tr("Shadow Disappear"), static_cast(RGBModes::ShadowDisappear)) + << Mode(tr("Sine Wave"), static_cast(RGBModes::SineWave)) + << Mode(tr("Stars Twinkle"), static_cast(RGBModes::StarsTwinkle)) + << Mode(tr("Steady"), static_cast(RGBModes::Steady)) + << Mode(tr("Streamer"), static_cast(RGBModes::Streamer)); + + + m_modes << Mode(tr("Custom"), static_cast(Modes::Custom)) + << Mode(tr("Ambilight"), static_cast(Modes::Ambilight)) + << Mode(tr("Breathing"), static_cast(Modes::Breathing)) + << Mode(tr("Brilliant Point"), static_cast(Modes::BrilliantPoint)) + << Mode(tr("Diagonal Transformation"), static_cast(Modes::DiagonalTransformation)) + << Mode(tr("Drippling Ripples"), static_cast(Modes::DripplingRipples)) + << Mode(tr("Flash Away"), static_cast(Modes::FlashAway)) + << Mode(tr("Marquee Effect"), static_cast(Modes::MarqueeEffect)) + << Mode(tr("Neon Stream"), static_cast(Modes::NeonStream)) + << Mode(tr("Press And Destroy"), static_cast(Modes::PressAndDestroy)) + << Mode(tr("Retro Snake"), static_cast(Modes::RetroSnake)) + << Mode(tr("Rich And Honored"), static_cast(Modes::RichAndHonored)) + << Mode(tr("Ripples Shining"), static_cast(Modes::RipplesShining)) + << Mode(tr("Rotating Storm"), static_cast(Modes::RotatingStorm)) + << Mode(tr("Serpentine Horse Race"), static_cast(Modes::SerpentineHorseRace)) + << Mode(tr("Shadow Disappear"), static_cast(Modes::ShadowDisappear)) + << Mode(tr("Sine Wave"), static_cast(Modes::SineWave)) + << Mode(tr("Stars Twinkle"), static_cast(Modes::StarsTwinkle)) + << Mode(tr("Steady"), static_cast(Modes::Steady)) + << Mode(tr("Streamer"), static_cast(Modes::Streamer)); +} + +int ModeModel::neonStreamIndex() +{ + return 8; +} + +int ModeModel::rowCount(const QModelIndex &parent) const +{ + Q_UNUSED(parent) + + return m_rgb ? m_rgbModes.size() : m_modes.size(); +} + +const int& ModeModel::getModeBit(const int &index) const +{ + return m_rgb ? m_rgbModes.at(index).modeBit : m_modes.at(index).modeBit; +} + +bool ModeModel::isCustomMode(const int &index) const +{ + if (m_rgb) + { + return m_rgbModes.at(index).modeBit == static_cast(RGBModes::Custom); + } + else + { + return m_modes.at(index).modeBit == static_cast(Modes::Custom); + } +} + +QVariant ModeModel::data(const QModelIndex &index, int role) const +{ + if (role <= Qt::UserRole || index.row() >= (m_rgb ? m_rgbModes.size() : m_modes.size())) + { + return QVariant(); + } + + if (role == NameRole) + { + return m_rgb ? m_rgbModes.at(index.row()).name : m_modes.at(index.row()).name; + } + else if (role == ModeBitRole) + { + return m_rgb ? m_rgbModes.at(index.row()).modeBit : m_modes.at(index.row()).modeBit; + } + + return QVariant(); +} + +QHash ModeModel::roleNames() const +{ + QHash roles; + + roles[NameRole] = "name"; + roles[ModeBitRole] = "modeBit"; + + return roles; +} + +void ModeModel::setRGB(const bool &rgb) +{ + if (m_rgb == rgb) return; + + beginResetModel(); + m_rgb = rgb; + endResetModel(); +} diff --git a/src/modemodel.h b/src/modemodel.h new file mode 100644 index 0000000..cd81f84 --- /dev/null +++ b/src/modemodel.h @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef MODESMODEL_H +#define MODESMODEL_H + +#include + +#include "mode.h" + +class ModeModel : public QAbstractListModel +{ + Q_OBJECT + +public: + enum ModeRoles { + NameRole = Qt::UserRole + 1, + ModeBitRole + }; + + enum class RGBModes : int { + NeonStream = 1, + RipplesShining, + RotatingWindmill, + SineWave, + RainbowRoulette, + StarsTwinkle, + LayerUponLayer, + RichAndHonored, + MarqueeEffect, + RotatingStorm, + SerpentineHorseRace, + RetroSnake, + DiagonalTransformation, + Custom, + Ambilight, + Streamer, + Steady, + Breathing, + Neon, + ShadowDisappear, + FlashAway + }; + + enum class Modes : int { + Steady = 1, + Custom, + Breathing, + PressAndDestroy, + NeonStream, + Streamer, + Ambilight, + DripplingRipples, + BrilliantPoint, + FlashAway, + ShadowDisappear, + RipplesShining, + RichAndHonored, + MarqueeEffect, + RotatingStorm, + SerpentineHorseRace, + StarsTwinkle, + RetroSnake, + DiagonalTransformation, + SineWave, + }; + + explicit ModeModel(QObject* parent = nullptr); + + int neonStreamIndex(); + + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + + const int& getModeBit(const int& index) const; + + bool isCustomMode(const int& index) const; + + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + + QHash roleNames() const override; + + void setRGB(const bool& rgb); + +private: + QList m_modes; + QList m_rgbModes; + + bool m_rgb; + +}; + +#endif // MODESMODEL_H diff --git a/src/profile.cpp b/src/profile.cpp new file mode 100644 index 0000000..d81cde9 --- /dev/null +++ b/src/profile.cpp @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "profile.h" + +Profile::Profile(const QString &name) + : id{QUuid::createUuid().toString()}, name{name} +{ + +} + +Profile::Profile(const QString &id, const QString &name) + : id{id}, name{name} +{ + +} diff --git a/src/profile.h b/src/profile.h new file mode 100644 index 0000000..14d7cb7 --- /dev/null +++ b/src/profile.h @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef PROFILE_H +#define PROFILE_H + +#include +#include +#include +#include +#include + +struct Profile +{ + Profile(const QString& name); + Profile(const QString& id, const QString& name); + + QString id; + QString name; +}; + +#endif // PROFILE_H diff --git a/src/profilemodel.cpp b/src/profilemodel.cpp new file mode 100644 index 0000000..8ac1ae9 --- /dev/null +++ b/src/profilemodel.cpp @@ -0,0 +1,193 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "profilemodel.h" + +#include + +using namespace Qt::Literals::StringLiterals; + +ProfileModel::ProfileModel(QObject *parent) + : QAbstractListModel{parent}, m_defaultProfileIndex{0} +{} + +int ProfileModel::rowCount(const QModelIndex &parent) const +{ + Q_UNUSED(parent) + + return m_profiles.size(); +} + +const QString ProfileModel::profileName(const int &index) +{ + return data(this->index(index), ProfileModel::NameRole).toString(); +} + +QVariant ProfileModel::data(const QModelIndex &index, int role) const +{ + if (role <= Qt::UserRole || index.row() >= m_profiles.size()) + { + return QVariant(); + } + + if (role == IDRole) + { + return m_profiles.at(index.row()).id; + } + else if (role == NameRole) + { + return m_profiles.at(index.row()).name; + } + + + return QVariant(); +} + +bool ProfileModel::setData(const QModelIndex &index, const QVariant &value, int role) +{ + if (!hasIndex(index.row(), index.column(), index.parent())) + return false; + + if (role == IDRole) + { + m_profiles[index.row()].id = value.toString(); + emit dataChanged(index, index); + return true; + } + else if (role == NameRole) + { + m_profiles[index.row()].name = value.toString(); + emit dataChanged(index, index); + return true; + } + + return false; +} + +int ProfileModel::createNewProfile(const QString& name) +{ + QSettings settings; + + settings.beginGroup(u"profiles"_s); + + Profile p{name}; + settings.beginGroup(p.id); + settings.setValue(u"name"_s, p.name); + settings.endGroup(); + + auto index = m_profiles.size(); + + beginInsertRows(QModelIndex(), index, index); + m_profiles << p; + endInsertRows(); + + return index; +} + +void ProfileModel::setProfileName(const qsizetype &row, const QString &name) +{ + setData(index(row, 0), name, ProfileModel::NameRole); + + QSettings settings; + + settings.beginGroup(u"profiles"_s); + + const Profile& p = m_profiles.at(row); + settings.beginGroup(p.id); + settings.setValue(u"name"_s, p.name); + settings.endGroup(); +} + +void ProfileModel::deleteProfile(const qsizetype &row) +{ + QSettings settings; + + settings.beginGroup(u"profiles"_s); + settings.remove(m_profiles.at(row).id); + settings.endGroup(); + + beginRemoveRows(QModelIndex(), row, row); + m_profiles.removeAt(row); + endRemoveRows(); + + if (m_defaultProfileIndex >= row) + { + m_defaultProfileIndex--; + emit defaultProfileIndexChanged(); + } + +} + +QHash ProfileModel::roleNames() const +{ + QHash roles; + + roles[IDRole] = "id"; + roles[NameRole] = "name"; + + return roles; +} + +int& ProfileModel::defaultProfileIndex() +{ + return m_defaultProfileIndex; +} + +void ProfileModel::registerProfiles() +{ + QSettings settings; + + m_defaultProfileIndex = 0; + m_profiles.clear(); + QString defaultID = settings.value(u"default_profile"_s).toString(); + + settings.beginGroup(u"profiles"_s); + + QStringList profileIDs = settings.childGroups(); + + for (qsizetype i = 0; i < profileIDs.size(); i++) + { + const QString& ID = profileIDs.at(i); + settings.beginGroup(ID); + + beginInsertRows(QModelIndex(), m_profiles.size(), m_profiles.size()); + m_profiles << Profile{ID, settings.value(u"name"_s).toString()}; + endInsertRows(); + + settings.endGroup(); + + if (!defaultID.isNull() && defaultID == ID) + { + m_defaultProfileIndex = i; + } + } + + + if (m_profiles.size() == 0) + { + createNewProfile(tr("Default Profile")); + } + + settings.endGroup(); +} + +void ProfileModel::setDefaultProfileIndex(const int &row) +{ + if (m_defaultProfileIndex == row) return; + + QSettings settings; + settings.setValue(u"default_profile"_s, m_profiles.at(row).id); + + m_defaultProfileIndex = row; + emit defaultProfileIndexChanged(); +} diff --git a/src/profilemodel.h b/src/profilemodel.h new file mode 100644 index 0000000..052f7fd --- /dev/null +++ b/src/profilemodel.h @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef PROFILEMODEL_H +#define PROFILEMODEL_H + +#include + +#include "profile.h" + +class ProfileModel : public QAbstractListModel +{ + Q_OBJECT + Q_PROPERTY(int defaultProfileIndex READ defaultProfileIndex WRITE setDefaultProfileIndex NOTIFY defaultProfileIndexChanged) + +public: + enum ProfileModelRoles { + IDRole = Qt::UserRole + 1, + NameRole + }; + + explicit ProfileModel(QObject *parent = nullptr); + + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + + Q_INVOKABLE const QString profileName(const int& index); + + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + + bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; + + int createNewProfile(const QString& name); + + // FIXME: Change all qsizetype to int + void setProfileName(const qsizetype& row, const QString& name); + void deleteProfile(const qsizetype& row); + + QHash roleNames() const override; + + int& defaultProfileIndex(); + + void registerProfiles(); + +signals: + void defaultProfileIndexChanged(); + +public slots: + void setDefaultProfileIndex(const int& row); + +private: + QList m_profiles; + int m_defaultProfileIndex; + +}; + +#endif // PROFILEMODEL_H diff --git a/src/qtquickcontrols2.conf b/src/qtquickcontrols2.conf new file mode 100644 index 0000000..433a54e --- /dev/null +++ b/src/qtquickcontrols2.conf @@ -0,0 +1,5 @@ +[Controls] +Style=Material + +[Material] +Variant=Dense diff --git a/src/resources.qrc b/src/resources.qrc new file mode 100644 index 0000000..725be0a --- /dev/null +++ b/src/resources.qrc @@ -0,0 +1,37 @@ + + + + + qtquickcontrols2.conf + + ../icons/add.svg + ../icons/arrow_back.svg + ../icons/bug_report.svg + ../icons/delete.svg + ../icons/donate.svg + ../icons/done.svg + ../icons/edit.svg + ../icons/git.svg + ../icons/help.svg + ../icons/home.svg + ../icons/keyboard.svg + ../icons/light.svg + ../icons/rangoli.svg + ../icons/refresh.svg + ../icons/reset.svg + ../icons/save.svg + ../icons/settings.svg + ../icons/website.svg + + diff --git a/src/settingscontroller.cpp b/src/settingscontroller.cpp new file mode 100644 index 0000000..c3eda00 --- /dev/null +++ b/src/settingscontroller.cpp @@ -0,0 +1,382 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "settingscontroller.h" + +#include +#include +#include "startatboot.h" + +using namespace Qt::Literals::StringLiterals; + +SettingsController::SettingsController(QObject *parent) + : QObject{parent}, + m_themes{tr("System"), tr("Light"), tr("Dark")}, + m_selectedThemeIndex{MainWindowController::Theme::System}, + m_startOnBoot{false}, + m_applyDefaultProfileOnStartup{false}, + m_alwaysShowSystemTrayIcon{false}, + m_closeToSystemTrayIcon{false}, + m_selectedDefaultProfileIndex{0}, + m_unsavedChanges{false}, + m_checkForUpdatesButtonEnabled{true} +{} + +QStringList &SettingsController::themes() +{ + return m_themes; +} + +int &SettingsController::selectedThemeIndex() +{ + return m_selectedThemeIndex; +} + +bool &SettingsController::unsavedChanges() +{ + return m_unsavedChanges; +} + +QColor &SettingsController::accentColour() +{ + return m_accentColour; +} + +const bool &SettingsController::startOnBootSupported() +{ + return StartAtBoot::Supported; +} + +bool &SettingsController::startOnBoot() +{ + return m_startOnBoot; +} + +bool &SettingsController::applyDefaultProfileOnStartup() +{ + return m_applyDefaultProfileOnStartup; +} + +bool &SettingsController::alwaysShowSystemTrayIcon() +{ + return m_alwaysShowSystemTrayIcon; +} + +bool &SettingsController::closeToSystemTrayIcon() +{ + return m_closeToSystemTrayIcon; +} + +ProfileModel *SettingsController::profiles() +{ + return m_profiles.get(); +} + +int &SettingsController::selectedDefaultProfileIndex() +{ + return m_selectedDefaultProfileIndex; +} + +QString SettingsController::version() +{ + return QString::number(VERSION); +} + +QString SettingsController::authorUPI() +{ + return QStringLiteral(AUTHOR_UPI); +} + +QString SettingsController::authorEmail() +{ + return QStringLiteral(AUTHOR_EMAIL); +} + +bool &SettingsController::checkForUpdatesButtonEnabled() +{ + return m_checkForUpdatesButtonEnabled; +} + +void SettingsController::init() +{ + m_mainWindow = qvariant_cast(qmlEngine(this) + ->rootContext() + ->contextProperty("mainWindowController")); + + m_keyboardConfiguratorController = qvariant_cast(qmlEngine(this) + ->rootContext() + ->contextProperty("keyboardConfiguratorController")); + + m_profiles = m_mainWindow->profiles(); + + connect(m_profiles.get(), &ProfileModel::defaultProfileIndexChanged, this, [this](){ + setSelectedDefaultProfileIndex(m_profiles->defaultProfileIndex()); + }); + + load(); +} + +void SettingsController::setSelectedThemeIndex(const int &selectedThemeIndex) +{ + if(m_selectedThemeIndex == selectedThemeIndex) return; + + m_selectedThemeIndex = selectedThemeIndex; + emit selectedThemeIndexChanged(); +} + +void SettingsController::setAccentColour(const QColor &accentColour) +{ + if(m_accentColour == accentColour) return; + + m_accentColour = accentColour; + emit accentColourChanged(); +} + +void SettingsController::setStartOnBoot(const bool &startOnBoot) +{ + if(m_startOnBoot == startOnBoot) return; + + m_startOnBoot = startOnBoot; + emit startOnBootChanged(); +} + +void SettingsController::setApplyDefaultProfileOnStartup(const bool &applyDefaultProfileOnStartup) +{ + if(m_applyDefaultProfileOnStartup == applyDefaultProfileOnStartup) return; + + m_applyDefaultProfileOnStartup = applyDefaultProfileOnStartup; + emit applyDefaultProfileOnStartupChanged(); +} + +void SettingsController::setAlwaysShowSystemTrayIcon(const bool &alwaysShowSystemTrayIcon) +{ + if(m_alwaysShowSystemTrayIcon == alwaysShowSystemTrayIcon) return; + + m_alwaysShowSystemTrayIcon = alwaysShowSystemTrayIcon; + emit alwaysShowSystemTrayIconChanged(); +} + +void SettingsController::setCloseToSystemTrayIcon(const bool &closeToSystemTrayIcon) +{ + if(m_closeToSystemTrayIcon == closeToSystemTrayIcon) return; + + m_closeToSystemTrayIcon = closeToSystemTrayIcon; + emit closeToSystemTrayIconChanged(); +} + +void SettingsController::setUnsavedChanges(const bool &unsavedChanges) +{ + if(m_unsavedChanges == unsavedChanges) return; + + m_unsavedChanges = unsavedChanges; + emit unsavedChangesChanged(); +} + +void SettingsController::setSelectedDefaultProfileIndex(const int &selectedDefaultProfileIndex) +{ + if(m_selectedDefaultProfileIndex == selectedDefaultProfileIndex) return; + + m_selectedDefaultProfileIndex = selectedDefaultProfileIndex; + emit selectedDefaultProfileIndexChanged(); +} + +void SettingsController::openGitRepository() +{ + QDesktopServices::openUrl(QUrl(QStringLiteral(GIT_REPOSITORY))); +} + +void SettingsController::openWebsite() +{ + QDesktopServices::openUrl(QUrl(QStringLiteral(WEBSITE))); +} + +void SettingsController::reportIssue() +{ + QDesktopServices::openUrl(QUrl(QStringLiteral(REPORT_ISSUE))); +} + +void SettingsController::openLicense() +{ + QDesktopServices::openUrl(QUrl(QStringLiteral(LICENSE))); +} + +void SettingsController::openAuthorWebsite() +{ + QDesktopServices::openUrl(QUrl(QStringLiteral(AUTHOR_WEBSITE))); +} + +void SettingsController::openAuthorKoFi() +{ + QDesktopServices::openUrl(QUrl(QStringLiteral(AUTHOR_KO_FI))); +} + +void SettingsController::emailAuthor() +{ + QDesktopServices::openUrl(QUrl(QStringLiteral("mailto:%1").arg(AUTHOR_EMAIL))); +} + +void SettingsController::load() +{ + QSettings settings; + + setSelectedThemeIndex(settings.value(u"theme"_s, MainWindowController::Theme::System).toInt()); + setAccentColour(settings.value(u"accent_colour"_s, QColor(DEFAULT_ACCENT_RED, DEFAULT_ACCENT_GREEN, DEFAULT_ACCENT_BLUE)).value()); + + setSelectedDefaultProfileIndex(m_profiles->defaultProfileIndex()); + setStartOnBoot(settings.value(u"start_on_boot"_s, false).toBool()); + setApplyDefaultProfileOnStartup(settings.value(u"apply_default_profile_on_startup"_s, false).toBool()); + setAlwaysShowSystemTrayIcon(settings.value(u"system_tray/always"_s, true).toBool()); + setCloseToSystemTrayIcon(settings.value(u"system_tray/close_to"_s, true).toBool()); + + setUnsavedChanges(false); + applyVisualSettings(); +} + +void SettingsController::save() +{ + QSettings settings; + + settings.setValue(u"theme"_s, m_selectedThemeIndex); + settings.setValue(u"accent_colour"_s, m_accentColour); + + if (m_keyboardConfiguratorController->selectedMode() == KeyboardConfiguratorController::KeyMap + && m_keyboardConfiguratorController->customMappedKeys()->keysCount() > 0) + { + emit m_keyboardConfiguratorController->requestKbCanvasPaint(); + } + + m_profiles->setDefaultProfileIndex(selectedDefaultProfileIndex()); + + if (settings.value(u"start_on_boot"_s, false).toBool() != m_startOnBoot) + { + if (m_startOnBoot) + { + if (! StartAtBoot::createStarter()) + { + emit m_mainWindow->loadEnhancedDialog( + EnhancedDialog{ + tr("Error"), + tr("Unable to setup start on boot. Make sure you have enough permissions.") + }); + + setStartOnBoot(!m_startOnBoot); + } + } + else + { + if (! StartAtBoot::deleteStarter()) + { + emit m_mainWindow->loadEnhancedDialog( + EnhancedDialog{ + tr("Error"), + tr("Unable to turn off start on boot. Make sure you have enough permissions.") + }); + } + } + } + + settings.setValue(u"start_on_boot"_s, m_startOnBoot); + settings.setValue(u"apply_default_profile_on_startup"_s, m_applyDefaultProfileOnStartup); + settings.setValue(u"system_tray/always"_s, m_alwaysShowSystemTrayIcon); + settings.setValue(u"system_tray/close_to"_s, m_closeToSystemTrayIcon); + + setUnsavedChanges(false); + applyVisualSettings(); +} + +void SettingsController::checkForUpdates() +{ + setCheckForUpdatesButtonEnabled(false); + + QPointer nam{new QNetworkAccessManager{this}}; + connect(nam, &QNetworkAccessManager::finished, this, &SettingsController::updatesFetched, Qt::SingleShotConnection); + nam->get(QNetworkRequest{QUrl{QStringLiteral(GITHUB_RELEASES)}}); +} + +void SettingsController::setCheckForUpdatesButtonEnabled(const bool &checkForUpdatesButtonEnabled) +{ + if (m_checkForUpdatesButtonEnabled == checkForUpdatesButtonEnabled) return; + + m_checkForUpdatesButtonEnabled = checkForUpdatesButtonEnabled; + emit checkForUpdatesButtonEnabledChanged(); +} + +void SettingsController::updatesFetched(QNetworkReply *reply) +{ + setCheckForUpdatesButtonEnabled(true); + + if (reply->error() != QNetworkReply::NoError) + { + emit m_mainWindow->loadEnhancedDialog(EnhancedDialog{ + tr("Error"), + tr("Unable to check for updates. Check your internet connection and try again.") + }); + return; + } + + QJsonDocument doc = QJsonDocument::fromJson(reply->readAll()); + + QJsonArray array = doc.array(); + + bool updateFound = false; + + for (int i = 0; i < array.size(); i++) + { + auto obj = array.at(i).toObject(); + + if (!obj["prerelease"].toBool() && !obj["draft"].toBool()) + { + QString tagName = obj["tag_name"].toString(); + bool ok; + float version = tagName.toFloat(&ok); + if (ok && version > VERSION) + { + EnhancedDialog d{ + tr("Update available"), + tr("Version %1 is available for download. Open release page?").arg(version), + EnhancedDialog::ButtonsType::YES_NO + }; + + auto url = obj["html_url"].toString(); + + d.setOnAccepted([&, url](){ + QDesktopServices::openUrl(QUrl(url)); + }); + + emit m_mainWindow->loadEnhancedDialog(d); + + updateFound = true; + + break; + } + } + } + + if (!updateFound) + { + emit m_mainWindow->loadEnhancedDialog(EnhancedDialog{ + tr("Up to date"), + tr("You are running the latest version of Rangoli") + }); + } + + reply->deleteLater(); +} + +void SettingsController::applyVisualSettings() +{ + emit m_mainWindow->setAccentColour(m_accentColour); + m_mainWindow->setTheme(m_selectedThemeIndex); + m_mainWindow->setAlwaysShowSystemTrayIcon(m_alwaysShowSystemTrayIcon); + m_mainWindow->setCloseToSystemTrayIcon(m_closeToSystemTrayIcon); +} diff --git a/src/settingscontroller.h b/src/settingscontroller.h new file mode 100644 index 0000000..6ceb855 --- /dev/null +++ b/src/settingscontroller.h @@ -0,0 +1,120 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef SETTINGSCONTROLLER_H +#define SETTINGSCONTROLLER_H + +#include +#include +#include "mainwindowcontroller.h" +#include "profilemodel.h" +#include "keyboardconfiguratorcontroller.h" + +class SettingsController : public QObject +{ + Q_OBJECT + Q_PROPERTY(QStringList themes READ themes CONSTANT) + Q_PROPERTY(int selectedThemeIndex READ selectedThemeIndex WRITE setSelectedThemeIndex NOTIFY selectedThemeIndexChanged) + Q_PROPERTY(QColor accentColour READ accentColour WRITE setAccentColour NOTIFY accentColourChanged) + Q_PROPERTY(bool startOnBootSupported READ startOnBootSupported CONSTANT) + Q_PROPERTY(bool startOnBoot READ startOnBoot WRITE setStartOnBoot NOTIFY startOnBootChanged) + Q_PROPERTY(bool applyDefaultProfileOnStartup READ applyDefaultProfileOnStartup WRITE setApplyDefaultProfileOnStartup NOTIFY applyDefaultProfileOnStartupChanged) + Q_PROPERTY(bool alwaysShowSystemTrayIcon READ alwaysShowSystemTrayIcon WRITE setAlwaysShowSystemTrayIcon NOTIFY alwaysShowSystemTrayIconChanged) + Q_PROPERTY(bool closeToSystemTrayIcon READ closeToSystemTrayIcon WRITE setCloseToSystemTrayIcon NOTIFY closeToSystemTrayIconChanged) + Q_PROPERTY(bool unsavedChanges READ unsavedChanges WRITE setUnsavedChanges NOTIFY unsavedChangesChanged) + Q_PROPERTY(ProfileModel* profiles READ profiles CONSTANT) + Q_PROPERTY(int selectedDefaultProfileIndex READ selectedDefaultProfileIndex WRITE setSelectedDefaultProfileIndex NOTIFY selectedDefaultProfileIndexChanged) + Q_PROPERTY(QString version READ version CONSTANT) + Q_PROPERTY(QString authorUPI READ authorUPI CONSTANT) + Q_PROPERTY(QString authorEmail READ authorEmail CONSTANT) + Q_PROPERTY(bool checkForUpdatesButtonEnabled READ checkForUpdatesButtonEnabled WRITE setCheckForUpdatesButtonEnabled NOTIFY checkForUpdatesButtonEnabledChanged) + +public: + explicit SettingsController(QObject *parent = nullptr); + + QStringList& themes(); + int& selectedThemeIndex(); + bool& unsavedChanges(); + QColor& accentColour(); + const bool& startOnBootSupported(); + bool& startOnBoot(); + bool& applyDefaultProfileOnStartup(); + bool& alwaysShowSystemTrayIcon(); + bool& closeToSystemTrayIcon(); + ProfileModel* profiles(); + int& selectedDefaultProfileIndex(); + QString version(); + QString authorUPI(); + QString authorEmail(); + + bool& checkForUpdatesButtonEnabled(); + +signals: + void selectedThemeIndexChanged(); + void accentColourChanged(); + void startOnBootChanged(); + void applyDefaultProfileOnStartupChanged(); + void alwaysShowSystemTrayIconChanged(); + void closeToSystemTrayIconChanged(); + void unsavedChangesChanged(); + void selectedDefaultProfileIndexChanged(); + void checkForUpdatesButtonEnabledChanged(); + +public slots: + void init(); + void setSelectedThemeIndex(const int& selectedThemeIndex); + void setAccentColour(const QColor& accentColour); + void setStartOnBoot(const bool& startOnBoot); + void setApplyDefaultProfileOnStartup(const bool& applyDefaultProfileOnStartup); + void setAlwaysShowSystemTrayIcon(const bool& alwaysShowSystemTrayIcon); + void setCloseToSystemTrayIcon(const bool& closeToSystemTrayIcon); + void setUnsavedChanges(const bool& unsavedChanges); + void setSelectedDefaultProfileIndex(const int& selectedDefaultProfileIndex); + + void openGitRepository(); + void openWebsite(); + void reportIssue(); + void openLicense(); + void openAuthorWebsite(); + void openAuthorKoFi(); + void emailAuthor(); + + void load(); + void save(); + + void checkForUpdates(); + + void setCheckForUpdatesButtonEnabled(const bool& checkForUpdatesButtonEnabled); + +private slots: + void updatesFetched(QNetworkReply* reply); + +private: + QStringList m_themes; + int m_selectedThemeIndex; + QPointer m_mainWindow; + QPointer m_keyboardConfiguratorController; + QPointer m_profiles; + QColor m_accentColour; + bool m_startOnBoot; + bool m_applyDefaultProfileOnStartup; + bool m_alwaysShowSystemTrayIcon; + bool m_closeToSystemTrayIcon; + int m_selectedDefaultProfileIndex; + bool m_unsavedChanges; + bool m_checkForUpdatesButtonEnabled; + + void applyVisualSettings(); +}; + +#endif // SETTINGSCONTROLLER_H diff --git a/src/startatboot.cpp b/src/startatboot.cpp new file mode 100644 index 0000000..059b30c --- /dev/null +++ b/src/startatboot.cpp @@ -0,0 +1,170 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#include "startatboot.h" + +#include +#include +#include +#include + +using namespace Qt::Literals::StringLiterals; + +bool StartAtBoot::createStarter() +{ +#if defined(Q_OS_LINUX) + QDir serviceDir{QStringLiteral("%1/.local/share/systemd/user/").arg(QDir::homePath())}; + + if (!serviceDir.exists()) + { + if (!serviceDir.mkpath(".")) + { + return false; + } + } + + QFile service{serviceDir.absoluteFilePath(u"rangoli.service"_s)}; + + if (service.open(QIODevice::WriteOnly)) + { + QTextStream ts{&service}; + + ts << u"[Unit]\n" + "Description=Rangoli\n" + "[Service]\n" + "Type=simple\n" + "ExecStartPre=/bin/sleep 3\n" + "Environment=\"DISPLAY=:0\"\n" + "ExecStart=\""_s << QCoreApplication::arguments().at(0) << u"\" start_to_system_tray_icon\n" + "[Install]\n" + "WantedBy=default.target\n"_s; + + service.close(); + + QPointer daemonReload{new QProcess}; + QObject::connect(daemonReload, &QProcess::finished, StartAtBoot::linuxSystemDDaemonReloadFinished); + QObject::connect(daemonReload, &QProcess::finished, daemonReload, &QProcess::deleteLater); + + daemonReload->start(u"systemctl --user daemon-reload"_s); + + return true; + } + else + { + return false; + } +#elif defined(Q_OS_WIN) + QFile starter{QStringLiteral("%1/Microsoft/Windows/Start Menu/Programs/Startup/rangoli.vbs").arg(qgetenv("APPDATA"))}; + + if (starter.open(QIODevice::WriteOnly)) + { + QTextStream ts{&starter}; + + ts << u"CreateObject(\"WScript.Shell\").Run chr(34) & \""_s << QCoreApplication::arguments().at(0) << u" start_to_system_tray_icon\"\r\n"_s; + + starter.close(); + + return true; + } + else + { + return false; + } +#elif defined(Q_OS_MACOS) + QString plistPath{QStringLiteral("%1/Library/LaunchAgents/io.github.rnayabed.rangoli.plist").arg(QDir::homePath())}; + + QFile plist{plistPath}; + + if (plist.open(QIODevice::WriteOnly)) + { + QTextStream ts{&plist}; + + ts << u"\n" + "\n" + "\n" + " \n" + " Label\n" + " io.github.rnayabed.rangoli\n" + " Program\n" + " "_s << QCoreApplication::arguments().at(0) << u"\n" + " ProgramArguments\n" + " start_to_system_tray_icon\n" + " RunAtLoad\n" + " \n" + " \n" + ""_s; + + plist.close(); + + QPointer load{new QProcess}; + QObject::connect(load, &QProcess::finished, StartAtBoot::macOSLaunchCtlLoadFinished); + QObject::connect(load, &QProcess::finished, load, &QProcess::deleteLater); + load->start(QStringLiteral("launchctl load -w '%1'").arg(plistPath)); + + return true; + } + else + { + return false; + } +#endif + return false; +} + +bool StartAtBoot::deleteStarter() +{ +#if defined(Q_OS_LINUX) + bool result = QFile{QStringLiteral("%1/.local/share/systemd/user/rangoli.service").arg(QDir::homePath())}.remove(); + + QPointer systemDReload{new QProcess}; + QObject::connect(systemDReload, &QProcess::finished, systemDReload, &QProcess::deleteLater); + systemDReload->start(u"systemctl --user daemon-reload"_s); + + return result; +#elif defined(Q_OS_WIN) + QFile starter{QStringLiteral("%1/Microsoft/Windows/Start Menu/Programs/Startup/rangoli.vbs").arg(qgetenv("APPDATA"))}; + + return starter.remove(); +#elif defined(Q_OS_MACOS) + QString plistPath{QStringLiteral("%1/Library/LaunchAgents/io.github.rnayabed.rangoli.plist").arg(QDir::homePath())}; + + bool result = QFile{plistPath}.remove(); + + QPointer unload{new QProcess}; + QObject::connect(unload, &QProcess::finished, unload, &QProcess::deleteLater); + unload->start(QStringLiteral("launchctl unload -w '%1'").arg(plistPath)); + + return result; +#endif + return false; +} + +void StartAtBoot::linuxSystemDDaemonReloadFinished(int exitCode, QProcess::ExitStatus exitStatus) +{ + Q_UNUSED(exitCode) + Q_UNUSED(exitStatus) + + QPointer enableService{new QProcess}; + QObject::connect(enableService, &QProcess::finished, enableService, &QProcess::deleteLater); + enableService->start(u"systemctl --user enable rangoli.service"_s); +} + +void StartAtBoot::macOSLaunchCtlLoadFinished(int exitCode, QProcess::ExitStatus exitStatus) +{ + Q_UNUSED(exitCode) + Q_UNUSED(exitStatus) + + QPointer stop{new QProcess}; + QObject::connect(stop, &QProcess::finished, stop, &QProcess::deleteLater); + stop->start(u"launchctl stop io.github.rnayabed.rangoli"_s); +} diff --git a/src/startatboot.h b/src/startatboot.h new file mode 100644 index 0000000..36191e3 --- /dev/null +++ b/src/startatboot.h @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + * + * 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 3 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. + */ + +#ifndef STARTATBOOT_H +#define STARTATBOOT_H + +#include + +class StartAtBoot +{ +public: + +#if defined(Q_OS_LINUX) or defined(Q_OS_WIN) or defined(Q_OS_MACOS) + static inline constexpr bool Supported = true; +#else + static inline constexpr bool Supported = false; +#endif + + static bool createStarter(); + static bool deleteStarter(); + +private slots: + static void linuxSystemDDaemonReloadFinished(int exitCode, QProcess::ExitStatus exitStatus); + static void macOSLaunchCtlLoadFinished(int exitCode, QProcess::ExitStatus exitStatus); +}; + +#endif // STARTATBOOT_H diff --git a/src/udev-rule-writer.sh b/src/udev-rule-writer.sh new file mode 100755 index 0000000..aeb8ca7 --- /dev/null +++ b/src/udev-rule-writer.sh @@ -0,0 +1,62 @@ +#!/usr/bin/python3 + +""" +Copyright (C) 2023 Debayan Sutradhar (rnayabed) (debayansutradhar3@gmail.com) + +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 3 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. +""" + +import json, sys, random, os + +if len(sys.argv) != 7: + print('Insufficient arguments') + sys.exit() + +keyboards_list_path = sys.argv[1] +udev_rule_path = sys.argv[2] +exit_file = sys.argv[3] +exit_ok = sys.argv[4] +exit_keyboards_list_read_failed = sys.argv[5] +exit_udev_rule_write_failed = sys.argv[6] + +def exit(code): + f = open(exit_file, 'w') + f.write(f'{str(random.random())[2:]}:{code}') + f.close() + sys.exit() + +try: + list_file = open(keyboards_list_path,'r') + list = json.load(list_file) + list_file.close() +except: + exit(exit_keyboards_list_read_failed) + +vid = list['vid'] + +content='# Rangoli udev rules\n' + +for pid in list['pids']: + content += f'KERNEL=="hidraw*", ATTRS{{idVendor}}=="{vid}", ATTRS{{idProduct}}=="{("0" * (4 - len(pid))) + pid}", TAG+="uaccess"\n' + + +try: + rule_file = open(udev_rule_path, 'w') + rule_file.write(content) + rule_file.close() +except: + exit(exit_udev_rule_write_failed) + +os.system('udevadm trigger -c change') + +exit(exit_ok) + + + diff --git a/supported-keyboards.md b/supported-keyboards.md new file mode 100644 index 0000000..76f0458 --- /dev/null +++ b/supported-keyboards.md @@ -0,0 +1,94 @@ +# Supported Keyboards + +Rangoli currently supports 88 keyboards. If you cannot find your keyboard in this list, please create an [issue](https://github.com/rnayabed/rangoli/issues/new) to bring it to my attention. + +| Name | PID | +| ------------------------------ | ---- | +| RK-H81RGB | 0102 | +| RK68 N ISO Return Bluetooth | 0103 | +| RK68RGB N Wired | 010a | +| RK84RGB N Wired | 010d | +| RK987RGB 2.4G N | 01ff | +| RK100 | 002a | +| RK-68Plus | 0048 | +| RK-G68 | 0049 | +| RK61RGB Wired | 004a | +| RK100RGB Wireless | 004b | +| RK87RGB | 004c | +| RK71RGB Wired | 004d | +| RK71 | 004e | +| G87RGB Wired | 004f | +| RK837 | 0052 | +| RK960 | 0053 | +| RK987 Single Color | 0054 | +| RK-61 | 0055 | +| RK100RGB | 0056 | +| RK857 Single | 0057 | +| RK SINK104 | 0058 | +| RK84RGB | 0059 | +| RK71RGB | 005a | +| RK987RGB | 005b | +| RK-G68RGB-UK | 005c | +| RK857 | 005d | +| RK68RGB Bluetooth Dual Mode | 005e | +| RK61 | 0060 | +| RK68RGB Wired | 0064 | +| RK61RGB ISO Return | 0065 | +| RK61ISO Return | 0066 | +| RK100PRO | 0067 | +| RK987RGB Wired | 0068 | +| RK71RGB Wireless | 0069 | +| RK71 Bluetooth Dual Mode | 006a | +| RK87(882) | 006b | +| RK68Plus | 006f | +| RK98 RGB | 0070 | +| RK87(882) Wired | 0074 | +| G68RGB ISO Return | 0075 | +| RK87 | 0078 | +| RK68Pro | 0079 | +| RK61 RGB Bluetooth Dual Mode | 007a | +| RK896 | 007b | +| RK87T RGBWired | 007c | +| G87RGB Wired | 007d | +| RK96 RGB | 0089 | +| RK68 Bluetooth Dual Mode | 008b | +| RK61RGB ISO ReturnWired | 008c | +| RK68 a switch | 008e | +| RK920RGB | 008f | +| RK89RGB | 009c | +| RK92RGB N | 009e | +| 68RGB Wired | 00a2 | +| RK96 | 00a4 | +| RK71RGB N | 00a5 | +| RK932 | 00a6 | +| RK68ISO Return | 00a9 | +| RK750-100RGB | 00aa | +| RK98Wired-100KRGB | 00b3 | +| RK71RGB N BT | 00b5 | +| RK61 Bluetooth Dual Mode | 00b8 | +| RK857 Single | 00c0 | +| RK98-100KRGB N | 00c1 | +| K87RGB N | 00c3 | +| RK87RGB N Wired | 00c4 | +| RK858 (61) | 00c6 | +| RK84N RGB | 00c8 | +| RK61 N RGB Bluetooth Dual Mode | 00c9 | +| RK89 | 00cd | +| RK838 RGB | 00d6 | +| RK98Wired-100K N RGB | 00d8 | +| RK61plus RGB N | 00da | +| RK883RGB N Wired | 00de | +| RK100RGB N | 00e0 | +| RK61RGB N | 00e1 | +| RKG68RGB N | 00e7 | +| RK71RGB N Wired | 00ea | +| RK61RGB N ISO Return | 00ec | +| RK61 N RGB Bluetooth Dual Mode | 00ed | +| RK-H87RGB | 00ef | +| RK84Pro N RGB | 00f3 | +| RK84 RGB ISO Return | 00f4 | +| RK-R87RGB Wired | 00f6 | +| RK-R87 Wired | 00f7 | +| RK61plus RGB | 00f8 | +| RK987RGB N | 00f9 | +| RK68RGB N Bluetooth Dual Mode | 00ff |