https://github.com/kevinvitale/displix
Command-line utility using CoreGraphics to change display resolutions
https://github.com/kevinvitale/displix
c coregraphics macos
Last synced: 9 months ago
JSON representation
Command-line utility using CoreGraphics to change display resolutions
- Host: GitHub
- URL: https://github.com/kevinvitale/displix
- Owner: KevinVitale
- Created: 2018-09-24T20:10:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-29T20:42:13.000Z (over 2 years ago)
- Last Synced: 2023-11-29T21:35:43.089Z (over 2 years ago)
- Topics: c, coregraphics, macos
- Language: C
- Homepage:
- Size: 12.7 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Getting resolutions
```bash
$ ./displix
Display count: 1
-- -- --
DISPLAY: 0
ID: 2077750269
Modes: 12
----- ----- ------
Index Width Height
----- ----- ------
[0] 2880 1800
[1] 1440 900
[2] 3360 2100
[3] 2560 1600
[4] 2048 1280
[5] 1650 1050
[6] 1280 800
[7] 1152 720
[8] 1024 768
[9] 840 524
[10] 800 600
[11] 640 480
```
**NOTE**: Use `-a` to include duplicate, low resolution modes.
### Setting resolutions
Use `-m #`, where `#` is the index of the display mode you want to set:
```bash
$ ./displix -m 0
Display count: 1
[0] 2880 1800
```
**NOTE**: Use `-d #` to specify the display, where `#` is the display
index printed by `displix`.
#### How to build
```bash
$ make
```
#### Cleaning
```bash
$ make clean
```