From 07a05bce70b56dbadbdf4e8288e35b31e251d32a Mon Sep 17 00:00:00 2001 From: The_miro Date: Mon, 12 May 2025 09:56:12 +0200 Subject: [PATCH] added ispeedtest.py - use args u(pload), d(ownload) or b(oth) --- desktopenvs/hyprland/eww/scripts/ispeedtest.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 desktopenvs/hyprland/eww/scripts/ispeedtest.py diff --git a/desktopenvs/hyprland/eww/scripts/ispeedtest.py b/desktopenvs/hyprland/eww/scripts/ispeedtest.py new file mode 100644 index 0000000..716ed5c --- /dev/null +++ b/desktopenvs/hyprland/eww/scripts/ispeedtest.py @@ -0,0 +1,18 @@ +import sys +import speedtest + +def main(): + s = speedtest.Speedtest() + + if (sys.argv[1] == 'd') or (sys.argv[1] == 'b'): + gbdl = round( s.download() / (1024**3) , 2) + print("󰛴", gbdl, "Gb/S") + + if (sys.argv[1] == 'u') or (sys.argv[1] == 'b'): + gbul = round( s.upload() / (1024**3) , 2) + print("󰛶", gbul, "Gb/S") + +if __name__=="__main__": + main() + +