Hacker News new | ask | show | jobs
by rufugee 933 days ago
After trying yabai, Amethyst, and many others, I landed on hammerspoon.org + https://github.com/miromannino/miro-windows-manager a few years ago and haven't looked back. I couldn't live on a Mac without hammerspoon tbh.
2 comments

Yeah I'm using hammerspoon & miro too with this basic binding:

```

hs.window.animationDuration = 0.2 spoon.MiroWindowsManager:bindHotkeys({ up = {hyper, "up"}, right = {hyper, "right"}, down = {hyper, "down"}, left = {hyper, "left"}, fullscreen = {hyper, "f"} })

```

Works well enough for years.

Can you share your config please? Trying to get a better idea of what's possible and how to get started. Thanks
My full hammerspoon config is a mix of things I've collected/written over the years, but the Miro-specific section is simply:

  -- window management
  hs.loadSpoon("MiroWindowsManager")
  -- set to 0.x for animation, 0 for none
  hs.window.animationDuration = 0.3

  spoon.MiroWindowsManager:bindHotkeys({
    up = { hyper, "k" },
    down = { hyper, "j" },
    left = { hyper, "h" },
    right = { hyper, "l" },
    fullscreen = { hyper, "f" },
    nextscreen = { hyper, "n" }
  })