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

bin+lib dwmblocks

Simple and fast modular status bar for dwm written in rust

1 unstable release

0.1.0 Aug 24, 2024

#307 in GUI

Download history 104/week @ 2024-08-19 10/week @ 2024-08-26

114 downloads per month

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