Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tethik/backlight
Program to manipulate screen brightness on Linux using sysfs
https://github.com/tethik/backlight
linux linux-desktop-app
Last synced: 4 days ago
JSON representation
Program to manipulate screen brightness on Linux using sysfs
- Host: GitHub
- URL: https://github.com/tethik/backlight
- Owner: Tethik
- License: gpl-3.0
- Created: 2019-04-13T21:59:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-20T11:31:34.000Z (over 5 years ago)
- Last Synced: 2024-10-11T08:26:48.633Z (27 days ago)
- Topics: linux, linux-desktop-app
- Language: Go
- Size: 18.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# backlight
Program to manipulate screen brightness on Linux using sysfs.
```
backlight. Simple program to control your backlights.Usage:
backlight ls Lists all devices and their values
backlight set Sets the brightness of a device to a specific value
backlight dec Decreases the brightness of a device by a specific value
backlight inc Increases the brightness of a device by a specific value
backlight help Displays this help message :)
```## Install
For x64 you can download and install the released binary with the following script.
```bash
wget https://github.com/Tethik/backlight/releases/download/1.0.0/backlight.0-x64
chmod +x backlight.0-x64
sudo mv backlight.0-x64 /usr/local/bin/backlight
sudo setcap cap_dac_override+ep /usr/local/bin/backlight
```### Build from source
Requires that you have golang installed.
```
git clone https://github.com/Tethik/backlight
make
sudo make install
```_Why sudo?_ To allow the program access to sysfs from a normal user the install script sets `cap_dac_override`.
### i3 configuration
I originally built this for my own i3 setup. The following is the configuration I use to
bind the brightness keys on my laptop to run this backlight program.```
# Sreen brightness controls
bindsym XF86MonBrightnessUp exec backlight inc intel_backlight 50
bindsym XF86MonBrightnessDown exec backlight dec intel_backlight 50
```