Skip to content

MaxPleaner/artoo-keyboard-macros

Repository files navigation

Keyboard Macros

Keyboard macros, made with artoo-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

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.

About

keyboard macros, using Artoo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages