dotfiles

Cem's Dotfiles
git clone git://git.ckyln.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 804b82880c56e19a7748844fdefc90a81f4aa21b
parent e3147fdfb4ce78cb85dabdd55b221874582c824f
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 30 Oct 2019 10:36:35 +0300

print date to .sunset file

Diffstat:
M.local/bin/checksunset | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/.local/bin/checksunset b/.local/bin/checksunset @@ -28,6 +28,7 @@ MORNING=$(date --date="TZ=\"UTC\" $(curl -s https://api.sunrise-sunset.org/json\ NIGHT=$(date -d "$(date --date="TZ=\"UTC\" $(curl -s https://api.sunrise-sunset.org/json\?lat\=$LAT\&lng\=$LON\&date\=today | jq .results.sunset | cut -c 2- | awk '{print $1}')" +%H:%M) today + 12 hours" +%H%M) printf "\ +# Checked at `date`\n\ SUNRISE=$MORNING\n\ SUNSET=$NIGHT\n\ checkdate=`date +%Y%m%d`\n" > $HOME/.sunset