aboutsummaryrefslogtreecommitdiff
path: root/xconky
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-06 15:16:42 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-06 15:16:42 -0200
commit46abb30ffb1a0cdc6c590585bed46edd5ae570df (patch)
tree23a3a394bcc61ddb57d805010ff9f824155e98b4 /xconky
parente8cd6cc95ace26322604f970d4f590788b141524 (diff)
downloadscripts-46abb30ffb1a0cdc6c590585bed46edd5ae570df.tar.gz
scripts-46abb30ffb1a0cdc6c590585bed46edd5ae570df.tar.bz2
Loading weather conky just if config exist
Diffstat (limited to 'xconky')
-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