Code Monkey home page Code Monkey logo

monitor-control's Introduction

A simple tool suitable for adjusting external monitor's brightness.

Much faster than ddcutil, still faster than ddcset which enumerates all monitors. And it matches monitor by the output name you see from xrandr / wayland-info output.

To install, install rust and run cargo build --release and find the binary in target/release/.

Usage:

monitor-control 0.2.0
lilydjwg <[email protected]>
The fastest way to get / set DDC values for a monitor

USAGE:
    monitor-control <OUTPUT_NAME> <FEATURE_CODE> [FEATURE_VALUE]

ARGS:
    <OUTPUT_NAME>      output name such as DP-1
    <FEATURE_CODE>     feature code in decimal or 0xFF or FFh format
    <FEATURE_VALUE>    value to be set; when not present show current value

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

E.g.

# get current and max brightness value
monitor-control DP-2 16
# set brightness to 50
monitor-control DP-2 16 50

Scripts to determine which monitor to adjust and show indicators like wob are left to other projects.

monitor-control's People

Contributors

lilydjwg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ohmcfxg

monitor-control's Issues

get_i2c_dev没能正确获取i2c_name

thread 'main' panicked at 'called Option::unwrap() on a None value', src/main.rs:37:7

❯ ls --tree /sys/class/drm/card0-HDMI-A-1/
 card0-HDMI-A-1
├──  ddc ⇒ ../../../i2c-1
├──  device ⇒ ../../card0
├──  dpms
├──  edid
├──  enabled
├──  modes
├──  power
│   ├──  async
│   ├──  autosuspend_delay_ms
│   ├──  control
│   ├──  runtime_active_kids
│   ├──  runtime_active_time
│   ├──  runtime_enabled
│   ├──  runtime_status
│   ├──  runtime_suspended_time
│   └──  runtime_usage
├──  status
├──  subsystem ⇒ ../../../../../../../class/drm
└──  uevent

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.