summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-06-09Add --wait-for-device flagWez Furlong
This is a simple approach for the case where the device isn't plugged in on startup. It works by polling the devices in a loop every few seconds. It is probably better and more robust to use udev rules for this purpose, but this approach will do for a quick and dirty ad-hoc user. closes: #35 closes: #46 closes: #60
2024-06-09device_name can now be overridden by cli argumentsWez Furlong
The device name is now optional in the config, and a `--device-name` CLI parameter allows specifying the device name that will be used. This allows using the same configuration file with multiple devices, provided that the devices are known up front. Note that you will need to spawn one evremap process per device to remap multiple devices at the same time. Thanks to @innovate-invent for making a first pass at this: closes: https://github.com/wez/evremap/pull/59 refs: https://github.com/wez/evremap/issues/17
2024-06-09add in my preferred rustfmt optionsWez Furlong
2024-06-09update logger by switching to env-loggerWez Furlong
2024-05-05update depsWez Furlong
2024-05-05update evdev-rs to 0.6.1Yifei Zhan
2023-07-10Fix for pressing multiple remapped keys with shared modifierAndrew Dunai
2023-07-10Add option to configure startup delay (#33)Andrew Dunai
Add option to configure startup delay Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2023-07-10feat: make warnings/logs more informativenathan dawit
it's confusing to launch the program and see an error message that's not actually an error fixes #25
2022-10-17Fix build on i386 architectureHristo Mitrev
Signed-off-by: Hristo Mitrev <hr.mitrev@gmail.com>
2022-10-17update some depsWez Furlong
2021-11-24Improve handling ambiguous device namesWez Furlong
* Adds the `phys` info for the device to the list * Orders names by name first then by the eventXXX number component so that there is a "stable" ordering for a given set of inputs * When a name has ambiguous matches, warnings are logged to advise the user how to resolve them. Example: ``` ; cat /tmp/evremap.toml device_name = "Power Button" ``` ``` sudo ./target/debug/evremap remap /tmp/evremap.toml 2021-11-24T10:04:40.885 ERROR evremap > Short delay: release any keys now! 2021-11-24T10:04:43.084 WARN evremap::deviceinfo > The following devices match name `Power Button`: 2021-11-24T10:04:43.084 WARN evremap::deviceinfo > DeviceInfo { name: "Power Button", path: "/dev/input/event0", phys: "PNP0C0C/button/input0" } 2021-11-24T10:04:43.084 WARN evremap::deviceinfo > DeviceInfo { name: "Power Button", path: "/dev/input/event1", phys: "LNXPWRBN/button/input0" } 2021-11-24T10:04:43.084 WARN evremap::deviceinfo > evremap will use the first entry. If you want to use one of the others, add the corresponding phys value to your configuration, for example, `phys = "LNXPWRBN/button/input0"` for the second entry in the list. 2021-11-24T10:04:43.085 ERROR evremap::remapper > Going into read loop ``` refs: #2 closes: #3
2019-12-31Add some docs and systemd bitsWez Furlong
2019-12-31Take care about ordering modifiers before other keys in mappingsWez Furlong
2019-12-31Add list-keys subcommandWez Furlong
2019-12-31use subcommands for listing vs. remappingWez Furlong
2019-12-31Add config file parsing and loadingWez Furlong
2019-12-31split into more modulesWez Furlong
2019-12-31move deviceinfo to its own moduleWez Furlong
2019-12-31enumerate available devices, select by nameWez Furlong
2019-12-30implement N:M remappingWez Furlong
2019-12-30track output keysWez Furlong
2019-12-30refactor so multiple DualRole mappings are possibleWez Furlong
2019-12-30add log crateWez Furlong
2019-12-30Basic caps->ctrl/esc handlingWez Furlong