Live data from Hacker News

macOS CLI tool to configure multi-display resolutions and arrangements

github.com

81–88 of 88 posts

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#81
post #36

Earlier quoted context omitted.

Yet another option: https://github.com/koekeishiya/yabai

I will also +1 this as an i3wm user. I do use displayplacer and yabai together though. I have two identical external monitors that don't behave well with MacOS. Apparently the monitor's unique id's are not unique in MacOS. This causes MacOS to get them mixed up any time I disconnect from them. I have a keyboard shortcut that uses displayplacer to toggle between the two monitor valid configurations.

This person [0] also had that issue, they found that for their monitors for whatever reason, using the contextual screen IDs instead of the persistent ones always results in a consistent configuration. Might be worth a shot.

[0] https://github.com/jakehilborn/displayplacer/issues/106#issu...

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#82
post #56

Earlier quoted context omitted.

Another window manager https://ianyh.com/amethyst/

I have tried Amythyst. Yabai, didn't try since it wants to disable system integrity protection. Not sure if will work in locked down corporate machines. Now back to Rectangle and arranging the windows myself in multiple desktops.

You can get value out of yabai even without disabling SIP to add the hooks into Dock.app. The things it needs that for isn't that long of a list, see the first bulleted list here https://github.com/koekeishiya/yabai/wiki/Disabling-System-I... , maybe you don't need those / can replicate them without yabai?

When I initially read this on that page,

> The following features of yabai require System Integrity Protection to be (partially) disabled:

, I thought that meant "so yabai just won't work at all if you don't disable SIP", but it's not the case at all. I use hammerspoon to deal with spaces, and don't care about window transparency/shadows/animation, and I don't know what "picture in picture for any window" means. I do miss stickiness and per-window floating (which are features I used in XMonad), but it's fine, I'm not going to disable SIP for those.

Particularly, if you just want focus-follows-mouse like in X Windows, yabai gives you that without disabling SIP.

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#83
I don't suppose it exposes commands to switch a Universal Controlled device from extended screen mode to remote keyboard-mouse control?

I have to reset this setting in Settings -> Display every few hours when the connection gets disrupted between my two macs for unknown reasons...

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#84

I was stoked to see this, unfortunately, this has gone 4 years without a release (last released in 2019) The issue log has several issues where Ventura users mention it not working at all, on M1 architectures. Can anyone on an M1 or M2 confirm this works for them? I'm still on Intel.

I placed on order for an M2 MacBook for my wife last week. I'm planning on adding native support within a few months of the laptop arriving.

Right on, thanks Jake!

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#85
post #12

I was stoked to see this, unfortunately, this has gone 4 years without a release (last released in 2019) The issue log has several issues where Ventura users mention it not working at all, on M1 architectures. Can anyone on an M1 or M2 confirm this works for them? I'm still on Intel.

The version installable with Homebrew is working for me on Ventura / M1. I have an occasional issue where one of my external displays switches from 60 Hz to 40 Hz, and I use displayplacer to toggle the refresh rate to reset the monitor back to 60: https://github.com/jacobwgillespie/dotfiles/blob/main/bin/fi...

Ah, that's reassuring. So some bugs on Apple Silicon, but not game breaking. Thanks for the detail and filing an issue, Jacob.

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#86

I was stoked to see this, unfortunately, this has gone 4 years without a release (last released in 2019) The issue log has several issues where Ventura users mention it not working at all, on M1 architectures. Can anyone on an M1 or M2 confirm this works for them? I'm still on Intel.

Latest code is from 6 months ago. You can probably build it yourself

True - though I prefer binaries because when building from source it's easy to burn time just fiddling with dependencies

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#87
post #71

I have a setup where I share a screen between two computers (a macOS productivity machine and a Windows gaming laptop / x86 VM lab). I did look at a lot of tools to be able to disable one of the screens in macOS so I wouldn't need to fiddle with cables, and I remember that this one didn't work. I use mirror-displays[1] (alongside Bunch, which also turns on VBAN Talkie for audio) now. Mirroring a screen is the only wa…

if you have multiple cables attached to the monitor, isn't it easier to use the monitor's input selection buttons to do this? with the monitors i have, when i manually switch inputs, it signals to the other computer the monitor is no longer available and my mac auto switches like was not plugged in. when i switch back to the mac's input for the monitor, the mac auto recognizes it is available and reconfigures the lay…

I still use the macOS machine (either directly or via Synergy), so I need the have it only put the desktop on one of the screens.

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#88
post #56

Earlier quoted context omitted.

Another window manager https://ianyh.com/amethyst/

I have tried Amythyst. Yabai, didn't try since it wants to disable system integrity protection. Not sure if will work in locked down corporate machines. Now back to Rectangle and arranging the windows myself in multiple desktops.

[deleted]
Post reply on HN