Delete sh/values/wifi.sh
This commit is contained in:
parent
e20bbfba9a
commit
1c421b5397
@ -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\":\"\"}"
|
|
Loading…
Reference in New Issue
Block a user