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

Have different icons for buttons depending on status or script #98

Open
gsterling opened this issue May 22, 2022 · 0 comments
Open

Have different icons for buttons depending on status or script #98

gsterling opened this issue May 22, 2022 · 0 comments

Comments

@gsterling
Copy link

Problem

When toggling the microphone with an action, it would be nice, if it was possible to change the icon to "On" or "Off" depending on the current state of the mic.

I can imagine it's too complicated to have this automatically, but it would suffice to add an alternative version of an icon (or multiple) and a script that changes it depending on state.

Example solution

Add an additonal field to the action configuraton like "Alternative Icons". Let it open another window or view, where you can add something between 1 and 100 different icons and assign IDs for those.
Below it add "Alternative Icon Switch", which is a script that either returns the ID, which switches to this exact icon or only outputs the desired ID to stdout. The stdout approach would allow different IDs, that weren't simply integers between 0 and 255 and could actually be strings like "mic_off" or "stream running".
It could either be run on click or periodically. Mabye add an option to select one or even both at the same time.

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

1 participant