I love the Press Command+Q twice to Quit Application setting in Karabiner. I just updated to macOS Sierra and now I'm trying to get the same behavior with Karabiner Elements. Is there a way to achieve this by editing karabiner.json? Thank you.
@tekezo 銇娿伅銈堛亞锛両 miss this feature as well and am interested in working on it. Do you have any links to the code in old Karabiner and the new Karabiner elements that could help in making a pull request?
I implemented this feature with Hammerspoon.
https://github.com/raulchen/dotfiles/blob/master/hammerspoon/double_cmdq_to_quit.lua
@raulchen Thanks! I just installed Hammerspoon and your script and it works like a charm!
Is there a way to "import" double_cmdq_to_quit.lua from init.lua? (for the time being I just copied your script into init.lua).
@gabrielmaldi glad that this could help you. you can do require("double_cmdq_to_quit") in your init.lua
THANK YOU @raulchen! So this is just a totally separate solution, but glad to have found it here.
To make it a little easier on anyone else like me who had no idea about Hammerspoon:
So far it's doing what I hoped for.
@jeremyclarke I think it's better to save the script in its own file and then require("double_cmdq_to_quit") from Hammerspoon's config (init.lua). Otherwise, if you paste other scripts inside the main config file, it will become difficult to maintain. Just in case you want to update your steps 馃憤
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@jerclarke and @raulchen saving the day! this was literally the only feature i downloaded the karabiner app for, and i've been infinitely confused (and accidentally quit a billion apps) ever since karabiner just decided to not recreate this feature for no good reason. i owe you both coffee if i ever see you in the real world
Most helpful comment
I implemented this feature with Hammerspoon.
https://github.com/raulchen/dotfiles/blob/master/hammerspoon/double_cmdq_to_quit.lua