feat(custom): exec-if

This commit is contained in:
Alexis
2018-08-18 17:27:40 +02:00
parent 38ede5b3d5
commit b794ca63d1
3 changed files with 32 additions and 7 deletions

View File

@ -1,6 +1,8 @@
#pragma once
#include <fmt/format.h>
#include <iostream>
#include <sys/wait.h>
#include "util/chrono.hpp"
#include "ALabel.hpp"
@ -8,10 +10,10 @@ namespace waybar::modules {
class Custom : public ALabel {
public:
Custom(const std::string&, Json::Value);
Custom(std::string, Json::Value);
auto update() -> void;
private:
const std::string& name_;
std::string name_;
waybar::util::SleeperThread thread_;
};