i3 / i3/i3status

Two decimal places in output?

Open
#556 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
653
Forks
254
PR merge metrics
No merged PRs in 30d

Description

https://github.com/i3/i3status/blob/d53da19a79d68b1dc9abdb953c3d2e0497b33a7a/src/print_disk_info.c#L45

Is it possible somehow to adjust ~/.config/i3status/config to show two decimal places, maybe something like

```
disk "/" {
format = "%avail"
decimals = 2
}
```

Also see:

- https://github.com/i3/i3status/blob/d53da19a79d68b1dc9abdb953c3d2e0497b33a7a/src/print_eth_info.c#L52
- https://github.com/i3/i3status/blob/d53da19a79d68b1dc9abdb953c3d2e0497b33a7a/src/print_mem.c#L41

Oh apparently the memory module supports a decimals option to configure the number of decimal places, for example:

```
memory {
format = "%used"
decimals = 2
}
```

(I edited initial config snippet above to match format))

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.