logoalt Hacker News

Native Instant Space Switching on macOS

311 pointsby PaulHouleyesterday at 7:48 PM152 commentsview on HN

Comments

aylmaoyesterday at 9:19 PM

I grew up with this animation so I didn't consider it annoying until I bought a new Macbook a couple years ago.

I noticed sometimes I would press keyboard shortcuts before my system's focus had switched. Just little stumbles here and there, some inoffensive, some annoying, but who knows maybe I didn't catch enough sleep.

Over time it happened often enough that I decided to google it, and it turns out my muscle memory wasn't failing me; the animation speed did change ever so slightly and was slower in new Macs with 120Hz displays [1][2] (newer MacBooks, 2021+). If you switch your screen to 60Hz it goes back to the faster animation.

Why is this animation slower now, and why does it depend on screen refresh rate? I have some technical theories but can't think of an organizational reason it happened and hasn't been fixed 5 years later at a 3.82 trillion market cap company. If you Google it there's plenty of discussions online about this. It's noticeable and annoying to people who have used the feature often enough.

[1]: https://discussions.apple.com/thread/256124324?sortBy=rank

[2]: https://www.youtube.com/watch?v=gNBWt4NvqHg

show 4 replies
godelskitoday at 1:02 AM

I think Apple is making a really fatal flaw. Tbh Microsoft is doing it too.

Design good interfaces, with sane defaults but do not handcuff power users!!!

I often hear people say no one should care because there aren't many power users. They're a small portion, but that's absurd framing. They matter a lot because they're the ones that push your design language, develop new ideas, influence the general community, build new programs, find your bugs, and all of that. Apple and Microsoft are closing the ecosystems to get more control not only to exploit the users more (scrape their data) but to reduce bugs and things. But more and more people are trying these random programs because they can't figure out how to do things the right way. It's exactly why people are getting more frustrated with computers. The general public still doesn't care about data harvesting but they do care that the restrictions are handcuffing them now.

Funny enough this is also why Linux is becoming more popular. You've always had complete control but in the last 5 years the barrier to entry has plummeted. It's still not right for the average joe but it's on its way and a few more specialty distros are already there (e.g. steamos). The irony is Apple had the right idea before, even if not as modifiable as Linux, it used to be easier. But now it's more like a power trip. Consolidating control because they don't know what else to do

isodevtoday at 1:43 AM

> Apple has continuously ignored requests

Apple being completely oblivious to what normal people actually need or want is like bad weather- can’t do anything about it (Apple is so big and unregulated), just try not to forget to take an umbrella.

xz18ryesterday at 9:10 PM

I see yabai mentioned, definitely check out Aerospace. Ive tried multiple WMs after years of i3 on Linux and this is the best one I found (for me) with quite a margin. It just works (tm)

https://github.com/nikitabobko/AeroSpace

show 2 replies
tptacekyesterday at 8:59 PM

God damnit I didn't know until 15 seconds ago that the Space-switching animation in macOS was annoying. Thanks a lot!

show 1 reply
Cider9986yesterday at 9:14 PM

I switched to Fedora Asahi Remix[1] after being affected by this bug[2] after 5 releases of MacOS Tahoe. I am enjoying Asahi Remix with Gnome and it has sensicle window management.

[1] https://asahilinux.org/fedora/ [2] https://youtube.com/watch?v=JjptYWKGVc4

show 1 reply
bfirshyesterday at 11:40 PM

Here's a script to install and configure, in case it's helpful for anyone's dotfiles: https://github.com/bfirsh/dotfiles/blob/48eff70daa754216eff9...

Nevermarkyesterday at 9:19 PM

Tangentially related.

After a restart, and after Finder has opened multi-tab windows I have open before, clicking on a tab can suddenly move my view and the window to another space.

Apparently different tabs in the same window can think they belong to different spaces.

Something (I perceive as) common to a lot of the (perceived) increase in Apple software glitches recently, is I cannot fathom the logic for which the bug makes any sense. It does not feel like I am seeing corner case bugs, but instead major "bad-model" code, revealing its poor design.

primaprashanttoday at 1:04 AM

I love using (tiling) window managers, and one of the most important requirements for me is having a key binding for switching to the last active workspace. The proposed solution in the blog doesn't achieve this. I use Aerospace on macOS right now and think it's the best solution available.

I generally have fixed workspaces for different things: first for a browser, second for a code editor, third for a terminal, and so on. If I want to switch between the browser and code editor, I can do that with a single key binding, usually Alt+Tab. The same binding lets me switch between the code editor and terminal just as easily.

When you have something like 10 different workspaces, not having this key binding becomes annoying. If you need to alternate between windows on workspace one and workspace eight, you're stuck using both hands to press Control+1 and then Control+8. But with a last-active-workspace key binding, you can just Alt+Tab between them. This is the killer feature I always need.

