layout icon paths refactored

This commit is contained in:
Nooo37 2020-10-31 10:28:14 +01:00
parent 45c9128be3
commit 916cafd8d9
4 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ function mylayout.arrange(p)
end
end
local icon_raw = gears.filesystem.get_configuration_dir() .. "/bling/icons/layouts/centered.png"
local icon_raw = gears.filesystem.get_configuration_dir() .. tostring(...):match("^.*bling"):gsub("%.", "/") .. "/icons/layouts/centered.png"
local function get_icon()
if icon_raw ~= nil then

View File

@ -54,7 +54,7 @@ function mylayout.arrange(p)
end
end
local icon_raw = gears.filesystem.get_configuration_dir() .. "/bling/icons/layouts/horizontal.png"
local icon_raw = gears.filesystem.get_configuration_dir() .. tostring(...):match("^.*bling"):gsub("%.", "/") .. "/icons/layouts/horizontal.png"
local function get_icon()
if icon_raw ~= nil then

View File

@ -193,7 +193,7 @@ function mylayout.arrange(p)
update_tabbar(slave_clients, t, t.top_idx, area, master_area_width, slave_area_width)
end
local icon_raw = gears.filesystem.get_configuration_dir() .. "/bling/icons/layouts/mstab.png"
local icon_raw = gears.filesystem.get_configuration_dir() .. tostring(...):match("^.*bling"):gsub("%.", "/") .. "/icons/layouts/mstab.png"
local function get_icon()
if icon_raw ~= nil then

View File

@ -54,7 +54,7 @@ function mylayout.arrange(p)
end
end
local icon_raw = gears.filesystem.get_configuration_dir() .. "/bling/icons/layouts/vertical.png"
local icon_raw = gears.filesystem.get_configuration_dir() .. tostring(...):match("^.*bling"):gsub("%.", "/") .. "/icons/layouts/vertical.png"
local function get_icon()
if icon_raw ~= nil then