Skip to content

feat(hyprland/language): support tooltip-format#5134

Open
cancaries wants to merge 2 commits into
Alexays:masterfrom
cancaries:codex/hyprland-language-tooltip
Open

feat(hyprland/language): support tooltip-format#5134
cancaries wants to merge 2 commits into
Alexays:masterfrom
cancaries:codex/hyprland-language-tooltip

Conversation

@cancaries

Copy link
Copy Markdown

Summary

  • add tooltip-format support to hyprland/language
  • reuse the existing {short}, {shortDescription}, {long}, and {variant} replacements
  • document the new tooltip options in the module man page

Fixes #3693

Testing

  • git diff --check

Note: I could not run a full local build in this environment because the Linux/GTK/Hyprland build toolchain is unavailable.

Copilot AI review requested due to automatic review settings June 17, 2026 03:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds configurable tooltip formatting for the Hyprland language module and documents the new configuration options.

Changes:

  • Parse a new tooltip-format config option in the Hyprland language module.
  • Set tooltip contents dynamically during update() using the configured format.
  • Document tooltip and tooltip-format options in the module man page.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/modules/hyprland/language.cpp Reads tooltip-format from config and formats tooltip text during updates
include/modules/hyprland/language.hpp Adds storage for tooltip_format_
man/waybar-hyprland-language.5.scd Documents new tooltip-related configuration options

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +14 to +16
if (config_["tooltip-format"].isString()) {
tooltip_format_ = config_["tooltip-format"].asString();
}
Comment thread src/modules/hyprland/language.cpp Outdated
Comment on lines +67 to +72
auto tooltip = trim(fmt::format(fmt::runtime(tooltip_format_),
fmt::arg("long", layout_.full_name),
fmt::arg("short", layout_.short_name),
fmt::arg("shortDescription", layout_.short_description),
fmt::arg("variant", layout_.variant)));
label_.set_tooltip_markup(tooltip);
Comment thread src/modules/hyprland/language.cpp Outdated
Comment on lines +72 to +74
label_.set_tooltip_markup(tooltip);
} else {
label_.set_tooltip_markup(layoutName);
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.

(hyprland/language) [Feature request] Tooltip on the module

2 participants