Skip to content

bnjjj/rust-bitbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-bitbar Travis Badge Version Documentation

This repo contains a crate for creating BitBar plugins in Rust.

Usage

Here is a simple example :

use rust_bitbar::{Line, Plugin, SubMenu};

fn main() {
    let mut pl = Plugin::new();
    let mut line = Line::new("first line");
    line.set_color("red")
        .set_href("http://google.com");

    let mut sub_menu = SubMenu::new();
    sub_menu.add_line(line);

    let status_line = Line::new("🍺🍺🍺");
    pl.set_status_line(status_line).set_sub_menu(sub_menu);

    pl.render();
}

To have more details please check the official documentation.

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages