Merge branch 'redshift-add-config' into 'flidas'
make-redshift: Add custom configuration file Currently redshift refuses to start due to latitude and longitude not being set. A configuration file is needed. Geoclue can be enabled, even if it is not the default, informing users that it can make background connections See merge request !195
This commit is contained in:
commit
dac0e3b8cd
1 changed files with 32 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright (C) 2018 Ruben Rodriguez <ruben@trisquel.info>
|
# Copyright (C) 2018 Ruben Rodriguez <ruben@trisquel.info>
|
||||||
|
# Copyright (C) 2018 Pablo Correa Gómez <p.correag@member.fsf.org>
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
|
@ -17,13 +18,40 @@
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION=1
|
VERSION=2
|
||||||
|
|
||||||
. ./config
|
. ./config
|
||||||
|
|
||||||
sed 's/enable-geoclue2/disable-geoclue2/' -i debian/rules
|
sed 's|can optionally be|is installed in /etc and can optionally be|1' -i debian/redshift.5
|
||||||
sed '/geoclue/d' -i debian/control
|
|
||||||
|
|
||||||
changelog "Disabled geoclue"
|
cat << EOF > debian/redshift.conf
|
||||||
|
; Global settings
|
||||||
|
[redshift]
|
||||||
|
temp-day=5700
|
||||||
|
temp-night=3500
|
||||||
|
transition=1
|
||||||
|
gamma=1:1:1
|
||||||
|
|
||||||
|
; 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=0.0
|
||||||
|
lon=0.0
|
||||||
|
|
||||||
|
; 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
|
compile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue