summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpu-widget/cpu-widget.lua4
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
}