aboutsummaryrefslogtreecommitdiffstats
path: root/application_switch.lua
diff options
context:
space:
mode:
Diffstat (limited to 'application_switch.lua')
-rw-r--r--application_switch.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/application_switch.lua b/application_switch.lua
index 8216878..aa00fc1 100644
--- a/application_switch.lua
+++ b/application_switch.lua
@@ -15,3 +15,29 @@ end)
hs.hotkey.bind({}, 'f4', function()
hs.application.find('com.microsoft.rdc.osx.beta'):activate()
end)
+
+-- Mode to activate lesser-used applications
+application_switch_mode = hs.hotkey.modal.new({}, 'f13')
+
+application_switch_mode:bind({}, 'l', function()
+ hs.application.find('org.libreoffice.script'):activate(activateAllWindows)
+
+ application_switch_mode:exit()
+end)
+
+application_switch_mode:bind({}, 'w', function()
+ hs.application.find('com.microsoft.Word'):activate(activateAllWindows)
+
+ application_switch_mode:exit()
+end)
+
+application_switch_mode:bind({}, 't', function()
+ hs.application.find('com.googlecode.iterm2'):activate(activateAllWindows)
+
+ application_switch_mode:exit()
+end)
+
+-- TODO: Don't do that with a mode, just a list of keys, as the mode sometimes
+-- doesn't activate quick enough
+
+-- TODO: If we stick with F13, maybe bind keys under the left hand to make it usable without looking