#display #settings #cli-tool #cli

bin+lib displayz

A CLI tool and library to control display settings on Windows written in Rust

1 unstable release

0.1.0 Jun 9, 2022

#731 in Configuration

Download history 223/week @ 2024-03-13 345/week @ 2024-03-20 144/week @ 2024-03-27 267/week @ 2024-04-03 184/week @ 2024-04-10 161/week @ 2024-04-17 119/week @ 2024-04-24 194/week @ 2024-05-01 168/week @ 2024-05-08 108/week @ 2024-05-15 180/week @ 2024-05-22 205/week @ 2024-05-29 300/week @ 2024-06-05 151/week @ 2024-06-12 181/week @ 2024-06-19 213/week @ 2024-06-26

892 downloads per month

MIT license

29KB
653 lines

displayz

MIT License Continuous integration Crates.io Chocolatey

A CLI tool and library to control display settings on Windows written in Rust.

Installation

Chocolatey

Install displayz using Chocolatey on Windows:

choco install displayz

Cargo

Install displayz using Cargo on Windows:

cargo install displayz

Usage

Commandline

After installation, the displayz command will be available.

Use the following command to access the help:

displayz --help

The following subcommands are available:

  • set-primary --id <id>: Sets the display with the specified ID as the primary display.
  • primary <properties>: Sets the primary display properties.
  • properties --id <id> <properties>: Sets the display properties for the specified ID.

The <properties> argument can be multiple (but at least one and max one per kind) of:

  • --position <x>,<y>: Sets the position of the display.
  • --resolution <width>x<height>: Sets the resolution of the display.
  • --orientation <orientation>: Sets the orientation of the display.
    • Orientation can be either Default, UpsideDown, Right or Left.
  • --fixedoutput <fixed output mode>: 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/ folder on how to use the library.

Dependencies

~10–21MB
~286K SLoC