diff options
author | Teddy Wing | 2019-07-26 22:10:20 +0200 |
---|---|---|
committer | Teddy Wing | 2019-07-26 22:10:20 +0200 |
commit | 1efe20885ce4f1b0f138a10881e721a2555abba4 (patch) | |
tree | 7224560d3bf2a9d8b1bb998188309160f8c7d5b2 | |
parent | e826cb04b8d827275a81cc8371e5217ca8a2fb4f (diff) | |
download | dothammerspoon-1efe20885ce4f1b0f138a10881e721a2555abba4.tar.bz2 |
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.
-rw-r--r-- | application_switch.lua | 7 |
1 files changed, 6 insertions, 1 deletions
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() |