Skip to content

Instantly share code, notes, and snippets.

@benrowe
Created May 11, 2025 23:44
Show Gist options
  • Save benrowe/a57ae7c5d73e38fe61c33cb906a70f1b to your computer and use it in GitHub Desktop.
Save benrowe/a57ae7c5d73e38fe61c33cb906a70f1b to your computer and use it in GitHub Desktop.
Hammerspoon config
-- Define the application name
local browserAppName = "Arc"
local terminalAppName = "Alacritty"
local ideAppName = "PhpStorm"
hs.hotkey.bind({}, "F13", function ()
hs.application.launchOrFocus(terminalAppName)
end)
hs.hotkey.bind({}, "F14", function ()
hs.application.launchOrFocus(ideAppName)
end)
hs.hotkey.bind({}, "F15", function()
hs.application.launchOrFocus(browserAppName)
end)
hs.hotkey.bind({}, "F16", function()
hs.application.launchOrFocus("Slack")
end)
hs.hotkey.bind({}, "F18", function()
hs.application.launchOrFocus("Discord")
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment