mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-15 16:05:38 +02:00
module/foreign-toplevel: initial support
* ‘content’ is a template; the module returns a list of toplevels, each one instantiated using the content template. * Each toplevel has 6 tags: - app-id (string) - title (string) - maximized (bool) - minimized (bool) - activated (bool) - fullscreen (bool) To show the application name and title of the currently active window, one can do: - foreign-toplevel: content: map: tag: activated values: false: {empty: {}} true: {string: {text: "{app-id}: {title}"}}
This commit is contained in:
parent
eb94c8cceb
commit
560d7464b4
4 changed files with 691 additions and 0 deletions
4
plugin.c
4
plugin.c
|
@ -36,6 +36,7 @@ EXTERN_MODULE(alsa);
|
|||
EXTERN_MODULE(backlight);
|
||||
EXTERN_MODULE(battery);
|
||||
EXTERN_MODULE(clock);
|
||||
EXTERN_MODULE(foreign_toplevel);
|
||||
EXTERN_MODULE(i3);
|
||||
EXTERN_MODULE(label);
|
||||
EXTERN_MODULE(mpd);
|
||||
|
@ -111,6 +112,9 @@ init(void)
|
|||
REGISTER_CORE_MODULE(backlight, backlight);
|
||||
REGISTER_CORE_MODULE(battery, battery);
|
||||
REGISTER_CORE_MODULE(clock, clock);
|
||||
#if defined(HAVE_PLUGIN_foreign_toplevel)
|
||||
REGISTER_CORE_MODULE(foreign-toplevel, foreign_toplevel);
|
||||
#endif
|
||||
REGISTER_CORE_MODULE(i3, i3);
|
||||
REGISTER_CORE_MODULE(label, label);
|
||||
REGISTER_CORE_MODULE(mpd, mpd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue