config: add tag dispacther and window rule (#6211)

This commit is contained in:
giskard 2024-05-29 05:37:24 +08:00 committed by GitHub
parent 73b133d015
commit ebf258788e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 190 additions and 51 deletions

18
src/helpers/TagKeeper.hpp Normal file
View file

@ -0,0 +1,18 @@
#pragma once
#include <string>
#include <set>
class CTagKeeper {
public:
bool isTagged(const std::string& tag, bool strict = false);
bool applyTag(const std::string& tag, bool dynamic = false);
bool removeDynamicTags();
inline const auto& getTags() {
return m_tags;
};
private:
std::set<std::string> m_tags;
};