Skip to content

Commit ecf006c

Browse files
authored
info-wifionice: add support for float-typed speed (#459)
1 parent 137f0aa commit ecf006c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polybar-scripts/info-wifionice/info-wifionice.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if { [ "$current_wifi" = "WIFIonICE" ] || [ "$current_wifi" = "WIFI@DB" ]; }; th
1717

1818
if [ "$(echo "$wifionice" | jq .connection)" = "true" ]; then
1919
wifionice_speed=$(echo "$wifionice" | jq .speed)
20-
if [ "$wifionice_speed" -ne 0 ]; then
20+
if [ "$(echo "${wifionice_speed} != 0" | bc)" -eq 1 ]; then
2121
wifionice_speed=" - $wifionice_speed km/h"
2222
else
2323
wifionice_speed=""

0 commit comments

Comments
 (0)