Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a86b3b6
commit 58e6560
Showing
5 changed files
with
104 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CC = clang | ||
CFLAGS ?= -g -ggdb -O3 -fPIE -pie -flto -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=1 -Weverything -Werror -std=c11 -fsanitize=undefined -fsanitize-trap=undefined -Wl,-z,relro,-z,now | ||
VER = v0-`git rev-list --count HEAD` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
project = 'enlighten' | ||
master_doc = 'enlighten' | ||
source_suffix = '.rst' | ||
|
||
show_authors = False | ||
today_fmt = '%d %b %Y' | ||
|
||
# One entry per manual page. List of tuples | ||
# (source start file, name, description, authors, manual section). | ||
man_pages = [ | ||
('enlighten', 'enlighten', 'A simple command-line tool to manage sysfs-exposed backlight devices', [], 1) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
enlighten | ||
========= | ||
|
||
Synopsis | ||
-------- | ||
|
||
**enlighten** [ help | list | [+-]<#>[%] ] | ||
|
||
Description | ||
----------- | ||
|
||
:program:`enlighten` is a command-line tool to manage sysfs-exposed backlights | ||
|
||
Options | ||
------- | ||
|
||
<no argument> | ||
Display current brightness information (formatted: ``cur / max (perc)``) | ||
|
||
help | ||
Print help summary and exit. | ||
|
||
list | ||
Print a list of known backlight device names. | ||
|
||
``[+-]<#>[%]`` | ||
Adjust the current brightness to ``#``. | ||
If a sign (``+`` or ``-``) is specified, adjust relative to the current brightness. | ||
If ``%`` is specifiec, treat ``#`` as a percent of the maximum. | ||
|
||
Environment Variables | ||
--------------------- | ||
|
||
:program:`enlighten` recognizes three environment variables for runtime configuration: | ||
|
||
BACKLIGHT_DEVICE | ||
Holds the name of the device to query/adjust. | ||
|
||
BACKLIGHT_THRESHOLD_MIN | ||
Holds a value of the form ``<#>[%]`` that represents a saturating minimum brightness. | ||
If the user-specified value would change the backlight's brightness to be less than this minimum, the brightness will be set to this minimum instead. | ||
If not specified, defaults to ``0``. | ||
|
||
BACKLIGHT_THRESHOLD_MAX | ||
Holds a value of the form ``<#>[%]`` that represents a saturating maximum brightness. | ||
If the user-specified value would change the backlight's brightness to be greater than this maximum, the brightness will be set to this maximum instead. | ||
If not specified, defaults to "100%". | ||
|
||
Examples | ||
-------- | ||
|
||
enlighten h | ||
print the help summary. | ||
|
||
enlighten l | ||
print a list of known backlight device names. | ||
|
||
enlighten | ||
print the current brightness information. | ||
|
||
enlighten +25% | ||
increase the brightness by 25 percent of the maximum. | ||
|
||
enlighten 75% | ||
set the brightness to 75 percent of the maximum. | ||
|
||
Bugs | ||
---- | ||
|
||
Report bugs for enlighten to https://github.com/HalosGhost/enlighten/issues |