aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/assets/phosphor/init.lua
blob: d17eae35cd7ef9b7011a0273c7ba5ed46f93f62c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
local gfs = require "gears.filesystem"
local qfs = require "quarrel.fs"

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