Adding CPU and RAM widgets.
This commit is contained in:
parent
f917f2bfd3
commit
798acc059a
1 changed files with 12 additions and 0 deletions
|
@ -105,6 +105,16 @@ class ConfigWrapper:
|
||||||
]
|
]
|
||||||
return self.layouts
|
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):
|
def set_screens(self):
|
||||||
screens = [
|
screens = [
|
||||||
Screen(
|
Screen(
|
||||||
|
@ -114,6 +124,8 @@ class ConfigWrapper:
|
||||||
widget.Prompt(),
|
widget.Prompt(),
|
||||||
widget.WindowName(),
|
widget.WindowName(),
|
||||||
widget.Systray(),
|
widget.Systray(),
|
||||||
|
widget.MemoryGraph(**self.graph_params('#CFCE44')),
|
||||||
|
widget.CPUGraph(**self.graph_params('#96AECF')),
|
||||||
widget.Clock(format=self.date_format),
|
widget.Clock(format=self.date_format),
|
||||||
],
|
],
|
||||||
30,
|
30,
|
||||||
|
|
Loading…
Reference in a new issue