Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
TinkoLiu committed Aug 7, 2023
0 parents commit 1b81b83
Show file tree
Hide file tree
Showing 15 changed files with 1,059 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
14 changes: 14 additions & 0 deletions LICENSE
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.

59 changes: 59 additions & 0 deletions README.md
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
Loading

0 comments on commit 1b81b83

Please sign in to comment.