aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xxconky19
1 files changed, 11 insertions, 8 deletions
diff --git a/xconky b/xconky
index 269a1b0..17c5eb8 100755
--- a/xconky
+++ b/xconky
@@ -8,17 +8,20 @@ function xconky_start {
# Default one
conky &
- # Give time for networking
- sleep 60
+ # Weather
+ if [ -e "$HOME/.brweather.conf" ]; then
+ # Give time for networking
+ sleep 60
- # Load weather data first
- weather &> /dev/null
+ # Load weather data first
+ weather &> /dev/null
- # Clear cache
- brweather --clean-cache
+ # Clear cache
+ brweather --clean-cache
- # Weather
- conky -c ~/.conky/weather/conkyrc &
+ # Weather
+ conky -c ~/.conky/weather/conkyrc &
+ fi
}
# Battery level if on laptop