Skip to content

Commit e6f6b89

Browse files
committed
fix: make heart button open repo on default browser
1 parent 64718f9 commit e6f6b89

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ 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-
> [!TIP] Update
344+
> [!TIP]
345345
> The permissions needed to enable these features have been added to upstream Zebar, no need to recompile Zebar anymore!
346346

347347
### Enable Background Effects

src/components/LeftGroup.svelte

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import WifiZero from "@lucide/svelte/icons/wifi-zero";
1919
import Button from "./Button.svelte";
2020
import Meter from "./Meter.svelte";
21+
import * as zebar from "zebar";
2122
2223
import IconHeartFilled from "@tabler/icons-svelte/icons/heart-filled";
2324
// import Test from "./Test.svelte";
@@ -46,11 +47,11 @@
4647
><IconHeartFilled
4748
class="text-zb-icon"
4849
onclick={() => {
49-
// Opens in a new msedge webview window. Can't open in the default
50-
// browser without additional ACL in tauri.
51-
window
52-
.open("https://github.com/blaiyz/neosoft-zebar", "_blank")
53-
?.focus();
50+
zebar.shellExec("cmd", [
51+
"/c",
52+
"start",
53+
"https://github.com/blaiyz/neosoft-zebar"
54+
]);
5455
}}
5556
/></Button
5657
>

static/zpack.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
{
22
"$schema": "https://github.com/glzr-io/zebar/raw/v3.1.1/resources/zpack-schema.json",
33
"name": "neosoft-zebar",
4-
"version": "1.2.3",
4+
"version": "1.2.4",
55
"description": "A highly customizable (and smooooooth) Zebar build",
6-
"tags": [],
6+
"tags": [
7+
"glazewm",
8+
"media",
9+
"customizable",
10+
"rosé pine",
11+
"catppuccin",
12+
"weather",
13+
"themes",
14+
"system stats",
15+
"autotiler",
16+
"volume"
17+
],
718
"previewImages": ["misc/fullscreen.png", "misc/taskbar-integration.png"],
819
"repositoryUrl": "https://github.com/blaiyz/neosoft-zebar",
920
"widgets": [
@@ -21,7 +32,12 @@
2132
"rules": []
2233
},
2334
"privileges": {
24-
"shellCommands": []
35+
"shellCommands": [
36+
{
37+
"program": "cmd",
38+
"argsRegex": "\\/c start https:\\/\\/github\\.com\\/blaiyz\\/neosoft-zebar"
39+
}
40+
]
2541
},
2642
"presets": [
2743
{

0 commit comments

Comments
 (0)