Skip to content
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

Inability to use remapped keys to remap more keys #41

Open
drjaska opened this issue Dec 17, 2023 · 2 comments
Open

Inability to use remapped keys to remap more keys #41

drjaska opened this issue Dec 17, 2023 · 2 comments

Comments

@drjaska
Copy link

drjaska commented Dec 17, 2023

I was considering switching away from keyszer which is an xkeysnail fork to everemap but found issues while migrating my configuration over.

Keys which have been remapped are unable to be remapped again. I found this by trying to remap capslock to F20 and then have other remaps depend on F20 with another key.

Configurations like this would be ideal:

[[remap]]
input = ["KEY_CAPSLOCK"]
output = ["KEY_F20"]

[[remap]]
input = ["KEY_F20", "KEY_W"]
output = ["KEY_HOME"]

[[remap]]
# this "deadnaming" could work for me but would probably be unintuitive for others
input = ["KEY_CAPSLOCK", "KEY_R"]
output = ["KEY_END"]

This would effectively disable capslock while still providing it as a modifier key for other remaps.

I also tried this remap but it sends w and q separately instead of remapping them to numlock.

[[remap]]
input = ["KEY_CAPSLOCK"]
output = ["KEY_W", "KEY_Q"]

[[remap]]
input = ["KEY_W", "KEY_Q"]
output = ["KEY_NUMLOCK"]
[[remap]]
input = ["KEY_CAPSLOCK"]
output = ["KEY_LEFTSHIFT", "KEY_Q"]

[[remap]]
input = ["KEY_LEFTSHIFT", "KEY_Q"]
output = ["KEY_NUMLOCK"]

This last one only types Q (capitalized) into a notepad.

@drjaska
Copy link
Author

drjaska commented Dec 17, 2023

evremap/src/remapper.rs

Lines 173 to 174 in d0e8eb2

// Outputs that apply are not visible as
// inputs for later remap rules

This was an intended design decision? Why??

@wez
Copy link
Owner

wez commented Jun 9, 2024

The thinking was that it was the simplest and least-surprising outcome for most people

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants