News for hackers. Stuff that matters.
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by rcarmo on Saturday May 01, 2021 @08:11AM (#27005628)
I use all 3 (including Windows). You are going to want to go down the customisation rabbit hole on the Mac, and be thoroughly unhappy unless you try to understand the way why it is how it is and don't try to fight it.

That said, since you like i3, let me point out right away that window management on the Mac does _not_ work like you want it, and likely never will.

I use Moom (https://manytricks.com/moom/) for manually tiling windows since I can make it 99% consistent with what I have in Windows and Elementary, but I've used Amethyst (https://github.com/ianyh/Amethyst) when I felt like "going back" to i3, and it is sort of close enough.

That said, another important thing (if you intend to do development) is to absolutely not mess around with /usr/local and whatnot and understand how brew (https://brew.sh) works. Use pyenv, rbenv, etc. instead of messing about with system runtimes. Learn to live with the built-in terminal unless you absolutely must use iTerm (which I've stopped using because the built-in one is now plenty good enough), etc.

I also have some (old, and in need of update) tips over at https://taoofmac.com/space/howto/switch, but they're more focused on the Windows crowd, so take them with a pinch of salt.

Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by DangitBobby on Saturday May 01, 2021 @08:34AM (#27005765)
I use magnet for window tiling. I find the device literally unusable without it.

Defaults are Ctrl+ alt + e: left 2/3, r: right 2/3, d: left 1/3, f: middle 1/3, g: right 1/3, left-arrow: left half, right-arrow: right half

Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by faitswulff on Saturday May 01, 2021 @08:22AM (#27005706)
> Learn to live with the built-in terminal unless you absolutely must use iTerm

Why?

Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by D13Fd on Saturday May 01, 2021 @08:43AM (#27005825)
Rectangle (open source) and Hookshot (closed source from the same author) are the best and most reliable window managers I’ve found on Mac OS, although they are both still imperfect when it comes to custom window positions with mouse-based snapping.
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by sys_64738 on Saturday May 01, 2021 @09:07AM (#27005996)
Interesting. I use rectangle so am curios the difference for closed source app.
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by presentation on Saturday May 01, 2021 @08:17AM (#27005674)
I'm pretty satisfied with yabai for a tiling window manager. https://github.com/koekeishiya/yabai
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by DangitBobby on Saturday May 01, 2021 @08:36AM (#27005776)
Can you give some highlights of what this tool does for you? It isn't really clicking for me.
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by presentation on Saturday May 01, 2021 @05:33PM (#27010060)
When you open a window it will automatically resize your windows so they all take up the full screen size without overlapping. No more resizing windows with a mouse or having empty screen real estate.
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by deagle50 on Saturday May 01, 2021 @08:25AM (#27005728)
Me too. It took a while to come up with the right shortcuts but now it's second nature.
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by rcarmo on Saturday May 01, 2021 @04:14PM (#27009413)
Yabai requires you to disable system integrity protection, which is a dicey proposition.
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by presentation on Saturday May 01, 2021 @05:31PM (#27010044)
Yeah it’s a bummer it’s necessary but at least you can turn it back on after you’ve installed it.
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by mr_o47 on Sunday May 02, 2021 @04:58AM (#27013508)
Is it similar to i3 in terms of configuration
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by procinct on Saturday May 01, 2021 @08:22AM (#27005708)
Why advise against iTerm?
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by cassianoleal on Saturday May 01, 2021 @08:29AM (#27005747)
Indeed! Terminal.app is fine for very basic terminal needs but things like actually good and sensible pane splitting* and `tmux -C` integration are an absolute joy! And that's just scratching the surface!

* One that actually makes sense. In Terminal.app by default it just creates a copy of the existing pane so you can see your commands and outputs twice, each taking up half of the real estate. Seriously, who needs that for anything at all?

Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by cyberge99 on Saturday May 01, 2021 @11:11AM (#27006927)
Brew on macos puts arm64 binaries in /opt/homebrew that’s an important distinction to keep things clean and bifurcated.
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by mr_o47 on Saturday May 01, 2021 @08:15AM (#27005655)
Got it thanks for the advice. I heard homebrew is very different from traditional linux package managers.
Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by jrjsmrtn on Saturday May 01, 2021 @05:10PM (#27009855)
You should also give MacPorts a try.

Its heritage is from BSD ports but, contrary to some reports, it's well alive, stable and kicking ;-)

Re:Ask HN: Pros and Cons of Switching from Linux to M1 MacBook by jrjsmrtn on Saturday May 01, 2021 @05:08PM (#27009825)
+1 for Moom :-)

As for iTerm2, I found its native tmux integration pretty unique.