From cf11fb5574c14c3181e5a47848fa498f917e0126 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingo=20B=C3=BCrk?= Date: Thu, 11 Jun 2015 07:26:01 +0200 Subject: [PATCH] Added documentation for "title_format". --- docs/userguide | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/userguide b/docs/userguide index 11772b69..e651bddb 100644 --- a/docs/userguide +++ b/docs/userguide @@ -564,6 +564,8 @@ hide_edge_borders vertical === Arbitrary commands for specific windows (for_window) +[[for_window]] + With the +for_window+ command, you can let i3 execute any command when it encounters a specific window. This can be used to set windows to floating or to change their border style, for example. @@ -2066,6 +2068,37 @@ Alternatively, if you do not want to mess with +i3-input+, you could create seperate bindings for a specific set of labels and then only use those labels. /////////////////////////////////////////////////////////////////// +=== Window title format + +By default, i3 will simply print the X11 window title. Using +title_format+, +this can be customized by setting the format to the desired output. This +directive supports +https://developer.gnome.org/pango/stable/PangoMarkupFormat.html[Pango markup] +and the following placeholders which will be replaced: + ++%title+:: + The X11 window title (_NET_WM_NAME or WM_NAME as fallback). + +Using the <> directive, you can set the title format for any window +based on <>. + +*Syntax*: +--------------------- +title_format +--------------------- + +*Examples*: +------------------------------------------------------------------------------------- +# give the focused window a prefix +bindsym $mod+p title_format "Important | %title" + +# print all window titles bold +for_window [class=".*"] title_format "%title" + +# print window titles of firefox windows red +for_window [class="(?i)firefox"] title_format "%title" +------------------------------------------------------------------------------------- + === Changing border style To change the border of the current client, you can use +border normal+ to use the normal -- 2.39.5