aboutsummaryrefslogtreecommitdiffstats
path: root/application_switch.lua
diff options
context:
space:
mode:
authorTeddy Wing2019-06-17 20:03:55 +0200
committerTeddy Wing2019-06-17 20:03:55 +0200
commitaacaa65c24a6e12e8708a61914870ad5d314915b (patch)
tree9b252fc0ab97df05be9917134f36183197e812c2 /application_switch.lua
parent86596d51926063a81e2e51db9f951e811824af6b (diff)
downloaddothammerspoon-aacaa65c24a6e12e8708a61914870ad5d314915b.tar.bz2
Add application switching shortcuts
Bind a few F<n> keys to activate frequently used applications.
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)