From f865ed877dee8a8d871d221cc68e918d9858faa7 Mon Sep 17 00:00:00 2001
From: end-4 <97237370+end-4@users.noreply.github.com>
Date: Wed, 9 Jul 2025 22:33:11 +0700
Subject: [PATCH] sidebar: warp: no weird connection loop
---
.../sidebarRight/quickToggles/CloudflareWarp.qml | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/.config/quickshell/modules/sidebarRight/quickToggles/CloudflareWarp.qml b/.config/quickshell/modules/sidebarRight/quickToggles/CloudflareWarp.qml
index 7f6aba21b..cdaf84b76 100644
--- a/.config/quickshell/modules/sidebarRight/quickToggles/CloudflareWarp.qml
+++ b/.config/quickshell/modules/sidebarRight/quickToggles/CloudflareWarp.qml
@@ -16,8 +16,7 @@ QuickToggleButton {
source: 'cloudflare-dns-symbolic'
anchors.centerIn: parent
- width: 12
- height: 12
+ height: 16
colorize: true
color: root.toggled ? Appearance.m3colors.m3onPrimary : Appearance.colors.colOnLayer1
@@ -40,11 +39,8 @@ QuickToggleButton {
id: connectProc
command: ["warp-cli", "connect"]
onExited: (exitCode, exitStatus) => {
- console.log("Warp connection exited with code and status:", exitCode, exitStatus)
- if (exitCode === 0) {
- connectProc.running = true
- } else {
- console.error("Warp connection failed, please check your connection or try again later.")
+ if (exitCode !== 0) {
+ Quickshell.execDetached(["notify-send", "Cloudflare WARP", "Connection failed. Please inspect manually with the warp-cli command", "-a", "Shell"])
}
}
}
@@ -57,7 +53,7 @@ QuickToggleButton {
if (exitCode === 0) {
connectProc.running = true
} else {
- Quickshell.execDetached(["notify-send", "Cloudflare Warp", "Registration failed. Please inspect manually with the warp-cli command", "-a", "Shell"])
+ Quickshell.execDetached(["notify-send", "Cloudflare WARP", "Registration failed. Please inspect manually with the warp-cli command", "-a", "Shell"])
}
}
}