Document the title_format command

This commit is contained in:
Ryan Dwyer 2019-03-18 21:23:28 +10:00 committed by Brian Ashworth
parent 0327c999d7
commit 38bd60c4b3

View file

@ -265,6 +265,24 @@ set|plus|minus <amount>
becomes fullscreen on the same workspace as the first container. In either becomes fullscreen on the same workspace as the first container. In either
of those cases, the second container will gain focus. of those cases, the second container will gain focus.
*title_format* <format>
Sets the format of window titles. The following placeholders may be used:
%title - The title supplied by the window
%app_id - The wayland app ID (applicable to wayland windows only)
%class - The X11 classname (applicable to xwayland windows only)
%instance - The X11 instance (applicable to xwayland windows only)
%shell - The protocol the window is using (typically xwayland or
xdg_shell)
This command is typically used with *for_window* criteria. For example:
for_window [title="."] title_format "<b>%title</b> (%app_id)"
Note that markup requires pango to be enabled via the *font* command.
The default format is "%title".
The following commands may be used either in the configuration file or at The following commands may be used either in the configuration file or at
runtime. runtime.