Skip to content

Conversation

@oisanjaya
Copy link

With this PR its possible to encode icons using label string.
This would allow modules inherits AIconLabel instead of ALabel and having icons encoded inside format and/or format-icons in config file.
Rofi’s extended dmenu protocol is used to encode icon metadata, which starts with \0icon\1f followed by named icon or path to an image and ended with \n. Because of config file will be decoded as JSON then it should written \\0icon\\1f<icon-name>\\n in config file strings.
Currently only one icon per label allowed, this PR will take first found pattern as icon and ignore the rest.
icon-size key in config will be used to determine icon size if a path to an image file being supplied. This key is ignored if a named icon being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant