mirror of
https://github.com/polybar/polybar.git
synced 2026-02-18 19:15:42 +00:00
init(git): Base commit
This commit is contained in:
17
src/modules/base.cpp
Normal file
17
src/modules/base.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include "lemonbuddy.hpp"
|
||||
#include "registry.hpp"
|
||||
#include "modules/base.hpp"
|
||||
#include "utils/config.hpp"
|
||||
#include "utils/string.hpp"
|
||||
|
||||
namespace modules
|
||||
{
|
||||
void broadcast_module_update(const std::string& module_name) {
|
||||
log_trace("Broadcasting module update for => "+ module_name);
|
||||
get_registry()->notify(module_name);
|
||||
}
|
||||
|
||||
std::string get_tag_name(const std::string& tag) {
|
||||
return tag.length() < 2 ? "" : tag.substr(1, tag.length()-2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user