-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1b81b83
Showing
15 changed files
with
1,059 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
Version 2, December 2004 | ||
|
||
Copyright (C) 2004 Sam Hocevar <[email protected]> | ||
|
||
Everyone is permitted to copy and distribute verbatim or modified | ||
copies of this license document, and changing it is allowed as long | ||
as the name is changed. | ||
|
||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
|
||
0. You just DO WHAT THE FUCK YOU WANT TO. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# 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](https://github.com/waydabber/BetterDisplay) or [Lunar](https://github.com/alin23/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](https://github.com/MonitorControl/MonitorControl/pull/1404/commits/757ba4af65a5556a6e7d973a3e32dd5f3b3637aa) - MIT License | ||
|
||
## License | ||
WTFPL |
Oops, something went wrong.