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
- Host: GitHub
- URL: https://github.com/maxpleaner/artoo-keyboard-macros
- Owner: MaxPleaner
- Created: 2016-02-26T11:21:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-28T05:20:37.000Z (over 10 years ago)
- Last Synced: 2025-01-29T12:15:24.842Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 292 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.