Commit Graph
100 Commits
Author SHA1 Message Date
Jon Lund Steffensen 04760afe31 Merge pull request #710 from hubvu/suspend-feature
Fix #386: added more suspend durations as requested
2019-03-04 08:40:16 -08:00
Jon Lund Steffensen eb1b106b53 Merge pull request #679 from jonls/ini-hash-comment
Fixes #578: Allow hash as comment character
2018-10-20 20:23:23 -07:00
Jon Lund Steffensen f7fbbb04c3 Fixes #578: Allow hash as comment character 2018-10-20 20:04:50 -07:00
Jon Lund Steffensen 915eb99877 Merge pull request #678 from jonls/contributing-docs
Fixes to documentation on contributing
2018-10-20 19:57:59 -07:00
Jon Lund Steffensen d1e95ac14b Fixes to documentation on contributing
Fixes #579
2018-10-20 19:42:10 -07:00
Jon Lund Steffensen dbd93e25ba Merge pull request #673 from clefebvre/symbolic-status-icons
Status icon: Prefer symbolic icons when available
2018-10-20 14:17:31 -07:00
Jon Lund Steffensen 4b048932b1 Merge pull request #661 from kakurasan/nls_config_h
Fix "Some translated strings are still in English" issue
2018-10-13 09:59:44 -07:00
Jon Lund Steffensen ca8362c19e Merge pull request #641 from jonls/delete-de-mo
Fix #609: Delete de.mo file
2018-08-12 14:55:03 -07:00
Jon Lund Steffensen 2b3460c1cb Merge pull request #648 from jonls/issue-templates
Add issue templates
2018-08-12 14:47:58 -07:00
Jon Lund Steffensen 07b4ef220c Merge pull request #649 from jonls/update-dot-files
Update dot files
2018-08-12 14:39:02 -07:00
Jon Lund Steffensen 799dfcb229 Merge pull request #634 from benvdh/master
Update rpm spec file to version 1.12
2018-08-12 14:27:31 -07:00
Jon Lund Steffensen a3c10e1b8e Fix #609: Delete de.mo file 2018-08-12 14:25:16 -07:00
Jon Lund Steffensen 5cd7b602e7 Add issue templates 2018-08-12 14:24:54 -07:00
Jon Lund Steffensen bbcfa3048b Add .editorconfig 2018-08-12 14:23:43 -07:00
Jon Lund Steffensen 60f45972a5 Update gitignore 2018-08-12 14:23:43 -07:00
Jon Lund Steffensen bfd9d984f3 Merge pull request #644 from kakurasan/travis_automake_mac
Travis: Fix automake on macOS
2018-08-12 14:11:47 -07:00
Jon Lund Steffensen 910c4c6aab Merge pull request #610 from kakurasan/xdg-spec-data
README, man, apparmor: Update configuration file path
2018-07-05 21:11:47 -07:00
Jon Lund Steffensen 01139a15bf Merge branch 'release-1.12' 2018-05-20 19:03:13 -07:00
Jon Lund Steffensen 6061bde1bf Update NEWS 2018-05-20 18:47:53 -07:00
Jon Lund Steffensen 7a263836d9 Bump version to 1.12 2018-05-20 18:20:10 -07:00
Jon Lund Steffensen 958b143ede Import translations from launchpad 2018-05-20 18:17:20 -07:00
Jon Lund Steffensen 2da3bf2680 Fix issue where quartz did not mark as unavailable 2018-05-20 17:55:45 -07:00
Jon Lund Steffensen 802607625e Merge pull request #608 from kakurasan/xdg-spec
Fix #606
2018-05-06 15:52:21 -07:00
Jon Lund Steffensen 36e7877b0f Merge pull request #600 from kakurasan/travis_python3_mac
Travis: Run "brew upgrade python" to install Python 3 on macOS
2018-04-26 09:51:34 -07:00
Jon Lund Steffensen 91e1d30a6f Merge pull request #550 from mwstobo/enable-disable-hooks
Fix #335: Set period to none when disabled
2017-12-12 20:39:37 -08:00
Jon Lund Steffensen b210813c7f Merge pull request #542 from jonls/options-refactor
options: Split up parse functions
2017-10-19 17:08:01 -07:00
Jon Lund Steffensen 8197f35943 options: Split parse functions 2017-10-19 15:52:16 -07:00
Jon Lund Steffensen d6b5fc1d1c Merge pull request #539 from jonls/update-po
Update translation files
2017-10-18 13:18:38 -07:00
Jon Lund Steffensen b60e0c985d Update translation files 2017-10-18 11:51:22 -07:00
Jon Lund Steffensen 05c4083df5 Merge pull request #538 from jonls/man-update
Improve man page
2017-10-17 21:25:58 -07:00
Jon Lund Steffensen 80485a8e9d Fix #448: Mention redshift-gtk in man page 2017-10-17 19:31:50 -07:00
Jon Lund Steffensen 6ffafed0a0 man: Improve font markup 2017-10-17 19:31:14 -07:00
Jon Lund Steffensen ad737285ca Merge pull request #537 from jonls/preserve-option
Preserve command-line option
2017-10-16 18:40:14 -07:00
Jon Lund Steffensen 228a4ec040 man: Document -P option 2017-10-13 19:21:48 -07:00
Jon Lund Steffensen e075444663 Change preserve option to command line switch
Changes each adjustment method to take a preserve parameter when
setting the temperature instead of parsing the preserve option
from the command line/configuration file. This helps resolve the
issues around #513:

- This allows the preserve option to be implemented as a
  command-line switch (-P). This switch _disables_ the preservation
  of existing gamma ramps. Having a command-line switch makes it
  easier to use directly with manual or one-shot mode.
- The preserve options is on by default, so continual mode as well
  as other modes will default to applying the color adjustment
  on top of the current gamma ramps.
- Preserve is always disabled in reset mode so resetting works
  as expected again.
2017-10-13 19:08:57 -07:00
Jon Lund Steffensen d6c6aa64d7 Merge pull request #535 from jonls/cleanup
Cleanup redshift.c + modules + options
2017-10-13 18:23:24 -07:00
Jon Lund Steffensen 55455f99d9 Add function for resetting color_setting_t 2017-10-13 18:12:44 -07:00
Jon Lund Steffensen 3e0fef4e8d Move options handling to separate file
Create options.c which contains functions for initializing and
parsing options from the command line and the configuration file.
Program options that were previously local variables in main() are
moved to the options_t struct.
2017-10-13 18:12:44 -07:00
Jon Lund Steffensen 1d29f92349 Move module structures out of headers 2017-10-13 18:12:43 -07:00
Jon Lund Steffensen b27acd6878 Allocate module data in init functions 2017-10-13 18:09:28 -07:00
Jon Lund Steffensen 6531b8c73d Move module struct definitions to separate files 2017-10-13 17:53:58 -07:00
Jon Lund Steffensen 54f8db6f76 Merge pull request #536 from jonls/gtk-help-args
Add help message to redshift-gtk
2017-10-13 17:11:30 -07:00
Jon Lund Steffensen baa5d6577d Merge pull request #432 from hanklank/master
Updated Swedish translation
2017-10-13 14:38:55 -07:00
Jon Lund Steffensen 0459d0c48a Merge pull request #534 from jonls/fix-quartz
quartz: Fix incorrect use of display identifier
2017-10-12 19:01:47 -07:00
Jon Lund Steffensen e2d1b5d9cd quartz: Fix incorrect use of display identifier
The quartz (macOS) adjustment method incorrectly used the display
index instead of the associated CGDirectDisplayID. Incidentally this
happened to work too but was incorrect.
2017-10-12 18:27:43 -07:00
Jon Lund Steffensen f4ece7c8c1 Merge pull request #533 from jonls/fix-error-handling
Fix bug where error code was not handled
2017-10-12 15:47:22 -07:00
Jon Lund Steffensen 86bb509eca Fix bug where error code was not handled 2017-10-12 14:01:28 -07:00
Jon Lund Steffensen f0ac5484c1 Merge pull request #532 from jonls/fix-time-based
Fix missing checks and verbose output
2017-10-12 13:28:57 -07:00
Jon Lund Steffensen 64600ae55d Fix missing checks and verbose output
Rearrange checks and verbose output in main() to bring back checks
that were accidentally left out when time-based adjustments were
enabled. This includes the output indicating the daytime/night
temperatures and the check that the temperatures are valid.
2017-10-12 12:36:39 -07:00
Jon Lund Steffensen 6c678c955c Merge pull request #531 from jonls/time-adjustment-docs
Add documentation for time-based adjustment
2017-10-11 18:21:21 -07:00
Jon Lund Steffensen bdd0179967 Merge pull request #530 from jonls/ci-apparmor
Travis: Enable AppArmor install
2017-10-11 18:20:57 -07:00
Jon Lund Steffensen 9b8b612072 Add dawn-time/dusk-time to sample config 2017-10-11 17:53:05 -07:00
Jon Lund Steffensen 4a182bbef1 man: Add documentation for dawn-time/dusk-time 2017-10-11 17:52:45 -07:00
Jon Lund Steffensen cdf8317682 Travis: Enable AppArmor install 2017-10-11 17:22:56 -07:00
Jon Lund Steffensen 76d65bebfa Merge pull request #529 from jonls/time-based-adjustment
Time-based adjustment
2017-10-11 17:20:32 -07:00
Jon Lund Steffensen bf72e7f944 Check time-based configuration on CI 2017-10-11 14:45:59 -07:00
Jon Lund Steffensen 1e425c66f5 Time-based configuration
Allow setting the time of the dawn and dusk transition periods
directly in the configuration file. If these are specified, the
location provider is not needed and is therefore not initialized.

Based on patch by Martin Nicolay <edelschimmel1@gmx.de>.
2017-10-11 14:45:59 -07:00
Jon Lund Steffensen 4ed2488e08 Merge pull request #528 from CameronNemo/apparmor
Add AppArmor profile
2017-10-11 14:41:59 -07:00
Jon Lund Steffensen 342a5e02b7 Merge pull request #527 from jonls/fix-osx-build
Travis CI: Run brew update on macOS to fix build failure
2017-10-10 21:03:43 -07:00
Jon Lund Steffensen a27cb72975 Travis CI: Run brew update on macOS to fix build failure 2017-10-10 20:49:10 -07:00
Jon Lund Steffensen ad7444e337 Merge pull request #524 from dev7355608/w32gdi
Fix #523: Retry SetDeviceGammaRamp before giving up
2017-10-10 19:19:33 -07:00
Jon Lund Steffensen 55c3c1fbeb Merge pull request #511 from jonls/preserve-by-default
Preserve gamma ramps by default
2017-08-31 14:38:58 -07:00
Jon Lund Steffensen d0135df859 w32gdi: Enable preserve by default 2017-08-31 01:54:09 -07:00
Jon Lund Steffensen 989fe52176 vidmode: Enable preserve by default 2017-08-31 01:53:59 -07:00
Jon Lund Steffensen dcafe503d3 randr: Enable preserve by default 2017-08-31 01:53:49 -07:00
Jon Lund Steffensen ce430bb52e quartz: Enable preserve by default 2017-08-31 01:53:39 -07:00
Jon Lund Steffensen 192544b488 Merge pull request #510 from jonls/fix-config
Fix #509: Set screen 0 in sample config
2017-08-30 22:29:40 -07:00
Jon Lund Steffensen 63d69847e6 Fix #509: Set screen 0 in sample config 2017-08-30 21:31:23 -07:00
Jon Lund Steffensen 7b6a27e3c1 Merge pull request #508 from jonls/improve-fade
redshift: Improve fade implementation
2017-08-30 20:27:23 -07:00
Jon Lund Steffensen d8f04b9020 redshift: Improve fade implementation
Simplify implementation of fades in continual mode. A fade is now
applied anytime the change in color temperature, brightness or
gamma is greater than a preset threshold. This means that a fade
is applied if the location provider suddenly updates to a new
location or if the currently time suddenly jumps e.g. after waking
up the computer from sleep. An easing function is applied to the
fade to make it more pleasant.
2017-08-30 17:12:56 -07:00
Jon Lund Steffensen a33d5e237e Merge pull request #507 from jonls/fade-term
Use the term "fade" instead of "transition" for the short (~5s) fade between color temperatures
2017-08-30 17:04:22 -07:00
Jon Lund Steffensen 2ecf92c1b2 Merge pull request #504 from jonls/geoclue-update
GeoClue: better error message when access is denied
2017-08-30 15:35:39 -07:00
Jon Lund Steffensen 910750e013 Update man page 2017-08-30 15:30:13 -07:00
Jon Lund Steffensen c5a9ea7059 Update sample config file 2017-08-30 15:27:07 -07:00
Jon Lund Steffensen 8165badbc2 Change term transition to fade
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.
2017-08-30 15:21:43 -07:00
Jon Lund Steffensen 3000d0ad64 README: Add FAQ entry on GeoClue access denied 2017-08-19 17:52:47 -07:00
Jon Lund Steffensen c4e0f3aa5a geoclue2: Show explanation of access denied error 2017-08-19 17:39:05 -07:00
Jon Lund Steffensen 52d9a73d36 geoclue2: Use existing connection object
Use existing connection object when creating proxies.
2017-08-19 17:37:49 -07:00
Jon Lund Steffensen 71e1de2d33 Merge pull request #500 from jonls/continuous-location
Continuous location updates
2017-08-19 11:56:11 -07:00
Jon Lund Steffensen c129e59b3a Appveyor, Travis: Test run redshift after build 2017-08-17 20:24:32 -07:00
Jon Lund Steffensen 00e2d538e8 geoclue2: Update continuously 2017-08-17 20:24:32 -07:00
Jon Lund Steffensen df10508e30 corelocation: Update continuously 2017-08-17 20:24:32 -07:00
Jon Lund Steffensen ce037545dd pipeutils: Add utils for pipe signals
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.
2017-08-17 19:52:29 -07:00
Jon Lund Steffensen 153dec0e21 Change location providers to allow updates
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.
2017-08-17 19:52:29 -07:00
Jon Lund Steffensen 25451b14d0 Merge pull request #498 from jonls/osx-travis
Enable Travis CI on macOS
2017-08-16 23:47:56 -07:00
Jon Lund Steffensen 7037c781e0 Enable Travis CI on macOS 2017-08-16 23:35:28 -07:00
Jon Lund Steffensen 545bb59149 Merge pull request #497 from jonls/remove-geoclue-1
Remove deprecated GeoClue 1 location provider
2017-08-16 20:57:25 -07:00
Jon Lund Steffensen 4adb93a448 Remove deprecated geoclue 1 location provider 2017-08-16 20:46:53 -07:00
Jon Lund Steffensen ee4ce47d1b Merge pull request #494 from jonls/contributing
Rename HACKING.md to CONTRIBUTING.md
2017-08-14 15:31:52 -07:00
Jon Lund Steffensen 3d2e9b72d0 Rename HACKING.md to CONTRIBUTING.md 2017-08-14 15:10:12 -07:00
Jon Lund Steffensen ed26b6ddfb Merge pull request #493 from jonls/fix-xdg
Fix #492: Correctly import xdg modules
2017-08-07 12:32:28 -07:00
Jon Lund Steffensen 74759e8dfb Fix #492: Correctly import xdg modules
Although not named like modules, the BaseDirectory and
DesktopEntry are really submodules of xdg that need to be imported
for them to be available.
2017-08-07 12:20:49 -07:00
Jon Lund Steffensen 329873efd1 Merge pull request #490 from jonls/windows-resources
Add icon for Windows build
2017-08-01 00:54:21 -07:00
Jon Lund Steffensen ee14db4a7f Merge pull request #491 from jonls/python-controller
Updates to redshift-gtk
2017-07-30 20:41:23 -07:00
Jon Lund Steffensen a39e92cc4b statusicon: Use GtkWindow to avoid warnings
Avoids warnings generated when a GtkDialog is used without a
parent window. Also adds fixes for #220 using a solution provided
by agnivade.
2017-07-30 20:21:52 -07:00
Jon Lund Steffensen d84e7b1b3f statusicon: Only add autostart control when supported 2017-07-30 20:21:52 -07:00
Jon Lund Steffensen 7e9886cd68 controller: Emit signal when stopped 2017-07-30 20:21:52 -07:00
Jon Lund Steffensen f3a8ef54c4 utils: Make xdg module optional 2017-07-30 20:14:40 -07:00
Jon Lund Steffensen 3ea717011e Move RedshiftController to controller.py 2017-07-30 18:31:12 -07:00
Jon Lund Steffensen 4e6f2fa7ab Add Windows resources 2017-07-30 15:39:08 -07:00