From ad013b26f2078f2c352228a30b1a28b1c12f0509 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Sat, 12 Oct 2024 19:28:37 +0200 Subject: [PATCH] fix(eww -> get-connectivity-info): Fixed signal strength calculations --- bar/eww/scripts/get-connectivity-info | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bar/eww/scripts/get-connectivity-info b/bar/eww/scripts/get-connectivity-info index 7d19232..cf9f5ec 100755 --- a/bar/eww/scripts/get-connectivity-info +++ b/bar/eww/scripts/get-connectivity-info @@ -22,11 +22,11 @@ print_network_state() { } wifi_strength() { - if [ "$1" -le -80 ]; then echo terrible - elif [ "$1" -le -70 ]; then echo bad - elif [ "$1" -le -60 ]; then echo mediocre - elif [ "$1" -le -40 ]; then echo good - else echo excellent + if [ "$1" -le 20 ]; then echo terrible + elif [ "$1" -le 40 ]; then echo bad + elif [ "$1" -le 60 ]; then echo mediocre + elif [ "$1" -le 80 ]; then echo good + else echo excellent fi }