modules/custom: Allow json fields as format specifiers

This commit is contained in:
2023-08-30 06:36:50 +02:00
parent 8ef4ddd7ef
commit 0ec0ea2201
2 changed files with 41 additions and 25 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include <fmt/format.h>
#include <fmt/args.h>
#include <csignal>
#include <string>
@ -36,6 +37,7 @@ class Custom : public ALabel {
std::string alt_;
std::string tooltip_;
std::vector<std::string> class_;
fmt::dynamic_format_arg_store<fmt::format_context> fields_;
int percentage_;
FILE* fp_;
int pid_;