Get redshift-gtk working correctly
This commit is contained in:
parent
bf2126c13f
commit
40edc7b708
@ -4,4 +4,3 @@ temp-night=3000
|
|||||||
transition=1
|
transition=1
|
||||||
brightness-day=1.0
|
brightness-day=1.0
|
||||||
brightness-night=0.8
|
brightness-night=0.8
|
||||||
provider=manual
|
|
||||||
|
5
config/systemd/user/redshift-gtk.service.d/override.conf
Normal file
5
config/systemd/user/redshift-gtk.service.d/override.conf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[Service]
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=/home/me/.redshift-gtk-wrapper
|
||||||
|
SyslogIdentifier=
|
||||||
|
SyslogIdentifier=redshift-gtk
|
@ -1,3 +1,5 @@
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=/home/me/.redshift-wrapper
|
ExecStart=/home/me/.redshift-wrapper
|
||||||
|
SyslogIdentifier=
|
||||||
|
SyslogIdentifier=redshift
|
||||||
|
9
redshift-gtk-wrapper
Executable file
9
redshift-gtk-wrapper
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
|
main() {
|
||||||
|
export REDSHIFT_EXE=redshift-gtk
|
||||||
|
exec ~/.redshift-wrapper "${@}"
|
||||||
|
}
|
||||||
|
|
||||||
|
main "${@}"
|
@ -2,7 +2,7 @@
|
|||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
exec redshift -l "$(__get_lat_lon)" -v
|
exec "${REDSHIFT_EXE:-redshift}" -l "$(__get_lat_lon)" -v
|
||||||
}
|
}
|
||||||
|
|
||||||
__get_lat_lon() {
|
__get_lat_lon() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user