Fix edge case of single digit signal strength

This commit is contained in:
jacob.eva 2023-09-16 14:13:09 +01:00
parent 0df19f7206
commit f226f0b14e
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E
1 changed files with 1 additions and 1 deletions

View File

@ -1 +1 @@
nmcli -t -f active,ssid dev wifi | grep -E 'yes' | cut -c 5- | grep . || (mmcli -m /org/freedesktop/ModemManager1/Modem/0 | grep "operator name:" | cut -c 38- | tr -d '\n' && echo -n ": " && mmcli -m /org/freedesktop/ModemManager1/Modem/0 | grep -P "(\d{3}|\d{2})%" -o) || echo "Disconnected"
nmcli -t -f active,ssid dev wifi | grep -E 'yes' | cut -c 5- | grep . || (mmcli -m /org/freedesktop/ModemManager1/Modem/0 | grep "operator name:" | cut -c 38- | tr -d '\n' && echo -n ": " && mmcli -m /org/freedesktop/ModemManager1/Modem/0 | grep -P "\d+%" -o) || echo "Disconnected"