xlunch icon indicating copy to clipboard operation
xlunch copied to clipboard

Can we set button tooltips?

Open Botspot opened this issue 4 years ago • 4 comments

I'd like to configure hover-text/tooltips for the buttons in xlunch.

Is there a way to do this?

Botspot avatar Nov 27 '20 16:11 Botspot

Hmm, unfortunately not. Most tooltips are implemented as a separate X11 window I think, and would be a bit annoying to implement. But certainly possible..

PMunch avatar Nov 28 '20 00:11 PMunch

Are tooltips mainly a GTK thing?

Probably 99% of the applications I've seen all use the exact same tooltip style, so there's got to be some sort of convenient, common library they are all using.

Botspot avatar Nov 28 '20 03:11 Botspot

Well it exists in most GUI toolkits, Qt and Gtk are probably showing these in a very similar manner. But xlunch isn't using a GUI toolkit, it uses a simple drawing library so to have this we would need to implement it ourselves.

PMunch avatar Nov 29 '20 18:11 PMunch

Just outputting the full matching line, e.g. from /etc/entries.dsv at the bottom or top of the window would be a big benefit.
Or, trigger notify-send <name> <matching line> on selection change.

axgkl avatar Mar 29 '21 21:03 axgkl