https://github.com/chzchzchz/pedals
pedals
https://github.com/chzchzchz/pedals
Last synced: 3 months ago
JSON representation
pedals
- Host: GitHub
- URL: https://github.com/chzchzchz/pedals
- Owner: chzchzchz
- License: agpl-3.0
- Created: 2021-04-25T01:44:22.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-28T09:00:44.000Z (over 3 years ago)
- Last Synced: 2024-06-21T08:21:30.154Z (12 months ago)
- Language: Go
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pedals
A little program for using pedals I bought off aliexpress.
## Build and Run
```sh
go get github.com/chzchzchz/pedals
pedals # lists devices
pedals your_config.json
```## json example
Bind to device `usb-1a86_e026-event-kbd` and register handlers on key "a":
```json
[
{
"device" : "usb-1a86_e026-event-kbd",
"keys" : {"a" : {"up" : ["on_up.sh"], "down" : ["on_down.sh", "arg1"], "hold" : ["abc"] }}
}
]
```