https://github.com/baskerville/backlight
Get and set the backlight brightness
https://github.com/baskerville/backlight
Last synced: about 1 year ago
JSON representation
Get and set the backlight brightness
- Host: GitHub
- URL: https://github.com/baskerville/backlight
- Owner: baskerville
- License: unlicense
- Created: 2012-12-29T19:43:18.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T13:56:48.000Z (almost 9 years ago)
- Last Synced: 2025-07-04T05:37:20.404Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 9.77 KB
- Stars: 15
- Watchers: 1
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NAME
*backlight* — get and set the backlight brightness.
# SYNOPSIS
backlight COMMAND
backlight [+|-]VALUE[%]
# DESCRIPTION
*backlight* lets you adjust the brightness of your display through the *Linux* *sysfs*.
# COMMANDS
- `current` — Shows the current brightness value.
- `maximum` — Shows the maximum brightness value that can be set.
Command names can be truncated if there's no ambiguity regarding their explicit counterpart.
A command consisting of a number, optionally followed by a percent sign, sets the brightness. If the number is prefixed by a plus or minus sign, the value is relative to the current brightness.
# EXAMPLES
This will output the current brightness level as percentage:
perl -e 'print int(`backlight c` * 100 / `backlight m` + 0.5)'
This sxhkd configuration snippet will bind the brightness function keys (mostly found on laptops) to *backlight*:
XF86MonBrightness{Up,Down}
backlight {+,-}5%