icon_customizer/init.lua

23 lines
464 B
Lua
Raw Normal View History

2020-06-18 11:01:24 +02:00
local wibox = require("wibox")
local gears = require("gears")
local awful = require("awful")
local theme = require("beautiful")
local dpi = theme.xresources.apply_dpi
local module = {}
2020-06-18 11:04:09 +02:00
local function set_icon(c, icon)
if not c then return end
icon = gears.surface(icon)
c.icon = icon and icon._native or nil
end
2020-06-18 11:01:24 +02:00
local function new(config)
local cfg = config or {}
end
return setmetatable(module, { __call = function(_, ...)
new(...)
return module
end })