From 1c421b539731d2a8ef1522df6d1daf860c9f4fdb Mon Sep 17 00:00:00 2001 From: Candifloss Date: Thu, 1 Aug 2024 17:22:12 +0000 Subject: [PATCH] Delete sh/values/wifi.sh --- sh/values/wifi.sh | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 sh/values/wifi.sh diff --git a/sh/values/wifi.sh b/sh/values/wifi.sh deleted file mode 100644 index 121ebfd..0000000 --- a/sh/values/wifi.sh +++ /dev/null @@ -1,9 +0,0 @@ -res=$(nmcli device wifi list | sed 's/\ \ \ */|/g' | grep "*" | cut -d"|" -f 3,6,8) - -name=${res%%|*} -bars=${res##*|} -bars=$(( 4 - $(echo $bars | tr -dc "_" |wc -c) )) -speed=${res#*|} -speed=${speed%|*} - -echo "{\"name\":\"$name\",\"speed\":\"$speed\",\"bars\":\"$bars\",\"icon\":\"\"}" \ No newline at end of file