Zren / plasma-applet-commandoutput

https://store.kde.org/p/1166510/
GNU General Public License v2.0
87 stars 18 forks source link

Idea / Wish - a hover text (or command output to be flexible) #35

Open Peter-Ries opened 2 years ago

Peter-Ries commented 2 years ago

I really love this applet. It helped me fake a "New Mail" tray icon with a self written mini python script and an output with the MesloLGS NF Font displaying an envelope icon when needed.

One thing that would make this applet a perfect "10+" would be the ability to display either a static text or a command output when hovering the applet.

Depending how simple this is I'd be glad if you could consider this idea for a next release.

Thanks & regards!

image ... the world icon shows my vpn status and toggles status on click ... the ebvelope shows new mails and triggers my gmail account in browser a hover text for addidional info would be great!

Zren commented 2 years ago

There's a Pull Request for a static tooltip, and another for a showing stderr as the tooltip.

Having a separate command for the tooltip might be interesting, but in the case of a new mail script, it would need to send another http web request to list the number of mail unless the first polling script cached the value.

The Kargos widget has a special syntax for handling the output for what to display in the popup.

lucazade commented 1 year ago

It would be very nice to have a tooltip with a separate script for it. In my case it could be useful to show extended info about system

Screenshot_20221205_081943

Sadi58 commented 1 year ago

@Peter-Ries Would you care to share that python mail-checker script? I'd love to try and make also something like it as a discover update notifier replacement which will list the available updates, and ask the user to open discover or muon/synaptic to perform those updates offline or online. Unfortunately I don't have any python scripting skills, but I can manage to adapt some simple ones.

aricaldeira commented 7 months ago

I implemented a tooltip command here:

https://github.com/Zren/plasma-applet-commandoutput/commit/c42431f7123a3f124a160a77df9401635933d036

I didn’t make a PR because I’m currently trying Plasma 6, started to work on the migration, but got stuck on the rewriting of the Configuration screen.