From d7ba594b0b797003b61b2be5a71df233453def1d Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Mon, 17 Dec 2018 23:51:22 +0100 Subject: [PATCH] Add redshift config Signed-off-by: Severin Kaderli --- install.sh | 2 +- system/.config/redshift/redshift.conf | 61 +++++++++++++++++++++++++++ system/.xsetup | 3 ++ 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 system/.config/redshift/redshift.conf diff --git a/install.sh b/install.sh index ac6f011..4ab98d0 100755 --- a/install.sh +++ b/install.sh @@ -38,6 +38,7 @@ LINKED_FILES_HOME=( ".config/htop" ".config/i3" ".config/polybar" + ".config/redshift" ".config/streamlink" ".config/termite" ".crontab" @@ -60,7 +61,6 @@ LINKED_FILES_HOME=( SYSTEMD_SERVICES=( "bumblebeed" "cronie" - "dbus" "lightdm" "wicd" ) diff --git a/system/.config/redshift/redshift.conf b/system/.config/redshift/redshift.conf new file mode 100644 index 0000000..8c7a227 --- /dev/null +++ b/system/.config/redshift/redshift.conf @@ -0,0 +1,61 @@ +; Global settings for redshift +[redshift] +; Set the day and night screen temperatures +temp-day=5700 +temp-night=4000 + +; Disable the smooth fade between temperatures when Redshift starts and stops. +; 0 will cause an immediate change between screen temperatures. +; 1 will gradually apply the new screen temperature over a couple of seconds. +fade=1 + +; Solar elevation thresholds. +; By default, Redshift will use the current elevation of the sun to determine +; whether it is daytime, night or in transition (dawn/dusk). When the sun is +; above the degrees specified with elevation-high it is considered daytime and +; below elevation-low it is considered night. +;elevation-high=3 +;elevation-low=-6 + +; Custom dawn/dusk intervals. +; Instead of using the solar elevation, the time intervals of dawn and dusk +; can be specified manually. The times must be specified as HH:MM in 24-hour +; format. +;dawn-time=6:00-7:45 +;dusk-time=18:35-20:15 + +; Set the screen brightness. Default is 1.0. +;brightness=0.9 +; It is also possible to use different settings for day and night +; since version 1.8. +;brightness-day=0.7 +;brightness-night=0.4 +; Set the screen gamma (for all colors, or each color channel +; individually) +gamma=0.8 +;gamma=0.8:0.7:0.8 +; This can also be set individually for day and night since +; version 1.10. +;gamma-day=0.8:0.7:0.8 +;gamma-night=0.6 + +; Set the location-provider: 'geoclue2', 'manual' +; type 'redshift -l list' to see possible values. +; The location provider settings are in a different section. +location-provider=manual + +; Set the adjustment-method: 'randr', 'vidmode' +; type 'redshift -m list' to see all possible values. +; 'randr' is the preferred method, 'vidmode' is an older API. +; but works in some cases when 'randr' does not. +; The adjustment method settings are in a different section. +adjustment-method=randr + +; Configuration of the location-provider: +; type 'redshift -l PROVIDER:help' to see the settings. +; ex: 'redshift -l manual:help' +; Keep in mind that longitudes west of Greenwich (e.g. the Americas) +; are negative numbers. +[manual] +lat=46.95 +lon=7.45 diff --git a/system/.xsetup b/system/.xsetup index 464eb14..3d4fac2 100644 --- a/system/.xsetup +++ b/system/.xsetup @@ -19,6 +19,9 @@ xset s noblank # Set keyboard layout setxkbmap -model pc105 -layout ch +# Start redshift +redshift& + # Start ibus #ibus-daemon -drx