mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat: add network module
This commit is contained in:
@ -16,5 +16,7 @@ waybar::IModule &waybar::Factory::makeModule(std::string name)
|
||||
return *new waybar::modules::Cpu(_config[name]);
|
||||
if (name == "clock")
|
||||
return *new waybar::modules::Clock(_config[name]);
|
||||
if (name == "network")
|
||||
return *new waybar::modules::Network(_config[name]);
|
||||
throw std::runtime_error("Unknown module: " + name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user