Skip to content

TinkoLiu/DDCCli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DDCCli

A tool for control monitor from the command line on M2 macs.

Mainly made for myself using with Stream Deck and shell scripts, so it's not very user friendly but enough for use.

Compability

Only tested on M2 mac mini with DP connections directly to the monitor.

Use it on your own risk.

Usage

$ ./ddccli
OVERVIEW: A tool for control monitors via DDC/CI on M2 mac.

USAGE: ddc-cli [--verbose] <subcommand>

OPTIONS:
  -h, --help              Show help information.

SUBCOMMANDS:
  list                    List all monitors
  get                     Get VCP value from a monitor
  set                     Set VCP value to a monitor

  See 'ddc-cli help <subcommand>' for detailed help.

No predefined VCP code like brightness or contrast provided, accept raw VCP code only.

VCP Code and value only accepts decimal number.

No monitor compability check. If not working on your monitor, try Better Display or Lunar for DDC/CI hardware support check.

Example

# List all monitors
$ ./ddccli list
Found 2 monitor(s)
#0 Name: DELL U2722D (Vendor: 10AC, Model: 422D)
# Get brightness of monitor 0
$ ./ddccli get -d 0 --vcp 16
75
# Set brightness of monitor 0 to 75
$ ./ddccli set -d 0 --vcp 16 --value 75
true

Credits

MonitorControl - MIT License

License

WTFPL

About

A tool for control monitor from the command line on M2 macs.

Topics

Resources

License

Stars

Watchers

Forks