Crates.io | evbindkeys |
lib.rs | evbindkeys |
version | 0.1.0 |
source | src |
created_at | 2021-06-30 20:37:02.593922 |
updated_at | 2021-06-30 20:37:02.593922 |
description | Like XBindKeys but without the X and per device |
homepage | |
repository | https://github.com/tim-hellhake/evbindkeys |
max_upload_size | |
id | 417112 |
size | 32,467 |
Like XBindKeys but without the X and per device.
EVBindKeys allows mapping arbitrary key events of specific input devices to shell command invocations.
Under the hood, it accesses the evdev kernel interface using libevdev.
I found some cheap mini USB keyboards and decided to use them as shortcut boards. As every keyboard sends the same keycodes, I needed something that can differentiate between multiple input devices.
Additionally, I wanted to have something that works on a headless device without having to install X server.
ls -l /dev/input/by-id
)sudo chown [user] /dev/input/by-id/example-event-kbd
)example.toml
evbindkeys [config-file]