Skip to content

Commit

Permalink
Revert "wire repeat and a-repeat"
Browse files Browse the repository at this point in the history
This reverts commit 8854e94.
  • Loading branch information
yuanwang-wf committed Jan 2, 2024
1 parent 8854e94 commit fcdfbf0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 22 deletions.
23 changes: 23 additions & 0 deletions qmk/yuanw/keycodes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#pragma once

#include QMK_KEYBOARD_H


enum charybdis_keymap_layers {
LAYER_BASE = 0,
LAYER_FUNCTION,
LAYER_NAVIGATION,
LAYER_MEDIA,
LAYER_POINTER,
LAYER_NUMERAL,
LAYER_SYMBOLS,
};

#define ESC_MED LT(LAYER_MEDIA, KC_ESC)
#define SPC_NAV LT(LAYER_NAVIGATION, KC_SPC)
#define TAB_FUN LT(LAYER_FUNCTION, KC_BSPC)
#define ENT_SYM LT(LAYER_SYMBOLS, KC_ENT)
#define BSP_NUM LT(LAYER_NUMERAL, KC_E)
#define _L_PTR(KC) LT(LAYER_POINTER, KC)


27 changes: 5 additions & 22 deletions qmk/yuanw/keymap.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#include "keycodes.h"
#ifdef OS_DETECTION_ENABLE
# include "os_detection.h"
#endif
#ifdef CHARYBDIS_AUTO_POINTER_LAYER_TRIGGER_ENABLE
# include "timer.h"
#endif // CHARYBDIS_AUTO_POINTER_LAYER_TRIGGER_ENABLE
#include "repeat.h"


// Automatically enable sniping-mode on the pointer layer.
Expand Down Expand Up @@ -40,25 +42,6 @@ enum my_keycodes { RDO = SAFE_RANGE,
UND,
};

enum charybdis_keymap_layers {
LAYER_BASE = 0,
LAYER_FUNCTION,
LAYER_NAVIGATION,
LAYER_MEDIA,
LAYER_POINTER,
LAYER_NUMERAL,
LAYER_SYMBOLS,
};

#define ESC_MED LT(LAYER_MEDIA, KC_ESC)
#define SPC_NAV LT(LAYER_NAVIGATION, KC_SPC)
#define TAB_FUN LT(LAYER_FUNCTION, KC_BSPC)
#define ENT_SYM LT(LAYER_SYMBOLS, KC_ENT)
#define BSP_NUM LT(LAYER_NUMERAL, KC_E)
#define _L_PTR(KC) LT(LAYER_POINTER, KC)



// clang-format off
/** \brief QWERTY layout (3 rows, 10 columns). */
#define LAYOUT_LAYER_BASE \
Expand Down Expand Up @@ -150,9 +133,9 @@ enum charybdis_keymap_layers {
*/
#define LAYOUT_LAYER_SYMBOLS \
KC_LCBR, KC_AMPR, KC_ASTR, KC_LPRN, KC_RCBR, _______________DEAD_HALF_ROW_______________, \
KC_COLN, KC_DLR, KC_PERC, KC_CIRC, KC_PLUS, ______________HOME_ROW_GACS_R______________, \
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_PIPE, _______________DEAD_HALF_ROW_______________, \
QK_REP, QK_AREP, KC_UNDS, _______, XXXXXXX
KC_COLN, KC_DLR, KC_PERC, KC_CIRC, KC_PLUS, ______________HOME_ROW_GACS_R______________, \
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_PIPE, _______________DEAD_HALF_ROW_______________, \
KC_LPRN, KC_RPRN, KC_UNDS, _______, XXXXXXX

/**
* \brief Add Home Row mod to a layout.
Expand Down
1 change: 1 addition & 0 deletions qmk/yuanw/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ COMBO_ENABLE = yes
CAPS_WORD_ENABLE = yes
OS_DETECTION_ENABLE = yes
REPEAT_KEY_ENABLE = yes
SRC += repeat.c

0 comments on commit fcdfbf0

Please sign in to comment.