Skip to content

Instantly share code, notes, and snippets.

@notDavid
Last active February 6, 2022 10:01
Show Gist options
  • Save notDavid/3dd2c896bb805af111d67cdf6c54e368 to your computer and use it in GitHub Desktop.
Save notDavid/3dd2c896bb805af111d67cdf6c54e368 to your computer and use it in GitHub Desktop.
Toggle Kitty with BetterTouchTool keyboard shortcut
[
{
"BTTGestureNotes" : "Hide Kitty",
"BTTTriggerType" : 0,
"BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
"BTTPredefinedActionType" : -1,
"BTTPredefinedActionName" : "No Action",
"BTTLayoutIndependentActionChar" : "TAB",
"BTTAutoAdaptActionToKeyboardLayout" : true,
"BTTShortcutToSend" : "55,48",
"BTTAdditionalConfiguration" : "1048584",
"BTTEnabled2" : 1,
"BTTKeyboardShortcutKeyboardType" : 3136,
"BTTRepeatDelay" : 0,
"BTTUUID" : "9A94DC4F-737D-4010-92FD-E3B31857B2BB",
"BTTTriggerOnDown" : 1,
"BTTNotesInsteadOfDescription" : 0,
"BTTLayoutIndependentChar" : "§",
"BTTEnabled" : 1,
"BTTModifierMode" : 0,
"BTTShortcutKeyCode" : 10,
"BTTShortcutModifierKeys" : 1048576,
"BTTOrder" : 0,
"BTTDisplayOrder" : 0,
"BTTAutoAdaptToKeyboardLayout" : 0,
"BTTAdditionalActions" : [
{
"BTTTriggerType" : -1,
"BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
"BTTPredefinedActionType" : 129,
"BTTPredefinedActionName" : "Delay Next Action",
"BTTDelayNextActionBy" : "0.1",
"BTTEnabled2" : 1,
"BTTKeyboardShortcutKeyboardType" : 0,
"BTTRepeatDelay" : 0,
"BTTUUID" : "7E2A474A-9EAF-4E5A-901B-2499683B3053",
"BTTNotesInsteadOfDescription" : 0,
"BTTEnabled" : 1,
"BTTModifierMode" : 0,
"BTTShortcutKeyCode" : -1,
"BTTShortcutModifierKeys" : -1,
"BTTOrder" : 0,
"BTTDisplayOrder" : 0,
"BTTAutoAdaptToKeyboardLayout" : 0
},
{
"BTTTriggerType" : -1,
"BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
"BTTPredefinedActionType" : 177,
"BTTPredefinedActionName" : "Show \/ Hide Specific Application",
"BTTAppToShowOrHide" : "file:\/\/\/Applications\/kitty.app\/",
"BTTShowHideAppConfig" : "{\"BTTShowHideSpecificAppCMDN\":false,\"BTTShowHideSpecificAllWindows\":false,\"BTTShowHideSpecificAppOnlyHide\":true,\"BTTShowHideSpecificAppOnlyIfRunning\":true,\"BTTShowHideSpecificAppOnlyTreatActiveAsVisible\":true,\"BTTShowHideSpecificAppOnlyShow\":false}",
"BTTEnabled2" : 1,
"BTTKeyboardShortcutKeyboardType" : 0,
"BTTRepeatDelay" : 0,
"BTTUUID" : "F4E609C1-5C3C-425E-A9E2-4E67295F9D16",
"BTTNotesInsteadOfDescription" : 0,
"BTTEnabled" : 1,
"BTTModifierMode" : 0,
"BTTShortcutKeyCode" : -1,
"BTTShortcutModifierKeys" : -1,
"BTTOrder" : 1,
"BTTDisplayOrder" : 0,
"BTTAutoAdaptToKeyboardLayout" : 0
}
]
}
]
[
{
"BTTGestureNotes" : "Show Kitty",
"BTTTriggerType" : 0,
"BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
"BTTPredefinedActionType" : 177,
"BTTPredefinedActionName" : "Show \/ Hide Specific Application",
"BTTAppToShowOrHide" : "file:\/\/\/Applications\/kitty.app\/",
"BTTShowHideAppConfig" : "{\"BTTShowHideSpecificAppCMDN\":false,\"BTTShowHideSpecificAllWindows\":false,\"BTTShowHideSpecificAppOnlyHide\":false,\"BTTShowHideSpecificAppOnlyIfRunning\":true,\"BTTShowHideSpecificAppOnlyTreatActiveAsVisible\":true,\"BTTShowHideSpecificAppOnlyShow\":true}",
"BTTAdditionalConfiguration" : "1048584",
"BTTEnabled2" : 1,
"BTTKeyboardShortcutKeyboardType" : 3136,
"BTTRepeatDelay" : 0,
"BTTUUID" : "9DDA3A75-6C0B-4CBB-9662-7403CFF60596",
"BTTTriggerOnDown" : 1,
"BTTNotesInsteadOfDescription" : 0,
"BTTLayoutIndependentChar" : "§",
"BTTEnabled" : 1,
"BTTModifierMode" : 0,
"BTTShortcutKeyCode" : 10,
"BTTShortcutModifierKeys" : 1048576,
"BTTOrder" : 1,
"BTTDisplayOrder" : 0,
"BTTAutoAdaptToKeyboardLayout" : 0
}
]
Paste `show_kitty.json` to: BetterTouchTool > Keyboard Shortcuts > All Apps
Paste `hide_kitty.json` to: BetterTouchTool > Keyboard Shortcuts > Kitty (you have to add the kitty app first: + > Select App... > Kitty)
I use `Cmd + §` as toggle keyboard shortcut, so change this to whatever you prefer in both of the above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment