https://github.com/importre/macos-displays
🖥️ Get information of macOS displays from the command-line
https://github.com/importre/macos-displays
display macos notch resolution safearea
Last synced: about 1 month ago
JSON representation
🖥️ Get information of macOS displays from the command-line
- Host: GitHub
- URL: https://github.com/importre/macos-displays
- Owner: importre
- License: mit
- Created: 2022-12-08T00:44:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-13T14:28:29.000Z (over 3 years ago)
- Last Synced: 2025-04-06T14:14:13.577Z (about 1 year ago)
- Topics: display, macos, notch, resolution, safearea
- Language: Swift
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# macos-displays
## Installation
```zsh
brew install importre/core/displays
```
## Usage
```zsh
displays -h
USAGE: displays [--output ]
OPTIONS:
-o, --output Write to file instead of stdout.
-h, --help Show help information.
```
## Output
```json
[
{
"isDeepest" : true,
"isMain" : true,
"name" : "LG UltraFine",
"resolution" : {
"height" : 1296,
"width" : 2304
},
"safeAreaInsets" : {
"bottom" : 0,
"left" : 0,
"right" : 0,
"top" : 0
}
},
{
"isDeepest" : false,
"isMain" : false,
"name" : "Built-in Retina Display",
"resolution" : {
"height" : 1117,
"width" : 1728
},
"safeAreaInsets" : {
"bottom" : 0,
"left" : 0,
"right" : 0,
"top" : 32
}
},
{
"isDeepest" : false,
"isMain" : false,
"name" : "Sidecar Display (AirPlay)",
"resolution" : {
"height" : 1024,
"width" : 1366
},
"safeAreaInsets" : {
"bottom" : 0,
"left" : 0,
"right" : 0,
"top" : 0
}
}
]
```