by bloopernova · 2y ago · 0 comments
Not sure how you'd get around it being a huge security risk? Maybe only write totals for keypresses every 30 minutes?
Edited to add: Does anyone daily-drive a Keyboardio Model 100? I really liked the concept and participated in the kickstarter, but unfortunately found I didn't enjoy using it that much.
I've settled on a Keychron Q10 with the Alice layout[1]. It's a nice compromise between the full on split and standard keyboards. It's nice and heavy, with QMK/VIA customization, and some useful macro keys I assign to some Emacs shortcuts like M-x and C-g. I do wish it had a thumb wheel and/or some Moonlander-style thumb keys below the space bars.
[1] https://www.keychron.com/products/keychron-q10-alice-layout-...
When creating my own (slightly) modified qwerty layout I found it helpful to identify which areas of the keyboard was overloaded.
The regular qwerty/qwertz keyboards are so ingrained in our muscle memory and society (think touchscreen keyboards) that they still work as backups and you do not "forget" how to efficiently use regular keyboards. I guess it does depend on how often you're swapping around.
It's like foreign languages: you don't forget English when you learn French.
The hardest part of switching is punctuation and shortcut keys, not the letters themselves. But I can use other people's computers and usually most people don't know that anything's odd.
I use dvorak so the first thing I have to do when I get a new phone is to install an alternative keyboard.
A small program that locally collects data and lets you analyze it locally is pretty much a definition of a computer! IMHO this is not the place to worry about a security risk.
Note that the author had video of herself typing and it probably didn't trigger the "security risk" reflex because it's so obviously safe -- safe enough to post in this case. I mean I'm typing right now and when I push the "reply" button the result of my typing will be posted right to the Internet with no access restriction!.
Anyway, with that out of the way: I like your idea. With the raw data stream you can look not just for simple frequency but n-grams as well. The same data stream could be used to design single-handed chord keyboards as well, and even malleable layouts for programs with shitty key assignments (I refuse to call them "shortcuts").
I wrote a little Emacs Lisp for this, never published it. I kinda doubt that a similar script would be as easy to write for an OS less friendly than Emacs.
You do need a keylogger, and a context-aware one at that for proper analysis, otherwise it's better to just use an existing layout, won't get much extra from personal corpus anyway, so not worth the effort to do a poor personalized analysis
Ignoring the obvious privacy issues, it provides great suggestions and learns some words that are not in the other keyboards' dictionaries.
Maybe you could apply the same for aiding an algorithm to create a personalized keyboard layout.
--
I've been using a Model 01 (the original release of the 100) for a few years now. It's to the point where several switches are wearing out from regular use. I happen to enjoy nearly every design decision, but am most particularly fond of the thumb clusters. I plan to eventually build a dactyl-like from scratch, with very similar thumb clusters. My favorite feature by far is the thumb-knuckle/palm key.
When I switched to the Model 01, I also learned the Workman layout. Changing both together helped isolate the change of muscle memory to its own additive context. Right now, while I'm away from home, I'm typing on a traditional board (a generic laptop) configured with qwerty. I would rather be at home typing on my Model 01, but I can live without it: the traditional qwerty experience is no worse than it was before.
> Not sure how you'd get around it being a huge security risk? Maybe only write totals for keypresses every 30 minutes?
I did this once with a terrible script that just recorded keys with... I forget, probably either xev or `xinput test`. Anyways, yes, huge potential security/privacy risk but IMO it's fine if you keep it local and don't persist to disk without encryption (read: put the file on an encrypted filesystem or tmpfs). I specifically didn't want just the per-key total presses because I was interested in use of shortcuts and common substrings (IIRC I was looking at what to make macros of to save typing); if you just care about what actual keys get pressed the most and are only looking at rearranging the same keys then aggregation might make it safer.
You might enjoy toying around with this: https://patorjk.com/keyboard-layout-analyzer
Config in the top right lets you load other layouts.
[1] https://web.archive.org/web/20200220112444/http://nikolay.ro...
if you don't, https://github.com/suurjaak/InputScope ... you can even track key presses per app!