Get redshift-gtk working correctly

This commit is contained in:
2018-08-18 09:29:27 -04:00
parent bf2126c13f
commit 40edc7b708
5 changed files with 17 additions and 2 deletions
-1
View File
@@ -4,4 +4,3 @@ temp-night=3000
transition=1
brightness-day=1.0
brightness-night=0.8
provider=manual
@@ -0,0 +1,5 @@
[Service]
ExecStart=
ExecStart=/home/me/.redshift-gtk-wrapper
SyslogIdentifier=
SyslogIdentifier=redshift-gtk
@@ -1,3 +1,5 @@
[Service]
ExecStart=
ExecStart=/home/me/.redshift-wrapper
SyslogIdentifier=
SyslogIdentifier=redshift
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -o errexit
main() {
export REDSHIFT_EXE=redshift-gtk
exec ~/.redshift-wrapper "${@}"
}
main "${@}"
+1 -1
View File
@@ -2,7 +2,7 @@
set -o errexit
main() {
exec redshift -l "$(__get_lat_lon)" -v
exec "${REDSHIFT_EXE:-redshift}" -l "$(__get_lat_lon)" -v
}
__get_lat_lon() {