Exploring icon theme using lgi.Gtk
Gtk+
https://github.com/GNOME/gtk
local icon_theme = require("gears.xdg.icon_theme"){"ACYLS", 24}
local icon_path = icon_theme:get_icon_path("folder")
gears.xdg.icon_theme{theme_name, icon_size} Create new theme object
:get_icon_path (icon_name, fallback_icon_name) Get icon path by icon name
Create new theme object
- theme_name (string) Icon theme name
- icon_size (number) Preferred icon size
Get icon path by icon name
- icon_name (string) Icon name
- fallback_icon_name (string) If icon not found, return path to icon with this name
icon_path (string) Icon file path or empty string, if no icon was found