Moving to userspace

This commit is contained in:
2023-11-18 18:42:23 -06:00
parent 97194ed23b
commit a6e6716a24
13 changed files with 246 additions and 49 deletions

View File

@@ -0,0 +1,45 @@
#pragma once
#include "layers.h"
// clang-format off
// Tap dance codes
enum {
TD_Q_ESC,
TD_W_GRV
};
// Tap dance keycodes
#define Q_ESC TD(TD_Q_ESC)
#define W_GRV TD(TD_W_GRV)
// Custom keycodes
enum {
CUSTOM_KEYCODE_START = SAFE_RANGE,
M_PASS1,
M_PASS12,
CUSTOM_KEYCODE_END
};
// Layer-taps
// 3 LEFT THUMB KEYS
#define MUS_ESC LT(_MUS, KC_ESC)
#define NAV_BKSP LT(_NAV, KC_BSPC)
#define MOUSE_TAB LT(_MOUSE, KC_TAB)
// 3 RIGHT THUMB KEYS
#define SYM_ENTER LT(_SYM, KC_ENTER)
#define NUM_SPC LT(_NUM, KC_SPC)
#define FUN_DEL LT(_FUN, KC_DEL)
// 2 LEFT THUMB KEYS
#define FUN_TAB LT(_FUN, KC_TAB)
// 2 RIGHT THUMB KEYS
#define NUM_SPC LT(_NUM, KC_SPC)
// clang-format on

View File

@@ -0,0 +1,32 @@
#pragma once
#include QMK_KEYBOARD_H
#include "keycodes.h"
// clang-format off
// THUMB KEYS
#define ___________THUMB_L3________ MUS_ESC, NAV_BKSP,MOUSE_TAB
#define ___________THUMB_R3________ SYM_ENTER,NUM_SPC,FUN_DEL
#define
#define ____THUMB_L2____ NAV_BKSP,FUN_TAB
#define ____THUMB_R2____ SYM_ENTER,NUM_SPC
// _BASE
#define __________________BASE_L1____________________ Q_ESC, W_GRV, KC_E, KC_R, KC_T
#define __________________BASE_L2____________________ KC_A, KC_S, KC_D, KC_F, KC_G
#define __________________BASE_L3____________________ KC_Z, KC_X, KC_C, KC_V, KC_B
#define __________________BASE_R1____________________ KC_Y, KC_U, KC_I, KC_O, KC_P
#define __________________BASE_R2____________________ KC_H, KC_J, KC_K, KC_L, KC_QUOT
#define __________________BASE_R3____________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH
// _NAV
#define __________________NAV_L1____________________ QK_BOOTLOADER,_______,_______,_______,_______
#define __________________NAV_L2____________________ _______, _______, _______, _______, _______
#define __________________NAV_L3____________________ _______, _______, _______, M_PASS2, M_PASS1
#define __________________NAV_R1____________________ _______, KC_PSTE, KC_COPY, KC_CUT, KC_UNDO
#define __________________NAV_R2____________________ KC_CAPS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
#define __________________NAV_R3____________________ _______, KC_HOME, KC_PGUP, KC_PGDN, KC_END

View File

@@ -0,0 +1,11 @@
#pragma once
typedef enum {
_BASE,
_NAV,
_NUM,
_SYM,
_FUN,
_MUS,
_MOUSE
} layers_t;