add theme.* customization option

This commit is contained in:
BZ 2020-06-19 14:03:24 +02:00
parent b80428e3b6
commit 0711cc93a7
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
local gears = require("gears")
local awful = require("awful")
local theme = require("beautiful")
local module = {}
@ -55,9 +56,9 @@ end
local function setup(config)
local cfg = config or {}
icons = cfg.icons or {}
dynamic_icons = cfg.dynamic_icons or {}
dynamic_classes = cfg.dynamic_classes or {}
icons = cfg.icons or theme.ic_icons or {}
dynamic_icons = cfg.dynamic_icons or theme.ic_dynamic_icons or {}
dynamic_classes = cfg.dynamic_classes or theme.ic_dynamic_classes or {}
delay = cfg.delay or 0.5
if type(icons) ~= 'table' then icons = {} end