Skip to content

Instantly share code, notes, and snippets.

@apprehensions
Last active July 5, 2022 07:13
Show Gist options
  • Save apprehensions/191aaf8c5ab693aa63aeb4590d9ef711 to your computer and use it in GitHub Desktop.
Save apprehensions/191aaf8c5ab693aa63aeb4590d9ef711 to your computer and use it in GitHub Desktop.
qmk keyboard
#pragma once
#define TAP_CODE_DELAY 135
#define AUTO_SHIFT_TIMEOUT 135
#define TAPPING_TERM 135
#define RGBLIGHT_SLEEP
#define NO_AUTO_SHIFT_SPECIAL
#define NO_AUTO_SHIFT_NUMERIC
#define NO_AUTO_SHIFT_ALPHA
/* Copyright 2018 MechMerlin
*
* 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
#define KC_CAD LALT(LCTL(KC_DEL))
enum { LBP, RBP };
qk_tap_dance_action_t tap_dance_actions[] = {
[LBP] = ACTION_FUNCTION_TAP(KC_LCBR, KC_LBRC),
[RBP] = ACTION_FUNCTION_TAP(KC_RCBR, KC_RBRC),
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ortho_5x15(
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MYCM, KC_MSEL, KC_WHOM, KC_6, KC_7, KC_8, KC_9, KC_0, KC_CAPS,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LPRN, KC_PGUP, KC_RPRN, KC_Y, KC_U, KC_I, KC_O, KC_SCLN, KC_BSLS,
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, TD(LBP), KC_PGDN, TD(RBP), KC_H, KC_J, KC_K, KC_L, KC_P, KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MINS, KC_UP, KC_EQL, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
KC_LCTL, KC_LALT, KC_PSCR, MO(1), KC_LGUI, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT, KC_BSPC, KC_ENT, KC_DEL, KC_APP, KC_RALT, KC_RCTL),
[1] = LAYOUT_ortho_5x15(
RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_PWR, KC_SLEP, KC_WAKE, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, DEBUG,
KC_CAD, KC_BTN1, KC_MS_U, KC_BTN2, KC_WH_L, KC_BTN4, _______, _______, _______, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______,
_______, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, KC_BTN5, KC_F11, _______, KC_F12, RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______,
_______, KC_BTN2, KC_ACL0, KC_ACL1, KC_ACL2, _______, KC_MPLY, KC_VOLU, KC_MUTE, RGB_TOG, RGB_M_P, RGB_M_SN, _______, _______, _______,
_______, _______, _______, KC_TRNS, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT, _______, _______, _______, _______, _______, _______)
};
layer_state_t layer_state_set_user(layer_state_t state) {
switch (get_highest_layer(state)) {
case 0:
backlight_set(3); break;
case 1:
backlight_set(2); break;
}
return state;
}
bool get_custom_auto_shifted_key(uint16_t keycode, keyrecord_t *record) {
switch(keycode) {
default:
return false;
}
}
AUTO_SHIFT_ENABLE = yes
TAP_DANCE_ENABLE = yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment