i3status-rs 0.36.1

A feature-rich and resource-friendly replacement for i3status, written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
static XORG_COLORS: LazyLock<HashMap<String, Color>> = LazyLock::new(|| {
    static XORG_RGB: &str = include_str!("xorg-rgb.txt");
    HashMap::from_iter(XORG_RGB.lines().filter_map(|line| {
        let mut line_split = line.split("!").next().unwrap().split_whitespace();
        let r = line_split.next()?.parse().unwrap();
        let g = line_split.next()?.parse().unwrap();
        let b = line_split.next()?.parse().unwrap();
        let name = line_split.collect::<Vec<_>>().join(" ").to_lowercase();
        Some((name, Color::Rgba(Rgba { r, g, b, a: 255 })))
    }))
});