aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application_switch.lua17
-rw-r--r--init.lua1
2 files changed, 18 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)
diff --git a/init.lua b/init.lua
index b068959..aa1d934 100644
--- a/init.lua
+++ b/init.lua
@@ -17,6 +17,7 @@
-- Enable command line tool (http://www.hammerspoon.org/docs/hs.ipc.html)
require("hs.ipc")
+require('application_switch')
require('mouse')
hs.loadSpoon('WindowMode')