diff options
Diffstat (limited to 'aktersnurra')
-rw-r--r-- | aktersnurra/charybdis/keymap.c | 2 | ||||
-rw-r--r-- | aktersnurra/dilemma/README.md | 21 | ||||
-rw-r--r-- | aktersnurra/dilemma/config.h | 37 | ||||
-rw-r--r-- | aktersnurra/dilemma/keymap.c | 74 | ||||
-rw-r--r-- | aktersnurra/dilemma/rules.mk | 4 |
5 files changed, 137 insertions, 1 deletions
diff --git a/aktersnurra/charybdis/keymap.c b/aktersnurra/charybdis/keymap.c index f0f943c..c94a9e7 100644 --- a/aktersnurra/charybdis/keymap.c +++ b/aktersnurra/charybdis/keymap.c @@ -18,7 +18,7 @@ #define NAV LT(_NAV, KC_SPC) #define SYM LT(_SYM, KC_BSPC) #define NUM LT(_NUM, KC_TAB) -#define CHARYBDIS_AUTO_SNIPING_ON_LAYER _MOU +#define CHARYBDIS_AUTO_SNIPING_ON_LAYER _NAV enum { _COLEMAK_DH, _NAV, _NUM, _SYM, _FUN, _MEDIA, } layers; enum td_keycodes { diff --git a/aktersnurra/dilemma/README.md b/aktersnurra/dilemma/README.md new file mode 100644 index 0000000..63ba5c7 --- /dev/null +++ b/aktersnurra/dilemma/README.md @@ -0,0 +1,21 @@ +# Dilemma + +## TODO + +Add keymap for right right thumb. + +## Compiling + +Follow the steps in this [tutorial](https://docs.bastardkb.com/fw/compile-firmware.html#compiling-your-firmware-using-the-local-command-line) + +## Flashing + +1. Trigger boot mode +2. Mount the controller +3. Copy over the new keymap to the controller: + +```sh +doas cp bastardkb_charybdis_3x5_v2_aktersnurra.uf2 /mnt/usb +``` + +(If there is some issue flash the sides individually) diff --git a/aktersnurra/dilemma/config.h b/aktersnurra/dilemma/config.h new file mode 100644 index 0000000..116bd0a --- /dev/null +++ b/aktersnurra/dilemma/config.h @@ -0,0 +1,37 @@ +/* +Copyright 2020 Pierre Chevalier <pierrechevalier83@gmail.com> + +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 DYNAMIC_KEYMAP_LAYER_COUNT 6 + +#define SPLIT_LAYER_STATE_ENABLE +#define SPLIT_LED_STATE_ENABLE + +#define TAPPING_TERM 196 +#define PERMISSIVE_HOLD +#define TAPPING_FORCE_HOLD + +#define POINTING_DEVICE_AUTO_MOUSE_ENABLE +#define AUTO_MOUSE_TIME 800 +#define AUTO_MOUSE_DEBOUNCE 50 + +#define SPLIT_LAYER_STATE_ENABLE +#define SPLIT_LED_STATE_ENABLE +#define POINTING_DEVICE_GESTURES_SCROLL_ENABLE + +#define DILEMMA_MINIMUM_DEFAULT_DPI 256 +#define DILEMMA_DEFAULT_DPI_CONFIG_STEP 32 diff --git a/aktersnurra/dilemma/keymap.c b/aktersnurra/dilemma/keymap.c new file mode 100644 index 0000000..3e60fee --- /dev/null +++ b/aktersnurra/dilemma/keymap.c @@ -0,0 +1,74 @@ +#include QMK_KEYBOARD_H +#include "../sftrp.c" + +#define KC_HA GUI_T(KC_A) +#define KC_HR ALT_T(KC_R) +#define KC_HS CTL_T(KC_S) +#define KC_HT SFT_T(KC_T) + +#define KC_HO GUI_T(KC_O) +#define KC_HI ALT_T(KC_I) +#define KC_HE CTL_T(KC_E) +#define KC_HN SFT_T(KC_N) + +#define KC_SLBRC SFT_T(KC_LBRC) + +#define KC_ALT_CTL LALT(KC_LCTL) + +#define NAV LT(_NAV, KC_SPC) +#define SYM LT(_SYM, KC_BSPC) +#define NUM LT(_NUM, KC_TAB) + +enum { _COLEMAK_DH, _NAV, _NUM, _SYM, _FUN, _MEDIA, } layers; +enum td_keycodes { + SFT_RP, +}; + +#define DILEMMA_AUTO_SNIPING_ON_LAYER _NAV + +tap_dance_action_t tap_dance_actions[] = { + [SFT_RP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, sftrp_finished, sftrp_reset)}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_COLEMAK_DH] = LAYOUT_split_3x5_3( /* COLEMAK MOD DH */ + KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, + KC_HA, KC_HR, KC_HS, KC_HT, KC_G, KC_M, KC_HN, KC_HE, KC_HI, KC_HO, + KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, + KC_ENT, NAV, KC_ESC, SYM, NUM, KC_LGUI + ), + + [_SYM] = LAYOUT_split_3x5_3( /* [> Symbol layer <] */ + KC_TRNS, KC_EXLM, KC_PERC, KC_DLR, KC_AMPR, KC_AT, KC_ASTR, KC_CIRC, KC_TRNS, KC_TRNS, + KC_GRV, KC_HASH, KC_LPRN, TD(SFT_RP), KC_MINS, KC_EQL, KC_SLBRC, KC_RBRC, KC_QUOT, KC_PIPE, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSLS, + KC_TRNS, KC_SPC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ), + + [_NAV] = LAYOUT_split_3x5_3( /* [> Mouse/Nav layer <] */ + KC_TRNS, KC_TRNS, KC_WH_D, KC_WH_U, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_BTN1, KC_BTN2, KC_TRNS, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC, KC_TRNS, KC_TRNS + ), + + [_NUM] = LAYOUT_split_3x5_3( /* [> Number layer <] */ + KC_TRNS, KC_4, KC_5, KC_6, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_1, KC_2, KC_3, KC_0, KC_TRNS, KC_7, KC_8, KC_9, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + MO(_MEDIA), MO(_FUN), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ), + + [_MEDIA] = LAYOUT_split_3x5_3( /* [> Media layer <] */ + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ), + + [_FUN] = LAYOUT_split_3x5_3( /* [> Function layer <] */ + KC_TRNS, KC_TRNS, RGB_TOG, RGB_RMOD, RGB_MOD, KC_TRNS, QK_BOOT, KC_TRNS, KC_TRNS, EE_CLR, + KC_TRNS, KC_TRNS, KC_TRNS, KC_ALT_CTL, KC_TRNS, KC_TRNS, KC_F1, KC_F2, KC_F3, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ), +}; diff --git a/aktersnurra/dilemma/rules.mk b/aktersnurra/dilemma/rules.mk new file mode 100644 index 0000000..aeb2fb5 --- /dev/null +++ b/aktersnurra/dilemma/rules.mk @@ -0,0 +1,4 @@ +MOUSEKEY_ENABLE = yes +SPLIT_KEYBOARD = yes +TAP_DANCE_ENABLE = yes +AUDIO_ENABLE = no |