mirror of
https://github.com/polybar/polybar.git
synced 2026-02-07 15:15:40 +00:00
Add new config parameter `exec-if = cmd` that needs to exit successfully before the main exec command will be invoked. Closes #298
19 lines
313 B
C++
19 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
|