diff options
author | terminaldweller <thabogre@gmail.com> | 2021-08-20 15:08:32 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-08-20 15:08:32 +0000 |
commit | 4de563ae0ee333a986e3cf6bdd170453e3261e3d (patch) | |
tree | da99522f7e6034f62d122b3987896ce205686b3f /tmux | |
parent | using vimplug now. (diff) | |
download | scripts-4de563ae0ee333a986e3cf6bdd170453e3261e3d.tar.gz scripts-4de563ae0ee333a986e3cf6bdd170453e3261e3d.zip |
zsh overhaul
Diffstat (limited to 'tmux')
-rwxr-xr-x | tmux/date.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmux/date.sh b/tmux/date.sh index 4c26bbc..c272d07 100755 --- a/tmux/date.sh +++ b/tmux/date.sh @@ -14,7 +14,7 @@ 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}') 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_INFO=$(sleep 120 && 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 " |