从M1 MacBook到Arch Linux:一个持续了一个月的实验,最终成为了永久方案。
From M1 MacBook to Arch Linux: A month-long experiment that became permanenent

原始链接: https://www.ssp.sh/blog/macbook-to-arch-linux-omarchy/

## 从MacBook到Linux:与Omarchy共度的一个月 在使用了15年以上macOS后,我切换到一台运行Omarchy(基于Arch Linux的发行版)的廉价联想ThinkBook,并且我享受着这种新获得的自由。主要驱动力是对苹果日益侵入性的更新感到沮丧,以及对更深层次定制化的渴望。 过渡并非一帆风顺。虽然Omarchy开箱即用就能复制我许多macOS工作流程,但寻找Snagit(截图工具)的替代品以及实现相当的电池续航仍然是持续的挑战。备份解决方案也需要在放弃TimeMachine后重建。 然而,好处是显著的。Linux提供无与伦比的定制化——从键盘快捷键到窗口管理——允许我根据我的确切需求定制操作系统。像Walker(启动器/搜索)这样的工具在功能上超越了Raycast,并且能够使用脚本调整一切令人感到解放。 尽管存在一些硬件方面的权衡(风扇噪音、更短的电池续航),但整体体验是积极的。我学到了很多,拥抱了开源世界,并享受到了以前无法获得的控制权。这是一次有趣且高效的转变,我计划继续完善我的设置并分享我的旅程。

## 从MacBook到Arch Linux:一次持久的切换 这个Hacker News讨论围绕着一位用户从M1 MacBook切换到带有自定义配置Omarchy的Arch Linux的体验。作者发现切换出乎意料地顺利,使用一个月后享受了Arch的速度和定制性。 评论中揭示了关于苹果硬件价值的争论——许多人同意MacBook提供卓越的制造质量、触控板、屏幕和音频,可以使用多年。然而,其他人认为同等价位的ThinkPad可以在更低的成本下实现相似的寿命和性能。一个关键点是苹果的优化,有些人声称Mac上的8GB内存相当于其他系统上的32GB内存。 许多评论者强调了权衡:macOS提供“即插即用”的便利性,而Linux提供更大的控制权和定制性。讨论还涉及了像Hyprland这样的平铺窗口管理器的吸引力,以及像Omarchy这样简约、面向高级用户的设置的好处。最终,这个帖子展示了一个充满激情的社区,权衡不同操作系统和硬件选择的优缺点。
相关文章

原文

I switched my five-year-old MacBook Pro M1 Max for a cheap (comparable) Lenovo ThinkBook 14 G7 ARP (AMD) laptop, running Linux (Arch btw, or better, Omarchy. And I am having a blast. But not everything is perfect. But let’s not get ahead of ourselves.

This is a short recap after using it for one month on and off (due to repair 😅), and the last 2 weeks full time. I want to share what I learned, what I like about the new setup after working for 15 years plus on a MacBook, and on and off on Windows at work. And maybe what is still a little rough.

Getting Ready for the Switch

Before I could make the switch, I had some pre-requirements I needed to be able to use it as my full-time machine. Here are some:

  • ✅ Obsidian notes
  • ✅ fuzzy finder in raycast to open up my favorite files or folder, e.g. if I need to open my Offers template folder
  • ️✔️ screenshot like Snagit
  • ✅ photo program
  • ✅ daylight adjustment like f.lux
  • ✅ next calendar events in top bar
  • ✅ Hibernate machine
  • ❌ one time backup to store files and OS, or only files?

And most important, instant workspace navigation. The reason why I was upset with Apple: with the latest update, Yabai didn’t work flawlessly anymore, and also all the updates and constant asking if I want to do this or that got in my way.

During that process, I noticed that many things I was having, like Setapp Apps with all the apps like Bartender, VPN, and other apps are nice and useful, but not needed. Or mostly there is a similar, or sometimes even better, alternative out there.

The Tradeoffs

While I’m super happy with the switch, here are some direct comparison from apps and workflow from macOS to Linux.

Photo Capturing
Snagit, my beloved screenshot-taking tool. I haven’t found a similar replacement yet that can cut out in-between the image or store all the captured images in a library. Even OCR search worked out of the box in Snagit, across all my images I took over the years.

You’d say, but who needs this? Yeah, kind of, but it’s super handy, especially if you are a blog writer and explain stuff visually—the speed and quick image manipulation is not yet there.

It just works. One thing I noticed lately is that sometimes a shortcut breaks, or something is not working anymore. This is also because Omarchy is just brand new, and I’m inexperienced running Linux as my main OS. But for the last 5 years with the M1, hardware-wise, things just worked. I had to replace my full mainboard as the GPU was broken within the first two weeks, so that might be bad luck. But the quality of MacBooks is just another level. I had 3 or 4 so far since 2010, and each of them held at least 5 years. Crazy good.

Battery Life. It’s not the same game anymore. The fan is also mostly running. But that’s one downside I’m willing to accept for a more joyful experience. Also, if I don’t like something on my OS, I just change it. Or if I want to improve a certain way of working, a quick script, a new package, and I’m just flying.

Backup. TimeMachine on macOS was great. Gave me peace of mind that if I lose something, I can always recover. I never had to go back file-based, as I have them stored on Sync.com (now with Linux switched to Filen.io), and notes in Obsidian. But when I broke something, or I had to switch MacBooks, one backup, and every little setting was the same. But that’s something I tackle next, so I have peace of mind if I misconfigure something, like yesterday, when I changed the /etc/sudoers and I couldn’t log in as sudo anymore 😅 (yeah, don’t ask!). I could fix it again, though. But stuff like this makes me scared that I can run a wrong command and ruin my perfect setup. I need a backup!

Cloud Sync. As mentioned, I had to switch from Sync to Filen, as Sync didn’t run on Linux. But Filen is great, and I’m super happy with it. I also switched from Lastpass to 1Password, took this as a change. I was also thinking about NextCloud on my home server, but I couldn’t switch everything in one go.

Keyboard shortcuts. An important one was keyboard shortcuts. I have advanced shortcuts and many different custom keyboards. First I use Karabiner-Elements for the vim navigations with caps + HJKL, which will then return arrow keys. This way I can use vim navigations in each app, as arrow keys are supported everywhere. For this I used Kanata on Linux. And use XCompose for simple Umlaut or replacements like ««— when I write.

App Launcher, File content search and Clipboard manager. I used Raycast for all of these. On Windows Ditto was great for clipboard only. But with Walker (Launcher), that has built-in file search called finder, and an additional tool called Clipse, I have the same features I needed. Plus more than I ever would have dreamed, because Walker is so customizable that you can add a quick script for everything.

WebApps as native apps. Shortcuts for everything. E.g. using Signal, WhatsApp or Figma. Want to change monitor setup from home to office? A shortcut. Want to switch from my mechanical keyboard to the laptop keyboard with different shortcuts? A shortcut. Quickly install a new app? A shortcut. And so on. I never thought that an OS can be customizable to my liking.

/blog/macbook-to-arch-linux-omarchy/arch-btw.jpeg

Even themes you can change across OS, vim, terminal, and background with one shortcut. The sky is the limit, literally.

Omarchy: An Opinionated Arch Linux “Distro”

Luckily, I didn’t have to set up all myself. In fact, Omarchy, a soon-to-be distro that runs Arch Linux, does most of it out of the box. And it’s keyboard shortcut-oriented, and worked really similar to my macOS workflow already. So after I installed, changed a couple of hotkeys, I was almost at the same speed and utility as on my old MacBook, but without the frustrations. Or I should say, other frustrations :)

But huge shoutout to DHH for creating this gem, and making Arch Linux approachable for many developers coming from macOS. After I checked all the scripts and what the community added over time, I saw that so many things were just solved. Screens, function or media keys, cameras, fingerprint reader, printer, and so on, all just worked, almost like on a MacBook.

How It Began: Taking the Leap

This was the time working out in the wild with Arch Linux, without bringing my Macbook.
/blog/macbook-to-arch-linux-omarchy/omarchy-coffee.webp
Writing in a coffeeshop with Arch Linux (Omarchy).

Some comments from the first days: It’s a blast to work with Hyprland, so fast and smooth. Battery level obviously much less, return of the fan noise when running Electron apps 🙂.

What works: Advanced Karabiner keyboard setup, sync files (had to switch to Filen), Obsidian, and my dotfiles with tmux, Neovim and all the good jam.

Still to do: Clipboard manager, better Snagit replacement, Raycast search in files/emojis and backup.

I’m surprised with what all worked out of the box, like hibernating, external monitors/keyboards, media keys. Not sure how much is thanks to DHH’s Omarchy, and what’s native Arch Linux support, but it’s amazing.

I’m working on my dotfiles to port them to Linux on _arch-linux. Lots to configure, but the tools to choose from are endless, and just free and open source. Great world. Thanks to all the people who maintain and create these amazing products.

Big Upside

