After getting a comment from the creator of kanata (an awesome piece of software by the way) that he found my story amusing, I figured that I’d also post it here, partly as fun, partly as a cautionary tale. Also, I’d appreciate any tips as to what to check for in my system, it’s a weird feeling to know that some stuff might have been messed up under the hood.

  • saltesc@lemmy.world
    link
    fedilink
    arrow-up
    24
    arrow-down
    1
    ·
    edit-2
    1 year ago

    Just reading, my first instinct was, “Yank the fucking cable, oh lawd!!!”

    I hope I would be that reactionary in the situation, but as you said, you were confused and panicked and the thought didn’t occur until after. I guess I won’t know unless until it happens to me one day.

    • dansity@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      18
      ·
      1 year ago

      He did say his keystrokes were playback in a few seconds. No way you realize what is happening and yank the cable this fast. This is the type of situation where people sit and watch the chaos unfold

        • isti115@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          8
          ·
          edit-2
          1 year ago

          Oh man, did that feel like a long time until I managed to get there… Adding insult to injury was that every step took two tries. First I didn’t type my username for ssh, which resulted in the default termux user being used, so I had to cancel that and try again. After that I tried pkill kanata, which responded with killing pid ... failed: Operation not permitted, which made me realize, that it’s running as root, so I need to use sudo to stop it.

          All this time I was hammering C-c with my other hand and keeping an eye on the screen as well to see what is happening. 😶

          • pipe01@lemmy.pipe01.net
            link
            fedilink
            arrow-up
            3
            ·
            1 year ago

            I would like to think that I would react better if that happened to me but I know that I would fumble in the worst ways possible, so I feel you

    • isti115@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      16
      arrow-down
      1
      ·
      1 year ago

      Yes, this keyboard idea was quite a rollercoaster, because at first I blamed myself for not pulling it, but then I realized, that it wouldn’t have helped even if I did, as Kanata keeps running just fine with the bound input device removed. 🙃

    • MudMan@kbin.social
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      I’ve had instances of stuff happening without my input (never malicious, just a messed up input device or some weird stuff getting buffered) and power cycling has always been my first instinct. Power down, remove all peripherals and network connections, power back up, start diagnosing.

      So yay me, I guess?

      • PoolloverNathan@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Sometimes Windows (on laptop) decides to drop a key release, meaning I have to figure out how to restart while (e.g.) Esc is being held down.

        • MudMan@kbin.social
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          I find yanking power cables tends to pretty reliably power cycle a device.

          I mean, yeah, it can also make your storage a bit upset, but rarely in a major way and if you are not in control of your machine that’s still the lesser evil, potentially. Especially if you back up your data.

          • PoolloverNathan@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Laptop, so it’s a bit harder to pull the power cable. The default power button behavior is to hibernate, which usually finishes shutting down before a hard shutdown can trigger and doesn’t fix that.

    • abcxyz@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      After the first few times of me spilling coke, coffee, water and what not on my laptops and open case PCs I have it ingrained in me. Anything, ANYTHING goes wrong - plug that thing off ASAP. It’s a learned reflex at this point.

  • Hamartiogonic@sopuli.xyz
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    Seriously though, limiting the macro length to something reasonable should work, but it’s also guaranteed to make some people mad. I’m sure there’s at least one user who is working on something absurdly obscure that requires a macro long enough to reach beyond the edge of the observable universe.

    My solution is to make the default behavior sensible, while proving a special option for that one guy. Just limit it for the average user, but not for everyone.

    • stolid_agnostic@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Well you make that adjustable with infinite being one of the choices. Set it to a default of something like 25 and let the user increase if they need to.

    • isti115@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      8
      ·
      edit-2
      1 year ago

      Glad you liked it! 😀
      Being able to at least entertain people by sharing my misfortune makes it more bearable. 😉

      • WasPentalive@lemmy.one
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        From your discussion with Kanata “two numpads as a makeshift cheap “split ortholinear” keyboard” I am curious to see a picture of this. If I misunderstood the posts and this is the Kanat guy saying this then oops, otherwise, this sounds interesting as a super-portable full-sized keyboard.

        • isti115@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          The idea was from here: https://nitter.net/redditmechbot/status/979515586467201024 (The original reddit post has since been deleted.), but imagine the same with the Genius Numpad i100, which can be had for around the equivalent of $10 here. 😀
          This isn’t long-term though, I just had it lying around and figured out how to make it work using evsieve to combine two keyboards into one and kanata to create the mapping. I am planning on building a piantor for myself, I just wanted to check if I could get used to an ortholinear 36 or 34 key layout, and so far it looks like I can adjust well.

  • Halosheep@lemm.ee
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    OP is literally the dude running the strange setup in the age olld, “this should be a solution that anyone can use, no one can be running THAT strange of a setup”.

    Why would you use two numpads as a keyboard. WHY

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    That’s fun and also horrifying. Consider the fact that your keyboard history likely has your password it. You could end up running sudo commands and authorizing things unintentionally

    • twei@feddit.de
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      1 year ago

      ya don’t have to enter your sudo password if you’re already logged in as root

  • Fredol@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    I once left my phone non locked in my pocket once and it started typing a ton of gibberish in a serious group chat. So yep, could’ve been worse for you

  • ByteWizard@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    1 year ago

    Fucking Gskill keyboard has the same issue. Maco recording buttons that are up near escape so I’d hit record without knowing it, then sometime later I’d replay it all. After the second time I just ripped the whole button off the keyboard.

    Fuck that shit.

  • atk007@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Damn. In the old days, I would have yanked the power cable out, but I probably wouldn’t remember powering off the laptop either. Kudos for posting about it though.