aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/WeatherWrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/UserScripts/WeatherWrap.sh')
-rwxr-xr-xconfig/hypr/UserScripts/WeatherWrap.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/hypr/UserScripts/WeatherWrap.sh b/config/hypr/UserScripts/WeatherWrap.sh
index 1e15e4a6..a95bbd51 100755
--- a/config/hypr/UserScripts/WeatherWrap.sh
+++ b/config/hypr/UserScripts/WeatherWrap.sh
@@ -14,15 +14,15 @@ BASH_FALLBACK="$SCRIPT_DIR/Weather.sh"
# Function to check network connectivity
check_network() {
# Try multiple methods to check network
- if ping -c1 -W2 8.8.8.8 >/dev/null 2>&1; then
+ if ping -c1 -W1 8.8.8.8 >/dev/null 2>&1; then
return 0
fi
- if ping -c1 -W2 1.1.1.1 >/dev/null 2>&1; then
+ if ping -c1 -W1 1.1.1.1 >/dev/null 2>&1; then
return 0
fi
- if curl -s --connect-timeout 3 "https://ipinfo.io" >/dev/null 2>&1; then
+ if curl -s --connect-timeout 2 "https://ipinfo.io" >/dev/null 2>&1; then
return 0
fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage