GithubHelp home page GithubHelp logo

hhy5277 / markovkeyboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shapr/markovkeyboard

0.0 1.0 0.0 129 KB

keyboard layout that changes by markov frequency

License: BSD 3-Clause "New" or "Revised" License

Python 11.83% Emacs Lisp 88.17%

markovkeyboard's Introduction

markovkeyboard

keyboard layout that changes by markov frequency

screenshot

the big idea

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.

how do I type?

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.

does it work?

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

how do I make it go?

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 .

how do I make it stop?

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.

what needs to be done?

  • define a new input-method for markov
  • display the keyboard layout when enabling the mode
  • port to X11 to ease getting started

markovkeyboard's People

Contributors

darius avatar shapr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.