Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update when click on title #28

Open
haroldguz opened this issue Mar 27, 2019 · 2 comments
Open

How to update when click on title #28

haroldguz opened this issue Mar 27, 2019 · 2 comments
Labels
compat Argos/BitBar compatibility

Comments

@haroldguz
Copy link

haroldguz commented Mar 27, 2019

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 shocklateboy92 added the compat Argos/BitBar compatibility label Apr 8, 2020
@shocklateboy92
Copy link
Collaborator

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compat Argos/BitBar compatibility
Projects
None yet
Development

No branches or pull requests

3 participants