Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

hyprland/window module tooltip

Open danielwerg opened this issue 1 year ago • 1 comments
trafficstars

Docs for hyprland/window only got 3 documented options: format, rewrite and separate-outputs. But after reading sway/windows docs I found that options such as icon or max-length will also work for hyprland/window.

I set max-length to 100 and because of that sometimes title will look like this: Foo bar... (ellipsis at the end). I would like to have a tooltip on-hover with a full title of a window. sway/tooltip docs says it is enabled by default but it doesn't work with hyprland/windows, setting tooltip to true explicitly doesn't change anything either.

"hyprland/window": {
  "max-length": 100, // Characters count
  "separate-outputs": true,
  "icon": true
},

Workaround

Display notification with full title:

"hyprland/window": {
  ...
  "on-click": "dunstify \"$(hyprctl activewindow -j | jq -r .title)\""
},

danielwerg avatar Feb 07 '24 20:02 danielwerg

Was trying to do a tooltip for this as well, would be great if support was added!

andersmmg avatar Mar 27 '24 21:03 andersmmg