mirror of
https://github.com/polybar/polybar.git
synced 2026-03-08 01:09:09 +00:00
refactor(script): Split non-/tail logic
Split the script module into one tailing output module and one exec once module. Refs #281
This commit is contained in:
17
include/modules/cmdscript.hpp
Normal file
17
include/modules/cmdscript.hpp
Normal file
@ -0,0 +1,17 @@
|
||||
#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();
|
||||
};
|
||||
}
|
||||
|
||||
POLYBAR_NS_END
|
||||
Reference in New Issue
Block a user