aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-05-03 18:05:18 +0300
committerYaroslav <contact@yaroslavps.com>2020-05-03 18:05:18 +0300
commitff88fbca675945015a0c59b18be65b74cdd7d989 (patch)
treeddda5b6cebccc5c1fdf13d12980bf26286cf4adf /dotfiles
parent1ef2e3684883380d0ac9c978db470f4856e4904f (diff)
downloadswayrice-ff88fbca675945015a0c59b18be65b74cdd7d989.tar.gz
swayrice-ff88fbca675945015a0c59b18be65b74cdd7d989.zip
changes to waybar weather script
Diffstat (limited to 'dotfiles')
-rwxr-xr-xdotfiles/.local/bin/barweather6
1 files changed, 1 insertions, 5 deletions
diff --git a/dotfiles/.local/bin/barweather b/dotfiles/.local/bin/barweather
index 042fc52..1fd2c6c 100755
--- a/dotfiles/.local/bin/barweather
+++ b/dotfiles/.local/bin/barweather
@@ -5,10 +5,6 @@ location="Saint Petersburg"
update_freq=1800
obsolete_after=10800
-if [ -n "$location" ]; then
- location="~${location// /+}"
-fi
-
update_forecast() {
# Check several times before giving up, useful when just waking up from sleep
# since internet is usually not available right away
@@ -35,7 +31,7 @@ else
fi
if [ ! -f "$cachefile" ]; then
- exit
+ exit
fi
cat "$cachefile"