[Keymap] add kuatsure planck keymap (#10625)
Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
Jarrett Drouillard
committed by
GitHub
parent
a2d5468df3
commit
2218879d68
33
keyboards/planck/keymaps/kuatsure/config.h
Normal file
33
keyboards/planck/keymaps/kuatsure/config.h
Normal file
@ -0,0 +1,33 @@
|
||||
/* Copyright 2020 kuatsure
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef AUDIO_ENABLE
|
||||
#define STARTUP_SONG SONG(PLANCK_SOUND)
|
||||
// #define STARTUP_SONG SONG(NO_SOUND)
|
||||
|
||||
#define GAME_SOUND DVORAK_SOUND
|
||||
|
||||
#define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
|
||||
SONG(GAME_SOUND) \
|
||||
}
|
||||
#endif
|
||||
|
||||
#define MIDI_BASIC
|
||||
|
||||
// Most tactile encoders have detents every 4 stages
|
||||
#define ENCODER_RESOLUTION 4
|
318
keyboards/planck/keymaps/kuatsure/keymap.c
Normal file
318
keyboards/planck/keymaps/kuatsure/keymap.c
Normal file
File diff suppressed because it is too large
Load Diff
1
keyboards/planck/keymaps/kuatsure/readme.md
Normal file
1
keyboards/planck/keymaps/kuatsure/readme.md
Normal file
@ -0,0 +1 @@
|
||||
# The kuatsure Planck layout - largely based on the Preonic's & Keyboard Paradise V60's layout
|
6
keyboards/planck/keymaps/kuatsure/rules.mk
Normal file
6
keyboards/planck/keymaps/kuatsure/rules.mk
Normal file
@ -0,0 +1,6 @@
|
||||
SRC += muse.c
|
||||
|
||||
BACKLIGHT_ENABLE = no
|
||||
LEADER_ENABLE = yes
|
||||
ENCODER_ENABLE = yes
|
||||
MOUSEKEY_ENABLE = yes
|
@ -17,6 +17,8 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "kuatsure.h"
|
||||
|
||||
#define LAYOUT_preonic_grid_wrapper(...) LAYOUT_preonic_grid(__VA_ARGS__)
|
||||
|
||||
enum preonic_layers {
|
||||
_QWERTY,
|
||||
_GAME,
|
||||
|
@ -3,7 +3,8 @@
|
||||
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
[TD_LBRC] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LT),
|
||||
[TD_RBRC] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_GT)
|
||||
[TD_RBRC] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_GT),
|
||||
[TD_SLSH] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, KC_BSLS),
|
||||
};
|
||||
|
||||
__attribute__ ((weak))
|
||||
@ -29,15 +30,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
|
||||
case KB_FLSH:
|
||||
if (!record->event.pressed) {
|
||||
SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP
|
||||
#if (defined(BOOTLOADER_DFU) || defined(BOOTLOADER_LUFA_DFU) || defined(BOOTLOADER_QMK_DFU))
|
||||
":dfu "
|
||||
#elif defined(BOOTLOADER_HALFKAY)
|
||||
":teensy "
|
||||
#elif defined(BOOTLOADER_CATERINA)
|
||||
":avrdude "
|
||||
#endif
|
||||
SS_TAP(X_ENTER)
|
||||
SEND_STRING(
|
||||
"qmk flash -kb " QMK_KEYBOARD " -km " QMK_KEYMAP
|
||||
);
|
||||
|
||||
reset_keyboard();
|
||||
|
@ -11,13 +11,18 @@ enum kuatsure_keycodes {
|
||||
USER_SAFE_RANGE,
|
||||
};
|
||||
|
||||
#define ONESHOT_TAP_TOGGLE 2
|
||||
#define KT_LSFT OSM(MOD_LSFT)
|
||||
|
||||
enum {
|
||||
TD_LBRC = 0,
|
||||
TD_RBRC,
|
||||
TD_SLSH
|
||||
};
|
||||
|
||||
#define KT_LBRC TD(TD_LBRC)
|
||||
#define KT_RBRC TD(TD_RBRC)
|
||||
#define KT_SLSH TD(TD_SLSH)
|
||||
|
||||
#define TAPPING_TERM 200
|
||||
|
||||
@ -33,8 +38,6 @@ void tmux_pane_zoom(void);
|
||||
#undef LEADER_TIMEOUT
|
||||
#define LEADER_TIMEOUT 300
|
||||
|
||||
#define LAYOUT_preonic_grid_wrapper(...) LAYOUT_preonic_grid(__VA_ARGS__)
|
||||
|
||||
#define _________________NUMBER_L1_________________ KC_1, KC_2, KC_3, KC_4, KC_5
|
||||
#define _________________NUMBER_R1_________________ KC_6, KC_7, KC_8, KC_9, KC_0
|
||||
|
||||
@ -47,7 +50,8 @@ void tmux_pane_zoom(void);
|
||||
|
||||
#define _________________QWERTY_R1_________________ KC_Y, KC_U, KC_I, KC_O, KC_P
|
||||
#define _________________QWERTY_R2_________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN
|
||||
#define _________________QWERTY_R3_________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLASH
|
||||
#define _________________QWERTY_R3_________________ KC_N, KC_M, KC_COMM, KC_DOT, KT_SLSH
|
||||
#define _________________QWERTY_R3_M_______________ KC_N, KC_M, KC_COMM, KC_DOT, KC_UP
|
||||
|
||||
#define ____________FUNCTION_1____________ KC_F1, KC_F2, KC_F3, KC_F4
|
||||
#define ____________FUNCTION_2____________ KC_F5, KC_F6, KC_F7, KC_F8
|
||||
|
Reference in New Issue
Block a user