polybar-dwm/include/modules/tailscript.hpp
Michael Carlberg 946843ff59 feat(script): Configurable condition using exec-if
Add new config parameter `exec-if = cmd` that needs to
exit successfully before the main exec command will be invoked.

Closes #298
2017-01-10 03:02:00 +01:00

18 lines
313 B
C++

#pragma once
#include "modules/script.hpp"
POLYBAR_NS
namespace modules {
class tailscript_module : virtual public script_module {
public:
explicit tailscript_module(const bar_settings&, string);
protected:
void process();
chrono::duration<double> sleep_duration();
};
}
POLYBAR_NS_END