From e0e36b6d8186b8fbae30c93d8937dc2be6c7865c Mon Sep 17 00:00:00 2001 From: Chris Vittal Date: Fri, 13 Feb 2026 14:17:48 -0500 Subject: [PATCH] memory: use markup rather than text for memory tooltip Seems a little strange to me that we can format the tooltip text, but can't use markup like we can elsewhere. --- src/modules/memory/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/memory/common.cpp b/src/modules/memory/common.cpp index a83f6526..ff2c4fd2 100644 --- a/src/modules/memory/common.cpp +++ b/src/modules/memory/common.cpp @@ -69,7 +69,7 @@ auto waybar::modules::Memory::update() -> void { if (tooltipEnabled()) { if (config_["tooltip-format"].isString()) { auto tooltip_format = config_["tooltip-format"].asString(); - label_.set_tooltip_text(fmt::format( + label_.set_tooltip_markup(fmt::format( fmt::runtime(tooltip_format), used_ram_percentage, fmt::arg("total", total_ram_gigabytes), fmt::arg("swapTotal", total_swap_gigabytes), fmt::arg("percentage", used_ram_percentage),