From 6b050ff457176fa2c18cf8d8277ef74bf5448ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 22 Apr 2019 12:32:26 +0200 Subject: [PATCH] doc: xwindow --- doc/f00bar-modules.5.scd | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/doc/f00bar-modules.5.scd b/doc/f00bar-modules.5.scd index e8e1e80..9662c97 100644 --- a/doc/f00bar-modules.5.scd +++ b/doc/f00bar-modules.5.scd @@ -583,6 +583,41 @@ bar: string: {text: "{symbol}"} ``` +# XWINDOW + +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. + +## TAGS + +[[ *Name* +:[ *Type* +:[ *Description* +| application +: string +: Name of the application that owns the currently focused window +| title +: string +: The title of the currently focused window + +## CONFIGURATION + +No additional attributes supported, only the generic ones (see +*GENERIC CONFIGURATION*) + +## EXAMPLES + +``` +bar: + left: + - xwindow: + content: + string: {text: "{application}: {title}"} +``` + # SEE ALSO *f00bar-particles*(5), *f00bar-tags*(5), *f00bar-decorations*(5)