foreign-toplevel - This module provides information about toplevel windows in Wayland
Contents
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. │
└──────────────┴──────────┴─────┴───────────────────────────────────────────────────────────────────────┘
Description
This module uses the wlrforeigntoplevelmanagement 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.
Examples
bar:
left:
- foreign-toplevel:
content:
map:
conditions:
~activated: {empty: {}}
activated:
- string: {text: "{app-id}: {title}"}
Name
foreign-toplevel - This module provides information about toplevel windows in Wayland
See Also
yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)
2024-04-20 yambar-modules-foreign-toplevel(5)
