diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-12-25 20:58:03 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-12-25 20:58:03 +0530 |
commit | b7487a098cc140448a633e763d1e7dd2fd087653 (patch) | |
tree | a5721c56fdf06a83775bfdf671733d2df87fe06f /herbstluftwm/bar/functions/weather | |
parent | 93657d7a40972e39ea8d059efad608a39b372985 (diff) |
moved lemonbar to different folder
Diffstat (limited to 'herbstluftwm/bar/functions/weather')
-rwxr-xr-x | herbstluftwm/bar/functions/weather | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/herbstluftwm/bar/functions/weather b/herbstluftwm/bar/functions/weather deleted file mode 100755 index df6cf24b..00000000 --- a/herbstluftwm/bar/functions/weather +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/zsh - -get_current_temp() { - if [ $stat = "Smoke" ] || [ $stat = "Sunny" ]; then - temp=$(curl wttr.in | grep °C | awk 'NR==1 {print $4 "°C"}' | sed -r "s/\x1B\[(([0-9]+)(;[0-9]+)*)?[m,K,H,f,J]//g") - else - temp=$(curl wttr.in | grep °C | awk 'NR==1 {print $9 "°C"}' | sed -r "s/\x1B\[(([0-9]+)(;[0-9]+)*)?[m,K,H,f,J]//g") - fi - - echo $temp -} - -get_current_weather() { - stat=$(curl wttr.in | awk 'NR==3 {print $1}') - echo $(get_current_temp)"("$stat")" -} - -while :; do - echo $(get_current_weather) > /home/zt/.cache/lemon/weather - sleep 3600 -done |