TMU (Too Many Updates)
This commit is contained in:
parent
392dfed89a
commit
789f26d925
12 changed files with 147 additions and 76 deletions
|
@ -125,9 +125,9 @@ class RamProvider(AlertingSection, PeriodicUpdater):
|
|||
if self.state < 1:
|
||||
return None
|
||||
|
||||
text = Text(Section.ramp(1-freePerc))
|
||||
text = Text(Section.ramp(freePerc))
|
||||
if self.state >= 2:
|
||||
freeStr = humanSize(mem.available)
|
||||
freeStr = humanSize(mem.total - mem.available)
|
||||
text.append(freeStr)
|
||||
if self.state >= 3:
|
||||
totalStr = humanSize(mem.total)
|
||||
|
@ -696,12 +696,12 @@ class I3WorkspacesProvider(Section, I3Updater):
|
|||
# if parent.display != workspace["display"]:
|
||||
# continue
|
||||
|
||||
section = I3WorkspacesProviderSection(workspace["name"], self)
|
||||
section.focused = workspace["focused"]
|
||||
section.urgent = workspace["urgent"]
|
||||
section = I3WorkspacesProviderSection(workspace.name, self)
|
||||
section.focused = workspace.focused
|
||||
section.urgent = workspace.urgent
|
||||
section.show()
|
||||
parent.addSectionAfter(lastSection, section)
|
||||
self.sections[workspace["num"]] = section
|
||||
self.sections[workspace.num] = section
|
||||
|
||||
lastSection = section
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue