diff options
author | streetturtle <streetturtle@gmail.com> | 2021-04-18 20:56:31 -0400 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2021-04-18 20:56:31 -0400 |
commit | 270665bca361a00fff746be6031d36b17b357aec (patch) | |
tree | 917639c78355e7124dcf31895790fe8a3447126b | |
parent | 7ea3eec17924a814ec3109958ba9d2db50e87ffd (diff) |
[cpu] partial fix for #254 - extract cpu background as a parameter
-rw-r--r-- | cpu-widget/cpu-widget.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpu-widget/cpu-widget.lua b/cpu-widget/cpu-widget.lua index d804c80..c8b90c8 100644 --- a/cpu-widget/cpu-widget.lua +++ b/cpu-widget/cpu-widget.lua @@ -100,13 +100,14 @@ local function worker(user_args) local step_width = args.step_width or 2 local step_spacing = args.step_spacing or 1 local color = args.color or beautiful.fg_normal + local background_color = args.background_color or "#00000000" local enable_kill_button = args.enable_kill_button or false local process_info_max_length = args.process_info_max_length or -1 local timeout = args.timeout or 1 local cpugraph_widget = wibox.widget { max_value = 100, - background_color = "#00000000", + background_color = background_color, forced_width = width, step_width = step_width, step_spacing = step_spacing, @@ -163,6 +164,7 @@ local function worker(user_args) layout = wibox.container.mirror }, bottom = 2, + color = background_color, widget = wibox.container.margin } |