TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Yabai – A tiling window manager for macOS

302 点作者 CathalMullan超过 1 年前

56 条评论

xwowsersx超过 1 年前
Funny to see this at the top of HN after just having uninstalled Yabai. I used Yabai for about 6 weeks. I was so thrilled about having a proper tiling window manager for Mac. I invested a lot of time setting up skhd and fine-tuning my configuration for the most intuitive hotkeys. The problem ultimately, however, is that Yabai just doesn't work well enough. It'll regularly just lose track of windows altogether, which requires restarting Yabai. This and other bugs happened frequently enough that it outweighed the benefits of Yabai. I'd be more than willing to try another tiling window manager on Mac if there's one out there that truly works. Related, I started checking out Stage Manager and it's pretty bad in my experience - obviously it's the opposite of a keyboard driven TWM, but I'm willing to try anything that helps me maximize the limited screen space I have. I'm all ears if anyone has had better experiences with other tools on Mac.
评论 #38474782 未加载
评论 #38474675 未加载
评论 #38474715 未加载
评论 #38480787 未加载
评论 #38479730 未加载
评论 #38474754 未加载
评论 #38475605 未加载
评论 #38474633 未加载
评论 #38474967 未加载
评论 #38475356 未加载
评论 #38474680 未加载
评论 #38474739 未加载
评论 #38478943 未加载
评论 #38480759 未加载
评论 #38475905 未加载
评论 #38474609 未加载
jknz超过 1 年前
Why wouldn&#x27;t apple allow to remove all animations when switching desktops, without disabling SIP?<p><a href="https:&#x2F;&#x2F;apple.stackexchange.com&#x2F;questions&#x2F;434555&#x2F;can-you-completely-disable-desktop-switching-animation-on-macos" rel="nofollow noreferrer">https:&#x2F;&#x2F;apple.stackexchange.com&#x2F;questions&#x2F;434555&#x2F;can-you-com...</a><p>Native keyboard shortcuts are there for all to use to switch desktops, but the fading in&#x2F;out animations that last around 1s completely prevent fast desktop switches as is so useful in i3&#x2F;sway.
评论 #38480689 未加载
评论 #38476252 未加载
评论 #38476793 未加载
montebicyclelo超过 1 年前
I&#x27;ve been using Yabai + skhd for years, and found the benefits far outweigh the issues. 99% of the time it&#x27;s fine, and for the 1% I just disable it temporarily.<p>Killer feature for me (apart from windows automatically being resized to fit, which is great), is ctrl+i to switch to screen i, and ctrl+shift+i to move the current window to screen i. I tend to have 2 windows max per screen, and use Yabai to flit between screens &#x2F; flit windows to different screens.<p>(I used i3 on Linux prior to setting up Yabai, and configured shortcuts to be similar to i3.)
Nevin1901超过 1 年前
In my personal experience, tiling window managers only work when you have a lot of screen real estate. I tried using yabai on a 13 inch m2 air, but I ended up going back to my normal workflow of just alt tabbing between windows. Most apps don’t let you see enough content when they are tiled (because of gui elements such as sidebar etc). I do love the “focus on hover” feature of yabai though. I wish macOS had that natively.
评论 #38479727 未加载
评论 #38474937 未加载
评论 #38486515 未加载
评论 #38475893 未加载
评论 #38483601 未加载
评论 #38486059 未加载
评论 #38488563 未加载
评论 #38490589 未加载
评论 #38475486 未加载
caeruleus超过 1 年前
I have been using Yabai for two years now and am very happy. For me, it&#x27;s stable and you can script almost anything by using event reactors.<p>Yabai also makes working with a 15&quot; display much more productive imho. For example, I can effortlessly and nearly instantaneously switch between browser and coding spaces by pressing hyper + w &#x2F; hyper + c (I&#x27;m using Karabiner Elements to map capslock to hyper).<p>Since it&#x27;s a common misconception, you do NOT need to disable SIP if you don&#x27;t care about some features (noticeably, disabling those nasty space switch animations). For an overview of features that require SIP to be partially disabled:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;koekeishiya&#x2F;yabai&#x2F;issues&#x2F;1863">https:&#x2F;&#x2F;github.com&#x2F;koekeishiya&#x2F;yabai&#x2F;issues&#x2F;1863</a><p>Also in general, the wiki on GitHub is very well-written.
certifiedloud超过 1 年前
If you come from i3 you&#x27;ll probably find Aerospace[1] to be more what you&#x27;re after.<p>[1]<a href="https:&#x2F;&#x2F;github.com&#x2F;nikitabobko&#x2F;AeroSpace">https:&#x2F;&#x2F;github.com&#x2F;nikitabobko&#x2F;AeroSpace</a>
评论 #38478146 未加载
评论 #38478423 未加载
datameta超过 1 年前
Yabai is an interesting japanese word with several distinct composite meanings. <a href="https:&#x2F;&#x2F;www.alexrockinjapanese.com&#x2F;what-does-yabai-mean-in-japanese-a-detailed-guide&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.alexrockinjapanese.com&#x2F;what-does-yabai-mean-in-j...</a><p>Here it is being used in one context at a beatbox battle between then World Beatbox champion Alexinho and the super innovative Soso. <a href="https:&#x2F;&#x2F;youtu.be&#x2F;OjbYK4rujB0?si=SIn-uNHlh2KexsXc" rel="nofollow noreferrer">https:&#x2F;&#x2F;youtu.be&#x2F;OjbYK4rujB0?si=SIn-uNHlh2KexsXc</a> Yabai shout is at 3m23s
评论 #38475552 未加载
jeffwiederkehr超过 1 年前
I love yabai and use it every day. It’s the only Mac OS is tolerable for me vs Linux with a WM.<p>I am sad though that you lose a good chunk of functionality without disabling SIP, which isn’t allowed for work devices
bsnnkv超过 1 年前
Yabai, and chunkwm before it, and kwm before that, are probably the most important pieces of software that fundamentally changed how I interact with computers.<p>I moved over from macOS to Windows and WSL full time back in 2020 and eventually ended up writing my own tiling window manager for Windows, which I never would have done had I not had the experience of using yabai on macOS.<p>I don&#x27;t think it&#x27;s a exaggeration to say that my experience with this one piece of software completely changed my trajectory as a software developer for the better.
ianyh超过 1 年前
Hey, Amethyst dev here. Love seeing this on the front page.<p>I’ve seen a few comments mention it here and there, but I’m swooping in with my semi-regular reminder that you don’t need to disable SIP to use yabai. It’s a great bsp window manager out of the box, with some optional—and admittedly very cool—extra features that require maneuvering around SIP.<p>(Also, minor apology to Amethyst users because I haven’t managed to get much time to work on it recently.)
sgt超过 1 年前
I&#x27;ve always wondered why people enjoy tiling window managers. Personally I don&#x27;t really grasp it. If I work with a lot of papers and documents on a desk, I don&#x27;t &quot;tile&quot; them, I keep them sort of organically in front of me.<p>And whatever app I need to use should ideally be straight in front of me. But that&#x27;s just me, maybe I haven&#x27;t had a proper tiling experience yet and thus I haven&#x27;t seen the light.
评论 #38484037 未加载
评论 #38477221 未加载
评论 #38476873 未加载
joshring超过 1 年前
I&#x27;ll have to try this out. Currently use Amethyst + Hammerspoon scripts for my window tools. Like others in this thread, Amethyst occasionally loses track of all windows and requires a restart (esp after monitor (dis)connection).<p>Amethyst does a decent job at the layouts I care about.<p>I primarily use AwesomeWM in linux on my personal computers which has the amazing super key drag&#x2F;resizing behavior for windows. I use Hammerspoon to replicate this behavior[0][1] and it works quite well.<p>Eventually I want to replace Amethyst and just do everything in Hammerspoon as it seems quite plausible to do window layouting with it. Will give Yabai a try as well in the meantime.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;RingOfStorms&#x2F;setup&#x2F;blob&#x2F;master&#x2F;home&#x2F;config&#x2F;hammerspoon&#x2F;AwesomeWM.lua">https:&#x2F;&#x2F;github.com&#x2F;RingOfStorms&#x2F;setup&#x2F;blob&#x2F;master&#x2F;home&#x2F;confi...</a> [1]: <a href="https:&#x2F;&#x2F;share.joshuabell.link&#x2F;ezgif-1-ef0d3e0728.gif" rel="nofollow noreferrer">https:&#x2F;&#x2F;share.joshuabell.link&#x2F;ezgif-1-ef0d3e0728.gif</a>
vidarh超过 1 年前
I use Yabai on my work laptop and I&#x27;m not very impressed. Maybe I&#x27;ve just been spoiled by my Linux setup, which has had years of tuning, but it feels like a poor imitation of a tiling wm. I get that OS X makes it harder to fully control the experience the way you can under X, but still..
joeyagreco超过 1 年前
Interesting. I&#x27;ve been using Rectangle for MacOS and it&#x27;s worked fine so far for me. Will keep this in mind if I ever want to switch.
galoisscobi超过 1 年前
Coming from i3wm on Linux, I cannot use macOS without yabai. So glad that this exists!
评论 #38474702 未加载
oaththrowaway超过 1 年前
I have used Yabai + skhd previously solely to allow me to &quot;cycle&quot; my virtual desktops. Disabling SIP to make this happen was always a fun challenge on my work Macbook. Is there an alternative at this point in time?
pizzalife超过 1 年前
Personally I only see the benefit of tiling for terminals. And in macOS, iTerm2 performs tiling perfectly. I just swipe to my iTerm workspace with tiled terminals and tab between other apps that are fullscreen.
jsf01超过 1 年前
For anyone looking to dip their toes into Yabai and tiling windows, I recommend the following setup. Enable full tiling only on a couple workspaces. Desktop 1 can remain in floating layout, just as though you’d never installed Yabai in the first place. Then tile Desktop 2 and as many others as you want.<p>The one other tip I have is to have an easy hotkey for toggling full screen mode. Toggling an app into full screen mode doesn’t lose its tiled position or create a new desktop the way native Mac full screen mode does, which is especially helpful when working on a smaller monitor.
评论 #38476752 未加载
dabeeeenster超过 1 年前
<a href="https:&#x2F;&#x2F;www.hammerspoon.org&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.hammerspoon.org&#x2F;</a> is amazing. Not quite the same as Yabai but I cant live without it!
评论 #38474735 未加载
评论 #38474895 未加载
评论 #38487169 未加载
评论 #38475231 未加载
zacte超过 1 年前
Personally I&#x27;ve been so hooked to Raycast it&#x27;s taken over my tiling manager needs too now.
评论 #38475068 未加载
replete超过 1 年前
Window management becomes a whole other thing with really large monitors. I recently got a UHD 43&quot; and to make the most of it I designed a custom grid but struggled to find an optimal solution. BetterSnapTool with custom snap zones works but is a bit clunky. Lasoo has the exact imagined solution I wanted (keystroke &gt; grid representation appears at mouse pointer &gt; drag window size) but doesn&#x27;t yet support custom grids. I&#x27;ve requested the feature but not exactly hopeful.<p>I could see that yabai could be a solution but haven&#x27;t committed to a proper setup.<p>Anyone else using a single large monitor? FancyZones on Windows (PowerToys feature) looks pretty good, but I got sick of autoupdate BS random driver breaks (common linux thing) and went full mac.<p>My custom grid for 4K 43&quot; snap zones in case anyone&#x27;s interested: - diagram: <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;axTw1tI" rel="nofollow noreferrer">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;axTw1tI</a> - 3840x2160 1:1 grid: <a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;pUSoafG" rel="nofollow noreferrer">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;pUSoafG</a>
评论 #38480681 未加载
gigatexal超过 1 年前
I would love to do this and maybe move back to MacOS but ... this seems like a lot of faffing about for something that was not designed to be done and something that is constantly at risk of being nerfed by some future update or security thing such as Apple disabling the SIP disablement ability or something along those lines.<p>But in Linux the choose-your-own-adventure that is the pluggable desktop model is that something like sway or i3 or other tiling window manager or a plugin for Gnome for example is much more in line with how the system was meant to be used and is very much not trying to shoehorn something in if any of that makes sense.<p>Of course the dev(s) that put this together and it&#x27;s other projects are hackers in the truest form and their efforts are to be applauded. I&#x27;ll continue to show them praise but keep using i3&#x2F;sway on Linux for the time being. (funny enough tiling window managers was why I left MacOS for Linux.)
joshstrange超过 1 年前
My personal favorite app&#x2F;software in this space is Phoenix [0]. It&#x27;s more of a &quot;build your own tiling&#x2F;window manager&quot; but I find it enjoyable to work with. I have my config written in TS and then I just run `tsc` to compile to JS which it uses.<p>I have one hotkey I hit to put all my windows where I want them (aware of which setup I&#x27;m plugged into, home, laptop-only, remote office) on various monitors and then I have hotkeys to arrange&#x2F;resize&#x2F;move my windows around.<p>The best part is if there is something I want to do I can just add it (add a modifier or a new hotkey combo). After having that freedom it&#x27;s hard to consider using anything off-the-shelf even though many of them are quite good from what I can tell.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;kasper&#x2F;phoenix">https:&#x2F;&#x2F;github.com&#x2F;kasper&#x2F;phoenix</a>
gkfasdfasdf超过 1 年前
Is there any app that has the ability to &#x27;lower&#x27; the focus of a window on mac? E.g. on Ubuntu I used to be able to &#x27;lower&#x27; a window&#x27;s focus by middle-clicking on the title bar, i.e. hide the window behind other open windows (without minimizing it). I really miss that feature on mac.
lsuresh超过 1 年前
As a long time XMonad user who had to switch to a mac at a new job, I first used chunkwm and then yabai. Yabai&#x27;s requirement to disable SIP was a problem, and so I finally switched to Amethyst a year ago and have been quite happy with it. It gives me pretty much everything I missed from XMonad.
chatmasta超过 1 年前
I&#x27;m still using Slate, with a .dmg that was built nearly a decade ago and by some miracle continues to work. I pray that each new OS update won&#x27;t be the one to break it, because I really don&#x27;t want to migrate the config for ten years of muscle memory to something new...
评论 #38495356 未加载
user3939382超过 1 年前
I like to keep the right 10% or so visible so I can see (and manipulate) the first column of file icons on my desktop behind my otherwise maximized&#x2F;tiled apps. I haven’t been able to find a window manager that can handle this customization.
评论 #38479620 未加载
评论 #38480373 未加载
OsrsNeedsf2P超过 1 年前
I spent more than a year bending over backwards with tools like Amethyst, but ultimately it was too much of a hassle and I ended up going back to my Thinkpad. The ecosystem on MacOS just costs more and never _quite_ works for customizability
athorax超过 1 年前
The associated hotkey daemon used by yabai from the same author is equally as useful<p><a href="https:&#x2F;&#x2F;github.com&#x2F;koekeishiya&#x2F;skhd">https:&#x2F;&#x2F;github.com&#x2F;koekeishiya&#x2F;skhd</a>
rewgs超过 1 年前
I&#x27;ve tried Yabai multiple times but always bounced off. It&#x27;s just a little too buggy, a little too opinionated. I&#x27;ve never found a window management system I&#x27;ve actually truly liked. On Linux, I&#x27;ve tried em all, and though in theory I love tiling window managers, but for me automatic tiling with the option to go floating on a per-window basis just ultimately ends up annoying me -- I prefer the reverse. On Windows, PowerToys&#x2F;FancyZones is as close to my preferred method as possible, but then I&#x27;m, you know, using Windows.<p>This past week I&#x27;ve come up with what is I think my perfect, dream solution:<p>- Caps Lock is tapped for Escape, held for Cmd+Ctrl+Opt (i.e. &quot;Hyper&quot; or whatever). I&#x27;m a Neovim user, so Caps Lock has been mapped to Escape forever already.<p>- Tapping both Shift keys simultaneously engages Caps Lock for the rare times in which I actually need it.<p>- Window snapping is handled entirely with Hammerspoon. I have commands for absolute positions (e.g. half, one third, two thirds, quarters), but also can define grids and call them with key commands, and then use another command to snap all windows or just the focused window to the nearest grid box.<p>It&#x27;s all defined with code, and thus lives with my dotfiles, and is just a `brew install` and symlink away from totally setting up on a brand new machine.<p>Also, I set my tmux prefix to Control+p, which I map to Command in my iTerm profile. So, opening up a new tmux &quot;window&quot; (i.e. tab) is Command+t. Navigating to the next &quot;window&quot;&#x2F;tab is Control+Tab. And so on. Basically it just feels like a browser. This way, whether I switch terminals, or am ssh-ing into a machine, as long as I have my tmux config, those key commands are set.<p>It&#x27;s an amazing setup, can&#x27;t recommend it enough.
ilikejam超过 1 年前
All I want (for christmas) is an &#x27;Always on top&#x27; opton for windows on macos.<p>I&#x27;d pay real actual money, as I suspect would many others.
评论 #38475203 未加载
评论 #38475118 未加载
beckhamc超过 1 年前
I wish I had the ability to toggle PiP for any open window, while I am in <i>full screen</i> mode. For instance, I have both Chrome and Emacs side by side full screen and I can use a hotkey to drop down my iTerm window over both of them. (Basically like a Quake terminal but that feature is specific to iTerm).
wdb超过 1 年前
I am pretty happy with Swish (<a href="https:&#x2F;&#x2F;highlyopinionated.co&#x2F;swish&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;highlyopinionated.co&#x2F;swish&#x2F;</a>) Use can make gestures to snap&#x2F;tile windows. Pretty cool when you have a trackpad or Magic Trackpad worth the $12
lazerlapin超过 1 年前
I have used yabai for a long time now and never had any big issue. It&#x27;s a set up once and forget solution and honestly I&#x27;m surprises I don&#x27;t see more comment like that. One thing for sure: you got to give it a fair shot to really appreciate what it does to your user experience.
shortrounddev2超过 1 年前
Everyone in my company uses a company provided macbook, but I use my own Windows Desktop. When presenting stuff to my boss, I&#x27;ll use windows shortcuts for tiling windows (Win + Arrow keys) and my boss said that&#x27;s the one feature he thinks is missing from macOS that Windows is really good at
评论 #38476682 未加载
j45超过 1 年前
Reading the issues with Yabai losing windows and needing a restart..<p>Rectangle is another oss option: <a href="https:&#x2F;&#x2F;github.com&#x2F;rxhanson&#x2F;Rectangle">https:&#x2F;&#x2F;github.com&#x2F;rxhanson&#x2F;Rectangle</a><p>I bought Moom long before rectangle came out, both are pretty decent.
dustingetz超过 1 年前
Has anyone tried this with complex layouts (e.g. 4 monitor tie fighter)? My main issue is window state is lost due to race conditions in the display identification logic, though I haven&#x27;t tried dared a Sonoma upgrade yet which contains compositor upgrades
dansteeves68超过 1 年前
I guess that I just rely on MacOS layout, however random and not great, and use Moom with some hotkeys to handle the exceptions where I want 2 or 3 windows in a specific state.<p>I did try Yabai and Amethyst for a bit, but the overhead was a bit too much to handle.<p>What am I missing?
neilv超过 1 年前
For those who want to support open platforms, there are also tiling window managers for Linux and *BSD.<p>I find XMonad is most effective for me. I sometimes also use i3wm (and there&#x27;s also Sway, for Wayland). There are a few others.
verdverm超过 1 年前
Are there recommended 3rd party enhancing apps for cmd-tab?<p>I&#x27;m looking for something that shows all windows for an app, per app, and maybe doesn&#x27;t switch the app to finder when you cancel the cmd-tab
评论 #38478463 未加载
评论 #38478419 未加载
asadm超过 1 年前
Is there an auto-tiling window manager that just enforces tiling without using keyboard shortcuts? Like if I drag a window with mouse, it snaps it in a tile.<p>I think I saw this in popOS. Does yabai support this?
gdcbe超过 1 年前
Tbh if there was an app that would allow me to move between spaces on all my monitors at once, instead of each monitor to be done one by one, then that would be sufficient for my needs.
评论 #38478055 未加载
vietvu超过 1 年前
Is it working now? I used for about half a year until MacOS Sonoma when it breaks and I had enough. MacOS is just not built for customization, it&#x27;s frustrating.
very_good_man超过 1 年前
ShiftIt still working basically fine for me after a decade:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;fikovnik&#x2F;ShiftIt">https:&#x2F;&#x2F;github.com&#x2F;fikovnik&#x2F;ShiftIt</a>
creakingstairs超过 1 年前
I cannot use my mac without Yabai because the forced transition delay between spaces is extremely annoying for me.
rcarmo超过 1 年前
This still requires disabling SIP, I see. That&#x27;s just not an option for me.<p>(I have done quite a bit of research and testing on these, and keep using a mixture of Moom and Phoenix - here&#x27;s my full list: <a href="https:&#x2F;&#x2F;taoofmac.com&#x2F;space&#x2F;apps&#x2F;window_managers" rel="nofollow noreferrer">https:&#x2F;&#x2F;taoofmac.com&#x2F;space&#x2F;apps&#x2F;window_managers</a> )
评论 #38476777 未加载
评论 #38477162 未加载
misiti3780超过 1 年前
magnet is where it&#x27;s at.
SJetKaran超过 1 年前
I&#x27;ve been using Yabai for 2+ years now, super happy that it exists!
rubyissimo超过 1 年前
everytime I get a new computer it takes me 5 seconds to remember that I can&#x27;t live without sizeup.<p>But I can never remember the name of the app because it&#x27;s just ctr-opt-cmd-left in my head.
nestock超过 1 年前
I hope there will be support for current Sonoma versions soon
thomasfl超过 1 年前
Good job by Åsmund Vikane and the rest of the team.
steve1977超过 1 年前
Just for the sake of correctness, it’s not a window manager but a window management utility which extends the macOS window manager.
tuananh超过 1 年前
it&#x27;s either yabai or amethyst. some may find amethyst more user friendly
trenchgun超过 1 年前
Just use Hammerspoon
pomatius超过 1 年前
Lol just use Linux already
poidos超过 1 年前
I like rectangle [0]. It fits my needs well enough without requiring disabling SIP. I especially like the “repeated key presses resize a window on the same side” feature, so I can get cycle the size of the window on the right side of the screen from 1&#x2F;2-&gt;1&#x2F;3-&gt;2&#x2F;3 easily. I miss i3 sometimes and this ain’t an identical replacement but it gets the job done! Turns out I don’t move my windows all that often anyways.<p>[0]: <a href="https:&#x2F;&#x2F;rectangleapp.com&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;rectangleapp.com&#x2F;</a>
评论 #38475279 未加载
评论 #38475754 未加载
评论 #38475151 未加载
评论 #38476891 未加载
评论 #38475257 未加载
评论 #38475885 未加载
评论 #38474980 未加载
评论 #38478871 未加载
评论 #38478501 未加载
评论 #38476959 未加载
评论 #38475307 未加载
评论 #38475907 未加载
评论 #38481339 未加载
评论 #38474986 未加载
评论 #38475095 未加载
评论 #38475139 未加载
评论 #38478472 未加载
评论 #38481421 未加载
评论 #38481519 未加载