-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the same config for several keyboards #17
Comments
SGTM. |
I have the same question, and it seems worked to use [Service]
WorkingDirectory=/
ExecStart=parallel --retries -1 /usr/bin/evremap remap {}; sleep 5 ::: /etc/evremap/evremap-k2-cable.toml /etc/evremap/evremap-k2-bth.toml
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
|
I am just running two services, |
I think this is a reasonable feature request. I don't currently have time to work on this myself though. |
I can work on this. I just need to be told specificaly briefly how to do it the optimal way (so it can be added to the project). Im the guy who did the GUI for the config files for fun. |
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: #59 refs: #17
FWIW, it is now possible in Handling events from multiple devices in the same process needs a bit more thought; if we can avoid that, it will help keep things simpler overall. |
this isn't working for me, are your service files identical except pointing to different toml files? My first service starts but the second one will not. edit: Added an Except I needed to add a third service since the wired/wireless are separate. I can't hot swap between wired/wireless and need to reboot if I want the remapping to take effect when switching between wired/wireless but I'll take it. |
Just thought I would comment that after reading and needing the same solution the separate file approach worked well for me. I have two toml files (evremap_int.toml & evremap_ext.toml), one for each of the keyboards. I then have two .service files (evremap_int.service and evremap_ext.service), with the internal service file pointing at the internal .toml file and likewise for the external file. Then I enable and start up the two services with "sudo systemctl enable" and "sydo systemctl start". I can confirm this works for me. But all I want is the easiest way to remap my capslock to control without breaking the disable while typing functionality assoicated with a trackpad. evremap acheves this so thankyou! The other remapper I tried broke my disable while typing. |
Is it possible to use the same configuration for several input devices?
Ideally sth like:
config.toml
evremap mapper config.toml
and it starts acting on both A and BIf the above was possible, I wonder how connecting/disconnecting either of A/B would affect the process?
The text was updated successfully, but these errors were encountered: