Skip to content

A library crate that allows you to send messages to SketchyBar.

Notifications You must be signed in to change notification settings

johnallen3d/sketchybar-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sketchybar-rs

ci

Send messages to SketchyBar from Rust! This library crate embeds the SketchyBarHelper sketchybar.h.

Usage

Add this to your Cargo.toml:

[dependencies]
sketchybar = "0.2"

Then call the message function:

extern crate sketchybar_rs;

fn main() {
    let _ = sketchybar_rs::message("--query bar", None);
}

More practically, update a widget on a secondary bar named bottombar:

extern crate sketchybar_rs;

fn main() {
    let _ = sketchybar_rs::message("--set weather label=42°F", Some("bottombar"));
}

Why?

For fun. I'm learning Rust and writing some crates to execute as scripts for my widgets for practice.

About

A library crate that allows you to send messages to SketchyBar.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •