Skip to content

Commit

Permalink
Add debug information for keyboard layout selection
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jun 22, 2024
1 parent e627879 commit 4126502
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/modules/hyprland/language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ Language::~Language() {
auto Language::update() -> void {
std::lock_guard<std::mutex> lg(mutex_);

spdlog::debug("hyprland language update with full name {}", layout_.full_name);
spdlog::debug("hyprland language update with short name {}", layout_.short_name);
spdlog::debug("hyprland language update with short description {}", layout_.short_description);
spdlog::debug("hyprland language update with variant {}", layout_.variant);

std::string layoutName = std::string{};
if (config_.isMember("format-" + layout_.short_description + "-" + layout_.variant)) {
const auto propName = "format-" + layout_.short_description + "-" + layout_.variant;
Expand All @@ -50,6 +55,8 @@ auto Language::update() -> void {
fmt::arg("variant", layout_.variant)));
}

spdlog::debug("hyprland language formatted layout name {}", layoutName);

if (!format_.empty()) {
label_.show();
label_.set_markup(layoutName);
Expand Down

0 comments on commit 4126502

Please sign in to comment.