mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
add signalhandler for module update
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <iostream>
|
||||
#include <csignal>
|
||||
#include "util/sleeper_thread.hpp"
|
||||
#include "util/command.hpp"
|
||||
#include "util/json.hpp"
|
||||
@ -14,6 +15,7 @@ class Custom : public ALabel {
|
||||
Custom(const std::string&, const Json::Value&);
|
||||
~Custom();
|
||||
auto update() -> void;
|
||||
void refresh(int /*signal*/);
|
||||
private:
|
||||
void delayWorker();
|
||||
void continuousWorker();
|
||||
|
Reference in New Issue
Block a user