polybar-dwm/include/modules/script.hpp
Michael Carlberg 39d3f61497 refactor(core): Clean-up
- use "#pragma once" instead of the regular include guard
- fix errors and warnings reported by cppcheck
2016-06-02 01:32:06 +02:00

34 lines
656 B
C++

#pragma once
#include "modules/base.hpp"
#include "services/command.hpp"
namespace modules
{
DefineModule(ScriptModule, TimerModule)
{
static constexpr auto TAG_OUTPUT = "<output>";
std::unique_ptr<Builder> builder;
std::string exec;
std::string click_left;
std::string click_middle;
std::string click_right;
std::string scroll_up;
std::string scroll_down;
std::string output;
std::atomic<int> counter;
protected:
public:
explicit ScriptModule(const std::string& name);
bool update();
bool build(Builder *builder, const std::string& tag);
std::string get_output();
};
}