Merge pull request #2064 from en3wton/hyprland-language-format-replacements

This commit is contained in:
Alex
2023-04-03 09:43:28 +02:00
committed by GitHub
3 changed files with 53 additions and 35 deletions

View File

@ -18,12 +18,21 @@ class Language : public waybar::ALabel, public EventHandler {
void onEvent(const std::string&) override;
void initLanguage();
std::string getShortFrom(const std::string&);
struct Layout {
std::string full_name;
std::string short_name;
std::string variant;
std::string short_description;
};
auto getLayout(const std::string&) -> Layout;
std::mutex mutex_;
const Bar& bar_;
util::JsonParser parser_;
std::string layoutName_;
Layout layout_;
};
} // namespace waybar::modules::hyprland