awesome icon indicating copy to clipboard operation
awesome copied to clipboard

Make tool tips indicate the action that a click will acheive

Open Lonniebiz opened this issue 2 years ago • 1 comments

The tool tips that display, upon hovering over a window's title-bar-buttons, would be more helpful to newcomers if the text shown was based on the current state of that toggle button.

For example, if a window is maximized, the tool tip could say "unmaximize", and if the window is not maximized it could say "maximize". Similar state-based tool-tips could be applied to all title-bar-buttons, instead of just statically displaying the same text across all states.

I realize that the icons themselves change based on state, but as a new user (who is unfamiliar with these pictorial states), I would appreciate tool tips that are more dynamically informative and less static. I understand that a lot of advanced users remove these title bars completely. So, it would be nice if their behavior catered more to newcomers.

awesome v4.3 (Too long) • Compiled against Lua 5.3.3 (running with Lua 5.3) • D-Bus support: ✔ • execinfo support: ✔ • xcb-randr version: 1.6 • LGI version: 0.9.2

Lonniebiz avatar Dec 29 '21 21:12 Lonniebiz

Hello,

That's actually a "nice to have" improvement!

The titlebar buttons builder function already sets default tooltips with the button name : https://github.com/awesomeWM/awesome/blob/7451c6952e0a24bd54edc0f7ecff6ad46ef65dcb/lib/awful/titlebar.lua#L758-L761

I think it shouldn't be too hard to update the text based on the "active" status in this update function. This would be do-able by new contributors :wink:

Aire-One avatar Dec 30 '21 13:12 Aire-One