aboutsummaryrefslogtreecommitdiffstats
path: root/examples/moderate
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-06 02:28:26 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-06 02:28:26 +0200
commit4a6fecc5da9b2a5b00c5a287c66839de55a68c23 (patch)
tree257d328933636f22cc2c0bc2f24b48937a3ca2b8 /examples/moderate
parentlicense lunar under agpl (diff)
downloadxpybar-4a6fecc5da9b2a5b00c5a287c66839de55a68c23.tar.gz
xpybar-4a6fecc5da9b2a5b00c5a287c66839de55a68c23.tar.bz2
xpybar-4a6fecc5da9b2a5b00c5a287c66839de55a68c23.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--examples/moderate11
1 files changed, 1 insertions, 10 deletions
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'
]