aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway.5.scd
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2019-03-18 21:23:28 +1000
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-03-18 11:27:36 -0400
commit38bd60c4b3e70cb5584529358162f8b37d43669f (patch)
tree54f13a24ba932e5947eada6379ba3a2b152c4e1e /sway/sway.5.scd
parentconfig/output: handle wildcard in get_output_config (diff)
downloadsway-38bd60c4b3e70cb5584529358162f8b37d43669f.tar.gz
sway-38bd60c4b3e70cb5584529358162f8b37d43669f.tar.zst
sway-38bd60c4b3e70cb5584529358162f8b37d43669f.zip
Document the title_format command
Diffstat (limited to 'sway/sway.5.scd')
-rw-r--r--sway/sway.5.scd20
1 files changed, 19 insertions, 1 deletions
diff --git a/sway/sway.5.scd b/sway/sway.5.scd
index 4f4522fb..989717cb 100644
--- a/sway/sway.5.scd
+++ b/sway/sway.5.scd
@@ -265,6 +265,24 @@ set|plus|minus <amount>
265 becomes fullscreen on the same workspace as the first container. In either 265 becomes fullscreen on the same workspace as the first container. In either
266 of those cases, the second container will gain focus. 266 of those cases, the second container will gain focus.
267 267
268*title_format* <format>
269 Sets the format of window titles. The following placeholders may be used:
270
271 %title - The title supplied by the window
272 %app_id - The wayland app ID (applicable to wayland windows only)
273 %class - The X11 classname (applicable to xwayland windows only)
274 %instance - The X11 instance (applicable to xwayland windows only)
275 %shell - The protocol the window is using (typically xwayland or
276 xdg_shell)
277
278 This command is typically used with *for_window* criteria. For example:
279
280 for_window [title="."] title_format "<b>%title</b> (%app_id)"
281
282 Note that markup requires pango to be enabled via the *font* command.
283
284 The default format is "%title".
285
268The following commands may be used either in the configuration file or at 286The following commands may be used either in the configuration file or at
269runtime. 287runtime.
270 288
@@ -300,7 +318,7 @@ runtime.
300 values in X11 (1=left, 2=middle, 3=right, 4=scroll up, 5=scroll down, 318 values in X11 (1=left, 2=middle, 3=right, 4=scroll up, 5=scroll down,
301 6=scroll left, 7=scroll right, 8=back, 9=forward). For the latter option, 319 6=scroll left, 7=scroll right, 8=back, 9=forward). For the latter option,
302 you can find the event names using _libinput debug-events_. 320 you can find the event names using _libinput debug-events_.
303 321
304 _--whole-window_, _--border_, and _--exclude-titlebar_ are mouse-only options 322 _--whole-window_, _--border_, and _--exclude-titlebar_ are mouse-only options
305 which affect the region in which the mouse bindings can be triggered. By 323 which affect the region in which the mouse bindings can be triggered. By
306 default, mouse bindings are only triggered when over the title bar. With the 324 default, mouse bindings are only triggered when over the title bar. With the