GithubHelp home page GithubHelp logo

kinesis_layout's Introduction

kinesis_layout

This project allows keyboard layouts for the Kinesis Advantage 2 to be generated programmatically using Rust. Support for remapping keys and macros is provided by kinesis_layout. The aim is that by using a statically-typed programming language, only valid keyboard layouts should compile (note: run-time checks may need to be implemented to guard against edge cases).

As an example, the following layout in kinesis_layout -

     let layout: Layout = Configure::new()
         .with_remappings(colemak())
         .remap(Key::NonModifier(A), Key::NonModifier(LeftArrow))
         .remap_keypad(Key::NonModifier(Enter), Key::NonModifier(Space))
         .dead_key(Key::NonModifier(Backtick))
         .with_macro(
             Shortcut::keypad_on(BTreeSet::new(), C),
             MacroOutput::from_string("www.test.com, THANKS"),
         ).make();

produces the following keyboard layout -

[J]>[N]
[K]>[E]
[`]>[null]
[F]>[T]
[;]>[O]
[S]>[R]
[D]>[S]
[I]>[U]
[kp-enter]>[kp0]
[P]>[;]
[O]>[Y]
[N]>[K]
[A]>[left]
[E]>[F]
[U]>[L]
[Y]>[J]
[L]>[I]
[R]>[P]
[T]>[G]
[G]>[D]
{kp-c}>{w}{w}{w}{.}{t}{e}{s}{t}{.}{c}{o}{m}{,}{space}{-lshift}{t}{h}{a}{n}{k}{s}{+lshift}

kinesis_layout is a work in progress but the ground work is now complete. Any suggestions or pull requests are welcome!

kinesis_layout's People

Contributors

michaelt293 avatar

Stargazers

 avatar

Watchers

 avatar  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.