1 unstable release
Uses new Rust 2024
| 0.1.1 | Jun 10, 2025 |
|---|
#7 in #control-command
31KB
316 lines
brightness-cli
A program to read and control device brightness.
Supported:
- Windows
- Linux
Command-Line Help for brightness-cli
This document contains the help content for the brightness-cli command-line program.
Command Overview:
brightness-cli↴brightness-cli completion↴brightness-cli set↴brightness-cli get↴brightness-cli list↴
brightness-cli
Read and control device brightness
Usage: brightness-cli <COMMAND>
Subcommands:
completion— Generate completions for a shellset— Set brightness of a deviceget— Get brightness of a devicelist— List each device and its brightness
brightness-cli completion
Generate completions for a shell
Usage: brightness-cli completion <SHELL>
Arguments:
-
<SHELL>— Shell to generation completions forPossible values:
bash,carapace,elvish,fig,fish,nushell,powershell,zsh
brightness-cli set
Set brightness of a device
Usage: brightness-cli set [OPTIONS] [ACTION]
Arguments:
-
<ACTION>— Modify the percentage of brightness- Increase: +5%
- Decrease: -5%
- Set to specific: 40%
- max or 100% sets to max brightness
- min or 0% sets to min brightness
Default value:
100%
Options:
--device <DEVICE>— Set brightness for this device (by default, sets the first device)-s,--silent— Silence output--json— Output JSON
brightness-cli get
Get brightness of a device
Usage: brightness-cli get [OPTIONS]
Options:
--device <DEVICE>— Get brightness of this device (by default, get the first device)-s,--silent— Silence output--json— Output JSON
brightness-cli list
List each device and its brightness
Usage: brightness-cli list [OPTIONS]
Options:
--json— Output JSON
Installation
Shell
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/nik-rev/brightness-cli/releases/latest/download/brightness-cli-installer.sh | sh
Homebrew
brew install nik-rev/tap/brightness-cli
PowerShell
powershell -ExecutionPolicy Bypass -c "irm https://github.com/nik-rev/brightness-cli/releases/latest/download/brightness-cli-installer.ps1 | iex"
Cargo
cargo install brightness-cli
Nix
nix profile install github:nik-rev/brightness-cli/main
Dependencies
~5–41MB
~584K SLoC