#display #settings #command-line-tool #cli

bin+lib displayz

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

2 unstable releases

new 0.2.0 Mar 6, 2025
0.1.0 Jun 9, 2022

#320 in Configuration

Download history 105/week @ 2024-11-16 73/week @ 2024-11-23 96/week @ 2024-11-30 16/week @ 2024-12-07 22/week @ 2024-12-14 10/week @ 2024-12-21 18/week @ 2024-12-28 56/week @ 2025-01-04 82/week @ 2025-01-11 95/week @ 2025-01-18 26/week @ 2025-01-25 49/week @ 2025-02-01 19/week @ 2025-02-08 7/week @ 2025-02-15 25/week @ 2025-02-22 165/week @ 2025-03-01

231 downloads per month

MIT license

31KB
691 lines

displayz

MIT License Continuous Integration rust docs 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.
  • --frequency <frequency>: Sets the refresh rate of the display.

Rust Library

See the examples in the examples/ folder and the documentation on how to use the library.

Dependencies

~8–15MB
~192K SLoC