put icon into the theme
This commit is contained in:
parent
3feeb8cc02
commit
ce931c8be1
10
init.lua
10
init.lua
|
@ -3,6 +3,16 @@ local editor = require(... .. ".editor")
|
|||
local switcher = require(... .. ".switcher")
|
||||
local default_editor = editor.create()
|
||||
local default_layout = layout.create("default", default_editor)
|
||||
local gcolor = require("gears.color")
|
||||
|
||||
local beautiful = require("beautiful")
|
||||
local source = debug.getinfo(1, "S").source
|
||||
if source:sub(1, 1) == "@" then
|
||||
base = source:match("^@(.-)[^/]+$")
|
||||
beautiful.layout_machi = gcolor.recolor_image(
|
||||
base .. "icon.png", beautiful.fg_normal)
|
||||
print(beautiful.layout_machi)
|
||||
end
|
||||
|
||||
return {
|
||||
layout = layout,
|
||||
|
|
Loading…
Reference in New Issue