From 1efe20885ce4f1b0f138a10881e721a2555abba4 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 26 Jul 2019 22:10:20 +0200 Subject: application_switch: Add a binding on F6 to activate iTerm Easier and less error-prone than the F13_f mapping I also have. Need a shorter shortcut that isn't F1 while I work on trying to move from Terminal to iTerm. --- application_switch.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'application_switch.lua') diff --git a/application_switch.lua b/application_switch.lua index 8dadd84..835acb3 100644 --- a/application_switch.lua +++ b/application_switch.lua @@ -18,8 +18,13 @@ application_switch['f4'] = hs.hotkey.bind({}, 'f4', function() hs.application.find('com.microsoft.rdc.osx.beta'):activate() end) +application_switch['f6'] = hs.hotkey.bind({}, 'f6', function() + hs.application.find('com.googlecode.iterm2'):activate(activateAllWindows) +end) + + -- Rebind Shift-F[n] to F[n] -for _, key in ipairs({'f1', 'f2', 'f3', 'f4'}) do +for _, key in ipairs({'f1', 'f2', 'f3', 'f4', 'f6'}) do hs.hotkey.bind({'shift'}, key, function() application_switch[key]:disable() -- cgit v1.2.3