Merge pull request #2917 from alttabber/master

Add always on option for hyprland/submap
This commit is contained in:
Alexis Rouillard
2024-03-22 23:21:17 +01:00
committed by GitHub
3 changed files with 38 additions and 0 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& ev) 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