aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2019-08-06 20:56:05 +0200
committerTeddy Wing2019-08-06 20:56:05 +0200
commitfe8abdbb5e3a51bb17e6364df706851015081913 (patch)
treebb71f3bfcfa9ac6a15b79aaed08d6b2352c00542
parent1efe20885ce4f1b0f138a10881e721a2555abba4 (diff)
downloaddothammerspoon-fe8abdbb5e3a51bb17e6364df706851015081913.tar.bz2
Remove F5 Chrome extension reloader, replace with iTerm app switch
Remove the Chrome extension reload binding on F5. I'm not using it currently and it was just messing me up when I pressed it accidentally. Move the iTerm application switching binding from F6 to F5 now that it's free, as F5 is easier to find without looking.
-rw-r--r--application_switch.lua4
-rw-r--r--init.lua15
2 files changed, 2 insertions, 17 deletions
diff --git a/application_switch.lua b/application_switch.lua
index 835acb3..a281d5f 100644
--- a/application_switch.lua
+++ b/application_switch.lua
@@ -18,13 +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()
+application_switch['f5'] = hs.hotkey.bind({}, 'f5', 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', 'f6'}) do
+for _, key in ipairs({'f1', 'f2', 'f3', 'f4', 'f5'}) do
hs.hotkey.bind({'shift'}, key, function()
application_switch[key]:disable()
diff --git a/init.lua b/init.lua
index 95a436c..a8203eb 100644
--- a/init.lua
+++ b/init.lua
@@ -32,18 +32,3 @@ spoon.WindowMode:bindHotkeys({ mode = {{'ctrl', 'option'}, 'w'} })
hs.hotkey.bind({}, 'f8', function()
hs.eventtap.keyStroke({'cmd', 'option', 'ctrl'}, '8')
end)
-
--- Temporary browser extension reload mapping
-hs.hotkey.bind({}, 'f5', function()
- hs.eventtap.keyStroke({'ctrl', 'option'}, 'u')
- hs.timer.doAfter(0.5, function()
- hs.eventtap.keyStroke({}, 'r')
- end)
-
- hs.timer.doAfter(10, function()
- hs.eventtap.keyStroke({'ctrl', 'option'}, 'o')
- hs.timer.doAfter(0.5, function()
- hs.eventtap.keyStroke({}, '0')
- end)
- end)
-end)