We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 137f0aa commit ecf006cCopy full SHA for ecf006c
polybar-scripts/info-wifionice/info-wifionice.sh
@@ -17,7 +17,7 @@ if { [ "$current_wifi" = "WIFIonICE" ] || [ "$current_wifi" = "WIFI@DB" ]; }; th
17
18
if [ "$(echo "$wifionice" | jq .connection)" = "true" ]; then
19
wifionice_speed=$(echo "$wifionice" | jq .speed)
20
- if [ "$wifionice_speed" -ne 0 ]; then
+ if [ "$(echo "${wifionice_speed} != 0" | bc)" -eq 1 ]; then
21
wifionice_speed=" - $wifionice_speed km/h"
22
else
23
wifionice_speed=""
0 commit comments