News for hackers. Stuff that matters.
Re:The Future Is Niri by alabastervlog on Wednesday March 12, 2025 @01:26PM (#43345569)
I'll occasionally do quarters. Especially half on one side, two quarter-windows on the other, for a 3-window arrangement. On Mac.

My key bindings are a little different because I use the defaults in Spectacle to do it. More than a decade like that. Program's discontinued but still works and has never given me so much as one problem this entire time, so I'm going to keep using it until it stops working.

Re:The Future Is Niri by kingnothing on Wednesday March 12, 2025 @01:54PM (#43345900)
Tiling is now built in to MacOS if you want to give that a try:

https://support.apple.com/guide/mac-help/mac-window-tiling-i...

Re:The Future Is Niri by alabastervlog on Wednesday March 12, 2025 @02:01PM (#43345971)
Yeah, I haven't seen a way to change the keybindings so they match my muscle memory. My current set-up is "brew install spectacle", cmd+space+"spect"+return, tick the checkbox to run at startup, then never think about it again—even if there were a way, I'd also have to go to the trouble of scripting the keybinding changes to make it this easy.
Re:The Future Is Niri by callahad on Wednesday March 12, 2025 @03:23PM (#43346754)
This covers binding Cmd+Opt+[Arrows, F, C], which is all I use:

    defaults write -g NSUserKeyEquivalents -dict-add \
        "\033Window\033Move & Resize\033Left" "@~\\U2190" \
        "\033Window\033Move & Resize\033Right" "@~\\U2192" \
        "\033Window\033Move & Resize\033Top" "@~\\U2191" \
        "\033Window\033Move & Resize\033Bottom" "@~\\U2193" \
        "\033Window\033Fill" "@~F" \
        "\033Window\033Center" "@~C"
Equivalent to manually binding in System Settings -> Keyboard -> Keyboard Shortcuts -> App Shortcuts
Re:The Future Is Niri by alabastervlog on Wednesday March 12, 2025 @03:27PM (#43346798)
Ah, looks promising, and I bet I can figure out how to add the rest with that as an example and some light Web searching.

I use all of those except center, plus Cmd+Ctrl+[left, right] for top quarters left and right, and Cmd+Ctrl+Shift+[left, right] for lower quarters left and right.

Thanks!

Re:The Future Is Niri by 4ndrewl on Wednesday March 12, 2025 @03:13PM (#43346683)
Quarters? You deviant!
Re:The Future Is Niri by koziserek on Friday March 14, 2025 @01:27PM (#43364874)
Splitter!
Re:The Future Is Niri by floriannn on Wednesday March 12, 2025 @02:16PM (#43346123)
There is a maintained fork called “Rectangle” now.
Re:The Future Is Niri by alabastervlog on Wednesday March 12, 2025 @02:37PM (#43346337)
I thought that was a totally different program, not a fork? If it's a fork, I guess that simplifies figuring out which alternative to switch to the first time Spectacle gives me any trouble at all.
Re:The Future Is Niri by floriannn on Wednesday March 12, 2025 @04:54PM (#43347555)
https://github.com/rxhanson/Rectangle

It says “based on” in the README, which could just mean “inspired by”, but it’s also in the license so I thought that it was an actual fork. Looking at the actual history would reveal the answer, but idk, works basically the same.