parent
0abaaf2f7f
commit
55e1905284
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
namespace waybar {
|
namespace waybar {
|
||||||
|
|
||||||
|
class Bar;
|
||||||
|
|
||||||
class Factory {
|
class Factory {
|
||||||
public:
|
public:
|
||||||
Factory(Bar& bar, const Json::Value& config);
|
Factory(Bar& bar, const Json::Value& config);
|
||||||
|
|
|
@ -14,10 +14,10 @@ waybar::IModule* waybar::Factory::makeModule(const std::string &name) const
|
||||||
if (name == "sway/workspaces") {
|
if (name == "sway/workspaces") {
|
||||||
return new waybar::modules::sway::Workspaces(bar_, config_[name]);
|
return new waybar::modules::sway::Workspaces(bar_, config_[name]);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if (name == "sway/window") {
|
if (name == "sway/window") {
|
||||||
return new waybar::modules::sway::Window(bar_, config_[name]);
|
return new waybar::modules::sway::Window(bar_, config_[name]);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (name == "memory") {
|
if (name == "memory") {
|
||||||
return new waybar::modules::Memory(config_[name]);
|
return new waybar::modules::Memory(config_[name]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue