A program to read and control device brightness.
Supported:
- Windows
- Linux
Increase brightness by 10%, e.g. from 70% to 80%:
brightness-cli set +10%
Decrease brightness by 10%, e.g. from 70% to 60%:
brightness-cli set -10%
Set brightness to 40%, e.g. from 80% to 40%:
brightness-cli set 40%
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
↴
Read and control device brightness
Usage: brightness-cli <COMMAND>
completion
— Generate completions for a shellset
— Set brightness of a deviceget
— Get brightness of a devicelist
— List each device and its brightness
Generate completions for a shell
Usage: brightness-cli completion <SHELL>
-
<SHELL>
— Shell to generation completions forPossible values:
bash
,carapace
,elvish
,fig
,fish
,nushell
,powershell
,zsh
Set brightness of a device
Usage: brightness-cli set [OPTIONS] [ACTION]
-
<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%
--device <DEVICE>
— Set brightness for this device (by default, sets the first device)-s
,--silent
— Silence output--json
— Output JSON
Get brightness of a device
Usage: brightness-cli get [OPTIONS]
--device <DEVICE>
— Get brightness of this device (by default, get the first device)-s
,--silent
— Silence output--json
— Output JSON
List each device and its brightness
Usage: brightness-cli list [OPTIONS]
--json
— Output JSON
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/nik-rev/brightness-cli/releases/latest/download/brightness-cli-installer.sh | sh
brew install nik-rev/tap/brightness-cli
powershell -ExecutionPolicy Bypass -c "irm https://github.com/nik-rev/brightness-cli/releases/latest/download/brightness-cli-installer.ps1 | iex"
cargo install brightness-cli
nix profile install github:nik-rev/brightness-cli/main