Shorten some labels

Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
akp 2022-06-01 14:39:19 +01:00
parent ca6aed08da
commit c456f98cb0
No known key found for this signature in database
GPG key ID: AA5726202C8879B7
2 changed files with 2 additions and 4 deletions

View file

@ -51,7 +51,7 @@ func (g *Disk) Block(colors *i3bar.ColorSet) (*i3bar.Block, error) {
block := &i3bar.Block{
Name: g.name,
Instance: g.MountPath,
FullText: fmt.Sprintf("Disk avail: %.1fGB", da),
FullText: fmt.Sprintf("Disk: %.1fGB", da),
ShortText: fmt.Sprintf("D: %.1fGB", da),
}

View file

@ -69,11 +69,9 @@ func (g *Memory) Block(colors *i3bar.ColorSet) (*i3bar.Block, error) {
}
avail := total - used
// TODO: Make the readout change between KB/MB/GB
block := &i3bar.Block{
Name: g.name,
FullText: fmt.Sprintf("Mem: %.1fGB of %.1fGB", used, total),
FullText: fmt.Sprintf("Mem: %.1f/%.1fGB", used, total),
ShortText: fmt.Sprintf("M: %.1fGB", used),
}