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

Malformed layout of usage.widget #200

Open
jjramsey opened this issue Jul 8, 2024 · 1 comment
Open

Malformed layout of usage.widget #200

jjramsey opened this issue Jul 8, 2024 · 1 comment

Comments

@jjramsey
Copy link

jjramsey commented Jul 8, 2024

sfwbar complains about two errors in usage.widget, on lines 21 and 26. Looks like there's a missing "style =" in both cases, i.e.,

  scale {
    if(XCpuPresent,"","hidden")
    css = "progressbar progress { background-color: #0000ff;}"
    value = XCpuUtilization
  }

should be

  scale {
    style = if(XCpuPresent,"","hidden")
    css = "progressbar progress { background-color: #0000ff;}"
    value = XCpuUtilization
  }

and

  scale {
    if(XMemoryPresent,"","hidden")
    css = "progressbar progress { background-color: #00ff00;}"
    value= XMemoryUtilization
  }

should be

  scale {
    style = if(XMemoryPresent,"","hidden")
    css = "progressbar progress { background-color: #00ff00;}"
    value= XMemoryUtilization
  }
@LBCrion
Copy link
Owner

LBCrion commented Jul 9, 2024 via email

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