Great experience over the Macbook so far:

  • The smooth navigation with Hyprland
    • Navigation is flawless, even from local to external screen, I just normally navigate, e.g. just hit super + h If I’m on the app on my laptop, jumping to the next app on the left, if that is the external screen, it will jump there. On Yabai, external monitors had to have a special keymap.
  • Full screen has no bezels at the top or empty bar like Mac. Normal fullscreen uses all the way and does not open on a random workspace at the end of existing workspaces

Downside

What doesn’t work as well yet, or things I missed in my workflow:

  • Grammarly native app overlay which is sometimes handy for Obsidian or any other apps to fix grammar. On Linux I need to copy and paste back and forth again. But on the other hand, it does not secretly send each text to the cloud :)
  • Microsoft Teams/Office that I need for one client has no native app, but the web app works flawlessly.
  • Hibernate: just sleep and next day come back, everything as it was. Need to shut down to not overheat. (Has been solved in the meantime, but still not the same as MacBook)
  • No Claude Desktop for MCP. Although I used Claude Code most of the time. (I have replaced with a webapp, is almost the same feel, but no MCP I believe. But Claude Code has it now too, and Neovim too :)
  • I could buy cheaper hardware. The downside, the fans are coming up quickly, something I am not used to anymore :) I still use a lot of Electron apps (browser, Claude in browser, Obsidian) and other heavy apps such as Google Meet in browser, YouTube.

My macOS Workflow

I recorded my macOS workflow (before) as of now to document it before I potentially switch to Arch Linux with Omarchy. Let’s see 😉

However, I also showcase that most of my setup on macOS is very similar to the shortcut-driven Linux setup shown in Omarchy - workflow after (now):

Life with Arch Linux (Omarchy)

Today I’m almost up with the same tools as before, there are still some to be changed, but that’s expected after 15 years on the same OS. This write-up is the start of showing that. I will soon create another video on Omarchy, and add to this post too.

Before I went full in, I quickly tested it on an old (10-20 years) laptop and installed an early version of Omarchy. It is a beauty. Before, Windows was unusable and with Arch in the back, it runs almost like a brand-new laptop. Obviously when you start heavy apps, you will notice too, but the navigation and simple tasks are instant; you don’t feel that you are on an old machine.
/blog/macbook-to-arch-linux-omarchy/omarchy-old-dell.webp
Installed on an old laptop. Amazed how blazingly fast it is. And beautuful. I can finally say it, Arch BTW Twitter

Choosing the Hardware

Obviously, I needed new hardware. First I was romanticizing with the Beelink fanless desktops, super fast and affordable. But as I do my best writing on the go in coffee shops, libraries or on the couch, I needed a laptop.

DHH has a great list that I included in Notebook & Desktops for Linux. And as Framework Laptops are not available in Switzerland, I went with an affordable Lenovo ThinkBook. 32 GB and good-looking device with a great keyboard. I didn’t know how good a laptop keyboard can be with some travel; almost can’t write on the MacBook keyboard anymore, even though I didn’t get the bad scissor one.

But the CPU is not the fastest, and I didn’t do heavy loads yet. And I can already sense if I run a couple of Electron apps that the CPU can go quite high. Like Obsidian, browser and Spotify, these are already three. And if I open webapps as separate windows, these are essentially more tabs or Electron apps.

But yeah, I got to have a matte screen that also works nice outside, and after all, the screen is not the most important thing to me. Also the speaker and trackpad and everything else on the MacBook was just superior, but it doesn’t bother me as much yet. Only the battery life is a big shift back, and the constant fan. Obviously, if I stay for it longer, I might also buy a beefier laptop, I actually didn’t know if I will stay or not. So far, everything is pointing to that I will stay on Linux for the time being. Also nice to see the constant new updates that Omarchy is producing. A breath of fresh air to be honest.

I Learned Sooooo much (and Had Fun)

The great thing, although I spent quite some time, I learned so much. It’s so fun. As a lover of a good TUI, I really enjoyed every bit of it.

Even switching your WiFi, just a TUI away:
/blog/macbook-to-arch-linux-omarchy/wifi-tui.webp
Impala: A TUI for managing wifi on Linux

It’s also fun to set up your OS in a way that makes you more productive, or gives you joy just by the looks of it. Aesthetics and quick transitions between each keypress or transition are amazing.

What’s Next?

It’s only 2-3 weeks in total that I run it full time. So there’s many things I want to improve and I will over time. But I’m amazed how much is already working, and that it’s such a blast to use.

I’ll update you on the journey for sure. If you don’t want to miss it it, subscribe to my newsletter. I write a lot about tech, productivity, Obsidian, Markdown, Neovim and data engineering. Or follow me on GitHub or check out my dotfiles.ssp.sh.

联系我们 contact @ memedata.com