show 1 reply
phren0logyyesterday at 8:16 PM

Having been ruined by Linux options like Hyperland and Niri, I’m digging my early foray into OmniWM - https://github.com/BarutSRB/OmniWM

show 3 replies
cosmic_cheeseyesterday at 8:27 PM

Clever hack. Now if there were some way to bring back the OS X 10.5/10.6 2D spaces grid… the linear design in place since 10.7 has always felt overly simplistic.

show 1 reply
tnightengaleyesterday at 10:10 PM

Stop using MacOS spaces. Never full screen anything. Throw everything around with hotkeys using OSS rectangle. Use shortcat to automatically bring your cursor to anything on your screen and use enter to click and type.

show 5 replies
modelessyesterday at 9:23 PM

This is nice. Sounds like it wouldn't solve the slow animation when entering or leaving full screen mode though. I'm fed up enough with macOS's poor window management (among many other things) that I'm looking for MacBook alternatives.

The M5 chip is way ahead of Intel's latest, even Panther Lake. But the Snapdragon X2 Elite looks like a viable alternative. It's the only competitor with comparable single core performance, and it comes with 48 GB of extremely fast RAM for a reasonable price with great battery life. Unfortunately Linux support isn't really there yet, but hey M5 MacBooks don't support Linux well either.

show 1 reply
nicoburnsyesterday at 8:52 PM

I'm still incredibly frustrated by Apple's Mission Control and Full Screen features. The old Expose and Spaces and windows-style maximise would be so much better.

show 1 reply
aequitasyesterday at 8:44 PM

Wonderful, that leaves 2 things on the top of my list for spaces: having to hover your mouse over the top left corner of a space and waiting until it shows the closing icon. And Safari deciding its better to switch to a space and open a window that was minimised there instead of just opening a new window in the space i'm currently in (even with the "switch to a space" setting turned off!) when 1 want to open a new tab.

show 2 replies
itubajtoday at 12:59 AM

The thing that most bothers me is that there seems to not exist a good solution for spaces that allows a grid set of spaces, like the one you can configure on Linux Gnome DE. That thing was so useful...

show 1 reply
benji-yorkyesterday at 8:50 PM

By way of experience report: I've been using this app for a week or so on my daily driver and it's been great.

DDayMacetoday at 1:02 AM

I much prefer gnome for multiple desktop switching and app switching in general. Seeing this article I know there are many on macos who agree!

ivanjermakovyesterday at 11:05 PM

Amazing how much effort is needed from a billion dollar company to make a feature present in my 1kLOC window manager.

flawnyesterday at 9:57 PM

Hey! I built InstantSpaces (which you had linked in the footnotes) and am well aware of issues with the injection & patching. It works 90% of the time for me and was good enough for me to share. But there are cases where it bugs. And yes, Tahoe is a to-do.

I will hopefully soon have the time to try to make it more robust. Feel free to take a shot at it if you want!

show 1 reply
obvi8today at 1:10 AM

I was never bothered by the animations, but was livid when they redid the desktop thumbnails, and offered no way to always show the preview by default. You have to mouse up to them to get the previews.

It didn’t seem to bother the rest of the Mac world, but I used to organize my desktops in a chaotic way that worked great for me, and the ability to see the preview thumbnails as soon as I popped into mission control or whatever they call it enabled me to quickly go where I wanted to after a quick glance. I used to rename entire desktops, too.

The whole thing instantly became worse for me when they took away my ability to name your own virtual desktops, and added the extra speed bump of making me mouse up to trigger the previews. I’m still bitter about it.

Fraterkesyesterday at 8:08 PM

I'm new to MacOS, is the thing they're refering to when you swipe left/right with three fingers to switch between different fullscreen apps / desktops? I kinda like the animation, after decades of windows I'm still impressed when switching between programs isn't stuttery.

show 4 replies
ray__yesterday at 8:08 PM

This looks interesting and I will give it a try. I agree that the space-switching animation is painful.

I don't however think that this will solve spaces on MacOS, for the simple reason that opening new instances of apps is inconsistent and often doesn't behave how you'd expect it to once one more than one space is involved (in my experience, anecdotal).

I've come to peace with the fact that I will never be able to simultaneously experience the productivity of i3 and the necessary evil of MS Office/Illustrator on the same OS. The most important factor in my work is who I work with (rather than what I work with) so I'll remain on the latter train for now.

show 2 replies
MaxMonteilyesterday at 11:58 PM

Thank you so much for sharing!!

This has bothered me ever since I switched to a mac from i3wm.

I wish you and your loved ones all the best <3

mintplantyesterday at 9:39 PM

Awesome! Is there a working way to do the same for Windows virtual desktops? I remember I used to do it with ViVeTool [0], but Microsoft removed the feature flag at some point.

[0] https://github.com/thebookisclosed/ViVe

show 1 reply
kewlzeeroetoday at 1:18 AM

why would you ever suggest disabling sip to "power users" seems bananas in this day and age.

zliesyesterday at 10:22 PM

Honestly, this animation in one of the best things about spaces in macOS. I use the four finger gesture to switch spaces all the time and it make the spaces feature so much more natural than all other window managers I’ve used before

show 2 replies
gechryesterday at 9:02 PM

Nice. I wrote a little menubar app and Space switching has been a thorn in my side, including going down the "Yabai integration" route. Will have to take a look at this and see if I can borrow some ideas!

Shameless plug: https://github.com/gechr/WhichSpace

rendxyesterday at 9:02 PM

I didn't check if it makes any difference, but I see hardly any animation with “Reduce motion” enabled.

The article mentions this has the unfortunate side effect of also setting prefers-reduced-motion in browsers, but that can be mitigated by changing the browser settings (Firefox: about:config: ui.prefersReducedMotion. 0 (enable) or 1 (disable)).

tnightengaleyesterday at 10:16 PM

The giga brain move is to stop using MacOS spaces. Never full screen anything. Use an OSS window management tool like `rectangle` (similar to deprecated `spectacles`).

Use shortcat to bring your cursor to any element with just typing.

revv00yesterday at 11:44 PM

It doesn't work macbook pro(Intel Sonoma 14.4.1), any thoughts? app icon is a forbidden icon.

hmokiguessyesterday at 9:54 PM

Can you use this with the trackpad gesture though? That's the only thing that has me locked in, the muscle memory of trackpad is hard to beat for me and unfortunately I rather suffer through the animation then move to the keyboard

show 1 reply
kewlzeeroetoday at 1:17 AM

why would you post anything that has to disable sip... seems silly in this day and age.

al_borlandyesterday at 9:52 PM

I don't use Spaces at all, probably in part because of the speed. I can't bring myself to run an application all the time to solve this, when it should just be a variable somewhere that needs to change.

revv00yesterday at 11:34 PM

Not a space user, command+tab solve most of my problem. But will give it a try.

traderj0eyesterday at 10:59 PM

Apparently the "natural scrolling" option also reverses the swipe gestures for space switching, haha

nkzdyesterday at 10:21 PM

Genuine question - why do people even use spaces? Why is it better than just CMD+Tab or CMD+Tilde until you arrive at the window you want?

show 4 replies
Aaronstotleyesterday at 9:14 PM

I think it was iOS 9 that had some glitch where the animations were completely disabled and it was a really awesome experience to click an app and have it instantly open with zero animations.

KaiserProyesterday at 9:41 PM

There used to be a commanline switch that if you used command left/right to switch it was almost instant. I'm not sure if thats still a thing

mrkpdlyesterday at 10:38 PM

I use spaces constantly, and I’ve never thought about the animation - I don’t think I’d ever noticed it to be honest. So it’s really interesting to read all the comments here about how frustrated people are with it. This is not a defence of it just genuine interest - I bet there are totally different parts of the OS that bother me that don’t bother others also.

show 1 reply
rwcyesterday at 8:28 PM

Just installed and I have to say, works exactly as promised. This is a huge quality of life upgrade, thank you for sharing it Paul.

ralphcyesterday at 9:05 PM

Works on my Intel mac running Sonoma 14.8.2. I use Omakub on my Linux machine and missed this when on my mac.

toddmoreyyesterday at 9:32 PM

> it works by simulating a trackpad swipe with a large amount of velocity

Damn, that's rather clever.

show 2 replies
airstrikeyesterday at 9:01 PM

I wonder how this compares to Aerospace, which I use daily but ultimately has felt a bit janky and slow

hirvi74today at 12:46 AM

I eventually became so frustrated with spaces in OSX, that I essentially try to avoid using them in macOS these days. Seriously, all I want is a way to move windows from one space to another via keybindings. I am not asking for much. In fact, IIRC, I think Snow Leopard had this feature. I know there were various solutions that cropped up, and even currently there are a few hacks. It just... such bullshit that it's not built in.

If one has a disability that hinders his or her ability to use a mouse/trackpad, then I strongly suspect there is no way for such a person to use spaces on macOS well. Though, it seems Apple could not care less.

throwatdem12311yesterday at 8:47 PM

Can’t say that the sliding animation has ever been the bottleneck to my productivity.

show 2 replies
walthamstowyesterday at 8:17 PM

I never run more than one space and instead switch between windows with the app Alt Tab

show 1 reply
isegeyesterday at 9:45 PM

Christmas has come early! Thank you for sharing this

houseofmvpsyesterday at 9:47 PM

Great one. Thank you for sharing this.

mixtureoftakesyesterday at 10:01 PM

this was SO annoying. thank you.

Truly baffling how apple haven't done this before

🔗 View 12 more comments