| Crates.io | stringbar |
| lib.rs | stringbar |
| version | 0.2.0 |
| created_at | 2024-05-07 01:02:09.538619+00 |
| updated_at | 2024-05-07 08:04:21.270455+00 |
| description | A dwm-style status bar configured in RON |
| homepage | |
| repository | https://github.com/sysrqmagician/stringbar |
| max_upload_size | |
| id | 1231703 |
| size | 74,373 |
A dwm-style status bar (sets X root window name).
Execute cargo install stringbar
Execute just release and copy the resulting ./stringbar binary to a directory in $PATH.
| Name | Description |
|---|---|
| CpuUsage | Cpu utilization in percent |
| MemoryUsage | Memory usage out of total |
| SwapUsage | Swap usage out of total |
| Timestamp | A custom formatted timestamp |
| ProcessCount | Number of processes running |
| DiskUsage | Amount of space used out of total on a specific disk |
| DiskUsageTotal | Total amount of space used out of total on all storage devices |
#![enable(implicit_some)]
#![enable(unwrap_newtypes)]
#![enable(unwrap_variant_newtypes)]
(
separator: " | ",
update_interval_ms: 1000,
decimal_data_units: false,
sections: [
(
module: MemoryUsage,
decoration: (
before: "dram ",
after: None,
),
),
(
module: DiskUsage(
name: "/dev/sda",
),
decoration: (
before: "sda ",
after: None,
),
),
(
module: DiskUsageTotal(
include_removables: false,
),
decoration: (
before: "total ",
after: None,
),
),
(
module: Timestamp(
template: "%d/%m/%Y %H:%M",
),
decoration: (
before: None,
after: None,
),
),
],
)