Skip to content

Instantly share code, notes, and snippets.

@vinnietech
Last active November 2, 2023 12:11
Show Gist options
  • Select an option

  • Save vinnietech/bef96ecdc4d43957c9c451e6bbffeb53 to your computer and use it in GitHub Desktop.

Select an option

Save vinnietech/bef96ecdc4d43957c9c451e6bbffeb53 to your computer and use it in GitHub Desktop.
My Hammerspoon configuration
hyper = {"cmd"}
shift_hyper = {"cmd", "ctrl", "alt"}
hs.hotkey.bind(hyper, 'pad0', function () hs.application.launchOrFocus("Google Chrome") end)
hs.hotkey.bind(hyper, 'pad1', function () hs.application.launchOrFocus("iTerm") end)
hs.hotkey.bind(hyper, 'pad2', function () hs.application.launchOrFocus("Webstorm") end)
hs.hotkey.bind(hyper, 'pad3', function () hs.application.launchOrFocus("Tower") end)
hs.hotkey.bind(hyper, 'pad4', function () hs.application.launchOrFocus("Mail") end)
hs.hotkey.bind(hyper, 'pad5', function () hs.application.launchOrFocus("Microsoft To Do") end)
hs.hotkey.bind(hyper, 'pad6', function () hs.application.launchOrFocus("Quiver") end)
hs.hotkey.bind(hyper, 'pad7', function () hs.application.launchOrFocus("WhatsApp") end)
hs.hotkey.bind(hyper, 'pad8', function () hs.application.launchOrFocus("Slack") end)
hs.hotkey.bind(hyper, 'pad9', function () hs.application.launchOrFocus("Spotify") end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment