From 100b40a36f86952b643876f508f8b3816401d99b Mon Sep 17 00:00:00 2001 From: pablofsf Date: Wed, 21 Mar 2018 02:11:21 +0100 Subject: [PATCH 1/3] Install initial configuration file --- helpers/make-redshift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/helpers/make-redshift b/helpers/make-redshift index 91f7f2f..0916a50 100644 --- a/helpers/make-redshift +++ b/helpers/make-redshift @@ -24,6 +24,15 @@ VERSION=1 sed 's/enable-geoclue2/disable-geoclue2/' -i debian/rules sed '/geoclue/d' -i debian/control +if [ -f debian/example-redshift.conf ] +then + cp debian/example-redshift.conf debian/redshift.conf + echo "debian/redshift.conf /etc" >> debian/redshift.install +else + echo "Error, example configuration file not found" + exit +fi + changelog "Disabled geoclue" compile From a3ff843919ae08bdbe091fe3a6a08ab480d575c4 Mon Sep 17 00:00:00 2001 From: pablofsf Date: Sun, 1 Apr 2018 01:28:41 +0200 Subject: [PATCH 2/3] redshift: added custom conf file, manual default --- helpers/make-redshift | 43 +++++++++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/helpers/make-redshift b/helpers/make-redshift index 0916a50..66c84ae 100644 --- a/helpers/make-redshift +++ b/helpers/make-redshift @@ -1,6 +1,7 @@ #!/bin/sh # # Copyright (C) 2018 Ruben Rodriguez +# Copyright (C) 2018 Pablo Correa Gómez # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,22 +18,40 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=1 +VERSION=2 . ./config -sed 's/enable-geoclue2/disable-geoclue2/' -i debian/rules -sed '/geoclue/d' -i debian/control +sed 's|can optionally be|is installed in /etc and can optionally be|1' -i debian/redshift.5 -if [ -f debian/example-redshift.conf ] -then - cp debian/example-redshift.conf debian/redshift.conf - echo "debian/redshift.conf /etc" >> debian/redshift.install -else - echo "Error, example configuration file not found" - exit -fi +cat << EOF > debian/redshift.conf +; Global settings +[redshift] +temp-day=5700 +temp-night=3500 +transition=1 +gamma=1:1:1 -changelog "Disabled geoclue" +; WARNING: Changing provider to geoclue2 will set lat and lon +; automatically, but it will trigger background internet connections +location-provider=manual +; location-provider=geoclue2 +adjustment-method=vidmode + +; The location provider and adjustment method settings +; are in their own sections. +[manual] +lat=55.7 +lon=13.2 + +; Numbering starts from 0, and refers to screen number, +; so this is actually the first screen. +[vidmode] +screen=0 + +EOF +echo "debian/redshift.conf /etc" >> debian/redshift.install + +changelog "Added default manual configuration" compile From 11109e5fade59e1c3f02fa94677fc8424c6783af Mon Sep 17 00:00:00 2001 From: pablofsf Date: Fri, 27 Apr 2018 18:09:54 +0200 Subject: [PATCH 3/3] Set default lat/lon to 0.0/0.0 --- helpers/make-redshift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/make-redshift b/helpers/make-redshift index 66c84ae..fe92295 100644 --- a/helpers/make-redshift +++ b/helpers/make-redshift @@ -41,8 +41,8 @@ adjustment-method=vidmode ; The location provider and adjustment method settings ; are in their own sections. [manual] -lat=55.7 -lon=13.2 +lat=0.0 +lon=0.0 ; Numbering starts from 0, and refers to screen number, ; so this is actually the first screen.