From 11568b25231b7b6928d216dfa20e676814bfd9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 24 Jan 2020 22:53:34 +0100 Subject: [PATCH] doc: yambar-modules: talk about i3::application/title vs xwindow --- doc/yambar-modules.5.scd | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/doc/yambar-modules.5.scd b/doc/yambar-modules.5.scd index bd5f413..00359c4 100644 --- a/doc/yambar-modules.5.scd +++ b/doc/yambar-modules.5.scd @@ -322,11 +322,14 @@ Unlike other modules where the _content_ attribute is just a single *particle*, the i3 module's _content_ is an associative array mapping i3/sway workspace names to a particle. -You can specify a default particle to use with an empty workspace -name, *""*. +You can add an empty workspace name, *""*, as a catch-all workspace +particle. The *i3* module will fallback to this entry if it cannot +find the workspace name in the _content_ map. It also recognizes the special name *current*, which always represents -the currently focused workspace. +the currently focused workspace. On Sway, this can be used together +with the _application_ and _title_ tags to replace the X11-only +*xwindow* module. ## TAGS @@ -351,7 +354,7 @@ the currently focused workspace. *unfocused* is when it is visible, but neither focused nor urgent). | application : string -: Name of application currently focused on this workspace (Sway only) +: Name of application currently focused on this workspace (Sway only - use the *xwindow* module in i3) | title : string : This workspace's focused window's title @@ -741,7 +744,8 @@ This module provides the application name and window title of the currently focused window. Note: this module is X11 only. It does not work in Wayland. If you are -running Sway, take a look at the _i3_ module and its _current_ tag. +running Sway, take a look at the *i3* module and its _application_ and +_title_ tags. ## TAGS