Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
HolbyFPV committed Nov 17, 2024
1 parent 2da6ba2 commit 7c72f6e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ In some cases, updating to the latest Microsoft Webview2 version is needed ([sta

Through the `zebar` NPM package, Zebar exposes various system information via reactive "providers". Providers are a collection of functions and variables that can change over time.

- [audio](#Audio)
- [battery](#Battery)
- [cpu](#CPU)
- [date](#Date)
Expand All @@ -72,6 +73,30 @@ Through the `zebar` NPM package, Zebar exposes various system information via re
- [network](#Network)
- [weather](#Weather)

### Media

#### Config

No config options.

#### Outputs

| Variable | Description | Return type | Supported OS |
| ------------------- | ----------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `defaultDevice` | ID of default audio output device. | `string \| null` | <img src="https://github.com/glzr-io/zebar/assets/34844898/568e90c8-cd32-49a5-a17f-ab233d41f1aa" alt="microsoft icon" width="24"> |
| `devices` | All devices. | `Record<string, AudioDeviceInfo>` | <img src="https://github.com/glzr-io/zebar/assets/34844898/568e90c8-cd32-49a5-a17f-ab233d41f1aa" alt="microsoft icon" width="24"> |

#### Return types

#### `AudioDeviceInfo`

| Variable | Description | Return type |
| ------------------ | ----------------------------- | ----------------------- |
| `deviceId` | Device ID. | `string` |
| `name` | Display name. | `string ` |
| `volume` | Volume as a % of maximum volume. Returned value is between `0` and `100`. | `string ` |
| `isDefault` | `True` if the device is selected as the default output device.| `string \| null` |

### Battery

#### Config
Expand Down

0 comments on commit 7c72f6e

Please sign in to comment.