summaryrefslogtreecommitdiffstats
path: root/doc/rofi-theme.5.markdown
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2022-07-16 13:33:13 +0200
committerDave Davenport <qball@blame.services>2022-07-16 13:33:13 +0200
commit59e9b77a2e96d765db74314f17c3b8265f5b62ae (patch)
treebcd37da1491fed87ee9db0d160d5416872cabda2 /doc/rofi-theme.5.markdown
parent52f587a1918a69010e93b0a9c720728f02ed5f79 (diff)
[Doc] Update releasenotes, move section in manpage.
Diffstat (limited to 'doc/rofi-theme.5.markdown')
-rw-r--r--doc/rofi-theme.5.markdown28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/rofi-theme.5.markdown b/doc/rofi-theme.5.markdown
index fd8ff08b..50d215a7 100644
--- a/doc/rofi-theme.5.markdown
+++ b/doc/rofi-theme.5.markdown
@@ -1342,6 +1342,34 @@ Or
FontAwesome 22
```
+## Icon Handling
+
+Rofi supports 3 ways of specifying an icon:
+
+* Filename
+* icon-name, this is looked up via the icon-theme.
+* Markup String. It renders a string as an icon.
+
+
+For the first two options, GdkPixbuf is used to open and render the icons.
+This in general gives support for most required image formats.
+For the string option it uses Pango to render the string. The string needs to
+start with a `<span` tag, that allows you to set color and font.
+
+Markup string:
+
+```bash
+echo -en "testing\0icon\x1f<span color='red'>⏻</span>" | ./rofi -dmenu
+```
+
+Getting supported icon formats:
+
+```bash
+G_MESSAGES_DEBUG=Helpers.IconFetcher rofi
+```
+This uses the debug framework and prints out a list of supported image file
+extensions.
+
## Multiple file handling
The rasi file format offers two methods of including other files.