-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
change output / color depending on condition #49
Comments
It's not currently possible, but we could use Go's template engine to achieve something like this in a future release. I'll think about how we can integrate this without the config becoming too convoluted. |
Let me expand this a bit. Here is what I am trying to do.
All of this can be done with one-line commands. I would like to show current state (as there are other ways to toggle them as well), and that state is also a one-line command. Creating widgets may be a bit overkill for this, but right now it is the only way I can accomplish this. What I would really like is:
So, this is somewhat of an expansion of this issue (mainly the state variable and the ability to reference it). Thoughts? |
I want to add that the official Elgato software has the concept of a 'toggle switch' action (at least I think that's what they call it?), and I think something very similar could be implemented as a widget. |
Hi,
I just recently discovered this project and really like it! I am mainly using it for controlling and monitoring, and it'd be great if the following was possible:
So basically, change a button depending on a state condition. One could even take this one step further with output... if it was true, don't display "true", but rather "switch: on" (in color x), and if it was false, display "switch: off" (in color y).
Can this be achieved with the current version of the program and/or will it be possible in later releases?
Thank you in advance for your help :)
The text was updated successfully, but these errors were encountered: