river/mode: new module

This module shows river's current mapping mode (e.g. normal, locked).
This commit is contained in:
tiosgz
2022-05-31 20:28:09 +00:00
parent 074b7c4b99
commit f3a049c6df
9 changed files with 241 additions and 2 deletions

View File

@ -47,6 +47,9 @@ waybar::AModule* waybar::Factory::makeModule(const std::string& name) const {
#endif
#endif
#ifdef HAVE_RIVER
if (ref == "river/mode") {
return new waybar::modules::river::Mode(id, bar_, config_[name]);
}
if (ref == "river/tags") {
return new waybar::modules::river::Tags(id, bar_, config_[name]);
}