Skip to content

volume: add live volume tooltip and configurable slider popup - #608

Closed
mrsteve0924 wants to merge 1 commit into
WayfireWM:masterfrom
mrsteve0924:volume-tooltip
Closed

mrsteve0924 wants to merge 1 commit into
WayfireWM:masterfrom
mrsteve0924:volume-tooltip

Conversation

@mrsteve0924

Copy link
Copy Markdown
Contributor

This PR introduces a live volume tooltip that displays the current volume percentage or muted state.

A custom tooltip-like popover is used to avoid GTK's default behavior of dismissing tooltips during scrolling, allowing smooth percentage updates without flickering.

Changes:

  • Display the current volume percentage and mute state.
  • Update the percentage smoothly while scrolling without opening the slider.
  • Dynamically position the tooltip according to the configured panel edge.
  • Add volume_popup_on_change to optionally disable the automatic slider popup when volume changes externally.
  • Preserve existing left-click and middle-click functionality.

Widget behavior:

Action Behavior
Hover Display volume percentage or muted state
Scroll Smooth, live percentage updates
Left-click Open volume slider
Middle-click Toggle mute
Keyboard volume controls Show timed slider if enabled

The automatic slider popup can be disabled with:

volume_popup_on_change = false

This option defaults to true to preserve the existing behavior for external volume changes.

Testing:

Successfully tested scrolling, muting, keyboard volume controls, and tooltip positioning on all four panel edges.

Display the current volume percentage and mute state in a tooltip
that updates smoothly while scrolling. Add configurable automatic
slider popups and respect all four panel positions.

Signed-off-by: stephen finkel <mrsteve0924@verizon.net>
Assisted-by: ChatGPT:GPT-5.6 Sol
@mrsteve0924

Copy link
Copy Markdown
Contributor Author

Superseded by #620, which incorporates this change along with the other volume widget enhancements and integrated media playback controls. The individual changes remain in separate commits for easier review.

@mrsteve0924 mrsteve0924 closed this Dec 4, 2026
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.

1 participant