made sweep compatible with windows

This commit is contained in:
boenkyo 2023-12-03 01:03:02 +01:00
parent 32de5347b7
commit bff7ca777d
5 changed files with 16 additions and 9 deletions

View File

@ -14,6 +14,9 @@ init:
# Compilation db
cd qmk_firmware; qmk generate-compilation-database -kb $(KB_BASE)/$(KB) -km $(USERNAME)
compile:
cd qmk_firmware; qmk compile -kb $(KB_BASE)/$(KB) -km $(USERNAME)
flash:
cd qmk_firmware; qmk flash -kb $(KB_BASE)/$(KB) -km $(USERNAME)

View File

@ -1,3 +1,3 @@
#pragma once
#define UNICODE_SELECTED_MODES UNICODE_MODE_MACOS
#define UNICODE_SELECTED_MODES UNICODE_MODE_WINCOMPOSE

View File

@ -77,8 +77,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[NAV] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, TG(SWE), KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT,
_______, _______, _______, _______, _______, _______, TAB_PRV, HST_BCK, HST_FWD, TAB_NXT,
KC_HOME, KC_END, TAB_PRV, TAB_NXT, _______, TG(SWE), KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT,
_______, _______, _______, _______, _______, _______, TAB_PRV, TAB_NXT, HST_FWD, HST_BCK,
_______, _______, _______, _______
),

View File

@ -1,5 +1,6 @@
#include "boenkyo.h"
#include "definitions/keycodes.h"
#include "definitions/layout.h"
#include "timer.h"
@ -64,10 +65,12 @@ bool achordion_chord(uint16_t tap_hold_keycode, keyrecord_t *tap_hold_record,
// Allow same hand shortcuts with thumbs
case TMB_TAB:
case TMB_ENT:
case TMB_SPC:
case NAV_REP:
return true;
// Allow ctrl + tab
case HRM_A:
// Allow alt + tab
case HRM_R:
if (other_keycode == TMB_TAB)
return true;
}
@ -75,7 +78,6 @@ bool achordion_chord(uint16_t tap_hold_keycode, keyrecord_t *tap_hold_record,
// if (other_record->event.key.row % (MATRIX_ROWS / 2) == 3) {
// return true;
// }
return achordion_opposite_hands(tap_hold_record, other_record);
}
@ -83,10 +85,12 @@ bool achordion_eager_mod(uint8_t mod) {
switch (mod) {
case MOD_LSFT:
case MOD_RSFT:
case MOD_LGUI:
case MOD_RGUI:
case MOD_LCTL:
case MOD_RCTL:
return true;
default:
return false;
}
}
uint16_t achordion_timeout(uint16_t tap_hold_keycode) { return 500; }

@ -1 +1 @@
Subproject commit adcc4d376cbfb6519dae2b5aa9230474d1a1dd0e
Subproject commit b68e89f8466d6b0f33543a34db84acdbae46f734