From cf3cb4c61fabbd44c256cdf7671b3f2929376a3e Mon Sep 17 00:00:00 2001 From: Max Reppen Date: Tue, 21 May 2019 13:44:05 -0400 Subject: [PATCH] feat(Battery) Format argument for time to full|empty --- 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 f4afc98..bd287d4 100644 --- a/src/modules/battery.cpp +++ b/src/modules/battery.cpp @@ -181,6 +181,6 @@ auto waybar::modules::Battery::update() -> void { } else { event_box_.show(); label_.set_markup(fmt::format( - format, fmt::arg("capacity", capacity), fmt::arg("icon", getIcon(capacity, state)))); + format, fmt::arg("capacity", capacity), fmt::arg("icon", getIcon(capacity, state)), fmt::arg("time", formatTimeRemaining(time_remaining)))); } }