Add always on option for hyprland/submap

This commit is contained in:
alttabber
2024-02-13 12:53:45 +01:00
parent 77c7b91b40
commit 9ea470410f
3 changed files with 39 additions and 3 deletions

View File

@ -19,12 +19,15 @@ class Submap : public waybar::ALabel, public EventHandler {
auto update() -> void override;
private:
auto parseConfig(const Json::Value&) -> void;
void onEvent(const std::string&) override;
std::mutex mutex_;
const Bar& bar_;
util::JsonParser parser_;
std::string submap_;
bool always_on_ = false;
std::string default_submap_ = "Default";
};
} // namespace waybar::modules::hyprland