# 使用 Homebrew, MacPorts 安装 displayplacer

查看 displayplacer 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:displayplacer
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install displayplacer
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install displayplacer
```

  证据: MacPorts ports tree: sysutils/displayplacer/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:displayplacer
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/displayplacer>
- **版本:** 1.4.0
- **来源摘要:** Utility to configure multi-display resolutions and arrangements
- **主页:** <https://github.com/jakehilborn/displayplacer>
- **仓库:** <https://github.com/jakehilborn/displayplacer>
- **许可证:** MIT
- **源码归档:** <https://github.com/jakehilborn/displayplacer/archive/refs/tags/v1.4.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- displayplacer (cli)
- displayplacer (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.4.0
- 本地数据: OK
- 上游仓库: https://github.com/jakehilborn/displayplacer
- 检测到的最新版本: v1.4.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

displayplacer is a macOS command-line utility for configuring multi-display resolutions, arrangements, mirroring, rotation, refresh rate, color depth, and enabled state. Upstream describes it as essentially an XRandR-like tool for macOS, which explains its strong appeal to users who script workstation layouts.

### 项目历史

The GitHub repository was created in June 2015, with the first GitHub release listed as v1.0.0 in November 2018. Later releases include v1.4.0 in June 2023, when the README notes a backward-compatibility concern around changed `displayplacer list` output.

### 采用历史

The README leads with Homebrew installation and release downloads, while the input package metadata also records MacPorts. Its adoption is tightly tied to macOS automation culture: shell scripts, hotkeys, Automator, BetterTouchTool, and repeatable monitor profiles.

### 使用方式

Users commonly run `displayplacer list` to print the current layout and supported modes, then reuse generated arguments in scripts to restore a known display arrangement. The README spends unusual space on screen ID stability because macOS can expose changing identifiers when external displays wake or reconnect.

### 为什么软件包爱好者会关心

displayplacer is a package-nerd favorite because it fills a native-platform gap with a single CLI. It turns GUI display state into reproducible command arguments, making macOS monitor layouts manageable by dotfiles, launchers, and package-installed tooling.

### 时间线

- 2015-06: GitHub repository created
- 2018-11: v1.0.0 release published
- 2023-06: v1.4.0 release published

### Related projects

- Related tools and workflows include XRandR on Linux, macOS Displays settings, Automator, BetterTouchTool, and user scripts that compensate for changing monitor identifiers.

### 来源

- <https://github.com/jakehilborn/displayplacer>
- <https://api.github.com/repos/jakehilborn/displayplacer>
- <https://github.com/jakehilborn/displayplacer/releases/tag/v1.0.0>
- <https://github.com/jakehilborn/displayplacer/releases/tag/v1.4.0>
- <https://formulae.brew.sh/formula/displayplacer>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** displayplacer
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- MacPorts - displayplacer: normalized package name match | MacPorts ports tree: sysutils/displayplacer/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [m1ddc](https://pkg.so/zh-hans/brew/m1ddc/) - Shares pkgdb curated category or tags: cli, display-management, macos, system.
- [screenresolution](https://pkg.so/zh-hans/brew/screenresolution/) - Shares pkgdb curated category or tags: cli, display, macos, system.
- [brightness](https://pkg.so/zh-hans/brew/brightness/) - Shares pkgdb curated category or tags: cli, display, macos, system.
- [ddcctl](https://pkg.so/zh-hans/brew/ddcctl/) - Shares pkgdb curated category or tags: cli, macos, monitor, system.
- [mole](https://pkg.so/zh-hans/brew/mole/) - Shares pkgdb curated category or tags: cli, macos, system.
- [lima](https://pkg.so/zh-hans/brew/lima/) - Shares pkgdb curated category or tags: cli, macos, system.
- [mas](https://pkg.so/zh-hans/brew/mas/) - Shares pkgdb curated category or tags: cli, macos, system.
- [terminal-notifier](https://pkg.so/zh-hans/brew/terminal-notifier/) - Shares pkgdb curated category or tags: cli, macos, system.

## Combined YAML source

View the package source record on GitHub. [combined/displayplacer.yml](https://github.com/mxcl/pkgdb/blob/main/combined/displayplacer.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
