mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Added return-type json to custom module
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
#include <iostream>
|
||||
#include "util/chrono.hpp"
|
||||
#include "util/command.hpp"
|
||||
#include "util/json.hpp"
|
||||
#include "ALabel.hpp"
|
||||
|
||||
namespace waybar::modules {
|
||||
@ -15,7 +16,8 @@ class Custom : public ALabel {
|
||||
private:
|
||||
void delayWorker();
|
||||
void continuousWorker();
|
||||
void parseOutput();
|
||||
void parseOutputRaw();
|
||||
void parseOutputJson();
|
||||
|
||||
const std::string name_;
|
||||
std::string text_;
|
||||
@ -24,6 +26,7 @@ class Custom : public ALabel {
|
||||
std::string prevclass_;
|
||||
waybar::util::SleeperThread thread_;
|
||||
waybar::util::command::res output_;
|
||||
waybar::util::JsonParser parser_;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user