#pragma once #include "adapters/script_runner.hpp" #include "modules/meta/base.hpp" #include "modules/meta/types.hpp" #include "utils/command.hpp" #include "utils/io.hpp" POLYBAR_NS namespace modules { class script_module : public module { public: explicit script_module(const bar_settings&, string, const config&); void start() override; void stop() override; string get_output(); string get_format() const; bool build(builder* builder, const string& tag) const; static constexpr auto TYPE = SCRIPT_TYPE; protected: bool check_condition(); private: void handle_runner_update(const script_runner::data&); static constexpr auto TAG_LABEL = "