From 798acc059a7f25bd77a0bb8908d75734fba3a636 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sun, 16 Aug 2015 17:41:15 +0200 Subject: [PATCH] Adding CPU and RAM widgets. --- .config/qtile/config.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.config/qtile/config.py b/.config/qtile/config.py index a93e9e5..9bf9f04 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -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,