put icon into the theme

This commit is contained in:
Xinhao Yuan 2019-07-13 08:30:38 -04:00
parent 3feeb8cc02
commit ce931c8be1
1 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,16 @@ local editor = require(... .. ".editor")
local switcher = require(... .. ".switcher") local switcher = require(... .. ".switcher")
local default_editor = editor.create() local default_editor = editor.create()
local default_layout = layout.create("default", default_editor) 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 { return {
layout = layout, layout = layout,