An open API service indexing awesome lists of open source software.

https://github.com/maxpleaner/artoo-keyboard-macros

keyboard macros, using Artoo
https://github.com/maxpleaner/artoo-keyboard-macros

Last synced: about 1 year ago
JSON representation

keyboard macros, using Artoo

Awesome Lists containing this project

README

          

## Keyboard Macros

Keyboard macros, made with [artoo-keyboard](http://artoo.io/documentation/platforms/keyboard/)

Artoo establishes listeners to the keyboard device. As a result,
keystrokes are captured when the script-runner terminal is selected.

When certain pre-registered strings are typed, custom events happen.

In the quest for a _global_ keyboard-listener (macro creator),
I redid this project using the `evtest` linux library. See the
linux-keyboard-macros project [here](https://github.com/maxpleaner/linux-keyboard-macros)

### Setup

I'm not sure if Arduino is really a dependency or not, but it's easy
to install with `sudo apt-get install arduino arduino-core`.

Run `bundle install` then run the `keyboard_macros` script.

### Customize

Add instance methods to the `CommandParser`
class in `keyboard_macros`.

When adding a macro, also add a `macro => method` mapping to
the `CommandParse::MacroMethodMappings` constant.

### Notes

Quitting the program can be a little annoying,
just spam `control c` until the bash prompt returns.