From c8821a5e7ff9de5f55189a5128d6413b9505dd51 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 30 Dec 2019 13:56:34 +0100 Subject: [PATCH] fix(Battery): replace spaces w/ dashes --- src/modules/battery.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/battery.cpp b/src/modules/battery.cpp index d5cd8fd5..dfd67531 100644 --- a/src/modules/battery.cpp +++ b/src/modules/battery.cpp @@ -165,9 +165,9 @@ auto waybar::modules::Battery::update() -> void { } // Transform to lowercase std::transform(status.begin(), status.end(), status.begin(), ::tolower); - // Replace space with underscore + // Replace space with dash std::transform(status.begin(), status.end(), status.begin(), [](char ch) { - return ch == ' ' ? '_' : ch; + return ch == ' ' ? '-' : ch; }); auto format = format_; auto state = getState(capacity, true);