You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+53-7Lines changed: 53 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ A Zebar configuration forked from [Neobrutal Zebar](https://github.com/adriankar
14
14
- Multi-monitor support
15
15
- Windows Taskbar integration (experimental)
16
16
- Background effects (Acrylic, Blur, Mica)
17
+
- Click-through ability (disable interactivity and cursor events to windows below)
17
18
18
19
## 🖼️ Showcase
19
20
@@ -98,7 +99,15 @@ General configuration is defined in `config.json`, which ships together with the
98
99
"enableErrorLogging": false
99
100
},
100
101
"backgroundEffect": "acrylic",
101
-
"enableAutoTiling": true
102
+
"enableAutoTiling": true,
103
+
"clickThroughByDefault": false,
104
+
"showFullDateByDefault": false,
105
+
"showHeartButton": true,
106
+
"showCpuSection": true,
107
+
"showMemorySection": true,
108
+
"showBatterySection": true,
109
+
"showNetworkSection": true,
110
+
"showWeatherSection": true
102
111
}
103
112
```
104
113
@@ -326,15 +335,16 @@ In addition to colors, `config.css` provides variables that control other style
326
335
327
336
</details>
328
337
329
-
## 🎉 Background Effects
338
+
## 🎉 Background Effects & Click-Through
330
339
331
340
> [!WARNING]
332
-
> This feature does not work in Windows 11 (Currently, supports only Windows 10). To achieve similar background effects, use an external application like [Mica For Everyone](https://github.com/MicaForEveryone/MicaForEveryone).
341
+
> Background effects do not work in Windows 11 (Currently, supports only Windows 10). To achieve similar background effects, use an external application like [Mica For Everyone](https://github.com/MicaForEveryone/MicaForEveryone).
342
+
> Click-through works fine in all platforms, however note that it completely disables interactivity with the Zebar widget.
333
343
334
-
To enable background effects, you need to recompile Zebar with a modification. You must have Rust and Node.js installed on your system.
344
+
To enable any of these two features, you need to recompile Zebar with a modification. You must have Rust and Node.js installed on your system.
335
345
336
346
1. Clone the Zebar repository: `git clone https://github.com/glzr-io/zebar.git`
337
-
2. Navigate to `packages/desktop/capabilities/widget.json` and add the following permission:
347
+
2. Navigate to `packages/desktop/capabilities/widget.json` and add the following two permissions (don't forget the trailing commas!):
338
348
339
349
```json
340
350
{
@@ -347,7 +357,8 @@ To enable background effects, you need to recompile Zebar with a modification. Y
347
357
"core:window:allow-set-position",
348
358
"core:window:allow-set-size",
349
359
"core:window:allow-set-title",
350
-
"core:window:allow-set-effects" <--- ADD THIS
360
+
"core:window:allow-set-effects", <--- ADD THIS
361
+
"core:window:allow-set-ignore-cursor-events" <--- AND THIS
351
362
]
352
363
}
353
364
```
@@ -373,7 +384,42 @@ pnpm run build
373
384
> [!NOTE]
374
385
> By default, Zebar uses the rust nightly channel. To install it properly, you need to run (after uninstalling nightly if you have it already installed) `rustup toolchain install nightly --allow-downgrade --profile minimal`, otherwise Zebar may not be able to build. If it still doesn't manage to build, try changing the channel in `rust-toolchain.toml` to `stable`.
375
386
376
-
After installation, you can enable background effects in `config.json`.
387
+
After installation, follow these instructions:
388
+
389
+
### Enable Background Effects
390
+
391
+
In `config.json`, set the `backgroundEffect` field to one of the values provided by the schema.
392
+
393
+
### Enable Click-Through
394
+
395
+
To use click-through, you must modify the GlazeWM configuration.
396
+
397
+
- In `config.yaml`, add a new binding mode for click-through under `binding_modes`:
398
+
399
+
```yaml
400
+
binding_modes:
401
+
...
402
+
403
+
# Click-through mode disables interactivity
404
+
- name: 'ct'
405
+
```
406
+
407
+
The name of the binding mode **must** be `ct` for the commands to work properly.
408
+
409
+
- Add a keybinding to toggle click-through mode under `keybindings`:
Copy file name to clipboardExpand all lines: static/schema.json
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,10 @@
77
77
"$ref": "#/definitions/BackgroundEffect",
78
78
"description": "The background effect to use for the widget.\n\nNOTE: In order to use anything other than inherit, you must recompile zebar with an extra permission. More details in the README.\n\n`inherit`- Don't change the effect, and use the one defined in zpack.json (probably transparent).\n`acrylic`- Use an acrylic background effect. Windows 10, 11.\n`blur`- Use a blur background effect. Windows 10, 11.\n`mica`- Use a mica background effect. Windows 11 only."
79
79
},
80
+
"clickThroughByDefault": {
81
+
"description": "Enable click-through by default.",
82
+
"type": "boolean"
83
+
},
80
84
"direction": {
81
85
"$ref": "#/definitions/AttachmentDirection",
82
86
"description": "The visual direction of the widget.\n\n`top`- The top of the widget has inverted corner radius, and the bottom has normal corner radius.\n\n`bottom`- The bottom of the widget has inverted corner radius, and the top has normal corner radius.\n\n`floating`- All corners of the widget have normal corner radius."
0 commit comments