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 2015-09-08 14:31:02 +0000

rob gravatar image

updated 2015-09-08 15:13:01 +0000

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-09-08 15:50:04 +0000

Airblader gravatar image

updated 2015-09-08 16:53:58 +0000

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).

edit flag offensive delete link more

Comments

thanks, that works well

rob gravatar imagerob ( 2015-09-09 08:59:32 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2015-09-08 14:31:02 +0000

Seen: 80 times

Last updated: Sep 08