We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 137f0aa commit 87e193dCopy full SHA for 87e193d
1 file changed
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