One of the biggest things that happened to me last year was the move to Mac. After dozens of years of working with Windows, then Linux, many customizations, and convenient software that allowed me to work almost at the speed of thought, I was a little afraid that it would take a long time before I could achieve the same comfort and speed. After two months, I can confidently say that life on the Mac is possible. Not always, however, this life is simple and intuitive, and I will tell you about the difficulties I encountered, how I solved them, and what I have achieved so far.
What I liked most about my MacBook Pro 16″:
- First and foremost, it’s the hardware. The ergonomic, lightweight, and beautiful aluminium enclosure. A bundle of software and hardware designed to work together.
- A huge high-resolution display for a laptop. It covers almost the entire plane of the lid, and a small “edge” webcam does not interfere. I especially like it when the wallpaper on top is black, and the “edge” blends in with the menu. I also prefer to hide uninformative application icons at the bottom, and then 100% of the screen can be used for my needs (Turn Hiding Off in the dock context menu).
- Apple silicon. The combination of low power consumption and high performance is the apotheosis of engineering magic. In my reality, something is always given for something. Higher performance means less battery life, more heat output. But in two months, I’ve never once heard the fans running, and only a few times have I noticed that the case is slightly warm. The battery life is enough not to have to think about charging at all if you went to, say, the office and left it at home. If you’re wondering how exactly Apple engineers achieved this, I can recommend [an excellent article written in simple, non-technical language] (https://debugger.medium.com/why-is-apples-m1-chip-so-fast-3262b158cba2).
- Performance. The combination of the processor, fast memory, and M1 make it blazing fast for work with video production. My old laptop took minutes for a rendering preview, with M1 previews with all the transformations just working in real-time. You start or see the preview when you hover over it.
- Touchpad. I’ve heard a lot about the magic of the Apple touchpad, but I’ve never fully understood what it’s all about. The connection between the hardware and the software is very smooth and consistent. The text I’m scrolling on the screen feels like an extension of my hand. It’s a fantastic feeling. You start working, and everything works “properly,” but after a week of work with the Mac touchpad, I had to go back to the old laptop and was amazed at how big the difference was.
- The keyboard: even though it uses Apple’s scissor-switch Magic Keyboard design, the tactile pleasure of working with it is immense. It just makes you want to type. And of course, I like the absence of the touch bar very much. It was a cool, innovative thing, but not for me: a nice feature – a software control the brightness of the keyboard’s backlight.
- Audio. As someone who has devoted almost a year to choosing a HiFi system, I can say that I had no expectations of sound in a laptop at all. I was surprised when I heard a natural “surround sound” and “panorama.” Six speakers, of which four are mini-subwoofers, produce a dense and deep sound. What is impressive to me is that on laptop speakers in this sound quality test, I guessed 4 out of 6 correctly.
- MagSafe is convenient and technological. It feels like Apple purposely removed it to bring it back.
- Huge amount of software that “just works.” On Linux, working with photos, video, or sound is painful. For doing even simple operations, you have to do a lot of actions and “exercises.” Every time I run the gimp, I feel an inner existential pain. The same story with editing video, music, converting raw files. It’s much easier on the Mac.
Problems I encountered on macOS in the first month
Surprisingly, Linux had not crashed once during several years of uninterrupted work, whereas macOS crashed twice in the first month. However, I have to admit that the second month passed without crashes.
Below, I will list the main difficulties I had during my migration and how I solved them.
Keyboard
Probably the biggest pain of the first weeks was the keyboard layout. Lack of Del, Home, End, PgUp, PgDown significantly slowed me down at first. For some reason, Apple engineers and designers decided that these are pretty rare operations, and they can be replaced by fn⌦, ⌘←, ⌘→, ⌘↑, ⌘↓, but a separate button for the symbol §. You could live with this, but when you run the standard Terminal, suddenly ⌘← and ⌘→ shortcuts do not work anymore. In iTerm2, ⌥← and ⌥→ (word navigation) do not work, although they work fine in Terminal. In some JVM applications, they do not work either. This inconsistency makes me think about how to do the same repetitive actions in different applications.
The solution: I switched completely to iTerm2 (mainly because of native tmux support) and re-mapped shortcuts in iTerm – Preferences – Profiles – Default – Keys – Keymappings as follows:
- ⌥⌦ – Send Hex Code: 0x1B 0x08 – delete last word
- ⌘← – Send Hex Code: 0x01 – move cursor one word to the left
- ⌘→ – Send Hex Code: 0x05 – move cursor to the word to the right
In the Ukrainian layout, dot, comma, and colon are in their usual places, but in the Russian layout they are mixed up. The solution is to choose the Russian – PC layout.
Even since the Linux days, I’ve been used to switching keyboard layouts via shortcuts. I didn’t have to think which language was on: just press buttons and write in the right one. Having become used to typing this way, I no longer look at which language is active. To solve this problem, there is an excellent application MLSwitcher.
A few more hacks related to shortcuts on macOS:
- Discovered a shortcut to insert Emoji: ⌘ + ^ + Space
- Using fastscripts and small script, I set up a global shortcut for mute/unmute in Google Meet
- To learn new shortcuts and speed up my work, I tried CheatSheet. This program shows you shortcuts to the active application if you press and hold ⌘.
There is also some inconvenience and frustration related to the keyboard and the interface’s “friendliness”. Often, the touchpad is the only way to perform an action or press a button. Changing the focus of the control with arrows or Tab is slowly going out of fashion, and it makes me sad. On Mac as well as Linux, this is pretty bad. In Windows, it was the best: almost every action could be done with the keyboard, but it gets worse from version to version.
NTFS
NTFS support for external USB storage on macOS was a problem for me. I had external storage that had worked without issue on every other device.
On the Mac, writing to an NTFS device required me to go through a quest with booting the mac into safe mode, disabling security, and installing the kernel extension, after which, with macFUSE you can read and write to the NTFS partition, remembering to mash it in advance like this:
> sudo ntfs-3g /dev/disk5s1 /Volumes/NTFS -o local -o allow_other -o auto_xattr -o auto_cache
First check the device to mount with the diskutil list command. To disconnect external devices safely, unmount the device with sudo diskutil unmount /dev/disk5s1.
After playing FreeBSD admin for a week, I formatted the external storage in exFAT, which was the end of the adventure.
Later, I found a few additional ways to deal with NTFS: one and two.
VirtualBox & Docker & Linux tooling
At the time, the lack of VirtualBox also meant no Vagrant for my workflow. Docker can be installed and run, but there is a concern that not every container will work as well on Linux.
I was pleasantly surprised that brew works as well as apt or yum.
Another problem I have not gotten around to is the lack of strace. On Linux it was very easy to connect to any process and find out what was wrong with it. On Mac we have dtruss and dtrace, but I still have to figure out how security policies work on the Mac and learn to use them properly.
Security
Overall, it’s pretty cool that processes can be given different permissions at the operating system level. A password is mostly not required, TouchID is enough.
But there are a few curiosities. For example, in order to make Google Chrome start downloading files from the computer, it must be started like this:
open /Applications/Google\ Chrome.app --args --allow-file-access-from-files
I wonder how non-technical users should solve this problem.
Also, after installing OBS, it became the default camera in Chrome, and to change that, you had to go to chrome://settings/content/camera. Which is also somewhat non-trivial, but I think it would occur on any platform.
Software I use
A few words about the software I have tried and actively use. Most of these programs moved with me from Linux and Windows, and so far they cover all my needs.
- Visual Studio Code – undoubtedly, it still loses to IntelliJ in code intelligence and refactoring, and it is not a great database client, but it wins in speed and community. Mastering Zettelkasten, I started using foam. After a year of active use, I accumulated several thousand notes and found my approach to analysing and structuring information. Considering that I write all sorts of texts much often than code, this was the critical factor in choosing the IDE.
- I installed Sublime automatically because I had used it for a long time, but I apparently ran it only a few times when I needed to format a huge JSON or XML
- Monosnap – for screenshots, writing, painting on it, and sharing.
- Freemind is an application for mindmaps. I use it a lot, and I do a lot of automation and scripting around the XML, where it stores mindmaps. A convenient tool, which, as it turned out, does not work on macOS Monterey. Fortunately, a fork of it was found, Freeplane, which works almost fine on macOS.
- Anki is a memory application. I’ve been using it for almost ten years, working with Anki is part of my daily routine.
- I installed DaVinci Resolve for video processing, but I do not use it because the standard iMovie covers all my needs.
- Dropbox – the most convenient way to synchronise and share files.
- KeePass – I have been using it for many years and see no reason to change to something else.
- MiKTeX – for working with LaTeX
- Numi – A user-friendly and handy calculator for everything you can’t calculate in Spotlight. It has an alternative: Soulver.
- Rectangle – Move and resize windows by shortcuts.
- OmniFocus – A task-management application. Because MLO is not available for the Mac and I did not want to run Wine, I decided to try an alternative. It is still a long way from my dream application, but using OmniFocus made me think a lot about what makes the software usable and the magic of MLO (from which I was using at best 30% of its functionality).
- itsycal – small calendar in tray bar. Handy, minimalistic, but with my amount of events in calendar, after using it for a month, I decided to replace it with a permanently open tab with Google Calendar.
- Numbers is an alternative to Excel. For simple tasks, I found it quite handy; for something more complicated, you will probably need Microsoft Excel.
- Transmission – free torrent client
- VLC – for watching videos
For work in iTerm2, I installed my favourite font FiraCode, and the tools I used to use on Linux: ohmyzsh, fzf into zsh, mc, htop, ncdu, jq.