kargos icon indicating copy to clipboard operation
kargos copied to clipboard

How to update when click on title

Open haroldguz opened this issue 6 years ago • 2 comments

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?

haroldguz avatar Mar 27 '19 07:03 haroldguz

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?

shocklateboy92 avatar Apr 09 '20 21:04 shocklateboy92

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.

wsdfhjxc avatar Jul 30 '20 18:07 wsdfhjxc