yambar-modules-foreign-toplevel(5) File Formats Manual yambar-modules-foreign-toplevel(5)

# [NAME](#NAME)

foreign-toplevel - This module provides information about toplevel windows in Wayland

# [DESCRIPTION](#DESCRIPTION)

This module uses the *wlr foreign toplevel management* Wayland protocol to provide information about currently open windows, such as their application ID, window title, and their current state (maximized/minimized/fullscreen/activated).

The configuration for the foreign-toplevel module specifies a *template* particle. This particle will be instantiated once for each window.

Note: Wayland only.

# [TAGS](#TAGS)

**Name** **Type** **Description** app-id string The application ID (typically the application name) title string The window title maximized bool True if the window is currently maximized minimized bool True if the window is currently minimized fullscreen bool True if the window is currently fullscreened activated bool True if the window is currently activated (i.e. has focus)

# [CONFIGURATION](#CONFIGURATION)

**Name** **Type** **Req** **Description** content particle yes Template particle that will be instantiated once for each window all-monitors bool no When set to true, only windows on the same monitor the bar will be used. The default is false.

# [EXAMPLES](#EXAMPLES)

```
bar:


  left:


    - foreign-toplevel:


        content:


          map:


            conditions:


              ~activated: {empty: {}}


              activated:


                - string: {text: "{app-id}: {title}"}
```

# [SEE ALSO](#SEE_ALSO)

[**yambar-modules**(5)](/man/enterprise-packages/yambar/yambar-modules.5), [**yambar-particles**(5)](/man/enterprise-packages/yambar/yambar-particles.5), [**yambar-tags**(5)](/man/enterprise-packages/yambar/yambar-tags.5), [**yambar-decorations**(5)](/man/enterprise-packages/yambar/yambar-decorations.5)

2026-09-18

---

Document: yambar-modules-foreign-toplevel(5) from yambar 1.11.0-r3 (Chainguard OS)
Source: https://codeberg.org/dnkl/yambar
