From bd222984bb61ce09f942cba94204d1d53b41e365 Mon Sep 17 00:00:00 2001 From: Prakhar Chhalotre Date: Wed, 11 Feb 2026 01:07:49 +0530 Subject: [PATCH] fix: remove unnecessary console log for battery status --- src/modules/battery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/battery.cpp b/src/modules/battery.cpp index c706eb3c..8bf4a431 100644 --- a/src/modules/battery.cpp +++ b/src/modules/battery.cpp @@ -686,7 +686,7 @@ auto waybar::modules::Battery::update() -> void { status = getAdapterStatus(capacity); } auto status_pretty = status; - puts(status.c_str()); + // Transform to lowercase and replace space with dash std::ranges::transform(status.begin(), status.end(), status.begin(), [](char ch) { return ch == ' ' ? '-' : std::tolower(ch); });