Skip to content

Commit

Permalink
[combos] add combos
Browse files Browse the repository at this point in the history
  • Loading branch information
VeyPatch committed Jan 14, 2025
1 parent 07be245 commit 85024c4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
15 changes: 15 additions & 0 deletions users/veypatch/keyrecords/combos.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright 2025 VeyPatch ([email protected])
// SPDX-License-Identifier: GPL-2.0-or-later

enum combos {
CB_LCTL,
AL_LALT
};

const uint16_t PROGMEM cb_combo[] = {LT(_SYM, KC_ENTER), KC_LSFT, COMBO_END};
const uint16_t PROGMEM al_combo[] = {LT(_NAV, KC_TAB), KC_SPC, COMBO_END};

combo_t key_combos[] = {
[CB_LCTL] = COMBO(cb_combo, KC_LCTL),
[AL_LALT] = COMBO(al_combo, KC_LALT),
};
13 changes: 7 additions & 6 deletions users/veypatch/keyrecords/wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,17 +268,17 @@ NOTE: These are all the same length. If you do a search/replace
#define R2_WIDE KC_QUOT
#define R3_WIDE KC_PSCR

#define __________________THUMB_L1_________________ KC_LCTL, KC_LSFT, LT(_SYM, KC_ENTER)
#define __________________THUMB_L1_________________ KC_DEL, KC_LSFT, LT(_SYM, KC_ENTER)
#define __________________THUMB_R1_________________ LT(_NAV, KC_TAB), KC_SPC, KC_BSPC

#define WIDE_THUMB_L1 KC_LGUI, KC_LALT
#define WIDE_THUMB_R1 KC_DEL, KC_APP

#define _______________NAV_THUMB_L1________________ _______, _______, _______
#define _______________NAV_THUMB_R1________________ MO(_FUNCTION), KC_PSCR, KC_DEL
#define _______________SYM_THUMB_L1________________ _______, _______, _______
#define _______________SYM_THUMB_R1________________ MO(_FUNCTION), KC_PSCR, KC_DEL

#define _______________SYM_THUMB_L1________________ MO(_ADJUST), KC_LGUI, MO(_FUNCTION)
#define _______________SYM_THUMB_R1________________ _______, _______, _______
#define _______________NAV_THUMB_L1________________ MO(_ADJUST), KC_LGUI, MO(_FUNCTION)
#define _______________NAV_THUMB_R1________________ _______, _______, _______

#define _______________FUNC_THUMB_L1_______________ _______, _______, _______
#define _______________FUNC_THUMB_R1_______________ _______, _______, _______
Expand All @@ -292,10 +292,11 @@ NOTE: These are all the same length. If you do a search/replace

#define ________________SYMBOLS_R1_________________ _______, _______, KC_PIPE, KC_BSLS, KC_ESC
#define ________________SYMBOLS_R2_________________ LSFT(KC_EQL), KC_MINS, KC_SLSH, LSFT(KC_8), KC_QUOT
#define ________________SYMBOLS_R3_________________ LSFT(KC_7) , KC_EQL , _______, _______ , _______
#define ________________SYMBOLS_R3_________________ KC_EQL, LSFT(KC_MINS), LSFT(KC_7), _______, LSFT(KC_QUOT)

#define _________________MEDIA_L2__________________ _______, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU
#define _________________MEDIA_L3__________________ _______, _______, _______, KC_MUTE, KC_VOLD

#define ________________ARROWS_R2__________________ KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, _______
#define ________________ARROWS_R3__________________ _______, KC_LEFT, KC_DOWN, KC_RGHT, _______

Expand Down
5 changes: 5 additions & 0 deletions users/veypatch/rules.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
SRC += $(USER_PATH)/veypatch.c
INTROSPECTION_KEYMAP_C = $(USER_PATH)/keyrecords/combos.c

# Keyboard features
NKRO_ENABLE = yes
COMBO_ENABLE = yes

# Platform specific features
ifeq ($(PLATFORM_KEY),chibios)
include $(USER_PATH)/arm/arm.mk
endif
5 changes: 3 additions & 2 deletions users/veypatch/veypatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// SPDX-License-Identifier: GPL-2.0-or-later

#include "veypatch.h"

#ifdef HALCYON_ENABLE
#include "display/display.h"
# include "display/display.h"
#endif
#ifdef LIATRIS_ENABLE
#include "arm/liatris/liatris.h"
# include "arm/liatris/liatris.h"
#endif

void keyboard_pre_init_user(void) {
Expand Down

0 comments on commit 85024c4

Please sign in to comment.