commit a0db44e9e3bb191e62bf335ff689af8a7df876ba parent fd4fa7323260547b57f5a9de6c71f82455d456c7 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Wed, 8 May 2019 20:27:08 -0700 Generalize redshift command Diffstat:
M | .Xresources | | | 4 | ++-- |
M | .xinitrc | | | 10 | ++++++---- |
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/.Xresources b/.Xresources @@ -5,8 +5,8 @@ Xcursor.size: 16 ! terminal colors ------------------------------------------------------------ ! see https://ciembor.github.io/4bit -*.foreground: #4d4d4c -*.background: #ffffff +*.foreground: #c5c8c6 +*.background: #1d1f21 /* black */ *color0: #434944 diff --git a/.xinitrc b/.xinitrc @@ -27,10 +27,12 @@ setxkbmap -option ctrl:nocaps -option altwin:swap_lalt_lwin xbindkeys if [ "$(hostname)" != "phony" ]; then - # default temperature is 6500 K day, 4500 K night - #redshift -l 56.09:10.12 -t 7500:3300 & # Aarhus - redshift -l 37.25:-122.9 -t 7500:3300 & # Stanford - #redshift -l 32.84:-117.26 & # San Diego + kelvin_day=6500 # default: 6500 K + kelvin_night=2300 # default: 4500 K + #lat=56.09;lon=10.12 # Aarhus + lat=37.25;lon=-122.9 # Stanford + #lat=32.84;lon=-117.26 # San Diego + redshift -l $lat:$lon -t $kelvin_day:$kelvin_night & fi xset -b # Disable beeps