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

Forcing the command to run also after running a script on click #39

Open
Sadi58 opened this issue Dec 31, 2022 · 3 comments
Open

Forcing the command to run also after running a script on click #39

Sadi58 opened this issue Dec 31, 2022 · 3 comments

Comments

@Sadi58
Copy link

Sadi58 commented Dec 31, 2022

In some use cases it can be necessary to force the command (e.g. checking and displaying the status of something every 60 minutes) to run immediately after clicking the widget (and running a script that can change the status in question).
I wonder if this can be achieved with or without some modification in this widget.

@elabjer
Copy link

elabjer commented Dec 31, 2023

hey.
I needed this as well, so I modified the applet..
just insert this in main.qml immediately after line 230:
if (cmd == config.clickCommand) { executable.exec(config.command) }

@Sadi58
Copy link
Author

Sadi58 commented Dec 31, 2023

After exactly one year, I forgot what I had in mind when I needed it. 😄 This brings up another idea: to list some examples of Command Output widget in action somewhere here...

@Sadi58
Copy link
Author

Sadi58 commented Dec 31, 2023

As such a fixed feature would be undesirable in some use cases, it seems the best solution could be to include it as an option in the settings so that it can be enabled or disabled in each use of the widget.

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

No branches or pull requests

2 participants