Skip to content

Clarification about skhd-grabber and Karabiner coexisting #51

Description

@Kumagawa97

I've read the documentation and there's one thing that I'm not sure I fully understand.
I apologise if the answer is actually as obvious as it seems.

Currently I have installed skhd, skhd-grabber [both 0.1.10-977ce1d (fast)] and karabiner-elements (which I use mainly for game controllers).

I wanted to override cmd+q in order to require cmd+q+q to close apps, but I don't see a way of achieving this with skhd; I thought that maybe layers could provide a workaround but that's a relatively new implementation that I want to get to know better before messing too much with it.
Karabiner, on the other hand, has some complex modifications for this use-case but having skhd-grabber installed creates a conflict.

The Karabiner modification did actually work for a while but I noticed that the DriverKit was updated to the latest version, which isn't fully supported by skhd-grabber. As soon as I downgraded it the tap-hold rules resumed working as expected whereas Karabiner's setup became ineffective.

Am I right in understanding that since skhd-grabber is running, all keypresses, whether they are part of the basic syntax or tap-hold rules, are intercepted and cannot be routed to Karabiner in any way?

If that's the case, the only workarounds I can think of right now would be:

  • remapping cmd - w and cmd - q to the fn_layer and keys that are distant enough to prevent accidentally triggering the wrong one due to proximity.
  • assigning a harmless action like echo "" to cmd - q and osascript -e 'tell app "{{1}}" to quit' to a different hotkey.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions