mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(custom): exec-if
This commit is contained in:
@ -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_;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user