Skip to content

Commit

Permalink
docs: mention alternate bar in README
Browse files Browse the repository at this point in the history
Updates docs to reflect change in #8.
  • Loading branch information
johnallen3d committed Jan 6, 2024
1 parent 6b376a6 commit daa7a7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Send messages to [SketchyBar](https://github.com/FelixKratz/SketchyBar) from Rus
Add this to your `Cargo.toml`:
```toml
[dependencies]
sketchybar = "0.1"
sketchybar = "0.2"
```

Then call the `message` function:
Expand All @@ -17,17 +17,17 @@ Then call the `message` function:
extern crate sketchybar_rs;

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

More practically, update one of your widgets:
More practically, update a widget on a secondary bar named `bottombar`:

```rust
extern crate sketchybar_rs;

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

Expand Down

0 comments on commit daa7a7a

Please sign in to comment.