LBCrion / sfwbar

S* Floating Window Bar
GNU General Public License v3.0
255 stars 16 forks source link

Malformed layout of usage.widget #200

Open jjramsey opened 3 weeks ago

jjramsey commented 3 weeks ago

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 commented 3 weeks ago

Thank you. This should be fixed.

On Tue, Jul 9, 2024 at 12:10 AM J. J. Ramsey @.***> wrote:

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 }

— Reply to this email directly, view it on GitHub https://github.com/LBCrion/sfwbar/issues/200, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASHPFFB2PYM3X7TZNTTQT73ZLML63AVCNFSM6AAAAABKRXBRD6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TMNZSGQYDMMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>