[Keymap] hvp keymap for Cornelius, updated ut47.2 and userspace (#14187)
This commit is contained in:
parent
872414f454
commit
cb53c4fd41
11 changed files with 246 additions and 37 deletions
18
users/hvp/config.h
Normal file
18
users/hvp/config.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* 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
|
|
@ -1,13 +1,43 @@
|
|||
/* 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
|
||||
#include "quantum.h"
|
||||
|
||||
#undef TAPPING_TERM
|
||||
#define TAPPING_TERM 150
|
||||
#ifdef TAPPING_TERM_PER_KEY
|
||||
# include "per_key.h"
|
||||
#endif
|
||||
|
||||
// Keys
|
||||
|
||||
#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)
|
43
users/hvp/per_key.c
Normal file
43
users/hvp/per_key.c
Normal file
|
@ -0,0 +1,43 @@
|
|||
/* 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 KC_LCPO:
|
||||
return TAPPING_TERM 75;
|
||||
default:
|
||||
return TAPPING_TERM;
|
||||
}
|
||||
}
|
|
@ -1,4 +1,9 @@
|
|||
|
||||
SRC += hvp.c
|
||||
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
|
||||
SRC += tap_dances.c
|
||||
SRC += tap_dances.c
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(TAPPING_TERM_PER_KEY)), yes)
|
||||
SRC += per_key.c
|
||||
endif
|
|
@ -1,5 +1,22 @@
|
|||
/* 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 "hvp.h"
|
||||
#include "quantum.h"
|
||||
|
||||
// Tap Dance Declarations
|
||||
enum tapdance_id
|
||||
|
@ -9,4 +26,4 @@ enum tapdance_id
|
|||
TD3,
|
||||
TD4,
|
||||
TD5
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue