Get redshift-gtk working correctly

This commit is contained in:
Dan Buch 2018-08-18 09:29:27 -04:00
parent bf2126c13f
commit 40edc7b708
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7
5 changed files with 17 additions and 2 deletions

View File

@ -4,4 +4,3 @@ temp-night=3000
transition=1
brightness-day=1.0
brightness-night=0.8
provider=manual

View File

@ -0,0 +1,5 @@
[Service]
ExecStart=
ExecStart=/home/me/.redshift-gtk-wrapper
SyslogIdentifier=
SyslogIdentifier=redshift-gtk

View File

@ -1,3 +1,5 @@
[Service]
ExecStart=
ExecStart=/home/me/.redshift-wrapper
SyslogIdentifier=
SyslogIdentifier=redshift

9
redshift-gtk-wrapper Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -o errexit
main() {
export REDSHIFT_EXE=redshift-gtk
exec ~/.redshift-wrapper "${@}"
}
main "${@}"

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() {