Re:Yabai – A tiling window manager for macOS
by rufugee on Thursday November 30, 2023 @04:53PM
(#38479730)
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.
[ Parent
| on HN ]
Re:Yabai – A tiling window manager for macOS
by faizmokh on Thursday November 30, 2023 @07:46PM
(#38481441)
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.
Re:Yabai – A tiling window manager for macOS
by xwowsersx on Thursday November 30, 2023 @05:41PM
(#38480236)
Can you share your config please? Trying to get a better idea of what's possible and how to get started. Thanks
Re:Yabai – A tiling window manager for macOS
by rufugee on Thursday November 30, 2023 @09:00PM
(#38482058)
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" }
})