lipido / kargos

KDE Plasma port of GNOME Argos and OSX BitBar
GNU General Public License v3.0
126 stars 13 forks source link

How to update when click on title #28

Open haroldguz opened 5 years ago

haroldguz commented 5 years ago

Hi

How can I execute a script or refresh the current one when I click on the title of the widget? In Gnome ARGOS, you can know if you were clicked with the condition: "if [" $ ARGOS_MENU_OPEN "==" true "]; then", is there something equivalent in KARGOS?

shocklateboy92 commented 4 years ago

To confirm my understanding of your use-case: You have your script running every second (or something frequent), but want to do a more expensive fetch to include more information only when the dialog is open.

Is that roughly correct?

wsdfhjxc commented 4 years ago

Not sure if this is what OP asked for, but for anyone interested, appending | refresh=true to the first line of the output makes it possible to refresh the widget by clicking on it in the panel. It's quite useful for weather fetching scripts and the like.