automatic config dir without theme var

This commit is contained in:
Nooo37 2020-10-22 13:07:15 +02:00
parent 3a4f29daa6
commit 836b5bf4a8
4 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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