!ngWLQBOUDCdyrtLuWn:matrix.org

_Labs - Workshop

300 Members
3 Servers

Load older messages


SenderMessageTime
29 Jun 2022
@_discord_368895414482501632:t2bot.ioFlarefin genkey 20:44:23
@_discord_239371209202991105:t2bot.ioescape semification genkey more like janky 😹 20:44:49
@_discord_368895414482501632:t2bot.ioFlarefin does ur analyzer list the dsfbs 20:44:56
@_discord_368895414482501632:t2bot.ioFlarefin maybe u could figure it out from that 20:45:05
@_discord_368895414482501632:t2bot.ioFlarefin yea genkey still gets similar on shai 20:48:23
@_discord_239371209202991105:t2bot.ioescape semification it doesn't but i can maybe check manually 21:04:28
@_discord_426851559952089088:t2bot.iow contextual repeat/shift is just this easy 😋
uint16_t key = 0;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
    if(record->event.pressed) {
        if(keycode == REPEAT) {
            if(key == KC_SPACE) {
                add_oneshot_mods(MOD_BIT(KC_LSFT));
            } else {
                tap_code(key);
            }
            return false;
        } else {
            key = keycode;
            return true;
        }
    }
    return true;
};
21:17:52
@_discord_426851559952089088:t2bot.iow layers fucking baffle me tho what 21:31:49
@_discord_239371209202991105:t2bot.ioescape semification what does this do 21:33:34
@_discord_426851559952089088:t2bot.iow it repeats the last letter unless it was space and then it acts as a oneshot shift 21:33:59
@_discord_426851559952089088:t2bot.iow so for 99% of english typing it can be both without issue 😋 21:34:28
@_discord_426851559952089088:t2bot.iow * it repeats the last letter unless it was space in which case it'll acts as a oneshot shift 21:35:14
@_discord_389086355801767936:t2bot.ioDesshaw Might not work at the start of a sentence? 21:39:47
@_discord_389086355801767936:t2bot.ioDesshaw I mean, when you start typing something. Not when you are already typing obv 21:40:57
@_discord_389086355801767936:t2bot.ioDesshaw * Might not work at the start of a sentence? 21:41:06
@_discord_389086355801767936:t2bot.ioDesshaw * Might not work at the start of a sentence? 21:41:14
@_discord_426851559952089088:t2bot.iow I can always add a timeout 21:41:53
@_discord_426851559952089088:t2bot.iow but ya 21:42:11
@_discord_389086355801767936:t2bot.ioDesshaw Oh, that should solve this. That's nice then. 21:42:36
@_discord_389086355801767936:t2bot.ioDesshaw * Oh, that should solve this. That's really nice then. 21:42:41
@_discord_389086355801767936:t2bot.ioDesshaw Also, it should also be shift if last keycode was enter 21:43:44
@_discord_426851559952089088:t2bot.iow
uint16_t key = 0;
static uint16_t key_timer;
key_timer = timer_read();

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
    if(record->event.pressed) {
        if(keycode == REPEAT) {
            if(key == KC_SPACE || key == KC_ENTER || key_timer > 500) {
                add_oneshot_mods(MOD_BIT(KC_LSFT));
            } else {
                tap_code(key);
            }
            key_timer = timer_read();
            return false;
        } else {
            key = keycode;
            return true;
        }
    }
    return true;
};
21:45:23
@_discord_426851559952089088:t2bot.iow oh uym 21:45:55
@_discord_426851559952089088:t2bot.iow maybe not 21:45:56
@_discord_426851559952089088:t2bot.iow maybe this
uint16_t key = 0;
static uint16_t key_timer;
key_timer = timer_read();

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
    if(record->event.pressed) {
        if(keycode == REPEAT) {
            if(key == KC_SPACE || KC_ENTER || key_timer > 500) {
                add_oneshot_mods(MOD_BIT(KC_LSFT));
            } else {
                tap_code(key);
            }
            key_timer = timer_read();
            return false;
        } else {
            key = keycode;
            key_timer = timer_read();
            return true;
        }
    }
    return true;
};
21:46:37
@_discord_426851559952089088:t2bot.iow okay still messing with it ignore me 21:48:30
@_discord_426851559952089088:t2bot.iow I had a type .. I think this works
uint16_t key = 0;
int key_timer = 1000;

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
    if(record->event.pressed) {
        if(keycode == REPEAT) {
            if(key == KC_SPACE || key == KC_ENTER || timer_elapsed(key_timer) > 500) {
                add_oneshot_mods(MOD_BIT(KC_LSFT));
            } else {
                tap_code(key);
            }
            return false;
        } else {
            key = keycode;
            key_timer = timer_read();
            return true;
        }
    }
    return true;
};
22:00:07
@_discord_426851559952089088:t2bot.iow * I had a typo .. I think this works
uint16_t key = 0;
int key_timer = 1000;

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
    if(record->event.pressed) {
        if(keycode == REPEAT) {
            if(key == KC_SPACE || key == KC_ENTER || timer_elapsed(key_timer) > 500) {
                add_oneshot_mods(MOD_BIT(KC_LSFT));
            } else {
                tap_code(key);
            }
            return false;
        } else {
            key = keycode;
            key_timer = timer_read();
            return true;
        }
    }
    return true;
};
22:00:13
@_discord_239371209202991105:t2bot.ioescape semification you had a taipo 22:18:13
@_discord_474550534301548556:t2bot.io<3 when the
the joke is made
22:20:28

There are no newer messages yet.


Back to Room List