From 83dcb1549aff237367262d2f319865dc7b954a5a Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 30 Dec 2020 20:52:17 +0000 Subject: (Scripts/Status)~set connection text to have the connection name --- Scripts/.local/scripts/status/connection | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Scripts/.local/scripts') diff --git a/Scripts/.local/scripts/status/connection b/Scripts/.local/scripts/status/connection index c201582..301797b 100755 --- a/Scripts/.local/scripts/status/connection +++ b/Scripts/.local/scripts/status/connection @@ -3,7 +3,8 @@ internet=$(nmcli g | sed -n 2p | awk '{print $1}') if [[ $internet == "connected" ]] then - echo "" + con=$(nmcli | grep "connected to" | sed 's/.*: connected to \(.*\)/\1/g') + echo " " $con else - echo "" + echo " Not Connected" fi -- cgit v1.2.3-13-gbd6f