Skip to content

Feliix42/anybar-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anybar-rs

This is a small Rust Crate for AnyBar.

Build Status Crates.io

Examples

Connect using the default port

use anybar::*;

// create a new AnyBar instance connected to the default port
let mut bar = Anybar::default();

// set the color
bar.set_color(Color::Red).unwrap();

Connect using a separate port

use anybar::*;

// Anybar::new() takes the AnyBar port as parameter
let mut custom_bar = Anybar::new(1708);
custom_bar.set_color(Color::Exclamation).unwrap();

Usage & Documentation

Please check the documentation for more examples and details on certain functions.

License

This work is licensed under the MIT license. See LICENSE for more information.