From 192dc03722e6978ac73a01a18339bbaa38a743e8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 1 Oct 2020 09:51:12 -0700 Subject: [redshift] create configuration file Instead of passing the options as arugments to the CLI, create a configuration file with everything we need in it. We also manage the service with systemd. --- config/redshift.conf | 10 ++++++++++ xsession | 5 ----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 config/redshift.conf diff --git a/config/redshift.conf b/config/redshift.conf new file mode 100644 index 0000000..77d969e --- /dev/null +++ b/config/redshift.conf @@ -0,0 +1,10 @@ +[redshift] +temp-day=5700 +temp-night=4500 +gamma=0.8 +adjustment-method=randr +location-provider=manual + +[manual] +lat=37.8715 +lon=122.2730 diff --git a/xsession b/xsession index db9d652..45704c8 100755 --- a/xsession +++ b/xsession @@ -2,11 +2,6 @@ xrdb $HOME/.Xresources -# Run redshift, but don’t fail if it’s not (yet) available -if command -V redshift >/dev/null 2>&1; then - redshift -m randr -l 37.8715:122.2730 -t 6000:5000 -b 0.7 & -fi - # set the background to something less aggressive than black xsetroot -solid "#333333" -cursor_name left_ptr -- cgit 1.4.1