Stephen Seo
7bba60e323
Implemented `--netdev_width=<width>` which sets the minimum width of the netdev byte/KiB/MiB text displays. Implemented `--netgraph_max_bytes=<bytes>` which displays a graph in text using Unicode "Block Elements" symbols. The `<bytes>` argument determines the maximum amount of bytes that will determine which block-character is printed on the interval. The graph is always 10 characters wide, and the right side is the most-recent side. Note that this always checks against the maximum of either download or upload rates. For example, if `<bytes>` is set to 1024, and 128 bytes were downloaded and 512 bytes were uploaded in an interval, the "Lower Half Block" Unicode symbol will be emitted (exactly half). SwaybarObject was changed to use an `Option<String>` instead of an `Option<u16>` for `min_width`.
15 lines
414 B
TOML
15 lines
414 B
TOML
[package]
|
|
name = "swaybar_info"
|
|
version = "0.1.5"
|
|
edition = "2021"
|
|
description = "Provides swaybar with info to be displayed"
|
|
license = "MIT"
|
|
repository = "https://github.com/Stephen-Seo/swaybar_info"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
serde_json = "1.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
chrono = "0.4"
|
|
regex = "1.6"
|