greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.81k stars 472 forks source link

eng formatter: support prefixes in the range argument #2050

Open MaxVerevkin opened 2 months ago

MaxVerevkin commented 2 months ago

Show the block only if less than 10GB is available:

[[block]]
block = "disk_space"
format = " $free.eng(range:..10e9) |"

Uhh. Do we want to support prefixes in ranges? Like range:..10Gi and range:..10M.

Originally posted by @MaxVerevkin in https://github.com/greshake/i3status-rust/issues/2043#issuecomment-2071675075