From 55a6e4907b79c00243ac800101470980f2277d26 Mon Sep 17 00:00:00 2001 From: Sibren Vasse Date: Tue, 26 Mar 2019 00:19:55 +0100 Subject: [PATCH] feat(custom): allow icon selection based on json alt attribute --- src/modules/custom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/custom.cpp b/src/modules/custom.cpp index a8afea5..706c1de 100644 --- a/src/modules/custom.cpp +++ b/src/modules/custom.cpp @@ -98,7 +98,7 @@ auto waybar::modules::Custom::update() -> void auto str = fmt::format(format_, text_, fmt::arg("alt", alt_), - fmt::arg("icon", getIcon(percentage_)), + fmt::arg("icon", getIcon(percentage_, alt_)), fmt::arg("percentage", percentage_)); label_.set_markup(str); if (tooltipEnabled()) {