Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyprland/window module tooltip #2898

Closed
danielwerg opened this issue Feb 7, 2024 · 1 comment · Fixed by #3898
Closed

hyprland/window module tooltip #2898

danielwerg opened this issue Feb 7, 2024 · 1 comment · Fixed by #3898

Comments

@danielwerg
Copy link

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)\""
},
@andersmmg
Copy link

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

macydnah added a commit to macydnah/dotfiles that referenced this issue Feb 21, 2025
Note on `max-length` JSON name: It is documented in `sway/window` not in
`hyprland/window` but anyways works on the latter. See Alexays/Waybar#2898

- Add some `rewrite` to use emojis when focusing a VIM or Firefox window
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 a pull request may close this issue.

2 participants