![Michael Carlberg](/assets/img/avatar_default.png)
Add new config parameter `exec-if = cmd` that needs to exit successfully before the main exec command will be invoked. Closes #298
18 lines
313 B
C++
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
|