2020-10-10 20:32:39 +00:00
|
|
|
# brightness
|
|
|
|
[![CI status](https://gitlab.com/tslocum/brightness/badges/master/pipeline.svg)](https://gitlab.com/tslocum/brightness/commits/master)
|
|
|
|
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
|
|
|
|
|
2020-10-13 19:59:39 +00:00
|
|
|
Backlight utility for Linux
|
|
|
|
|
|
|
|
## Screenshot
|
|
|
|
|
|
|
|
[![Screenshot](https://gitlab.com/tslocum/brightness/-/raw/master/screenshot.png)](https://gitlab.com/tslocum/brightness/-/raw/master/screenshot.png)
|
2020-10-10 20:32:39 +00:00
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
```bash
|
|
|
|
go get gitlab.com/tslocum/brightness
|
2020-10-14 02:18:45 +00:00
|
|
|
cp ~/go/bin/brightness /sbin/brightness
|
|
|
|
sudo visudo
|
2020-10-10 20:32:39 +00:00
|
|
|
```
|
|
|
|
|
2020-10-14 02:18:45 +00:00
|
|
|
Add the following line to your sudoers file to use `brightness` without entering a password:
|
|
|
|
|
|
|
|
```
|
|
|
|
%wheel ALL=(ALL) NOPASSWD: /sbin/brightness
|
|
|
|
```
|
|
|
|
|
|
|
|
You may need to modify `%wheel` to match the superuser group of your system.
|
|
|
|
|
2020-10-10 20:32:39 +00:00
|
|
|
## Usage
|
|
|
|
|
2020-10-14 02:18:45 +00:00
|
|
|
`sudo` is required to modify brightness. It is omitted below for clarity.
|
|
|
|
|
2020-10-10 20:32:39 +00:00
|
|
|
### Set
|
|
|
|
|
|
|
|
```bash
|
|
|
|
brightness 60
|
|
|
|
brightness 80%
|
|
|
|
```
|
|
|
|
|
|
|
|
### Decrease
|
|
|
|
|
|
|
|
```bash
|
|
|
|
brightness -10
|
|
|
|
brightness -20%
|
|
|
|
```
|
|
|
|
|
|
|
|
### Increase
|
|
|
|
|
|
|
|
```bash
|
|
|
|
brightness 10
|
|
|
|
brightness +20%
|
|
|
|
```
|
|
|
|
|
2020-10-12 00:29:27 +00:00
|
|
|
### Interactive
|
|
|
|
|
|
|
|
```bash
|
|
|
|
brightness -i
|
|
|
|
```
|
|
|
|
|
2020-10-13 19:59:39 +00:00
|
|
|
Supports input via Vim keybindings, arrow keys and mouse.
|
|
|
|
|
2020-10-10 20:32:39 +00:00
|
|
|
## Support
|
|
|
|
|
|
|
|
Please share issues and suggestions [here](https://gitlab.com/tslocum/brightness/issues).
|