Skip to content

dogamak/xcbars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xcbars Build Status

A bar library created with rust and xcb.

Example

let down_speed = NetworkUsage {
    interface: "wlp58s0".to_string(),
    .. Default::default()
};

BarBuilder::new()
    .geometry(Geometry::Relative {
        position: Position::Top,
        height: 20,
        padding_x: 5,
        padding_y: 5,
    })
    .background(Color::new(1.0, 0.5, 0.5))
    .foreground(Color::new(1., 1., 1.))
    .font("Inconsolata 14")
    .add_component(Slot::Left, Counter {
        start: 123,
        step: 2,
    })
    .add_component(Slot::Center, Pipe {
        command: "date",
    })
    .add_component(Slot::Right, composite!("Down: ", down_speed))
    .run().unwrap();

About

Bar library created with rust and xcb.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages