summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-22Release version 1.3HEADmasterAaron Ball
This includes toggle support and the duration simplification (removing step and rate settings).
2020-07-22Merge branch 'support_toggle'Aaron Ball
2020-07-22Add toggle supportAaron Ball
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.
2020-07-22Merge branch 'support_duration'Aaron Ball
2020-07-22Replace support for step/rate with durationsupport_durationAaron Ball
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).
2020-03-21Increase version from 1.1-rc2 to 1.2v1.2Aaron Ball
2020-03-21Add compile date to version outputAaron Ball
2020-03-21Add file locking supportAaron Ball
This will prevent duplicate luminous processes from running simultaneously, which causes strange blipping artifacts.
2019-10-28Version from 1.1.0-rc1 to 1.1.0-rc2v1.1-rc2Aaron Ball
2019-10-28Merge branch 'fade-refactor'Aaron Ball
2019-10-28Merge branch 'version'Aaron Ball
2019-10-28Implement simpler fading processAaron Ball
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.
2019-10-28Add version supportAaron Ball
Initial commit at version 1.1.0-rc1. This adds support for the -V,--version switches to print current program version to stdout.
2017-12-31Merge branch 'config'v1.1-rc1Aaron Ball
2017-12-31Integrated new config code into mainAaron Ball
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.
2017-12-31Initial commit of config codeAaron Ball
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).
2017-12-31Merge branch 'gitignore'Aaron Ball
2017-12-31Added gitignoreAaron Ball
Ignore any binary files matching obj/*.o and the compiled output of make.
2017-12-24Merge branch 'errno'v1.0Aaron Ball
2017-12-24Added errno support for better error messagesAaron Ball
We now detect permission denied errors when trying to write to the brightness file. Any other problems still return a generic error message.
2017-12-24Merge branch 'init'Aaron Ball
2017-12-24Updated makefile for init scriptAaron Ball
Now the init script is deployed on make install. Also fixed DESTDIR and added BINDIR variable.
2017-12-24Initial commit of init scriptAaron Ball
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.
2017-12-23Initial commit of luminous sourceAaron Ball
Includes Makefile and LICENSE text.

Generated by cgit