diff options
author | Teddy Wing | 2019-06-19 21:50:46 +0200 |
---|---|---|
committer | Teddy Wing | 2019-06-19 21:50:46 +0200 |
commit | c1b42e6e643d77a8d8e98157b4f9c48aa5451ae6 (patch) | |
tree | eafc4287a6a90d5a3292f6fefba0c38b7c203eb3 /application_switch.lua | |
parent | b4ce7ff275bf53a0de7b11c84d70776de34c5fcc (diff) | |
download | dothammerspoon-c1b42e6e643d77a8d8e98157b4f9c48aa5451ae6.tar.bz2 |
application_switch: Add shortcuts for more frequently used applications
Hide these under a mode switch as they're not as frequently used as the
others defined at the top of the file.
Diffstat (limited to 'application_switch.lua')
-rw-r--r-- | application_switch.lua | 26 |
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 |