← Back to Open Source

screenresolution-rs

MacOS screen resolution tool

Rust MacOS Core Graphics
View on GitHub →

MacOS screen resolution tool

General Usage

$ cargo run -- -h
MacOS Screen Resolution Tool 0.1.1
Bernard Niset
Allows to list, get and set screen resolutions.

USAGE:
    screenresolution-rs <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    get     Get current active resution for current display
    help    Prints this message or the help of the given subcommand(s)
    list    List available resolutions for current display
    set     Set current active resolution for current display

Build: a841faf - 2018-09-17

Getting the current resolution

$ cargo run -- get -h
Get current active resution for current display

USAGE:
    screenresolution-rs get [FLAGS]

FLAGS:
    -h, --help       Prints help information
    -l, --long       Shows more details on the current resolution
    -V, --version    Prints version informationv

Example:

    $ screenresolution-rs get
    Display 0: 2560x1600x32@0  - pixel 2560x1600x32@0  -        - 16:10