2016-11-20 22:04:31 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "modules/meta/base.hpp"
|
|
|
|
|
|
|
|
POLYBAR_NS
|
|
|
|
|
|
|
|
namespace modules {
|
|
|
|
template <class Impl>
|
|
|
|
class static_module : public module<Impl> {
|
|
|
|
public:
|
|
|
|
using module<Impl>::module;
|
|
|
|
|
2021-01-04 09:38:43 +00:00
|
|
|
void start() override {
|
2021-10-15 08:33:10 +00:00
|
|
|
this->module<Impl>::start();
|
2021-09-22 20:27:04 +00:00
|
|
|
CAST_MOD(Impl)->update();
|
|
|
|
CAST_MOD(Impl)->broadcast();
|
2016-12-21 08:21:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool build(builder*, string) const {
|
|
|
|
return true;
|
|
|
|
}
|
2016-11-20 22:04:31 +00:00
|
|
|
};
|
2021-01-04 09:38:43 +00:00
|
|
|
} // namespace modules
|
2016-11-20 22:04:31 +00:00
|
|
|
|
|
|
|
POLYBAR_NS_END
|