# displayz [![MIT License](https://img.shields.io/crates/l/displayz)](https://choosealicense.com/licenses/mit/) [![Continuous integration](https://github.com/michidk/displayz/workflows/Continuous%20Integration/badge.svg)](https://github.com/michidk/displaz/actions) [![Crates.io](https://img.shields.io/crates/v/displayz)](https://crates.io/crates/displayz) [![Chocolatey](https://img.shields.io/chocolatey/v/displayz?include_prereleases)](https://community.chocolatey.org/packages/displayz) A CLI tool and library to control display settings on Windows written in Rust. ## Installation ### Chocolatey Install [displayz using Chocolatey](https://community.chocolatey.org/packages/displayz) on Windows: ```sh choco install displayz ``` ### Cargo Install [displayz using Cargo](https://crates.io/displayz) on Windows: ```sh cargo install displayz ``` ## Usage ### Commandline After installation, the `displayz` command will be available. Use the following command to access the help: ```sh displayz --help ``` The following subcommands are available: - `set-primary --id `: Sets the display with the specified ID as the primary display. - `primary `: Sets the primary display properties. - `properties --id `: Sets the display properties for the specified ID. The `` argument can be multiple (but at least one and max one per kind) of: - `--position ,`: Sets the position of the display. - `--resolution x`: Sets the resolution of the display. - `--orientation `: Sets the orientation of the display. - Orientation can be either `Default`, `UpsideDown`, `Right` or `Left`. - `--fixedoutput `: Sets the fixed output mode of the display. - The mode can be one of `Default`, `Stretch` or `Center`. ### Rust Library See the examples in the [examples/](examples/) folder on how to use the library.