# 使用 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
- **版本:** 1.4.0
- **来源摘要:** Utility to configure multi-display resolutions and arrangements
- **主页:** <https://github.com/jakehilborn/displayplacer>
- **仓库:** <https://github.com/jakehilborn/displayplacer>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- displayplacer (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.4.0
## 项目历史与用法

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
