jbensmann / mouseless

A replacement for the mouse in Linux
MIT License
167 stars 16 forks source link

leftmeta+leftctrl combo not working? #58

Open AnthonySmithDev opened 2 weeks ago

AnthonySmithDev commented 2 weeks ago

I want to map the r key so that when I hold it it executes the key combination leftmeta+leftalt but this doesn't seem to work. How can I make it so that when I hold down the r key and then the 1 key, it equals leftmeta+leftalt+1?

AnthonySmithDev commented 2 weeks ago

Example

r: tap-hold-next r ; leftmeta+leftctrl ; 150
e: tap-hold-next e ; leftmeta+leftalt ; 150

u: tap-hold-next u ; rightmeta+rightctrl ; 150
i: tap-hold-next i ; rightmeta+rightalt ; 150
jbensmann commented 2 weeks ago

You're right, it does not work as expected, when holding r it presses leftmeta and leftctrl, but when pressing another key it releases the first modifier, leftmeta in this case. I added this behavior to make it simpler to quickly press multiple key combos with different modifiers, but was not aware it would break something else. I will see how this can be fixed.

In the meantime, what could work for your use case is adding an additional layer for each combination of modifiers, e.g.

...
    r: tap-hold-next r ; toggle-layer leftmeta_leftctrl ; 150

- name: leftmeta_leftctrl
  bindings:
    _: leftmeta+leftctrl+_