From 46abb30ffb1a0cdc6c590585bed46edd5ae570df Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 6 Feb 2013 15:16:42 -0200 Subject: Loading weather conky just if config exist --- xconky | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'xconky') 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 -- cgit v1.2.3