add more format replacements for hyprland/language

This commit is contained in:
en3wton
2023-03-19 15:12:11 +00:00
parent 473eb0982b
commit 4ab4ff790e
3 changed files with 51 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