Hackers News

shapr/markovkeyboard: keyboard layout that changes by markov frequency

keyboard layout that changes by markov frequency

screenshot

Static keyboard layouts are boring and predictable. Let’s spice up the whole idea of keyboard layouts by having the layout CHANGE WHILE YOU ARE TYPING!

The layout will update itself to move the keys that most frequently come next to the home row.
For example, if you type only “the” all day, then when you press the letter ‘t’ the letter ‘h’ will be on the home row.

There are minor challenges involved if your keyboard layout could change with every keypress, thus this prototype is an emacs library that displays and updates the current layout with every keypress.

Pretty much! It only remaps the letters from a-zA-Z, but it does work!

Use the pre-trained markov-all.el with M-x load-file then type in /path/to/markovkeyboard/markov-all.el

After that, use M-x set-input-method and choose markov-insanity-a or replace a with any letter you prefer!

If you want a different set of 26 keymaps:

Download a plain text file for training the markov chain, then run “python crunch_freqs.py filename.txt” and that will generate a markov-all.el file that you can use with M-x load-file .

C-\ is bound to toggle-input-method in stock emacs, and the keybindings are all buffer local, so the code shouldn’t make your life too difficult.

admin

The realistic wildlife fine art paintings and prints of Jacquie Vaux begin with a deep appreciation of wildlife and the environment. Jacquie Vaux grew up in the Pacific Northwest, soon developed an appreciation for nature by observing the native wildlife of the area. Encouraged by her grandmother, she began painting the creatures she loves and has continued for the past four decades. Now a resident of Ft. Collins, CO she is an avid hiker, but always carries her camera, and is ready to capture a nature or wildlife image, to use as a reference for her fine art paintings.

Related Articles

Leave a Reply