#status-bar #dwm #modular #script #prefix #suffix #interval

bin+lib dwmblocks

Simple and fast modular status bar for dwm written in rust

1 unstable release

0.1.0 Aug 24, 2024

#549 in GUI

GPL-3.0-only

16KB
140 lines

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"     ],
    );
}

No runtime deps