blob: 421ceb28927d39e546e1712e06f9493936f5d3ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
local gfs = require "gears.filesystem"
local qfs = require "quarrel.fs"
---@type table<string, string>
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
icons[icon:match("(.+)%..+"):gsub("-", "_")] = phosphor_dir .. icon
end
end
return icons
|