
Add new config parameter `exec-if = cmd` that needs to exit successfully before the main exec command will be invoked. Closes #298
18 lines
311 B
C++
18 lines
311 B
C++
#pragma once
|
|
|
|
#include "modules/script.hpp"
|
|
|
|
POLYBAR_NS
|
|
|
|
namespace modules {
|
|
class cmdscript_module : virtual public script_module {
|
|
public:
|
|
explicit cmdscript_module(const bar_settings&, string);
|
|
|
|
protected:
|
|
void process();
|
|
chrono::duration<double> sleep_duration();
|
|
};
|
|
}
|
|
|
|
POLYBAR_NS_END
|