Skip to content

Instantly share code, notes, and snippets.

@KohlJary
Created January 9, 2023 22:41
Show Gist options
  • Save KohlJary/ae4875c25c678c4fbc3b26539d0c3776 to your computer and use it in GitHub Desktop.
Save KohlJary/ae4875c25c678c4fbc3b26539d0c3776 to your computer and use it in GitHub Desktop.
Keymap for my Keychron Q0
/* Copyright 2021 @ 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
enum layers { _BASE, _GAME, _MOUSE, _NAV, _MEDIA, _RGB, _FN1, _RESERVED1, _RESERVED2 };
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT_numpad_6x4(
LT(_MOUSE, KC_PDOT), CTL_T(KC_PSLS), KC_PMNS, LT(_FN1, KC_ESC),
LT(_NAV, KC_P0), GUI_T(KC_PAST), ALT_T(KC_PPLS), KC_NUM,
KC_P1, KC_P4, KC_P7,
KC_P2, KC_P5, KC_P8, KC_TAB,
KC_P3, KC_P6, KC_P9,
SFT_T(KC_PENT), KC_PEQL, KC_BSPC),
[_GAME] = LAYOUT_numpad_6x4(
KC_LCTL, KC_G, KC_Y, _______,
KC_LSFT, KC_F, KC_T, KC_TAB,
KC_Z, KC_A, KC_Q,
KC_X, KC_S, KC_W, KC_1,
KC_C, KC_D, KC_E,
KC_SPC, KC_R, KC_2),
[_MOUSE] = LAYOUT_numpad_6x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
KC_WH_D, KC_MS_L, KC_WH_U,
_______, KC_MS_D, KC_MS_U, KC_WBAK,
KC_BTN2, KC_MS_R, KC_F5,
KC_BTN1, _______, KC_WFWD),
[_NAV] = LAYOUT_numpad_6x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, G(KC_H), G(KC_P),
_______, G(KC_J), G(KC_K), KC_F5,
_______, G(KC_L), G(KC_N),
KC_SPC, _______, KC_DEL),
[_MEDIA] = LAYOUT_numpad_6x4(
KC_VOLD, KC_MPRV, KC_MPLY, _______,
KC_VOLU, KC_MNXT, KC_MSTP, KC_MUTE,
_______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______,
_______, _______, _______),
[_RGB] = LAYOUT_numpad_6x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
RGB_VAD, RGB_RMOD, RGB_VAI,
RGB_HUD, RGB_TOG, RGB_HUI, _______,
RGB_SAD, RGB_MOD, RGB_SAI,
RGB_SPD, RGB_SPI, _______),
[_FN1] = LAYOUT_numpad_6x4(
_______, _______, TG(_RGB), _______,
_______, _______, TG(_GAME), TG(_MEDIA),
KC_F1, KC_F4, KC_F7,
KC_F2, KC_F5, KC_F8, KC_F11,
KC_F3, KC_F6, KC_F9,
QK_BOOT, KC_F10, KC_F12),
[_RESERVED1] = LAYOUT_numpad_6x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______,
_______, _______, _______),
[_RESERVED2] = LAYOUT_numpad_6x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______,
_______, _______, _______)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment