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:
@ -78,6 +78,13 @@ void waybar::modules::Custom::continuousWorker()
|
||||
};
|
||||
}
|
||||
|
||||
void waybar::modules::Custom::refresh(int sig /*signal*/)
|
||||
{
|
||||
if(sig == SIGRTMIN + config_["signal"].asInt()) {
|
||||
thread_.wake_up();
|
||||
}
|
||||
}
|
||||
|
||||
auto waybar::modules::Custom::update() -> void
|
||||
{
|
||||
// Hide label if output is empty
|
||||
|
Reference in New Issue
Block a user