Add temperature module

This commit is contained in:
Groggy
2019-03-13 13:18:08 +01:00
parent cd13180199
commit 7ae549dc9e
7 changed files with 97 additions and 2 deletions

View File

@ -56,6 +56,9 @@ waybar::IModule* waybar::Factory::makeModule(const std::string &name) const
return new waybar::modules::Pulseaudio(id, config_[name]);
}
#endif
if (ref == "temperature") {
return new waybar::modules::Temperature(id, config_[name]);
}
if (ref.compare(0, 7, "custom/") == 0 && ref.size() > 7) {
return new waybar::modules::Custom(ref.substr(7), config_[name]);
}