Hacker News new | ask | show | jobs
by 1123581321 2645 days ago
I use Hammerspoon to hotkey Terminal (and a bunch of other apps with other shortcuts) with ctrl+` like I used to do with iTerm:

  -- Give Terminal the same toggle as iTerm 2
  hs.hotkey.bind('ctrl', '`', function()
  if hs.application.title(hs.application.frontmostApplication()) == "Terminal" then
  hs.eventtap.keyStroke('cmd', 'h')
  else
  hs.application.launchOrFocus("Terminal.app")
  end
  end)
I’m not opposed to iTerm, but I needed a break from heavy customized environments for a bit and this was the one feature I needed to replicate.