Adding CPU and RAM widgets.

This commit is contained in:
Rodolphe Breard 2015-08-16 17:41:15 +02:00
parent f917f2bfd3
commit 798acc059a

View file

@ -105,6 +105,16 @@ class ConfigWrapper:
]
return self.layouts
def graph_params(self, color):
return dict(
width=70,
border_width=1,
line_width=1,
graph_color=color,
border_color=color,
fill_color=color,
)
def set_screens(self):
screens = [
Screen(
@ -114,6 +124,8 @@ class ConfigWrapper:
widget.Prompt(),
widget.WindowName(),
widget.Systray(),
widget.MemoryGraph(**self.graph_params('#CFCE44')),
widget.CPUGraph(**self.graph_params('#96AECF')),
widget.Clock(format=self.date_format),
],
30,