Skip to content

Allow tooltip formatting the CPU module.#4724

Merged
Alexays merged 4 commits into
Alexays:masterfrom
hallvardnmbu:master
Jul 3, 2026
Merged

Allow tooltip formatting the CPU module.#4724
Alexays merged 4 commits into
Alexays:masterfrom
hallvardnmbu:master

Conversation

@hallvardnmbu

Copy link
Copy Markdown
Contributor

Includes handling of tooltip-format within the CPU module.

Closes #2320

Currently, when tooltip is enabled for the CPU module, each core along with its usage is listed (as well as the total).

This change allows specifying any (or none) of the format replacements of waybar-cpu(5) in the tooltip-format.

It defaults to the current behaviour (i.e., when tooltip is true and no tooltip-format is specified).

@ClairDePrince

Copy link
Copy Markdown

@Alexays 🙏

Alexays added 2 commits July 3, 2026 21:49
The tooltip selection block redundantly reassigned tooltip_format to
config_["tooltip-format"], overwriting the state-specific format (and
emptying it when no global tooltip-format was set). A lone
tooltip-format-<state> therefore produced an empty tooltip.

Consolidate the tooltip handling into a single block that prefers
tooltip-format-<state>, falls back to the global tooltip-format, then to
the computed default tooltip, reusing the existing format arg store.
@Alexays
Alexays merged commit 7df6268 into Alexays:master Jul 3, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] tooltip-format for CPU module

3 participants