#!/bin/bash
# Run the ispeedtest Python script with argument "b" (both download + upload).
# Uses the venv Python inside ~/.config/python-script to ensure speedtest-cli
# is available without being installed system-wide.
speedvar=$(~/.config/python-script/bin/python ~/Dotfiles/desktopenvs/hyprland/scripts/python/ispeedtest.py b)
# Display the result as a persistent notification (-t 200000 ms = ~3.3 minutes)
# so it remains visible while the user finishes whatever prompted the speed test.
notify-send -t 200000 "$speedvar"
