| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Use the term "fade" instead of "transition" for the short (~5s)
fade between color temperatures. The term "transition" is now only
used for the transition phase between daytime and night.
The setting "transition" in the configuration file is now deprecated
and "fade" should be used instead.
|
| | | | |
|
|/ / /
| | |
| | |
| | | |
Use existing connection object when creating proxies.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add pipeutils.c with utility functions for working with pipes as
signals across threads. Using pipes for signals makes it easy for
the main thread to wait on (multiple) file descriptors with or
without a timeout.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Change location provider implementations so it is possible for
location providers to dynamically update the location. This
commit adds the interfaces and infrastructure in redshift.c
but none of the location provides are changed to become dynamic.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Although not named like modules, the BaseDirectory and
DesktopEntry are really submodules of xdg that need to be imported
for them to be available.
|
|\ \ \
| | | |
| | | | |
Add icon for Windows build
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Avoids warnings generated when a GtkDialog is used without a
parent window. Also adds fixes for #220 using a solution provided
by agnivade.
|
| | | | |
|
| | | | |
|
| | | | |
|
|/ / / |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
redshift.c: Use 6500K and 4500K by default
|
| |/ / |
|
|\ \ \
| |/ /
|/| | |
XRandR: Allow multiple but not all CRTCs to be redshifted
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously only one CRTC could be set in the configuration file for
redshifting when XRandR mechanism was being used. That is fine for
a setup with two displays but breaks when three or more displays
are in use and one of those shouldn't be redshifted (e.g. two
computer displays and one TV connected to the computer).
The config value 'crtc' for method xrandr can now be entered as
comma separated list of multiple CRTCs. All CRTCs in the list will
be redshifted while all those not in the list will not be touched.
|
|/ / |
|
|\ \
| | |
| | | |
add display of color temperature and period in the tooltip status icon
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Instead of calling sys.exit() the signal handlers now try to terminate
the child process. After the child exits, the process will be reaped by
the GLib callback which will call Gtk.main_quit() which will then quit
redshift-gtk. This ensures that the redshift process does not outlive
the redshift-gtk process.
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Signed-off-by: Mattias Andrée <maandree@operamail.com>
|
|\ \ \
| | | |
| | | | |
Remove trailing whitespaces
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | | |
Catch in the except block the case when the required version of
Appindicator3 is not available to also fallback in GtkStatusIcon widget.
|
| | |
| | |
| | |
| | |
| | | |
Avoid another GObject Introspection warning in redshift-gtk by providing
the required version of AppIndicator3 before import it.
|
|/ /
| |
| | |
This fixes a warning when starting redshift-gtk with gtk 3.18.
|
|\ \
| | |
| | | |
Fix clamp issues
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes #188
When I moved the macro definition below all of the includes, I got the
following compiler warning:
/usr/include/glib-2.0/glib/gmacros.h:246:0: note: this is the location
of the previous definition
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low))
? (low) : (x)))
So, that's the macro definition that was being used whenever "CLAMP" was
used. It's pretty obvious what went wrong.
|
|/
|
|
| |
Signed-off-by: Mattias Andrée <maandree@operamail.com>
|
|
|
|
|
| |
usleep() cannot sleep for more than 1000000 microseconds on certain
platforms. nanosleep() does not have this limitation.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change adds the preserve option to the quartz method which makes it
base the temperature adjustments on the existing gamma ramps when set. This
requires that the existing gamma ramps are saved at start-up which this
commit also adds.
One drawback is that the list of displays is enumerated at start-up now which
means that Redshift will likely not affect displays that are connected after
start-up. This could be fixed in the future by listening to reconfiguration
events.
|
| |
|
|
|
|
|
|
|
|
|
| |
This changes colorramp_fill() to base the ramp calculations on the
existing values in the supplied tables, instead of basing it on a pure
`i/size` value computed on the fly.
All gamma adjustment methods are changed to explicitly initialize the ramps
to the `i/size` value before calls to colorramp_fill().
|
|
|
|
|
| |
This checks whether the gamma values are within the bounds of
MIN_GAMMA and MAX_GAMMA.
|
|
|
|
|
|
|
| |
This changes the transition_levels_t to transition_scheme_t and
adds two fields day, night of type color_setting_t. This
encapsulates all the information needed to calculate the current
color setting from an elevation.
|
|
|
|
|
|
| |
Moves transition_low and transition_high from globals into a
struct transition_levels_t that is created in main and passed to
the relevant functions.
|
| |
|