Skip to content

LemonHeadOnGit/display.rust

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

display.rust

MIT License Continuous integration rust docs Crates.io Chocolatey

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

Usage

Commandline

After installation, the display.rust command will be available.

Use the following command to access the help:

displaydotrust --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.

About

A multiplatform library to retrieve display information on Windows, macOS, and Linux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%