mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-17 16:35:40 +02:00
Added 'MPRIS' module
This commit adds the ability to display status information for MPRIS compatible music players. I've adapted most of the naming conventions (and some code) from the MPD module.
This commit is contained in:
parent
739dc30323
commit
1b8962d296
5 changed files with 639 additions and 0 deletions
6
plugin.c
6
plugin.c
|
@ -57,6 +57,9 @@ EXTERN_MODULE(mem);
|
|||
#if defined(HAVE_PLUGIN_mpd)
|
||||
EXTERN_MODULE(mpd);
|
||||
#endif
|
||||
#if defined(HAVE_PLUGIN_mpris)
|
||||
EXTERN_MODULE(mpris);
|
||||
#endif
|
||||
#if defined(HAVE_PLUGIN_i3)
|
||||
EXTERN_MODULE(i3);
|
||||
#endif
|
||||
|
@ -187,6 +190,9 @@ static void __attribute__((constructor)) init(void)
|
|||
#if defined(HAVE_PLUGIN_mpd)
|
||||
REGISTER_CORE_MODULE(mpd, mpd);
|
||||
#endif
|
||||
#if defined(HAVE_PLUGIN_mpris)
|
||||
REGISTER_CORE_MODULE(mpris, mpris);
|
||||
#endif
|
||||
#if defined(HAVE_PLUGIN_i3)
|
||||
REGISTER_CORE_MODULE(i3, i3);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue