2023-04-04 08:43:40 -05:00
|
|
|
local gfs = require "gears.filesystem"
|
2023-04-11 17:44:52 -05:00
|
|
|
local qfs = require "quarrel.fs"
|
2023-04-04 08:43:40 -05:00
|
|
|
|
|
|
|
local icons = {}
|
|
|
|
local phosphor_dir = gfs.get_configuration_dir() .. "assets/phosphor/"
|
|
|
|
|
|
|
|
for _, icon in ipairs(qfs.ls_files(phosphor_dir)) do
|
|
|
|
if icon:match(".+%.(.+)") == "svg" then
|
2023-05-21 03:12:46 -05:00
|
|
|
icons[icon:match("(.+)%..+"):gsub("-", "_")] = phosphor_dir .. icon
|
2023-04-04 08:43:40 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return icons
|