chore: be able to provide path to icons folder and path to the custom icon

This commit is contained in:
Artem Kuskis 2023-05-21 19:20:49 +01:00
parent d32ea402c6
commit ae6f8d4cdc
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ function widget.get_widget(widgets_args)
local bg_color = args.bg_color or '#ffffff11'
local mute_color = args.mute_color or beautiful.fg_urgent
local size = args.size or 18
local icon = args.icon or ICON_DIR .. 'audio-volume-high-symbolic.svg'
local icon_dir = args.icon_dir or ICON_DIR
local icon = args.icon_path or icon_dir .. 'audio-volume-high-symbolic.svg'
return wibox.widget {
{