-
Notifications
You must be signed in to change notification settings - Fork 167
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
Interaction between modifier, layer, and parent layer triggers parent incorrectly #47
Comments
Ok, I think I have another possible clue: When I rebooted, and ran
And the unwanted "meta" key down/up is not present there. I tested a 2nd time, and now suddenly it's grabbing a different keyboard:
... and this one has the unwanted meta down/up again. Strange... |
The output you have posted is consistent with what you should expect. Namely
keyd creates a virtual device. In the first log it looks like keyd is not running since you are seeing the raw device events, in the second it is running and modifying your keystrokes as above. It should start automatically if you have the systemd unit enabled. |
To clarify, It is not just syntactic sugar for the following
which would not have the subtle but important properties mentioned above. For instance the above config would not handle As far as I am aware this functionality is unique to keyd. It should be documented in the man page but it is possible that the section requires clarification. |
Hmmm, I see. Unfortunately, the effect of "M-down" followed by "M-up" on my system is to trigger a system shortcut bar and overlay. I'll have to start over with this new information and see if I can tackle making my Linux machine behave in a more Mac OS-like way differently. Thanks for your help! |
If you don't care about stacking behaviour and don't want your layer to do anything on key down you can explicitly define each key as above ( Alternatively, if you still want your launcher to be activated by tapping your meta key, you could do something like this:
and then reassign your launcher key to F13. This hybrid approach has the additional advantage of preserving stacking semantics and allowing you to use meta by itself in programs which require it (by tapping alt) while also allowing you to tap the physical meta key to run your launcher. |
When I create a layer triggered on leftalt, with a parent layout as modifier 'M', with key mappings that trigger leftalt-* combinations, I get a strange effect where the original parent layer ('M' in this case) is triggered in addition to the A-1 or A-2 keys:
When I run
keyd -m
I see that there are indeed multiple keydown and keyup events--the meta key goes down/up, then alt goes down and 1 goes down, then alt goes up. (Note that only Alt-1 is being pressed physically):I'm going to reboot and see if anything changes, but I wanted to leave this here in case the data has value in replication for anyone else.
The text was updated successfully, but these errors were encountered: