Skip to content

Commit

Permalink
add theme.* customization option
Browse files Browse the repository at this point in the history
  • Loading branch information
BZ committed Jun 19, 2020
1 parent b80428e commit 0711cc9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local gears = require("gears")
local awful = require("awful")
local theme = require("beautiful")

local module = {}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0711cc9

Please sign in to comment.