-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from FedeDP/devel
Devel
- Loading branch information
Showing
31 changed files
with
591 additions
and
938 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
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
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 |
---|---|---|
@@ -1,9 +1,33 @@ | ||
## 1.5 | ||
## 2.0 | ||
|
||
- [x] location_callback for weather module | ||
- [x] each location_callback should check if distance is > N meters/kilometers to avoid useless calls. | ||
- [x] Location module should expose a get_distance(old pos, new pos) function | ||
- [x] add a data struct location { double lat, double lon } and use that everywhere | ||
- [x] Check latitude/longitude values after loading them from opts/config | ||
- [x] update to new 1.6 clightd interface | ||
- [x] drop isinterface_enabled calls | ||
- [x] fix dimmer with set_backlight_level with percentage | ||
- [x] EXIT_FAILURE even when state.quit > ERR_QUIT (should never happen) | ||
- [x] location callback should check if new position is at least LOC_DISTANCE_THRS distant from last pos | ||
- [x] make clight work on desktop pc with webcam too (obviously through ddcutil)? -> add a setbrightnesspct_all() method to clightd that will set a pct for internal + external monitors | ||
- [x] add a math_utils.c source file with all math functions (eg get_distance, clamp...)? | ||
- [x] make backlight level change smoothly (#20) | ||
- [x] drop weather and networkmanager support | ||
- [x] update to new clightd interface -> brightness, brighntess smooth, dimmer, dimmer smooth | ||
- [x] better check for xauthority / xsession | ||
- [x] fix wayland? (check!) | ||
- [x] add a Clightd module that only depends on Bus module and will check if clightd is available (and properly checks its version) (FIX!!) | ||
- [x] intercept SIGSEGV and remove lock file | ||
- [x] make smooth_steps and smooth_timeouts for backlight/dimmer and gamma configurable! | ||
- [x] update readme | ||
- [x] make brightness module optional too | ||
- [x] automatically disable brightness module on PCs with no webcam | ||
- [x] force brightness module enabled in single capture mode | ||
- [x] don't run bus callbacks on disabled modules | ||
- [ ] NEW RELEASE! | ||
|
||
## Later/Ideas | ||
- [ ] subscribe to "interfaceEnabledChanged" signal from clightd (as soon as it is implemented in clightd) and do a capture as soon as interface became enabled (May be disable both dimmer and brightness while interface is disabled) | ||
## 2.1 | ||
- [ ] add a kde/gnome module to set a dark theme on sunrise/sunset (gnome: http://www.fandigital.com/2012/06/change-theme-command-line-gnome.html) | ||
- [ ] properly add a onBusCallFail callback to bus_args, with a default one like the current check_err function | ||
- [ ] add a small bus interface to query clight status/set new timeouts/make new fast capture ("-c" switch to follow this new api) |
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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
void set_brightness_self(void); | ||
void get_current_brightness(void); | ||
void set_backlight_level(int level); | ||
int is_interface_enabled(void); | ||
void set_backlight_level(const double pct, const int is_smooth, const double step, const int timeout); |
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 @@ | ||
void set_clightd_self(void); |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
#include "log.h" | ||
|
||
double get_distance(struct location loc1, struct location loc2); | ||
double degToRad(double angleDeg); | ||
double radToDeg(double angleRad); | ||
double compute_average(double *intensity, int num); | ||
void polynomialfit(enum ac_states s); | ||
double clamp(double value, double max, double min); | ||
int calculate_sunrise(const float lat, const float lng, time_t *tt, int tomorrow) ; | ||
int calculate_sunset(const float lat, const float lng, time_t *tt, int tomorrow); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.