diff options
-rwxr-xr-x | Scripts/.local/scripts/status/connection | 5 |
1 files changed, 3 insertions, 2 deletions
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 |