summaryrefslogtreecommitdiff
path: root/volumearc-widget/volumearc.lua
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2020-02-22 12:53:50 -0500
committerGitHub <noreply@github.com>2020-02-22 12:53:50 -0500
commit5e519648e1c9a294a4462a532d1ba28abe1fa000 (patch)
tree1d35abe92b71dbe442f9c0dd2039bc3cabc0642d /volumearc-widget/volumearc.lua
parent18a8fd62d3a59cac084b4c76006b15ed43d5e4c2 (diff)
parent60f74904530058bf8b1cc9a2ee3972093381b19d (diff)
Merge pull request #110 from tasmo/custom-backgrounds
Make backgrounds theme-able
Diffstat (limited to 'volumearc-widget/volumearc.lua')
-rw-r--r--volumearc-widget/volumearc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/volumearc-widget/volumearc.lua b/volumearc-widget/volumearc.lua
index 62b18ab..33cc99c 100644
--- a/volumearc-widget/volumearc.lua
+++ b/volumearc-widget/volumearc.lua
@@ -28,6 +28,7 @@ local function worker(args)
local args = args or {}
local main_color = args.main_color or beautiful.fg_color
+ local bg_color = args.bg_color or '#ffffff11'
local mute_color = args.mute_color or beautiful.fg_urgent
local path_to_icon = args.path_to_icon or PATH_TO_ICON
local thickness = args.thickness or 2
@@ -52,7 +53,7 @@ local function worker(args)
start_angle = 4.71238898, -- 2pi*3/4
forced_height = height,
forced_width = height,
- bg = "#ffffff11",
+ bg = bg_color,
paddings = 2,
widget = wibox.container.arcchart
}