Skip to content

Commit 64718f9

Browse files
committed
refactor: removed instructions for recompiling zebar
The changes needed for recompiling Zebar have now been added to upstream Zebar, meaning there's no need for a custom Zebar build anymore
1 parent 6101382 commit 64718f9

2 files changed

Lines changed: 4 additions & 46 deletions

File tree

README.md

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ General configuration is defined in `config.json`, which ships together with the
9898
},
9999
"enableErrorLogging": false
100100
},
101-
"backgroundEffect": "acrylic",
101+
"backgroundEffect": "inherit",
102102
"enableAutoTiling": true,
103103
"clickThroughByDefault": false,
104104
"showFullDateByDefault": false,
@@ -341,50 +341,8 @@ In addition to colors, `config.css` provides variables that control other style
341341
> 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).
342342
> Click-through works fine in all platforms, however note that it completely disables interactivity with the Zebar widget.
343343

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.
345-
346-
1. Clone the Zebar repository: `git clone https://github.com/glzr-io/zebar.git`
347-
2. Navigate to `packages/desktop/capabilities/widget.json` and add the following two permissions (don't forget the trailing commas!):
348-
349-
```json
350-
{
351-
...,
352-
"permissions": [
353-
...,
354-
"core:window:allow-set-always-on-bottom",
355-
"core:window:allow-set-always-on-top",
356-
"core:window:allow-set-resizable",
357-
"core:window:allow-set-position",
358-
"core:window:allow-set-size",
359-
"core:window:allow-set-title",
360-
"core:window:allow-set-effects", <--- ADD THIS
361-
"core:window:allow-set-ignore-cursor-events" <--- AND THIS
362-
]
363-
}
364-
```
365-
366-
3. Run the following:
367-
368-
```bash
369-
# Install pnpm (package manager).
370-
npm i -g pnpm
371-
372-
# Install dependencies.
373-
pnpm i
374-
375-
# Build settings UI
376-
pnpm run --filter zebar --filter @zebar/settings-ui build
377-
378-
# Build Zebar
379-
pnpm run build
380-
```
381-
382-
4. Install the newly built Zebar from `target/release/bundle/msi/Zebar_..._x64_en-US.msi`
383-
384-
> [!NOTE]
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`.
386-
387-
After installation, follow these instructions:
344+
> [!TIP] Update
345+
> The permissions needed to enable these features have been added to upstream Zebar, no need to recompile Zebar anymore!
388346

389347
### Enable Background Effects
390348

static/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"enableErrorLogging": false
2222
},
23-
"backgroundEffect": "acrylic",
23+
"backgroundEffect": "inherit",
2424
"enableAutoTiling": true,
2525
"clickThroughByDefault": false,
2626
"showFullDateByDefault": false,

0 commit comments

Comments
 (0)