diff options
author | terminaldweller <thabogre@gmail.com> | 2021-08-05 15:37:24 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-08-05 15:37:24 +0000 |
commit | 2df4e71442b0438aace754ff12e1fb9245969eff (patch) | |
tree | a2d027f85136f55c7033214095fe5b9a465bee58 /tmux/date.sh | |
parent | a lot of updates and fixes (diff) | |
download | scripts-2df4e71442b0438aace754ff12e1fb9245969eff.tar.gz scripts-2df4e71442b0438aace754ff12e1fb9245969eff.zip |
using vimplug now.
Diffstat (limited to 'tmux/date.sh')
-rwxr-xr-x | tmux/date.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tmux/date.sh b/tmux/date.sh index c0f1bcf..4c26bbc 100755 --- a/tmux/date.sh +++ b/tmux/date.sh @@ -13,7 +13,8 @@ UTC_TIME_RESULT=$(date -u +"%H:%M") UTC_TIME="#[fg=colour255 bg=colour25]"$(echo GMT: $UTC_TIME_RESULT) # JDATE="#[fg=colour255 bg=colour29]"$(jdate | gawk '{print $2" "$3}') JDATE="#[fg=colour255 bg=colour29]"$(jdate | gawk '{print $2" "$3}') -WEATHER_INFO=$(curl "https://api.openweathermap.org/data/2.5/weather?q=Tehran&appid=a2fab6f29fbe16083cf382306c2abee4&units=metric"|jq ".main.temp") +OPENWEATHERMAP_TOKEN=$(cat /home/devi/scripts/tmux/openweathermap.json|jq -r ".token") +WEATHER_INFO=$(curl "https://api.openweathermap.org/data/2.5/weather?q=Tehran&appid=$OPENWEATHERMAP_TOKEN&units=metric"|jq ".main.temp") WEATHER="#[fg=colour255 bg=colour32]"$(echo $WEATHER_INFO" C") echo "#[fg=colour32 bg=colour16]$SEPARATOR_LEFT_BOLD$WEATHER#[fg=colour29 bg=colour32]$SEPARATOR_LEFT_BOLD$JDATE #[fg=colour31 bg=colour29]$SEPARATOR_LEFT_BOLD$DAY $SEPARATOR_LEFT_THIN $DATE $SEPARATOR_LEFT_THIN $TIME #[fg=colour25 bg=colour31]$SEPARATOR_LEFT_BOLD$UTC_TIME " |