Tomas-M / xlunch

Graphical app launcher for X with minimal dependencies
http://xlunch.org
GNU General Public License v3.0
219 stars 37 forks source link

Can we set button tooltips? #127

Open Botspot opened 3 years ago

Botspot commented 3 years ago

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

Is there a way to do this?

PMunch commented 3 years ago

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

Botspot commented 3 years ago

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.

PMunch commented 3 years ago

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.

axgkl commented 3 years ago

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.