You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to use a single key as a hotkey, I've tested it with l which is 0x25 and that works, but for 0x3D which is right option it does not work.
0x3D : yabai -m config window_border off
The text was updated successfully, but these errors were encountered:
tsujp
changed the title
Single-key hotkey command
0x3D not captured by skhd
Oct 11, 2019
Uh, so modifier-keys are reported through a different event-type (kCGEventFlagsChanged), and this event is not checked when looking up registered hotkeys.
It is not as trivial as to simply run the same code for this event for multiple reasons..
The first one is that the event is triggered for both modifier-down and modifier-up events.
This can be filtered by first checking which modifier was pressed, based on the keycode - then check to see if the flag for said modifier is set, then it was a key-down event.. At this point you'd need to clear its modifier flag.
After this has been done, you could likely run it through the same code that the regular key-down events pass through.
I have not tested any of this, just my thoughts from what I remember.
Hello !
I'm running into the same problem at the moment:
I'm trying to bind some yabai shortcut to my left option key (0x3A) but nothing happens when I then use it.
Is there a solution to use the option keys with skhd?
Thanks in advance!
Hello ! I'm running into the same problem at the moment: I'm trying to bind some yabai shortcut to my left option key (0x3A) but nothing happens when I then use it. Is there a solution to use the option keys with skhd? Thanks in advance!
@koekeishiya explained what would need to be done in their reply above. I can give this a shot when I have some free time (not soon though, swamped with real-life commitments lately).
I'm attempting to use a single key as a hotkey, I've tested it with
l
which is0x25
and that works, but for0x3D
which isright option
it does not work.0x3D : yabai -m config window_border off
The text was updated successfully, but these errors were encountered: