summaryrefslogtreecommitdiffstats
path: root/doc/rofi.1
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2022-07-16 13:13:29 +0200
committerDave Davenport <qball@blame.services>2022-07-16 13:13:29 +0200
commit52f587a1918a69010e93b0a9c720728f02ed5f79 (patch)
tree45b31ed8297d06205a7b62c9cf582937451773b5 /doc/rofi.1
parent386877dd228adb4f4cdb6cb3d8a9900439582e64 (diff)
[IconFetcher] Add support for font rendering as icon.
Issue: #1132
Diffstat (limited to 'doc/rofi.1')
-rw-r--r--doc/rofi.148
1 files changed, 48 insertions, 0 deletions
diff --git a/doc/rofi.1 b/doc/rofi.1
index 32099941..d50c5cb3 100644
--- a/doc/rofi.1
+++ b/doc/rofi.1
@@ -1328,6 +1328,54 @@ modes are shown, even if the rest of the input text would match results from \fB
If no match, the input is handled by the first combined modes.
.SH FAQ
+.SS What icon formats are supported
+.PP
+Rofi supports 3 ways of specifying an icon:
+
+.RS
+.IP \(bu 2
+Filename
+.IP \(bu 2
+icon-name, this is looked up via the icon-theme.
+.IP \(bu 2
+Markup String. It renders a string as an icon.
+
+.RE
+
+.PP
+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 \fB\fC<span\fR tag, that allows you to set color and font.
+
+.PP
+Markup string:
+
+.PP
+.RS
+
+.nf
+echo -en "testing\\0icon\\x1f<span color='red'>⏻</span>" | ./rofi -dmenu
+
+.fi
+.RE
+
+.PP
+Getting supported icon formats:
+
+.PP
+.RS
+
+.nf
+G_MESSAGES_DEBUG=Helpers.IconFetcher rofi
+
+.fi
+.RE
+
+.PP
+This uses the debug framework and prints out a list of supported image file
+extensions.
+
.SS The text in the window switcher is not nicely aligned.
.PP
Try using a mono-space font.