dwmblocks

Crates.iodwmblocks
lib.rsdwmblocks
version0.1.0
sourcesrc
created_at2024-08-24 06:06:20.447789
updated_at2024-08-24 06:06:20.447789
descriptionSimple and fast modular status bar for dwm written in rust.
homepage
repositoryhttps://github.com/thatmagicalcat/dwmblocks
max_upload_size
id1349837
size43,531
(thatmagicalcat)

documentation

README

Dwmblocks

Simple and fast modular status bar for dwm written in rust.

Usage:

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"     ],
    );
}
Commit count: 0

cargo fmt