From 4a6fecc5da9b2a5b00c5a287c66839de55a68c23 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 6 Jun 2014 02:28:26 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/moderate | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'examples') diff --git a/examples/moderate b/examples/moderate index f25cbb1..905fe01 100644 --- a/examples/moderate +++ b/examples/moderate @@ -14,7 +14,6 @@ from plugins.pacman import Pacman from plugins.uname import Uname from plugins.weather import Weather from plugins.chase import Chase -from plugins.solar import Solar OUTPUT, YPOS, TOP = 0, 24, True @@ -205,27 +204,19 @@ def chase(): return '\033[%smChase\033[0m' % status -solar_ = os.environ['HOME'] + '/.xpybar.sun' -def sun(): - try: - return 'Sun: %s' % Solar(solar_).output - except: - return '¿Cannot get solar information?' - functions = [ Sometimes(lambda : clock_.read(), 1 * 2), lambda : time.time() % 1, Sometimes(users, 1 * 2), weather, chase, - Sometimes(sun, 1 * 2), cpu, memory, network, Sometimes(uname, 30 * 60 * 2), ] -pattern = [ '%s │ %.2f │ %s │ %s │ %s │ %s }{ %s │ %s │ %s │ %s' +pattern = [ '%s │ %.2f │ %s │ %s │ %s }{ %s │ %s │ %s │ %s' ] -- cgit v1.2.3-70-g09d2