aboutsummaryrefslogtreecommitdiffstats
path: root/application_switch.lua
diff options
context:
space:
mode:
authorTeddy Wing2019-07-26 22:10:20 +0200
committerTeddy Wing2019-07-26 22:10:20 +0200
commit1efe20885ce4f1b0f138a10881e721a2555abba4 (patch)
tree7224560d3bf2a9d8b1bb998188309160f8c7d5b2 /application_switch.lua
parente826cb04b8d827275a81cc8371e5217ca8a2fb4f (diff)
downloaddothammerspoon-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.
Diffstat (limited to 'application_switch.lua')
-rw-r--r--application_switch.lua7
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()