The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

tooltips for window titles

asked Sep 8 '15

rob gravatar image

updated Sep 8 '15

Many applications set a long title string expecting the window title bar to be the same width as the window. Would it be possible to show a tooltip of the full string to allow for cases where it is truncated (eg. in tabbed mode)?

The long title is often useful (eg. full filepath) and I don't think it can always be sensibly shortened with 'title_format'. For some applications there may be no other way of determining the path of the currently open file.

see also change titles

1 answer

Sort by » oldest newest most voted
1

answered Sep 8 '15

Airblader gravatar image

updated Sep 8 '15

You could write a small script ~/.config/i3/title_popup.sh like this:

#!/usr/bin/env bash
notify-send "$(xdotool getactivewindow getwindowname)"

Note that you need some notification daemon for this (e.g., dunst). Then, use a keybinding (or any binding) like this:

# middle mouse button on window title triggers notification
bindsym button2 exec --no-startup-id $HOME/.config/i3/title_popup.sh

Unfortunately i3 has no "hover" feature. So if it has to be hovering, you'll need to write a tool (or see if something exists).

Comments

thanks, that works well

rob gravatar imagerob (Sep 9 '15)edit

Question Tools

1 follower

Stats

Asked: Sep 8 '15

Seen: 80 times

Last updated: Sep 08