From 18248233a819476f2bcd74602104807900cc2e77 Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Sat, 20 Mar 2021 17:29:43 -0400 Subject: [PATCH] Making terminals and editors excempt from these new Karabiner shortcuts. --- karabiner.json | 274 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 263 insertions(+), 11 deletions(-) diff --git a/karabiner.json b/karabiner.json index 118f006..58d4320 100644 --- a/karabiner.json +++ b/karabiner.json @@ -47,10 +47,64 @@ { "from": { "key_code": "j", - "modifiers": { "mandatory": [ "control" ] } + "modifiers": { + "mandatory": [ + "control" + ] + } }, - "to": [ { "key_code": "delete_or_backspace" } ], - "type": "basic" + "to": [ + { + "key_code": "delete_or_backspace" + } + ], + "type": "basic", + "conditions": [ + { + "type": "frontmost_application_unless", + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$" + ] + } + ] } ] }, @@ -60,10 +114,64 @@ { "from": { "key_code": "m", - "modifiers": { "mandatory": [ "control" ] } + "modifiers": { + "mandatory": [ + "control" + ] + } }, - "to": [ { "key_code": "return_or_enter" } ], - "type": "basic" + "to": [ + { + "key_code": "return_or_enter" + } + ], + "type": "basic", + "conditions": [ + { + "type": "frontmost_application_unless", + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$" + ] + } + ] } ] }, @@ -73,15 +181,67 @@ { "from": { "key_code": "comma", - "modifiers": { "mandatory": [ "control" ] } + "modifiers": { + "mandatory": [ + "control" + ] + } }, "to": [ { "key_code": "delete_or_backspace", - "modifiers": [ "left_option" ] + "modifiers": [ + "left_option" + ] } ], - "type": "basic" + "type": "basic", + "conditions": [ + { + "type": "frontmost_application_unless", + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$" + ] + } + ] } ] }, @@ -94,7 +254,53 @@ "modifiers": { "mandatory": [ "control" ] } }, "to": [ { "key_code": "up_arrow" } ], - "type": "basic" + "type": "basic", + "conditions": [ + { + "type": "frontmost_application_unless", + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$" + ] + } + ] } ] }, @@ -107,7 +313,53 @@ "modifiers": { "mandatory": [ "control" ] } }, "to": [ { "key_code": "down_arrow" } ], - "type": "basic" + "type": "basic", + "conditions": [ + { + "type": "frontmost_application_unless", + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^org\\.gnu\\.AquamacsEmacs$", + "^org\\.gnu\\.Aquamacs$", + "^org\\.pqrs\\.unknownapp.conkeror$", + "^com\\.microsoft\\.rdc$", + "^com\\.microsoft\\.rdc\\.", + "^net\\.sf\\.cord$", + "^com\\.thinomenon\\.RemoteDesktopConnection$", + "^com\\.itap-mobile\\.qmote$", + "^com\\.nulana\\.remotixmac$", + "^com\\.p5sys\\.jump\\.mac\\.viewer$", + "^com\\.p5sys\\.jump\\.mac\\.viewer\\.", + "^com\\.teamviewer\\.TeamViewer$", + "^com\\.vmware\\.horizon$", + "^com\\.2X\\.Client\\.Mac$", + "^com\\.apple\\.Terminal$", + "^com\\.googlecode\\.iterm2$", + "^co\\.zeit\\.hyperterm$", + "^co\\.zeit\\.hyper$", + "^io\\.alacritty$", + "^net\\.kovidgoyal\\.kitty$", + "^org\\.vim\\.", + "^com\\.qvacua\\.VimR$", + "^com\\.vmware\\.fusion$", + "^com\\.vmware\\.horizon$", + "^com\\.vmware\\.view$", + "^com\\.parallels\\.desktop$", + "^com\\.parallels\\.vm$", + "^com\\.parallels\\.desktop\\.console$", + "^org\\.virtualbox\\.app\\.VirtualBoxVM$", + "^com\\.citrix\\.XenAppViewer$", + "^com\\.vmware\\.proxyApp\\.", + "^com\\.parallels\\.winapp\\.", + "^org\\.x\\.X11$", + "^com\\.apple\\.x11$", + "^org\\.macosforge\\.xquartz\\.X11$", + "^org\\.macports\\.X11$", + "^com\\.sublimetext\\.", + "^com\\.microsoft\\.VSCode$" + ] + } + ] } ] }