Age | Commit message (Collapse) | Author |
|
This includes toggle support and the duration simplification (removing
step and rate settings).
|
|
|
|
This adds the -t,--toggle switch, which will toggle brightness between
the current set value, 0, and back. Note that this writes a state file
to /tmp/luminous.state to track the the original brightness when dimming
to nothing.
|
|
|
|
This replaces the rate and step configuration swith the single duration
configuration. This automatically calculates step size by dividing max
brightness into intervals of 1/300th. On systems where this operation
yields a less than 1 number, 1 is assumed.
This also removes the rate configuration by automatically setting it to
the duration divided by the step count (step count being step size
divided into distance).
|
|
|
|
|
|
This will prevent duplicate luminous processes from running
simultaneously, which causes strange blipping artifacts.
|
|
|
|
|
|
|
|
This elinimates the need for a `fadeup` and `fadedown` function, which
required a significant amount of duplicate code.
These functions are now superceeded by the `fade` function, which
determines direction by the direction of variance between current level
and destination level. A step count is calculated and once reduced to
zero, the loop exits without needing to constantly compare brightness
levels.
This also cleans up the brightness writing process by checking if
opening occurred successfully once, and then flushing the buffer after
write, rather than opening and closing the file within the loop to flush
the write buffer.
|
|
Initial commit at version 1.1.0-rc1. This adds support for the
-V,--version switches to print current program version to stdout.
|
|
|
|
Now we check the config path (/etc/luminous.conf) for a config file. If
one is present, its contents are parsed and loaded into the properties
object. This occurs before parsing command line arguments, so all config
values can be overridden by the user at runtime.
The config file currently supports "level", "rate", and "step" values.
It is delimited by the '=' char and can handle any spacing between key,
delimiter, and value.
We also handle no config file being present as well as no command line
arguments being specified by using sane defaults hardcoded into the
program.
Added props constructor to ensure state of a freshly allocated props
struct.
|
|
Config code supports loading of a specified configuration file,
delimited by the '=' character. Code dynamically allocates memory in
heap and thus the config_free function must be called when done with the
config object.
This adds the constructor, load, getter, dump, and descructor functions
for the config struct.
This code passes valgrind tests with no memory leaks (assuming
the config_free destructor is called).
|
|
|
|
Ignore any binary files matching obj/*.o and the compiled output of
make.
|
|
|
|
We now detect permission denied errors when trying to write to the
brightness file. Any other problems still return a generic error
message.
|
|
|
|
Now the init script is deployed on make install.
Also fixed DESTDIR and added BINDIR variable.
|
|
This script just sets the permissions on the brightness file so it is
writable by all users on the system. This allows users to run luminous
without the need to be root.
On start, this script sets brightness to 666. On stop, sets brightness
file permissions to 644.
|
|
Includes Makefile and LICENSE text.
|