polybar-dwm/include/modules/meta/static_module.hpp

25 lines
407 B
C++
Raw Normal View History

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;
void start() override {
CAST_MOD(Impl)->update();
CAST_MOD(Impl)->broadcast();
}
bool build(builder*, string) const {
return true;
}
2016-11-20 22:04:31 +00:00
};
} // namespace modules
2016-11-20 22:04:31 +00:00
POLYBAR_NS_END