mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat: add custom module to allow execution of external script
This commit is contained in:
@ -20,5 +20,7 @@ waybar::IModule &waybar::Factory::makeModule(std::string name)
|
||||
return *new waybar::modules::Network(_config[name]);
|
||||
if (name == "pulseaudio")
|
||||
return *new waybar::modules::Pulseaudio(_config[name]);
|
||||
if (!name.compare(0, 7, "custom/") && name.size() > 7)
|
||||
return *new waybar::modules::Custom(name.substr(7), _config[name]);
|
||||
throw std::runtime_error("Unknown module: " + name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user