diff --git a/layout/centered.lua b/layout/centered.lua index e508167..2b5928c 100644 --- a/layout/centered.lua +++ b/layout/centered.lua @@ -1,3 +1,4 @@ +local gears = require("gears") local gcolor = require("gears.color") local beautiful = require("beautiful") local math = math @@ -78,7 +79,7 @@ function mylayout.arrange(p) end end -local icon_raw = beautiful.config_path .. "/bling/icons/layouts/centered.png" +local icon_raw = gears.filesystem.get_configuration_dir() .. "/bling/icons/layouts/centered.png" local function get_icon() if icon_raw ~= nil then diff --git a/layout/horizontal.lua b/layout/horizontal.lua index 23da2f5..2ecc394 100644 --- a/layout/horizontal.lua +++ b/layout/horizontal.lua @@ -1,3 +1,4 @@ +local gears = require("gears") local gcolor = require("gears.color") local beautiful = require("beautiful") local math = math @@ -53,7 +54,7 @@ function mylayout.arrange(p) end end -local icon_raw = beautiful.config_path .. "/bling/icons/layouts/horizontal.png" +local icon_raw = gears.filesystem.get_configuration_dir() .. "/bling/icons/layouts/horizontal.png" local function get_icon() if icon_raw ~= nil then diff --git a/layout/mstab.lua b/layout/mstab.lua index d25b5de..27ac9c7 100644 --- a/layout/mstab.lua +++ b/layout/mstab.lua @@ -181,7 +181,7 @@ function mylayout.arrange(p) update_tabbar(slave_clients, t, t.top_idx, area, master_area_width, slave_area_width) end -local icon_raw = beautiful.config_path .. "/bling/icons/layouts/mstab.png" +local icon_raw = gears.filesystem.get_configuration_dir() .. "/bling/icons/layouts/mstab.png" local function get_icon() if icon_raw ~= nil then diff --git a/layout/vertical.lua b/layout/vertical.lua index fe14bf8..7aebb05 100644 --- a/layout/vertical.lua +++ b/layout/vertical.lua @@ -1,3 +1,4 @@ +local gears = require("gears") local gcolor = require("gears.color") local beautiful = require("beautiful") local math = math @@ -53,7 +54,7 @@ function mylayout.arrange(p) end end -local icon_raw = beautiful.config_path .. "/bling/icons/layouts/vertical.png" +local icon_raw = gears.filesystem.get_configuration_dir() .. "/bling/icons/layouts/vertical.png" local function get_icon() if icon_raw ~= nil then