https://github.com/codeniko/laptop-brightness
Quickly modify the brightness of laptop screens running Linux distributions.
https://github.com/codeniko/laptop-brightness
Last synced: 8 months ago
JSON representation
Quickly modify the brightness of laptop screens running Linux distributions.
- Host: GitHub
- URL: https://github.com/codeniko/laptop-brightness
- Owner: codeniko
- License: mit
- Created: 2015-01-11T20:26:14.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-16T01:20:15.000Z (over 11 years ago)
- Last Synced: 2025-01-21T00:43:48.794Z (over 1 year ago)
- Language: C
- Size: 406 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Laptop-Brightness
Quickly modify the brightness of laptop screens running Linux distributions. Developed for an HP Pavilion Dv7 laptop running Debian.
## Installation
It's installed in /usr/local/bin. Because the program modifies the "/sys/class/backlight/intel_backlight/brightness" file and thus requires requires root privileges, the setuid permission bit is set upon installation to avoid having to sudo everytime you change the brightness.
git clone https://github.com/codeniko/laptop-brightness.git
cd laptop-brightness
make && sudo make install
## Usage
brightness [1..10] # Change to selected brightness level, 10=brightest, 1=dimmest.
brightness 0,-1 # Sight-damaging brightness levels if laptop MUST survive.
brightness + # Increment brightness (+500 in the brightness file until maxed)
brightness - # Decrement brightness (-500 in the brightness file until low 500)
brightness # Toggle between levels 10 and 1.