diff options
author | terminaldweller <thabogre@gmail.com> | 2022-12-02 17:52:42 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-12-02 17:52:42 +0000 |
commit | 674f40d027ece13daa78ef2a7d69c79f4198368a (patch) | |
tree | 2bcc0e41e5064b62d18bb376a5ecf0d760b6f13d /tmux/date.sh | |
parent | update (diff) | |
download | scripts-674f40d027ece13daa78ef2a7d69c79f4198368a.tar.gz scripts-674f40d027ece13daa78ef2a7d69c79f4198368a.zip |
update
Diffstat (limited to 'tmux/date.sh')
-rwxr-xr-x | tmux/date.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tmux/date.sh b/tmux/date.sh index 1bfbc01..b3f6436 100755 --- a/tmux/date.sh +++ b/tmux/date.sh @@ -16,13 +16,15 @@ JDATE="#[fg=colour255 bg=colour29]"$(jdate | gawk '{print $2" "$3}') # OPENWEATHERMAP_TOKEN=$(jq -r ".token" < /home/devi/scripts/tmux/openweathermap.json) # WEATHER_INFO=$(sleep 120 && proxychains4 -q -f /home/devi/proxies/ice/proxychains.conf curl "https://api.openweathermap.org/data/2.5/weather?q=Tehran&appid=${OPENWEATHERMAP_TOKEN}&units=metric"|jq ".main.temp") -WEATHER_INFO=$(curl 'wttr.in/tehran?T&format=%f') +WEATHER_INFO=$(proxychains4 -f ~/proxies/ice/proxychains.conf curl 'wttr.in/tehran?T&format=%f') if echo "${WEATHER_INFO}" | grep Unknown\ location; then WEATHER="#[fg=colour255 bg=colour32]"no_temp else WEATHER="#[fg=colour255 bg=colour32]"${WEATHER_INFO} fi +date >> /tmp/time_counter + CPU_TEMP=$(sensors -j | jq .["\"coretemp-isa-0000\""]."\"Package id 0\"".temp1_input) CPU_SECTION="#[fg=colour36 bg=colour24]${SEPARATOR_LEFT_BOLD}#[fg=colour16 bg=colour36]${CPU_TEMP} C" BATTERY=$(upower -i "$(upower -e | grep 'BAT')" | grep -E "percentage" | awk '{print $2}') |