diff options
| author | Franck Cuny <franck@fcuny.net> | 2020-10-01 09:51:12 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2020-10-01 09:51:12 -0700 |
| commit | 192dc03722e6978ac73a01a18339bbaa38a743e8 (patch) | |
| tree | 067eae77a7568b95bb596d808d953409667ac53c | |
| parent | [emacs]: a few changes to the UI (diff) | |
| download | emacs.d-192dc03722e6978ac73a01a18339bbaa38a743e8.tar.gz | |
[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.
| -rw-r--r-- | config/redshift.conf | 10 | ||||
| -rwxr-xr-x | xsession | 5 |
2 files changed, 10 insertions, 5 deletions
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 @@ -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 |
