aboutsummaryrefslogtreecommitdiffstats
path: root/application_switch.lua
diff options
context:
space:
mode:
Diffstat (limited to 'application_switch.lua')
-rw-r--r--application_switch.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/application_switch.lua b/application_switch.lua
new file mode 100644
index 0000000..8216878
--- /dev/null
+++ b/application_switch.lua
@@ -0,0 +1,17 @@
+local activateAllWindows = true
+
+hs.hotkey.bind({}, 'f1', function()
+ hs.application.find('com.apple.Terminal'):activate()
+end)
+
+hs.hotkey.bind({}, 'f2', function()
+ hs.application.find('org.mozilla.nightly'):activate(activateAllWindows)
+end)
+
+hs.hotkey.bind({}, 'f3', function()
+ hs.application.find('com.google.Chrome'):activate(activateAllWindows)
+end)
+
+hs.hotkey.bind({}, 'f4', function()
+ hs.application.find('com.microsoft.rdc.osx.beta'):activate()
+end)