Crates.io | dwmblocks |
lib.rs | dwmblocks |
version | 0.1.0 |
source | src |
created_at | 2024-08-24 06:06:20.447789 |
updated_at | 2024-08-24 06:06:20.447789 |
description | Simple and fast modular status bar for dwm written in rust. |
homepage | |
repository | https://github.com/thatmagicalcat/dwmblocks |
max_upload_size | |
id | 1349837 |
size | 43,531 |
Simple and fast modular status bar for dwm written in rust.
Add this library to a project
$ cargo add dwmblocks
use dwmblocks::status;
fn main() {
status!(
base_path: "./scripts/",
gap: "",
// prefix, suffix, interval, script name
["" , " " , 10 , "wifi" ],
["| " , " " , 5 , "cpu" ],
["| [ " , " ] " , 20 , "battery" ],
["| " , " " , 10 , "mem" ],
["| " , " " , 60 , "hdd" ],
["| " , "" , 30 , "date" ],
);
}