Skip to content

Commit

Permalink
Make huge-a** overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
adophoxia committed Aug 28, 2024
1 parent 0f10c50 commit 411638b
Show file tree
Hide file tree
Showing 16 changed files with 1,135 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
name: 'QMK Userspace Build'
uses: qmk/.github/.github/workflows/qmk_userspace_build.yml@main
with:
qmk_repo: qmk/qmk_firmware
qmk_ref: master
qmk_repo: adophoxia/qmk_firmware
qmk_ref: personal

publish:
name: 'QMK Userspace Publish'
Expand Down
Empty file removed keyboards/.keep
Empty file.
135 changes: 135 additions & 0 deletions keyboards/keychron/q0/base/keymaps/adophoxia/base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"name": "Keychron Q0 Base",
"vendorId": "0x3434",
"productId": "0x0130",
"keycodes": ["qmk_lighting"],
"menus": [
{
"label": "Lighting",
"content": [
{
"label": "Backlight",
"content": [
{
"label": "Brightness",
"type": "range",
"options": [0, 255],
"content": ["id_qmk_rgb_matrix_brightness", 3, 1]
},
{
"label": "Effect",
"type": "dropdown",
"content": ["id_qmk_rgb_matrix_effect", 3, 2],
"options": [
["00. None", 0],
["01. SOLID_COLOR", 1],
["02. BREATHING", 2],
["03. BAND_SPIRAL_VAL", 3],
["04. CYCLE_ALL", 4],
["05. CYCLE_LEFT_RIGHT", 5],
["06. CYCLE_UP_DOWN", 6],
["07. RAINBOW_MOVING_CHEVRON", 7],
["08. CYCLE_OUT_IN", 8],
["09. CYCLE_OUT_IN_DUAL", 9],
["10. CYCLE_PINWHEEL", 10],
["11. CYCLE_SPIRAL", 11],
["12. DUAL_BEACON", 12],
["13. RAINBOW_BEACON", 13],
["14. JELLYBEAN_RAINDROPS", 14],
["15. PIXEL_RAIN", 15],
["16. TYPING_HEATMAP", 16],
["17. DIGITAL_RAIN", 17],
["18. REACTIVE_SIMPLE", 18],
["19. REACTIVE_MULTIWIDE", 19],
["20. REACTIVE_MULTINEXUS", 20],
["21. SPLASH", 21],
["22. SOLID_SPLASH", 22]
]
},
{
"showIf": "{id_qmk_rgb_matrix_effect} > 1",
"label": "Effect Speed",
"type": "range",
"options": [0, 255],
"content": ["id_qmk_rgb_matrix_effect_speed", 3, 3]
},
{
"showIf": "{id_qmk_rgb_matrix_effect} != 0",
"label": "Color",
"type": "color",
"content": ["id_qmk_rgb_matrix_color", 3, 4]
}
]
}
]
}
],
"customKeycodes": [
{
"name": "Mission Control",
"title": "Mission Control in macOS",
"shortName": "MCtrl"
},
{
"name": "Launch Pad",
"title": "Launch Pad in macOS",
"shortName": "LPad"
},
{
"name": "Left Option",
"title": "Left Option in macOS",
"shortName": "LOpt"
},
{
"name": "Right Option",
"title": "Right Option in macOS",
"shortName": "ROpt"
},
{
"name": "Left Cmd",
"title": "Left Command in macOS",
"shortName": "LCmd"
},
{
"name": "Right Cmd",
"title": "Right Command in macOS",
"shortName": "RCmd"
},
{
"name": "Siri",
"title": "Siri in macOS",
"shortName": "Siri"
},
{
"name": "Task View",
"title": "Task View in windows",
"shortName": "Task"
},
{
"name": "File Explorer",
"title": "File Explorer in windows",
"shortName": "File"
},
{
"name": "Screen Shot",
"title": "Screenshot in macOS",
"shortName": "SShot"
},
{
"name": "Cortana",
"title": "Cortana in windows",
"shortName": "Cortana"
}
],
"matrix": {"rows": 6, "cols": 4},
"layouts": {
"keymap": [
["0,0", "0,1", "0,2", "0,3"],
["1,0", "1,1", "1,2", "1,3"],
["2,0", "2,1", "2,2"],
["3,0", "3,1", "3,2", {"h": 2, "y": -1}, "2,3"],
[{"y": 1}, "4,0", "4,1", "4,2"],
[{"w": 2}, "5,0", "5,2", {"h": 2, "y": -1}, "4,3"]
]
}
}
64 changes: 64 additions & 0 deletions keyboards/keychron/q0/base/keymaps/adophoxia/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/* Copyright 2022 @ Keychron (https://www.keychron.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 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include QMK_KEYBOARD_H

/*
* ┌───┬───┬───┬───┐
* │TG1│Esc│Bsp│Tab│
* ├───┼───┼───┼───┤
* │Num│ / │ * │ - │
* ├───┼───┼───┼───┤
* │ 7 │ 8 │ 9 │ │
* ├───┼───┼───┤ + │
* │ 4 │ 5 │ 6 │ │
* ├───┼───┼───┼───┤
* │ 1 │ 2 │ 3 │ │
* ├───┴───┼───┤Ent│
* │ 0 │ . │ │
* └───────┴───┴───┘
*/

enum layers { _BASE, _FN1, _FN2};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT_numpad_6x4(
TG(_FN1), KC_ESC, KC_BSPC, KC_TAB,
KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3,
KC_P0, KC_PDOT, KC_PENT
),

[_FN1] = LAYOUT_numpad_6x4(
TG(_FN2), KC_LCTL, KC_LGUI, KC_LALT,
KC_F10, KC_F11, KC_F12, _______,
KC_F7, KC_F8, KC_F9,
KC_F4, KC_F5, KC_F6, _______,
KC_F1, KC_F2, KC_F3,
_______, _______, _______
),

[_FN2] = LAYOUT_numpad_6x4(
TO(_BASE), KC_MUTE, KC_VOLD, KC_VOLU,
RGB_MOD, RGB_VAI, RGB_HUI, KC_DEL,
RGB_RMOD, RGB_VAD, RGB_HUD,
RGB_SAI, RGB_SPI, KC_MPRV, _______,
RGB_SAD, RGB_SPD, KC_MPLY,
RGB_TOG, KC_MNXT, _______
)
};
Loading

0 comments on commit 411638b

Please sign in to comment.