Skip to content

🎨 Display Tool (dist) is a simple tool to control monitor color, brightness, power-off, etc. on Windows systems.

License

Notifications You must be signed in to change notification settings

c-error/dis-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Display Tool

🎨 Display Tool (dist) is a simple tool to control monitor color, brightness, power-off, etc. on Windows systems.

Features:

  • Color – adjust monitor RGB color % with custom color %.
  • Brightness – adjust monitor brightness % with custom brightness %.
  • Night-Light – preset RGB configuration for night-light mode.
  • Power-Off – turn off the display using a simple CLI.

Usage:

  • Run:
    > dist.exe help                 # print help
    > dist.exe off                  # turn off display
    > dist.exe nit                  # toggle night mode
    > dist.exe rst                  # reset color to default
    > dist.exe rgb 85 100 100       # adjust display color within 0-100% range
    > dist.exe brit 55              # adjust display brightness within 0-100% range
    > dist.exe setn 100 55 10       # set night light color within 0-100% range
    > dist.exe setd 100 100 100     # set default color within 0-100% range
    

Build:

  • Install Dependencies:

    • Download and install MSYS2.
    • Open the mingw64.exe shell (from the MSYS2 Start Menu).
    • Run the following commands:
      $ pacman -Syu        # Update system packages (MSYS2 may restart)
      $ pacman -Syu        # Run again after restart
      $ pacman -S --needed base-devel mingw-w64-x86_64-toolchain
  • Set Environment Variables:

    • Open the Environment Variables:
      > rundll32.exe sysdm.cpl,EditEnvironmentVariables   # run in Command Prompt
    • Add the following paths to your Path variable:
      C:\msys64\mingw64\bin\
      C:\msys64\usr\bin\
      
  • Verify Installation:

    • Run these commands to confirm:
      > gcc --version
      > g++ --version
      
    • If you see version output, your installation was successful πŸ‘
  • Build the Project:

    • Just run build.bat
    • The file cal.exe will appear inside the Source folder.

Project Structure:

The project has the following structure:

.
β”‚
β”œβ”€β”€ build.bat
β”œβ”€β”€ main.c
β”œβ”€β”€ icon.ico
β”œβ”€β”€ icon.rc
β”œβ”€β”€ LICENSE
└── README.md

Contributing:

Feel free to contribute to this project by submitting pull requests or reporting issues. Your contributions are greatly appreciated!

License:

This project is licensed under the MIT License.

πŸ˜„ Happy coding!

About

🎨 Display Tool (dist) is a simple tool to control monitor color, brightness, power-off, etc. on Windows systems.

Topics

Resources

License

Stars

Watchers

Forks