diff options
Diffstat (limited to 'users/hvp')
-rw-r--r-- | users/hvp/config.h | 19 | ||||
-rw-r--r-- | users/hvp/hvp.c | 2 | ||||
-rw-r--r-- | users/hvp/hvp.h | 43 | ||||
-rw-r--r-- | users/hvp/per_key.c | 43 | ||||
-rw-r--r-- | users/hvp/readme.md | 1 | ||||
-rw-r--r-- | users/hvp/rules.mk | 9 | ||||
-rw-r--r-- | users/hvp/tap_dances.c | 103 | ||||
-rw-r--r-- | users/hvp/tap_dances.h | 29 |
8 files changed, 0 insertions, 249 deletions
diff --git a/users/hvp/config.h b/users/hvp/config.h deleted file mode 100644 index b7d0443bbc..0000000000 --- a/users/hvp/config.h +++ /dev/null @@ -1,19 +0,0 @@ - /* Copyright 2021 hvp - * - * 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 - -#define LONG_TAPPING_TERM 1000 -#define PERMISSIVE_HOLD diff --git a/users/hvp/hvp.c b/users/hvp/hvp.c deleted file mode 100644 index 7e484535c8..0000000000 --- a/users/hvp/hvp.c +++ /dev/null @@ -1,2 +0,0 @@ - -#include "hvp.h" diff --git a/users/hvp/hvp.h b/users/hvp/hvp.h deleted file mode 100644 index 275838a49a..0000000000 --- a/users/hvp/hvp.h +++ /dev/null @@ -1,43 +0,0 @@ - /* Copyright 2021 hvp - * - * 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 -#include "quantum.h" -#undef TAPPING_TERM -#define TAPPING_TERM 150 - -#ifdef TAP_DANCE_ENABLE -# include "tap_dances.h" -#endif - -#ifdef TAPPING_TERM_PER_KEY -# include "per_key.h" -#endif - - -#define D_NAVI MT(MOD_LCTL | MOD_LSFT, KC_D) - -/* Home-row mods */ -#define LG_A MT(MOD_LGUI, KC_A) -#define LA_S MT(MOD_LALT, KC_S) -#define LS_D MT(MOD_LSFT, KC_D) -#define LC_F MT(MOD_LCTL, KC_F) - -#define RC_H MT(MOD_RCTL, KC_H) -#define RS_J MT(MOD_RSFT, KC_J) -#define RA_K MT(MOD_RALT, KC_K) -#define RG_L MT(MOD_RGUI, KC_L)
\ No newline at end of file diff --git a/users/hvp/per_key.c b/users/hvp/per_key.c deleted file mode 100644 index fc4d455f5a..0000000000 --- a/users/hvp/per_key.c +++ /dev/null @@ -1,43 +0,0 @@ - /* Copyright 2021 hvp - * - * 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 per_key.h - -uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case MT(MOD_LGUI, KC_A): - return TAPPING_TERM + LONG_TAPPING_TERM; - case MT(MOD_LALT, KC_S): - return TAPPING_TERM + LONG_TAPPING_TERM; - case MT(MOD_LSFT, KC_D): - return TAPPING_TERM + LONG_TAPPING_TERM; - case MT(MOD_LCTL, KC_F): - return TAPPING_TERM + LONG_TAPPING_TERM; - case MT(MOD_RCTL, KC_H): - return TAPPING_TERM + LONG_TAPPING_TERM; - case MT(MOD_RSFT, KC_J): - return TAPPING_TERM + LONG_TAPPING_TERM; - case MT(MOD_RALT, KC_K): - return TAPPING_TERM + LONG_TAPPING_TERM; - case MT(MOD_RGUI, KC_L): - return TAPPING_TERM + LONG_TAPPING_TERM; - case SC_LCPO: - return TAPPING_TERM 75; - default: - return TAPPING_TERM; - } -}
\ No newline at end of file diff --git a/users/hvp/readme.md b/users/hvp/readme.md deleted file mode 100644 index 2d8f9d8597..0000000000 --- a/users/hvp/readme.md +++ /dev/null @@ -1 +0,0 @@ -Personal user space for hvpcode / cablegore at discord diff --git a/users/hvp/rules.mk b/users/hvp/rules.mk deleted file mode 100644 index 549483b67b..0000000000 --- a/users/hvp/rules.mk +++ /dev/null @@ -1,9 +0,0 @@ - -SRC += hvp.c -ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) - SRC += tap_dances.c -endif - -ifeq ($(strip $(TAPPING_TERM_PER_KEY)), yes) - SRC += per_key.c -endif
\ No newline at end of file diff --git a/users/hvp/tap_dances.c b/users/hvp/tap_dances.c deleted file mode 100644 index 51e227737a..0000000000 --- a/users/hvp/tap_dances.c +++ /dev/null @@ -1,103 +0,0 @@ -#include "tap_dances.h" - -// Tap dance function for enable swedish characters on first layer. Unregister to not let tap bleed over to next keypress. -// Tap dance 1 -void dance_1_finished(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - tap_code(KC_SCLN); - } else { - tap_code16(ALGR(KC_A)); - } -} - -void dance_1_reset(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - unregister_code(KC_SCLN); - } else { - unregister_code16(ALGR(KC_A)); - } -} - -// Tap dance 2 -void dance_2_finished(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - tap_code(KC_QUOT); - } else { - tap_code16(ALGR(KC_W)); - } -} - -void dance_2_reset(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - unregister_code(KC_QUOT); - } else { - unregister_code16(ALGR(KC_W)); - } -} - -// Tap dance 3 -void dance_3_finished(tap_dance_state_t *state, void *user_data) { - // if (state->count == 2) - if (state->count == 2) { - tap_code(KC_SLSH); - } else { - tap_code16(ALGR(KC_O)); - } -} - -void dance_3_reset(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - unregister_code(KC_SLSH); - } else { - unregister_code16(ALGR(KC_O)); - } -} - -// Tap dance 4 -void dance_4_finished(tap_dance_state_t *state, void *user_data) { - // if (state->count == 2) - if (state->count == 2) { - tap_code(KC_DOT); - } else { - tap_code16(ALGR(KC_W)); - } -} - -void dance_4_reset(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - unregister_code(KC_DOT); - } else { - unregister_code16(ALGR(KC_W)); - } -} - -// Tap dance 5 -void dance_5_finished(tap_dance_state_t *state, void *user_data) { - // if (state->count == 2) - if (state->count == 2) { - tap_code(KC_DOT); - } else { - tap_code16(ALGR(KC_O)); - } -} - -void dance_5_reset(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - unregister_code(KC_DOT); - } else { - unregister_code16(ALGR(KC_O)); - } -} - -// Tap Dance Definitions -tap_dance_action_t tap_dance_actions[] = { - // simple tap dance - [TD1] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_1_finished, dance_1_reset), - - [TD2] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_2_finished, dance_2_reset), - - [TD3] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_3_finished, dance_3_reset), - - [TD4] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_4_finished, dance_4_reset), - - [TD5] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_5_finished, dance_5_reset)};
\ No newline at end of file diff --git a/users/hvp/tap_dances.h b/users/hvp/tap_dances.h deleted file mode 100644 index a00caf0929..0000000000 --- a/users/hvp/tap_dances.h +++ /dev/null @@ -1,29 +0,0 @@ - /* Copyright 2021 hvp - * - * 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 -#include "quantum.h" - -// Tap Dance Declarations -enum tapdance_id -{ - TD1 = 0, - TD2, - TD3, - TD4, - TD5 -};
\ No newline at end of file |