Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
package-helpers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
trisquel
package-helpers
Commits
a3ff8439
Commit
a3ff8439
authored
7 years ago
by
Pablo Correa
Browse files
Options
Downloads
Patches
Plain Diff
redshift: added custom conf file, manual default
parent
100b40a3
No related branches found
Branches containing commit
No related tags found
1 merge request
!195
make-redshift: Add custom configuration file
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helpers/make-redshift
+31
-12
31 additions, 12 deletions
helpers/make-redshift
with
31 additions
and
12 deletions
helpers/make-redshift
+
31
−
12
View file @
a3ff8439
#!/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,22 +18,40 @@
...
@@ -17,22 +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
if
[
-f
debian/example-redshift.conf
]
cat
<<
EOF
> debian/redshift.conf
then
; Global settings
cp
debian/example-redshift.conf debian/redshift.conf
[redshift]
echo
"debian/redshift.conf /etc"
>>
debian/redshift.install
temp-day=5700
else
temp-night=3500
echo
"Error, example configuration file not found"
transition=1
exit
gamma=1:1:1
fi
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
compile
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment