From c1ea256dcd0b9818147f482fc856b0dd5cb0f528 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 17 Sep 2024 00:15:30 +0200 Subject: Add dilemma --- aktersnurra/dilemma/README.md | 21 +++++++++++++ aktersnurra/dilemma/config.h | 34 ++++++++++++++++++++ aktersnurra/dilemma/keymap.c | 73 +++++++++++++++++++++++++++++++++++++++++++ aktersnurra/dilemma/rules.mk | 7 +++++ 4 files changed, 135 insertions(+) create mode 100644 aktersnurra/dilemma/README.md create mode 100644 aktersnurra/dilemma/config.h create mode 100644 aktersnurra/dilemma/keymap.c create mode 100644 aktersnurra/dilemma/rules.mk (limited to 'aktersnurra/dilemma') 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..813cdf7 --- /dev/null +++ b/aktersnurra/dilemma/config.h @@ -0,0 +1,34 @@ +/* +Copyright 2020 Pierre Chevalier + +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 . +*/ + +#pragma once +#define TAPPING_TERM 150 +#define PERMISSIVE_HOLD +#define TAPPING_FORCE_HOLD + +#define CHARYBDIS_MINIMUM_DEFAULT_DPI 500 +#define CHARYBDIS_DEFAULT_DPI_CONFIG_STEP 200 +#define CHARYBDIS_MINIMUM_SNIPING_DPI 100 +#define CHARYBDIS_SNIPING_DPI_CONFIG_STEP 100 + +#define CHARYBDIS_CONFIG_SYNC + +#define EE_HANDS + +#define POINTING_DEVICE_AUTO_MOUSE_ENABLE +#define AUTO_MOUSE_TIME 800 +#define AUTO_MOUSE_DEBOUNCE 50 diff --git a/aktersnurra/dilemma/keymap.c b/aktersnurra/dilemma/keymap.c new file mode 100644 index 0000000..f0f943c --- /dev/null +++ b/aktersnurra/dilemma/keymap.c @@ -0,0 +1,73 @@ +#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) +#define CHARYBDIS_AUTO_SNIPING_ON_LAYER _MOU + +enum { _COLEMAK_DH, _NAV, _NUM, _SYM, _FUN, _MEDIA, } layers; +enum td_keycodes { + SFT_RP, +}; + +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( /* 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 + ), + + [_SYM] = LAYOUT( /* [> 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 + ), + + [_NAV] = LAYOUT( /* [> 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 + ), + + [_NUM] = LAYOUT( /* [> 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 + ), + + [_MEDIA] = LAYOUT( /* [> 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 + ), + + [_FUN] = LAYOUT( /* [> Function layer <] */ + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, 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 + ), +}; diff --git a/aktersnurra/dilemma/rules.mk b/aktersnurra/dilemma/rules.mk new file mode 100644 index 0000000..47d987b --- /dev/null +++ b/aktersnurra/dilemma/rules.mk @@ -0,0 +1,7 @@ +MOUSEKEY_ENABLE = yes +SPLIT_KEYBOARD = yes +TAP_DANCE_ENABLE = yes +AUDIO_ENABLE = no +BACKLIGHT_ENABLE = no +RGBLIGHT_ENABLE = no +RGB_MATRIX_ENABLE = no -- cgit v1.2.3-70-g09d2