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

bin+lib displayz

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

2 unstable releases

Uses new Rust 2024

0.2.0 Mar 6, 2025
0.1.0 Jun 9, 2022

#260 in Configuration

Download history 18/week @ 2024-12-27 24/week @ 2025-01-03 103/week @ 2025-01-10 101/week @ 2025-01-17 30/week @ 2025-01-24 35/week @ 2025-01-31 34/week @ 2025-02-07 5/week @ 2025-02-14 24/week @ 2025-02-21 153/week @ 2025-02-28 214/week @ 2025-03-07 97/week @ 2025-03-14 75/week @ 2025-03-21 83/week @ 2025-03-28 44/week @ 2025-04-04 63/week @ 2025-04-11

275 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
~191K SLoC