From 548d3793e27bbdd160883adc167da40e6c2e95e0 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Wed, 31 Aug 2022 00:08:55 +0200 Subject: [PATCH] More minimal statusbar - I don't need the wifi network info when connected. --- _desktop/_scripts/sb-network | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/_desktop/_scripts/sb-network b/_desktop/_scripts/sb-network index 004b86f..b4a112f 100755 --- a/_desktop/_scripts/sb-network +++ b/_desktop/_scripts/sb-network @@ -2,9 +2,8 @@ icon='\uf1eb ' case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in - down) printf "$icon no wifi" ;; + down) printf "$icon no wifi" ;; up) - [ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \ - && printf "$icon $(iwgetid -r)" \ - || printf "$icon no ip" + [ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "$icon no ip" +# && printf "$icon $(iwgetid -r)" \ esac