feat(sway/scratchpad): add basic counter

This commit is contained in:
asas1asas200
2022-08-29 04:55:48 +08:00
parent ce10ce0d5e
commit e3342467fc
5 changed files with 92 additions and 1 deletions

View File

@ -35,6 +35,9 @@ waybar::AModule* waybar::Factory::makeModule(const std::string& name) const {
if (ref == "sway/language") {
return new waybar::modules::sway::Language(id, config_[name]);
}
if (ref == "sway/scratchpad") {
return new waybar::modules::sway::Scratchpad(id, bar_, config_[name]);
}
#endif
#ifdef HAVE_WLR
if (ref == "wlr/taskbar") {