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

Link format-icons array to alternative variables #3562

Open
pkreuzt opened this issue Sep 3, 2024 · 0 comments
Open

Link format-icons array to alternative variables #3562

pkreuzt opened this issue Sep 3, 2024 · 0 comments

Comments

@pkreuzt
Copy link

pkreuzt commented Sep 3, 2024

Is it possible to link format-icons to an specific replacement in the module? For example, I use extra network modules like this:

    "network#bandwidth_down": {
        "format": "<span color='{icon}'>  {bandwidthDownBytes}</span>",
        "interval": 1,
        "format-icons": [
          "#00ff00", // green
          "#ffff00", // yellow
          "#ff0000"  // red
     ]
    },
    "network#bandwidth_up": {
        "format": "<span color='{icon}'>  {bandwidthUpBytes}</span>",
        "interval": 1,
        "format-icons": [
          "#00ff00", // green
          "#ffff00", // yellow
          "#ff0000"  // red
     ]
    },

But displayed color is always based on signal strenght instead of instant speed.

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

No branches or pull requests

1 participant