Add module to show sway binding mode

This commit is contained in:
Robinhuett
2018-10-30 13:39:30 +01:00
parent c9a8a07976
commit a042eea384
5 changed files with 75 additions and 0 deletions

View File

@ -12,6 +12,9 @@ waybar::IModule* waybar::Factory::makeModule(const std::string &name) const
return new waybar::modules::Battery(config_[name]);
}
#ifdef HAVE_SWAY
if (ref == "sway/mode") {
return new waybar::modules::sway::Mode(bar_, config_[name]);
}
if (ref == "sway/workspaces") {
return new waybar::modules::sway::Workspaces(bar_, config_[name]);
}