Zebar lets you create customizable and cross-platform desktop widgets.
Installation • Intro • FAQ • Contributing ↗
Downloads for Windows, MacOS, and Linux are available in the latest release.
For building locally, follow the instructions here.
On first launch, Zebar generates some default widgets to %userprofile%/.glzr/zebar
. This includes various examples and templates to get you started with creating your own widgets.
To create your own widget, a good way to start is by making a copy of one of the boilerplate configs created on first launch.
Widgets can be shared easily:
- Zip your widget configuration.
- Unzip it into the
%userprofile%/.glzr/zebar
directory.
Widgets are powered by native webviews (similar to Electron, but more lightweight).
Each widget consists of:
- A config file (with a
.zebar.json
extension). - An HTML file for markup and styling.
Any frontend framework can be used and boilerplates (e.g. for React, SolidJS) are included in the default widget configs.
Zebar exposes various system information (refered to as "providers") which can be used and displayed by your frontend. This includes stats like CPU usage, battery info, various window manager integrations, and lots more.
Q: Help! On Windows, Zebar is failing to start?
In some cases, updating to the latest Microsoft Webview2 version is needed (standalone download). Run the "Evergreen Standalone Installer" as adminstrator.
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.
Option | Description | Option type | Default value |
---|---|---|---|
refreshInterval |
How often this provider refreshes in milliseconds. | number |
5000 |
Option | Description | Option type | Default value |
---|---|---|---|
refreshInterval |
How often this provider refreshes in milliseconds. | number |
5000 |
Variable | Description | Return type | Supported OS |
---|---|---|---|
frequency |
TODO | number |
|
usage |
TODO | number |
|
logicalCoreCount |
TODO | number |
|
physicalCoreCount |
TODO | number |
|
vendor |
TODO | string |
Option | Description | Option type | Default value |
---|---|---|---|
formatting |
Formatting of the current date into a custom string format. Affects the output of formatted . Refer to table of tokens for available date/time tokens. Examples: - 'yyyy LLL dd' -> 2023 Feb 13 - "HH 'hours and' mm 'minutes'" -> 20 hours and 55 minutes |
string |
EEE d MMM t |
timezone |
Either a UTC offset (eg. UTC+8 ) or an IANA timezone (eg. America/New_York ). Affects the output of formatted .A full list of available IANA timezones can be found here. |
string |
local |
locale |
An ISO-639-1 locale, which is either a 2-letter language code (eg. en ) or a 4-letter language + country code (eg. en-gb ). Affects the output of formatted .A full list of ISO-639-1 locales can be found here. |
string |
|
refreshInterval |
How often this provider refreshes in milliseconds. | number |
1000 |
No config options.
Option | Description | Option type | Default value |
---|---|---|---|
refreshInterval |
How often this provider refreshes in milliseconds. | number |
60000 |
Option | Description | Option type | Default value |
---|---|---|---|
refreshInterval |
How often this provider refreshes in milliseconds. | number |
3600000 |
Variable | Description | Return type | Supported OS |
---|---|---|---|
address |
TODO | string |
|
approxCity |
TODO | string |
|
approxCountry |
TODO | string |
|
approxLatitude |
TODO | number |
|
approxLongitude |
TODO | number |
Option | Description | Option type | Default value |
---|---|---|---|
refreshInterval |
How often this provider refreshes in milliseconds. | number |
5000 |
Variable | Description | Return type | Supported OS |
---|---|---|---|
usage |
TODO | number |
|
freeMemory |
TODO | number |
|
usedMemory |
TODO | number |
|
totalMemory |
TODO | number |
|
freeSwap |
TODO | number |
|
usedSwap |
TODO | number |
|
totalSwap |
TODO | number |
Option | Description | Option type | Default value |
---|---|---|---|
refreshInterval |
How often this provider refreshes in milliseconds. | number |
5000 |
Variable | Description | Return type |
---|---|---|
received |
Received bytes per second. | NetworkTrafficMeasure |
transmitted |
Transmitted bytes per second. | NetworkTrafficMeasure |
totalReceived |
Total received bytes. | NetworkTrafficMeasure |
totalTransmitted |
Total transmitted bytes. | NetworkTrafficMeasure |
Variable | Description | Return type |
---|---|---|
bytes |
Raw byte value. | number |
siValue |
Bytes converted in according to the SI standard. 1000 bytes in a kilobyte. | number |
siUnit |
Unit of the converted bytes in according to the SI standard. KB, MB, ... | string |
iecValue |
Bytes converted in according to the IEC standard. 1024 bytes in a kibibyte. | number |
iecUnit |
Unit of the converted bytes in according to the IEC standard. KiB, MiB, ... | string |
Option | Description | Option type | Default value |
---|---|---|---|
refreshInterval |
How often this provider refreshes in milliseconds. | number |
5000 |
Variable | Description | Return type | Supported OS |
---|---|---|---|
layout |
Current keyboard layout, for example 'en-US'. | string |
No config options.
Option | Description | Option type | Default value |
---|---|---|---|
latitude |
Latitude to retrieve weather for. If not provided, latitude is instead estimated based on public IP. | number | undefined |
undefined |
longitude |
Longitude to retrieve weather for. If not provided, longitude is instead estimated based on public IP. | number | undefined |
undefined |
refreshInterval |
How often this provider refreshes in milliseconds. | number |
3600000 |
Variable | Description | Return type | Supported OS |
---|---|---|---|
isDaytime |
TODO | string |
|
status |
TODO | WeatherStatus |
|
celsiusTemp |
TODO | number |
|
fahrenheitTemp |
TODO | number |
|
windSpeed |
TODO | number |