mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
24 lines
376 B
C++
24 lines
376 B
C++
#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() {
|
|
CAST_MOD(Impl)->update();
|
|
CAST_MOD(Impl)->broadcast();
|
|
}
|
|
|
|
bool build(builder*, string) const {
|
|
return true;
|
|
}
|
|
};
|
|
}
|
|
|
|
POLYBAR_NS_END
|