Native Instant Space Switching on macOS

原始链接: https://arhan.sh/blog/native-instant-space-switching-on-macos/

作者对macOS缓慢且无法避免的空格切换动画感到沮丧。虽然通常建议使用“减少动态效果”,但这只会将动画替换为另一种不需要的效果,并会影响网页浏览。现有的解决方案,如yabai(需要系统修改和新的窗口管理器)或虚拟空间管理器(感觉不原生),都无法满足需求。 作者首选的解决方案是**InstantSpaceSwitcher**,一个免费、轻量级的菜单栏应用,可在GitHub上找到。与其他选项不同,它不需要禁用系统安全或学习新的窗口管理器。它通过模拟快速触控板滑动来实现即时切换,并包含一个命令行界面以直接选择空格。 目前鲜为人知(只有一颗GitHub星——作者自己的!),作者鼓励用户尝试InstantSpaceSwitcher,如果它解决了他们的空格切换问题,请贡献一颗星。安装涉及克隆GitHub仓库并运行构建脚本。

## macOS 空间切换改进 一款新工具能够实现 macOS 空间之间的近乎即时切换,解决了用户对内置动画速度的抱怨。用户报告称,这是一个显著的生活质量提升。这一讨论引发了关于 macOS 窗口管理的一般性辩论。 虽然像 `yabai` 和 `komorebi` 这样的解决方案提供了类似 i3 的平铺窗口管理,但有些用户更喜欢避免二进制补丁(需要禁用系统完整性保护)或学习新的窗口管理器。`PaperWM` 和 `Rectangle`(带有 `Alt-Tab` 用于 Windows 风格的切换)等替代方案也被提及。 许多人发现 macOS 原生的空间切换动画缓慢且令人沮丧,尤其是在频繁使用时。有些人更喜欢坚持使用单个空间并使用 `Alt-Tab` 进行窗口切换,而另一些人则利用像 `OmniWM` 或 `Aerospace` 这样的平铺窗口管理器来完全避免使用空间。最终,偏好各不相同,有些人从 Windows 迁移过来后反而欣赏 macOS 的方法。
相关文章

原文

The worst part about the MacOS window management situation is the inability to instantly switch spaces, and that Apple has continuously ignored requests to disable the nauseating switching animation. Sure, it’s not that long, but I switch spaces often enough to the point where it becomes very noticeable and drives me insane.

I believe to have found the best solution to instant space switching!

But before I show you, of course, other people share the same sentiment. I claim that none of the surveyed contemporary solutions, except for what I bring up at the end of this article, suffice for what I want:

  1. Enable the “Reduce motion” setting in System Settings.

    This is always the default answer to this question online, and I’m sick of it! It doesn’t even solve the problem, but rather replaces it with an equally useless fade-in animation. It also has the side effect of activating the prefers-reduced-motion media query on web browsers.

  2. Install the yabai tiling window manager and use its instant space switcher.

    And to be fair, it works pretty well. There are only two problems: for one, yabai does this by binary patching a part of the operating system. This is only possible by disabling System Integrity Protection at your own discretion. For the second, installing yabai forces you to learn and use it as your tiling window manager1. I personally use PaperWM.spoon as my window manager. Both of which are incompatible when installed together.

  3. Use a third-party virtual space manager facade, hiding and showing windows as needed when switching spaces.

    Some popular options are FlashSpace and AeroSpace virtual workspaces. I actually offer no criticism other than that they are not native to MacOS, and feel unnecessary given that all we want to do is disable an animation.

  4. Pay for a license for BetterTouchTool. Enable “Move Right Space (Without Animation)” and “Move Left Space (Without Animation)”.

Without further ado, I managed to find InstantSpaceSwitcher by jurplel on GitHub. It is a simple menu bar application that achieves instant space switching while offering none of the aforementioned drawbacks.

InstantSpaceSwitcher does not require disabling Security Integration Protection; it works by simulating a trackpad swipe with a large amount of velocity. It additionally allows you to instantly jump to a space number. The last thing it provides is a command line interface.

The installation instructions are not listed on the README, so they are:

$ git clone https://github.com/jurplel/InstantSpaceSwitcher
$ cd InstantSpaceSwitcher
$ ./build.sh

InstantSpaceSwitcher should now be available as a native application.

After running the above, the command line interface is available at:

$ .build/release/ISSCli --help
Usage: .build/release/ISSCli [left|right|index <n>]

Did I mention that the repository literally has one star on GitHub (me)? I want more people to discover InstantSpaceSwitcher and consider it trustworthy; hence, please consider giving it a star if you find it helpful.

Until next time!

↑ Scroll to top ↑
联系我们 contact @ memedata.com